/* ===============================
   AI Mentor Floating Chat Button (Black)
   =============================== */

.ai-mentor-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #0b0e14; /* deep black */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  /* subtle premium glow */
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.6);

  animation: mentor-pulse-black 2.8s infinite;
}

.ai-mentor-icon {
  font-size: 22px;
  color: #e5e7eb; /* soft white */
  line-height: 1;
}

/* Black pulse animation (subtle) */
@keyframes mentor-pulse-black {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0.7),
      0 8px 24px rgba(0, 0, 0, 0.6);
  }
  70% {
    box-shadow:
      0 0 0 14px rgba(0, 0, 0, 0),
      0 8px 24px rgba(0, 0, 0, 0.6);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0),
      0 8px 24px rgba(0, 0, 0, 0.6);
  }
}

/* Tooltip */
.ai-mentor-tooltip {
  position: absolute;
  right: 70px;
  background: #0b0e14;
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Show tooltip on hover */
.ai-mentor-fab:hover .ai-mentor-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Hover refinement */
.ai-mentor-fab:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}


/* ===== Starter Questions ===== */
.mentor-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.starter-btn {
  background: #f5f6fa;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.starter-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Mentor Input "Command Center" ===== */
.mentor-input-area {
  position: relative;
  margin-top: 16px;
}

#mentor-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  box-shadow:
    0 0 0 rgba(0,0,0,0),
    0 8px 25px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

#mentor-input:focus {
  outline: none;
  border: 1px solid #2c2f4a; /* intelligence accent */
  box-shadow:
    0 0 0 2px rgba(44,47,74,0.15),
    0 12px 35px rgba(0,0,0,0.18);
}

/* Send button refinement */
#mentor-send {
  border-radius: 10px;
  font-weight: 600;
}


/* ===== AI Trading Mentor Styles ===== */

.mentor-section {
  padding-top: 0px;
  padding-right: 10px;
  padding-left: 10px;
  margin: 10px auto;
  max-width: 800px;
}

.mentor-chat-box {
  border: 1px solid #000;
  padding: 16px;
  height: 320px;
  overflow-y: auto;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 10px;
}

.mentor-chat-box p {
  margin: 8px 0;
  font-size: 14px;
}

.mentor-user {
  font-weight: bold;
  text-align: right;
  
  
}

.mentor-ai {
  opacity: 0.9;
}

.mentor-input-area {
  display: flex;
  gap: 10px;
}

#mentor-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #000;
}

#mentor-send {
  padding: 10px 18px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

#mentor-send:hover {
  background: #222;
}

.mentor-disclaimer {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 8px;
}


/* ===== Latest News Section ===== */
.latest-news {
  margin: 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.news-card {
  border: 1px solid #000;
  padding: 16px;
  border-radius: 10px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.news-card h4 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: #000;
}

.news-card a {
  text-decoration: none;
  color: inherit;
}

.news-source {
  font-size: 12px;
  opacity: 0.65;
}

.news-loading {
  font-size: 14px;
  opacity: 0.7;
}


/* XRP Calculator Scoped Styles */
#xrp-calculator {
  font-family: 'Open Sans', Arial, sans-serif; /* Default body text */
  font-weight: 400; /* Normal weight */
  background: #ffffff;
  color: #000000;
  padding: 20px;
  border-radius: 10px;

  /* ✅ Contain calculator like Webflow container */
  max-width: 940px;   /* match Webflow default container */
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

#xrp-calculator h1,
#xrp-calculator h2,
#xrp-calculator h3,
#xrp-calculator h4,
#xrp-calculator h5,
#xrp-calculator h6 {
  font-family: 'Times New Roman', TimesNewRoman, Times, Baskerville, Georgia, serif;
  font-weight: 400; /* Normal weight */
}


.aff_img{
  border-radius: 10px;
  margin-top: 3%;
  margin-bottom:3%;
}

.Become_Affiliate{
  padding: 5%;
}

.aff_container{
  border: 1px solid #000000;
  padding: 20px;
  border-radius: 10px;
}

.hero-wrapper{
  margin-bottom: 5%;
}

/* Header */
#xrp-calculator header {
  text-align: center;
  padding: 20px;
  background: #ffffff;
}

#xrp-calculator header h1 {
  color: rgb(0, 0, 0);
}

/* Calculator Grid */
#xrp-calculator .calculator {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding-top: 20px;
  box-sizing: border-box;
}

/* Inputs Section */
#xrp-calculator .inputs {
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  border-style: solid;
  border-width: 1px;
}

#xrp-calculator .inputs label {
  display: block;
  margin: 10px 0 5px;
}

#xrp-calculator .inputs input {
  width: 50%;
  padding: 8px;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #ececec;
}

#xrp-calculator .action-btn {
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  border: none;
  padding: 10px;
  margin: 5px 0;
  cursor: pointer;
  width: 100%;
  border-radius: 0px;
  font-weight: normal;
  transition: background 0.3s;
}

#xrp-calculator .action-btn:hover {
  background: #1f1f1f;
}

/* Results Section */
#xrp-calculator .results {
  background: #ffffff;
  border-radius: 8px;
}

#xrp-calculator .results h2,
#xrp-calculator .results h3 {
  color: rgb(255, 255, 255);
}

#xrp-calculator table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

#xrp-calculator th,
#xrp-calculator td {
  padding: 8px;
  border: 1px solid #000000;
  text-align: center;
}

/* Tooltip */
#xrp-calculator .tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  color: gold;
  font-weight: bold;
  margin-left: 5px;
}

#xrp-calculator .tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background-color: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid gold;
}

#xrp-calculator .tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Exit Ladder */
#xrp-calculator .exit-ladder {
  margin: 10px 0;
  width: 100%;
}

#xrp-calculator .exit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 8px;
  margin-bottom: 5px;
  border-radius: 4px;
}

#xrp-calculator .exit-row label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #000000;
}

#xrp-calculator .exit-row input {
  width: 70px;
  padding: 4px;
  margin-left: 5px;
  border: none;
  border-radius: 4px;
  text-align: center;
  background: #ececec;
  color: #000000;
}

#xrp-calculator .removeBtn {
  background: transparent;
  color: red;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

#xrp-calculator .removeBtn:hover {
  color: rgb(88, 4, 4);
}

/* Responsive */
@media (max-width: 768px) {
  #xrp-calculator {
    padding: 15px;
  }

  #xrp-calculator .calculator {
    grid-template-columns: 1fr;  /* ✅ collapse to single column */
  }

  #xrp-calculator .exit-row {
    flex-wrap: wrap;
    gap: 5px;
  }

  #xrp-calculator .exit-row input {
    width: 60px;
  }

  #xrp-calculator .inputs button {
    font-size: 14px;
    padding: 8px;
  }

  #xrp-calculator .results {
    margin-top: 20px;
  }
}

/* iPhone / small-screen fix */
/* 🔥 Strict mobile alignment fix for iPhone */
@media (max-width: 480px) {
  #xrp-calculator {
    width: 100vw !important;      /* lock to viewport */
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box;
    overflow-x: hidden !important; /* kill horizontal scroll */
  }

  #xrp-calculator .calculator {
    display: block !important;    /* no grid overflow */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  #xrp-calculator ,
  #xrp-calculator .results {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 15px auto !important;
    padding: 12px !important;
    box-sizing: border-box;
  }

  #xrp-calculator table {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  #xrp-calculator table {
    table-layout: fixed !important; /* force shrink */
    word-break: break-word;
  }

  #xrp-calculator th,
  #xrp-calculator td {
    font-size: 13px !important; /* shrink slightly */
    word-wrap: break-word;
  }
}

#xrp-calculator .calculator-cta{
  font-size: 15px;
  text-align: center;
  margin-top: 10%;
}

