.main-box {
    margin: 105px auto 30px auto; /* smaller safe spacing */
    max-width: 1200px;
    padding: 0 0px;
}
@media screen and (max-width: 768px) {

  /* ===== GLOBAL SPACING REDUCTION ===== */
  * {
    margin-block-start: 0;
    margin-block-end: 0;
  }

  /* Tighten all spacing within plan cards */
  .plan-card-horizontal > * {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }

  /* Remove excessive line breaks */
  br {
    display: none; /* Hide extra <br> tags */
  }
}
/* Remove all main-billing-wrapper, plans-layout, plans-sidebar-visual, plans-left-sidebar styles */

.plans-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: -50px;
  position: relative; /* Add this */
}

.plans-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative; /* Add this */
}

.back-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #1a73e8;
  transition: color 0.2s ease;
  position: absolute; /* Add this */
  left: 0; /* Position to the left */
}

.back-button:hover {
  color: #155ab6;
}

.plans-title {
  font-size: 25px;
  font-weight: 700;
  color: #0C3B56;
  margin-bottom: -5px;
}

.plans-subtitle {
  font-size: 13px;
  color: #44A7E1;
  margin-top: 8px;
  margin-bottom: -10px;
  text-align: center;
}

/* Enhanced badge styles for different states */
.badge {
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background-color: #28a745;
  color: white;
}

.badge-cancelled {
  background-color: #ffc107;
  color: #0B2F4E;
}

.badge-expired {
  background-color: #dc3545;
  color: white;
}

.badge-inactive {
  background-color: #6c757d;
  color: white;
}

/* Auto-renew indicators */
.auto-renew-enabled {
  color: #28a745;
  font-weight: 600;
}

.auto-renew-disabled {
  color: #dc3545;
  font-weight: 600;
}

/* Cancellation notice */
.cancellation-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 8px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
}

dl, ol, ul {
  margin-top: 10px;
  margin-bottom: 1rem;
}

/* Currency notice */
.currency-notice {
  text-align: center;
  margin-bottom: 15px;
  color: #666;
  font-size: 12px;
  background: rgba(68, 167, 225, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(68, 167, 225, 0.2);
}

/* Plan cards layout - 4 columns in one row */
.plan-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}

/* Individual plan cards */
.plan-card {
  background: #fefefe;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(0, 113, 227, 0.15);
  box-shadow: 0px 4px 4px rgba(0, 113, 227, 0.25);
  transition: border 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Current plan highlighting */
.plan-card.current-plan {
  border: 2px solid #007bff;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  box-shadow: 0px 4px 8px rgba(0, 123, 255, 0.3);
}

.plan-card.current-plan::before {
  content: "CURRENT";
  position: absolute;
  top: 15px;
  right: 15px;
  background: #007bff;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.plan-card.selected {
  border: 2px solid #1C72F3;
  box-shadow: 0px 0px 10px rgba(0, 113, 227, 0.3);
}

.plan-card {
  cursor: default;
}

.plan-card:hover {
  box-shadow: 0px 4px 6px rgba(0, 113, 227, 0.35);
}

.plan-card.flex-plan {
  overflow: visible;
}

/* Price styling */
.price {
  font-size: 14px;
  font-weight: bold;
  color: #656b6f;
  margin-bottom: 5px;
}

.price span {
  font-size: 22px;
  color: #0C3B56;
  font-weight: 600;
  margin-left: 4px;
}

.price-amount {
  font-size: 22px;
  color: #0C3B56;
  font-weight: 600;
  margin-left: 4px;
}

.plan-name {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 5px;
  color: #0077cc;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-desc {
  font-size: 12px;
  color: #555555;
  margin-bottom: 10px;
}

.plan-desc1 {
  font-size: 12px;
  color: #ffb700;
  margin-bottom: 5px;
}

.feature-list li {
  font-size: 13px;
  margin-bottom: 6px;
  color: #333;
}

.category-list li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

/* Most popular badge */
.most-popular-badge {
    position: absolute;
    top: 5px;
    left: 61%;
    transform: translateX(5%);
    color: #0c3b56;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: default;
    border: 1px solid #EBA352;
    background-clip: padding-box, border-box;
    background-origin: border-box;
    box-shadow: 0 0 2px 0 rgba(235, 163, 82, 0.5);
    background-clip: padding-box, border-box;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #1C72F3;
  border-radius: 50%;
  margin-left: 10px;
}

.category-list ul {
  margin-top: 4px;
  padding-left: 15px;
}

/* Choose button */
.choose-btn {
  margin-top: auto;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background-color: #0B2F4E;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 5px;
}

.choose-btn:hover:not(:disabled) {
  background-color: #0a2742;
  transform: translateY(-1px);
}

/* Current plan button */
.choose-btn.current {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

.choose-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Outer container */
.billing-switch {
  position: relative;
  width: 180px;
  height: 40px;
  /* background: #dbeeff; */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

/* Hide radios */
.billing-switch input[type="radio"] {
  display: none;
}

/* Labels */
.switch-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.switch-labels label {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #0b2f4e;
  transition: color .25s ease;
}

/* White slider bubble */
.switch-slider {
  position: absolute;
  height: 28px;
  width: 90px;
  background: white;
  border-radius: 10px;     /* ← SMALLER RADIUS LIKE SCREENSHOT */
  top: 6px;
  left: 6px;
  transition: transform .25s ease;
  z-index: 1;
  border: 1px solid #1C72F3;
}

/* When Monthly active */
#monthly:checked ~ .switch-slider {
  transform: translateX(0);
}

/* When Yearly active */
#yearly:checked ~ .switch-slider {
  transform: translateX(82px);
}

/* Active label */
#monthly:checked ~ .switch-labels label[for="monthly"],
#yearly:checked ~ .switch-labels label[for="yearly"] {
  color: #0b2f4e;
}

/* Currency and price styling */
.price-period {
  font-size: 14px;
  color: #656b6f;
  font-weight: normal;
  margin-left: 2px;
}

.currency-symbol {
  font-size: 14px;
  color: #656b6f;
  font-weight: bold;
}

/* Footer */
.footer {
  font-size: .9rem;
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #0d3b5b;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer a.footer-link {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color .2s;
}

.footer a.footer-link:hover {
  color: #fff;
}

.footer hr {
  border-color: rgba(255, 255, 255, .2);
}

/* Loading states for buttons */
.choose-btn.loading {
  background-color: #6c757d;
  cursor: wait;
  opacity: 0.7;
}

.choose-btn.loading:hover {
  background-color: #6c757d;
  transform: none;
}

/* Enhanced error states */
.plan-card.error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 12px;
}

/* Success states */
.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 12px;
}

/* =========================
   Free/Go Plan - Now vertical card like others
   ========================= */
.plan-card-horizontal {
  background: #fefefe;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 113, 227, 0.15);
  box-shadow: 0px 4px 4px rgba(0, 113, 227, 0.25);
  transition: border 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.plan-card-horizontal:hover {
  box-shadow: 0px 4px 6px rgba(0, 113, 227, 0.35);
}

.plan-card-horizontal.current-plan {
  border: 1px solid #007bff;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  box-shadow: 0px 4px 8px rgba(0, 123, 255, 0.3);
}



.free-left {
  width: 100%;
  margin-bottom: 10px;
}

.free-middle {
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex: 1;
  width: 100%;
}

.free-middle-right {
  margin-top: 0;
}

.free-right {
  width: 100%;
  margin-top: auto;
  margin-bottom: -23px;
}

/* =========================
   Tokens pill + Auto Mode tooltip
   ========================= */
.token-pill{
  font-size:11px;
  font-weight:700;
  color:#0C3B56;
  background:#E9F3FF;
  border:1px solid rgba(0,113,227,.25);
  padding:3px 8px;
  border-radius:999px;
  white-space:nowrap;
}

.info-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#fffbe6;
  border:1px solid #ffe58f;
  color:#7a5a00;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
}

.info-dot{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#0C3B56;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1;
}

.has-tip{
  position:relative;
  cursor:help;
}

.has-tip .tip{
  display:none;
  position:absolute;
  z-index:5;
  top:115%;
  left:0;
  background:#0C3B56;
  color:#fff;
  padding:8px 10px;
  max-width:280px;
  border-radius:8px;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
  font-size:12px;
  line-height:1.35;
}

.has-tip:hover .tip,
.has-tip.tip-show .tip{
  display:block;
}

@media (hover:none){
  .has-tip .tip{
    top:140%;
  }
}

/* =========================
   Models: inline, aligned column
   ========================= */
.brand-stack-inline{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:4px;
}

.brand-row-inline{
  display:flex;
  align-items:flex-start;
  gap:6px;
}

.brand-name-inline{
  display:flex;
  align-items:center;
  gap:4px;
  color:#0C3B56;
  white-space:nowrap;
  flex:0 0 26px;
  font-size:12px;
  margin-left: -133px;
}

.brand-icon{
  width:16px;
  height:16px;
  object-fit:contain;
  opacity:.9;
}

.brand-chips-inline{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:0;
  padding:0;
  list-style:none;
  flex:1;
}

.model-chip{
  padding:2px 6px;
  border-radius:999px;
  background:#EEF7FF;
  border:1px solid rgba(0,113,227,.22);
  font-size:10px;
  font-weight:500;
  color:#0C3B56;
  white-space:nowrap;
}

/* Models title */
.models-title {
  font-weight: 520;
  color: #0C3B56;
  margin-bottom: 10px !important;
  font-size: 14px;
}

.models-block {
  margin: -13px 0;
}

.tools-inline {
  margin-top: 10px;
  font-size: 12px;
  color: #0C3B56;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.4;
}

.tools-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tools-heading strong {
  font-weight: 700;
  color: #0C3B56;
  font-size: 13px;
}

.tools-subnote {
  font-size: 11px;
  font-style: italic;
  color: #666;
  margin-left: 2px;
}

.cap-note {
  margin-top: -19px;
  font-size: 11px;
  color: #6B7280;
  line-height: 1.4;
}

/* tighter feature list for Pro */
.feature-list.compact{
  margin:6px 0 8px 16px;
}

.feature-list.compact li{
  font-size:12px;
  margin-bottom:4px;
}

/* flex card  */
/* ===== FLEX: header row ===== */
.flex-head {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.flex-sub {
  margin-top:6px;
}

/* ===== FLEX: tokens row ===== */
.flex-token-row {
  display:flex;
  gap:8px;
  align-items:center;
  margin:8px 0 12px;
}

.flex-token-label {
  font-size:12px;
  color:#0C3B56;
  font-weight:700;
}

.flex-token-input {
  width:49px;
  padding:0px 3px;
  border:1px solid rgba(0,113,227,.2);
  border-radius:4px;
}

.flex-token-unit {
  padding:0px 3px;
  border:1px solid rgba(0,113,227,.2);
  border-radius:4px;
}

/* ===== FLEX: brand selector row ===== */
.brand-select-row {
  display:flex;
  gap:6px;
  flex:1;
  align-items:center;
}

.brand-select {
  flex:1;
  padding:0px 3px;
  border:0px solid rgba(0,113,227,.2);
  border-radius:8px;
}

.add-to-mix {
  padding: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 0px solid #E2E8F0;
  background: #fff;
  color: #0C3B56;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-to-mix:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  transform: scale(1.05);
}

.add-to-mix:active {
  transform: scale(0.95);
  background: #DBEAFE;
}

/* ===== FLEX: mix (allocation) box ===== */
.mix-box {
  margin-top:10px;
  border:1px dashed rgba(12,59,86,.25);
  border-radius:12px;
  padding:10px;
  margin-left: -4px;
}

.mix-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

.mix-head-left {
  display:flex;
  align-items:center;
  gap:8px;
}

.mix-title {
  color:#0C3B56;
  font-weight:700;
  font-size: 11px;
}

.mix-note {
  color:#666;
  font-size:12px;
}

.mix-actions {
  display:flex;
  gap:6px;
}

.mix-btn {
  padding:0px 6px;
  border:1px solid rgba(0,113,227,.2);
  border-radius:8px;
  background:#F2F7FF;
  color:#0C3B56;
  font-weight:600;
  font-size: 9px;
}

.mix-btn--clear {
  background:#fff;
}

/* rows container */
#mixRows {
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* a single mix row */
.mix-row {
  grid-template-columns:2fr 66px 1fr 8px;
  gap:6px;
  align-items:center;
}

.mix-label {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.mix-name {
  font-size:12px;
  color:#0C3B56;
  font-weight:600;
}

.mix-rate {
  color:#666;
  font-size: .675em;
}

.mix-pct {
  padding:0px 6px;
  border:1px solid rgba(0,113,227,.2);
  border-radius:8px;
  width: 47px;
}

.mix-pct:focus {
  outline:none;
  border-color:#007bff;
  box-shadow:0 0 0 3px rgba(0,123,255,.12);
}

.mix-slider {
  width:100%;
  height: 3px;
}

.mix-remove {
  border:0;
  background:transparent;
  color:#0C3B56;
  font-weight:700;
  cursor:pointer;
}

/* ===== FLEX: estimated cost ===== */
.flex-cost {
  display:none;
  margin-top:10px;
}

.flex-cost-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}

.flex-cost-title {
  color:#0C3B56;
  font-weight:700;
}

.flex-cost-note {
  color:#666;
  font-size:12px;
}

#flexCostRows {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.flex-cost-line {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:#0C3B56;
}

/* small utility */
.mt-12 {
  margin-top:12px;
}


/* --- Extras section --- */
.extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(12,59,86,.15);
  gap: 5px;
}

.extra-item:last-child {
  border-bottom: none;
}

.extra-left {
  display: flex;
  flex-direction: column;
}

.extra-label {
  font-weight: 500;
  color: #0C3B56;
  font-size: 10px;
}

.extra-rate {
  font-size: 12px;
  color: #667085;
}

.extra-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.extra-input {
  width: 36px;
  padding: 0px 0px;
  font-size: 13px;
  font-weight: 600;
  color: #0C3B56;
  border: 1px solid rgba(0, 113, 227, .25);
  border-radius: 8px;
  text-align: right;
}

.extra-unit {
  font-size: 12px;
  color: #444;
}

/* Token entry UX */
.flex-token-inputwrap {
  display: inline-flex;
  align-items: center;
  gap: 0px;
}

.flex-token-input {
  width: 56px;
  border: 0;
  outline: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.flex-token-unit {
  border: 0;
  outline: none;
  background: transparent;
  font-weight: 600;
  color: #0C3B56;
}

.flex-step {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 0px solid #d1d5db;
  background:#fff;
  cursor:pointer;
}

.flex-step:active {
  transform: translateY(1px);
}

.flex-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0px 0px 2px;
}

.flex-quick-picks .qp {
  padding:4px 8px;
  border:1px solid #cfe5ff;
  background:#f4f9ff;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
}

.flex-quick-picks .qp:hover {
  background:#e9f3ff;
}

/* ---- FX Select (custom dropdown) ---- */
.fxsel {
  position: relative;
  font-size:14px;
}

.fxsel .fx-btn {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:14px;
  padding:2px 10px;
  border-radius:10px;
  border:1px solid #d5e3ef;
  background:#fff;
  color:#0C3B56;
  cursor:pointer;
  font-size: 9px;
}

.fxsel .fx-btn:focus {
  outline:2px solid #b0d4ff;
  outline-offset:1px;
}

.fxsel .fx-caret {
  margin-left:8px;
  font-size:12px;
  opacity:.8;
}

.fxsel .fx-panel {
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:50;
  background:#fff;
  border:1px solid #d5e3ef;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(12,59,86,.12);
  padding:8px;
  display:none;
}

.fxsel.open .fx-panel {
  display:block;
}

.fxsel .fx-search {
  width:100%;
  height:34px;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid #d5e3ef;
  background:#f7fbff;
  margin-bottom:8px;
}

.fxsel .fx-list {
  max-height:220px;
  overflow:auto;
  margin:0;
  padding:0;
  list-style:none;
}

.fxsel .fx-opt {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  white-space:nowrap;
}

.fxsel .fx-opt:hover,
.fxsel .fx-opt[aria-selected="true"] {
  background:#eef6ff;
}

.fxsel .fx-muted {
  opacity:.55;
}

.fxsel .fx-flag {
  width:16px;
  height:16px;
  margin-right:8px;
  border-radius:50%;
  display:none;
}

.fxsel .fx-row {
  display:flex;
  align-items:center;
  gap:8px;
}

.fxsel .fx-empty {
  padding:10px;
  color:#6b8aa0;
  text-align:center;
}

/* Hide the native select but keep it accessible for forms/validation */
.fxsel select.fx-native {
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet styles (1024px - 1400px) */
@media screen and (max-width: 1400px) {
  .plan-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}


/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
  .choose-btn {
    min-height: 44px;
  }
}
.navbar.billing-navbar {
    border-bottom: 0px solid #e5e7eb;
}
/* Logo-only brand display */
.brand-logos-only {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.brand-logo-item {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: help;
}

.brand-logo-item:hover {
  opacity: 1;
  transform: scale(1.1);
}
/* Configure button */
.configure-btn {
  width: 100%;
  padding: 10px 16px;
  margin: 10px 0;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid rgba(0, 119, 204, 0.3);
  border-radius: 8px;
  color: #0077cc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.configure-btn:hover {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: #0077cc;
}

.configure-btn svg {
  width: 16px;
  height: 16px;
}

.config-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.config-arrow.rotated {
  transform: rotate(180deg);
}

/* Collapsible config section */
.flex-config-section {
  margin-top: -32px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 119, 204, 0.2);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

/* Extras section styling */
.extras-section {
  margin-top: 30px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 50px
}

.extra-unit {
  font-size: 11px; /* Smaller */
  color: #444;
  white-space: nowrap;
}

/* Price with promo wrapper */
.price-with-promo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

/* Free for 1 year badge */
.free-year-badge {
  display: inline-block;
  background: linear-gradient(135deg, #34C759, #28a745);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
  animation: pulse 2s ease-in-out infinite;
  width: fit-content;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(52, 199, 89, 0.5);
  }
}

/* Alternative: If you want it less animated */
.free-year-badge.subtle {
  animation: none;
}

.free-year-badge.subtle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(52, 199, 89, 0.5);
}
.models-block {
    margin-top: 20px !important;
}
.plan-card .plan-desc {
    min-height: 60px;
}
.tools-inline {
    margin-top: 20px !important;
}

/* Ensures all cards have same vertical space before tools section */
.plan-card .tools-inline,
.plan-card-horizontal .tools-inline {
    min-height: 120px;   /* adjust if needed */
}
.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0 0;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 6px;
    font-size: 14px;
}

.feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #007aff;   /* blue accent */
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   FINAL OVERRIDE FOR FLEX DROPDOWN Z-INDEX
   ============================================ */

/* Put the Flex plan card above the other cards */
.plan-card.flex-plan {
    position: relative !important;
    z-index: 99990 !important;
    overflow: visible !important;
}

/* Its inner content should not clip the dropdown */
.plan-card.flex-plan *,
.plan-card-horizontal.flex-plan * {
    overflow: visible !important;
}

/* FXSelect wrapper: own high stacking context */
.fxsel {
    position: relative !important;
    overflow: visible !important;
    z-index: 99999 !important;
}

/* The dropdown panel itself – max priority */
.fxsel .fx-panel {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    width: 100% !important;

    max-height: 300px !important;
    overflow-y: auto !important;

    background: #ffffff !important;
    border: 1px solid #d7e2ee !important;
    border-radius: 12px !important;
    padding: 10px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;

    z-index: 2147483647 !important; /* max int-ish */
}

/* Extra safety so children don’t get hidden */
.fxsel .fx-panel * {
    position: relative;
    z-index: 2147483647 !important;
}

/* FXSelect panel - now attached to body */
.fx-panel {
    position: fixed !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    border: 1px solid #d7e2ee !important;
    border-radius: 8px !important;
    padding: 8px !important;
    box-shadow: 0 8px 24px rgba(12, 59, 86, 0.15) !important;
    display: none !important;
    max-height: 280px !important;
    overflow: hidden !important;
}

.fx-panel.fx-open {
    display: block !important;
}

.fx-panel .fx-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #d5e3ef;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.fx-panel .fx-list {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-opt {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.fx-opt:hover {
    background: #eef6ff;
}

.fx-opt[aria-selected="true"] {
    background: #dbeeff;
    font-weight: 600;
}

.fx-muted {
    opacity: 0.5;
    cursor: not-allowed;
}

.fx-empty {
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.mix-row {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.mix-row:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.08);
}

.mix-row-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header Section */
.mix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mix-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.mix-model-name {
  font-size: 10px;
  font-weight: 600;
  color: #0C3B56;
  line-height: 1;
}

.mix-rate-badge {
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 0px;
  border-radius: 4px;
  font-weight: 500;
}

.mix-remove {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 0;
  background: transparent;
  color: #dc3545;
  border-radius: 5px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.mix-remove:hover {
  background: #fee2e2;
  transform: scale(1.1);
}

/* Multi-model Controls */
.mix-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.mix-percentage-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mix-pct {
  width: 60px;
  padding: 6px 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  color: #0C3B56;
  text-align: center;
  transition: all 0.2s ease;
  background: #fafbfc;
}

.mix-pct:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.mix-percent-symbol {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}

.mix-slider-container {
  flex: 1;
  min-width: 80px;
}

.mix-slider {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.mix-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.mix-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.mix-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.mix-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.mix-token-amount {
  font-size: 12px;
  color: #3b82f6;
  font-weight: 700;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1;
}

/* Single Model Info (shown when only 1 model) */
.mix-single-model-info {
  display: none;
  justify-content: flex-end;
  margin-top: 4px;
}

.single-model-token-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  padding: 1px 9px;
  border-radius: 8px;
  color: #1e40af;
}

.single-model-token-badge svg {
  opacity: 0.7;
}

.mix-token-amount-single {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
}

/* Mix Box Container */
#mixBox {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-top: 29px;
}

.mix-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.mix-title {
  font-size: 13px;
  font-weight: 700;
  color: #0C3B56;
}

.mix-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mix-btn {
  padding: 3px 10px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: white;
  color: #374151;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.mix-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.mix-btn--clear {
  color: #dc3545;
  border-color: #fecaca;
}

.mix-btn--clear:hover {
  background: #fee2e2;
  border-color: #dc3545;
}

#mixRows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

/* Single model helper text */
.mix-single-helper {
  font-size: 11px;
  color: #6b7280;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  padding: 6px;
  background: #f9fafb;
  border-radius: 4px;
}
/* ================================
   GO PLAN – NEW DESIGN SYSTEM
   Colors:
     Primary Dark:   #0B2F4E
     Primary Blue:   #1C72F3
     Opacity Variants:
       100%  -> normal
       70%   -> rgba(..., 0.70)
       65%   -> rgba(..., 0.65)
       15%   -> rgba(..., 0.15)
   Corner Radius: 10px everywhere
================================ */

/* ---------- Main Card ---------- */
.go-plan-card {
  border: 1px solid rgba(11, 47, 78, 0.15);
  border-radius: 10px;
  padding: 28px 21px;
  background: #ffffff;
  max-width: 320px;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 16px rgba(11, 47, 78, 0.07);
}

/* ---------- Header ---------- */
.go-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.go-title {
  font-size: 28px;
  font-weight: 700;
  color: #0B2F4E;
  margin: 0;
}

/* Free for 1 year badge */
.free-for-year {
  color: #1C72F3;
  font-size: 12.5px;
  padding: 4px 0px;
  border-radius: 10px;
  font-weight: 620;
  margin-bottom: -7px;
}

/* ---------- Description ---------- */
.go-subtext {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(11,47,78,0.70);    /* 70% dark color */
  font-weight: 500;
}

/* ---------- Price ---------- */
.go-price {
  margin-top: -17px; /* reduced space as requested */
  color: #0B2F4E;
  margin-bottom: -15px;
}

.price-amount {
  font-size: 31px;
  font-weight: 630;
  color: #0B2F4E;
}

.price-period {
  font-size: 17px;
  margin-left: -3px;
  color: rgba(11, 47, 78, 0.70);
}

/* ---------- Models ---------- */
.go-models {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #0B2F4E;
}

.model-icons {
  margin-left: 8px;
}

.model-icon {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}

.model-names {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(11,47,78,0.70);
}

/* ---------- Tokens link ---------- */
.token-link {
  display: block;
  color: #1C72F3;
  font-weight: 600;
  margin: 12px 0 -5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}

/* ---------- Current Plan Button ---------- */
.current-btn {
  width: 100%;
  background: rgba(0,113,227,0.15); /* Blue @ 15% */
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0B2F4E;
  cursor: default;
  margin-bottom: 16px;
}

/* ---------- Features Section ---------- */
.features-title {
  font-weight: 600;
  font-size: 15px;
  color: #0B2F4E;
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin: 2px 0;
  font-size: 14px;
  color: #0B2F4E;
  font-weight: 400;
}

.feature-sub {
  color: rgba(11,47,78,0.65);   /* 65% */
  font-size: 11px;
  display: block;
  margin-left: 22px;
  margin-top: -2px;
}

/* Info icon */
.info-dot-small {
  font-size: 12px;
  margin-left: 3px;
  color: rgba(11,47,78,0.65);
}

/* ---------- FX SELECT FIXES (unchanged) ---------- */


.fxsel {
  position: relative !important;
  z-index: 999999999 !important;
}


/* Parent list item with ✔ icon */
.feature-parent {
  position: relative;
  margin: 8px 0;
  font-size: 14px;
  color: #0B2F4E;
  font-weight: 600;
  padding-left: 22px;
}

/* Blue checkmark */
.feature-parent::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #1C72F3;
  font-size: 15px;
  font-weight: 700;
}

/* The container for sub-items */
.feature-subblock {
  margin-top: 2px;
  margin-left: -17px;
}

/* Sub-items on new lines (indented) */
.feature-sub {
  display: block;
  color: rgba(11, 47, 78, 0.65); /* 65% opacity */
  font-size: 11px;
  line-height: 1.25;
  margin-left: 16px; /* indentation to match screenshot */
  margin-top: 1px;
}

.models-inline-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.inline-icon {
  width: 11px;
  height: 13px;
  object-fit: contain;
  opacity: 0.9;
}

.model-names-small {
  margin-top: 0px;
  font-size: 8px;
  color: rgba(11, 47, 78, 0.65);
  line-height: 1.3;
}
.currency-symbol-large {
  margin-right: 2px;
  font-weight: 630;
  font-size: 31px;     /* same as .price-amount */
  color: #0B2F4E;      /* same color */
}

.current-plan-divider {
  border: 0;
  border-top: 1px solid rgba(12, 59, 87, 0.18);
  margin: 1px 0 1px 0;
}
.plan-card-horizontal {
    border: 1px solid #d9e7ff;
    border-radius: 14px;
    padding: 24px 26px;
    background: #fff;
}

.free-right {
    display: flex;
    justify-content: flex-end;
    margin: 15px 0;
}

.configure-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #cfe8ff;
    color: #003566;
    font-weight: 600;
    text-align: center;
}

#flexConfigArrow {
    display: inline-block;
    transition: transform .2s ease;
}

#flexConfigArrow.rotated {
    transform: rotate(180deg);
}

.current-plan-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
    margin: 16px 0;
}

#flexMainBtn {
    width: 100%;
    margin-top: 2px;
}

/* Disabled-looking until config done */
#flexMainBtn.configure-first {
    pointer-events: auto;
}

/* When ready to choose */
#flexMainBtn.choose-ready {
    opacity: 1;
}
/* Make Flex config button identical to .choose-btn */
.flex-config-btn {
    margin-top: auto;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background-color: #0B2F4E;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 5px;
}

/* Hover effect identical */
.flex-config-btn:hover {
    background: #0a2742;
}

/* Active press */
.flex-config-btn:active {
    background: #004fa8;
}

/* Disabled style (if needed) */
.flex-config-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Align token-link row across all 4 cards */



























.model-brand-list {
    margin-top: -6px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.model-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: -1px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 9px;
}

.model-brand-row:hover {
    background: #eef6ff;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    width: 16px;
    height: 16px;
}

.brand-arrow {
    font-size: 16px;
    font-weight: 600;
    color: #1C72F3;
    transition: transform 0.2s ease;
}

.brand-arrow.rotated {
    transform: rotate(90deg);
}

.brand-models {
    margin-left: 28px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-model-item {
    font-size: 12px;
    padding: 2px 0;
    color: #0b2f4e;
    opacity: 0.75;
}

.hidden {
    display: none;
}

.feature-list {
  margin-top: -39px;
}

/* =========================================
   FX DROPDOWN – FINAL Z-INDEX OVERRIDE
   (paste at very bottom of plans.css)
   ========================================= */

/* Keep everything else in the page lower */
.main-box,
.plan-cards-container,
.plan-card,
.plan-card-horizontal {
  position: relative;
  z-index: 1;
}

/* FX select trigger above cards */
.fxsel {
  position: relative !important;
  z-index: 2 !important;
}

/* Panel above navbar / headers / footers */
.fxsel .fx-panel,
.fx-panel,
.fx-panel.fx-open {
  position: fixed !important;
  z-index: 1200 !important;   /* higher than typical navbars (~1030) */
}
/* =========================================
   FIX: Restore scrolling inside FX dropdown
   ========================================= */

.fx-panel {
    max-height: 280px !important;
    overflow-y: auto !important;   /* ENABLE SCROLL */
    overflow-x: hidden !important; /* Keep horizontal clean */
}
/* Hide Flex token pill until user configures */
#flexTokensPill {
    visibility: hidden;
}
.flex-config-open #flexTokensPill {
    visibility: visible;
}
/* Fix modal scroll being broken by global overflow override */


.modal-dialog-scrollable .modal-body {
  overflow-y: auto !important;
  max-height: 70vh;
}
/* FIX: remove horizontal scrollbar on Plans page ONLY */
html, body {
    overflow-x: hidden !important;
}
.plan-card-horizontal.current-plan::before {
  content: "CURRENT";
  position: absolute;
  /* top: 15px; */
  right: 15px;
  background: #1C72F3;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  top: 5px;
}
dropdown-item {
  font-size: 15px !important;
}

/* Feature list tooltip adjustments */
.feature-list .has-tip {
  position: relative;
  cursor: help;
}

.feature-list .has-tip .tip {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #0C3B56;
  color: #fff;
  padding: 10px 12px;
  max-width: 260px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  white-space: normal;
}

.feature-list .has-tip:hover .tip,
.feature-list .has-tip.tip-show .tip {
  display: block;
}

/* Arrow pointer for tooltip */
.feature-list .has-tip .tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-bottom-color: #0C3B56;
}
/* Mobile/touch devices */
@media (hover: none) {
  .feature-list .has-tip .tip {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .feature-list .has-tip .tip::before {
    top: 100%;
    bottom: auto;
    border-bottom-color: transparent;
    border-top-color: #0C3B56;
  }
}

/* ========================================
   MOBILE RESPONSIVE STYLES - COMPLETE
   ======================================== */

/* Tablet styles (769px - 1024px) */
@media screen and (max-width: 1024px) {
  .plan-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile styles (max-width: 768px) */
@media screen and (max-width: 768px) {

  /* ===== CONTAINER ===== */
  .main-box {
    margin: 80px 16px 20px 16px;
    padding: 0;
    max-width: 100%;
  }

  /* ===== HEADER ===== */
  .plans-header {
    margin: 20px 0;
    text-align: center;
  }

  .plans-top-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .back-button {
    position: static;
    align-self: flex-start;
    margin-bottom: 8px;
  }

  .plans-title {
    font-size: 24px;
    margin: 0;
  }

  .plans-subtitle {
    font-size: 13px;
    margin: 8px 0;
  }

  /* ===== BILLING SWITCH ===== */
  .billing-switch {
    width: 100%;
    max-width: 320px;
    height: 44px;
    margin: 16px auto;
  }

  .switch-labels {
    padding: 0 16px;
  }

  .switch-labels label {
    font-size: 14px;
  }

  .switch-slider {
    height: 32px;
    width: calc(50% - 8px);
  }

  #yearly:checked ~ .switch-slider {
    transform: translateX(calc(100% + 8px));
  }

  /* ===== CURRENCY NOTICE ===== */
  .currency-notice {
    font-size: 13px;
    padding: 10px 14px;
    margin: 0 0 20px 0;
  }

  /* ===== PLAN CARDS - SINGLE COLUMN ===== */
  .plan-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 16px !important;
  }

  /* ===== INDIVIDUAL CARDS ===== */
  .plan-card,
  .plan-card-horizontal {
    padding: 20px;
    border-radius: 12px;
    max-width: 100%;
  }

  /* Current plan badge repositioning */
  .plan-card.current-plan::before,
  .plan-card-horizontal.current-plan::before {
    position: static;
    display: block;
    width: fit-content;
    margin-bottom: 12px;
  }

  /* Most popular badge */
  .most-popular-badge {
    position: absolute;
    transform: none;
    display: block;
    width: fit-content;
    margin-bottom: 17px;
    left: 77%;
  }

  /* ===== GO PLAN CARD ===== */
  .go-plan-card {
    max-width: 100%;
    padding: 24px 20px;
  }

  .go-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .go-title {
    font-size: 26px;
  }

  .free-for-year {
    font-size: 12px;
    margin-bottom: 0;
  }

  .go-subtext {
    font-size: 14px;
    margin-top: 10px;
  }

  .go-price {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .price-amount,
  .currency-symbol-large {
    font-size: 28px;
  }

  .price-period {
    font-size: 16px;
  }

  /* ===== MODELS SECTION ===== */
  .go-models {
    margin-top: 16px;
    font-size: 14px;
  }

  .model-icons {
    display: flex;
    gap: 6px;
    margin: 8px 0;
  }

  .model-icon {
    width: 20px;
    height: 20px;
  }

  .model-names {
    font-size: 13px;
    line-height: 1.4;
  }

  .model-brand-list {
    margin-top: 8px;
  }

  .model-brand-row {
    padding: 8px 10px;
    font-size: 13px;
  }

  .brand-models {
    margin-left: 32px;
    margin-top: 8px;
  }

  .brand-model-item {
    font-size: 13px;
    padding: 4px 0;
  }

  /* ===== TOKEN LINK ===== */
  .token-link {
    font-size: 13px;
    display: block;
    text-align: left;
    margin: 2px 0 -20px;
  }

  /* ===== BUTTONS ===== */
  .current-btn,
  .choose-btn,
  .flex-config-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 10px;
    margin: 16px 0 0 0;
    min-height: 48px;
  }

  /* ===== FEATURES ===== */
  .features-title {
    font-size: 16px;
    margin: 20px 0 12px 0;
  }

  .feature-list {
    margin-top: 0;
    padding-left: 0;
  }

  .feature-list li,
  .feature-parent {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 24px;
  }

  .feature-sub {
    font-size: 12px;
    margin-left: 24px;
    margin-top: 4px;
    line-height: 1.4;
  }

  /* ===== HORIZONTAL CARDS ===== */
  .plan-card-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .free-left,
  .free-middle,
  .free-right {
    width: 100%;
  }

  .free-right {
    margin-bottom: 0;
  }

  /* ===== BRAND SELECTOR - MOBILE ===== */
  .brand-row-inline {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
    min-height: auto;
  }

  .brand-name-inline {
    font-size: 14px;
    font-weight: 600;
    width: auto;
    height: 44px; /* Match dropdown height */
    display: flex;
    align-items: center; /* Vertically center */
  }



  .brand-select-row {
    grid-template-columns: 1fr 44px;
    gap: 8px;
    height: 44px;
  }

  .brand-select {
    width: 100%;
    height: 44px; /* Fixed height */
    padding: 0 12px;
    font-size: 15px;
    line-height: normal; /* Remove line-height */
    display: flex;
    align-items: center; /* Use flexbox for vertical centering */
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    color: #0C3B56;
  }

  .add-to-mix {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
    padding: 0;
  }

  /* Remove xAI nudge on mobile */
  .brand-row-inline.xai-row .brand-select-row {
    margin-left: 0;
  }

  /* ===== FLEX PLAN SPECIFICS ===== */
  .configure-btn {
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 10px;
    min-height: 48px;
  }

  .flex-token-row {
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
  }

  .flex-token-label {
    font-size: 14px;
    width: 100%;
  }

  .flex-token-input,
  .flex-token-unit {
    padding: 8px 12px;
    font-size: 16px;
  }

  .flex-quick-picks {
    gap: 8px;
    margin: 12px 0;
  }

  .flex-quick-picks .qp {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 36px;
  }

  .mix-box {
    margin: 16px 0;
    padding: 16px;
    border-radius: 10px;
  }

  .mix-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mix-title {
    font-size: 14px;
  }

  .mix-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .mix-btn {
    padding: 6px 12px;
    font-size: 13px;
    min-height: 36px;
  }

  .mix-row {
    padding: 16px;
    margin-bottom: 12px;
  }

  .mix-row-content {
    gap: 14px;
  }

  .mix-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mix-info {
    width: 100%;
  }

  .mix-model-name {
    font-size: 15px;
  }

  .mix-rate-badge {
    font-size: 12px;
    padding: 4px 8px;
  }

  .mix-remove {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .mix-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mix-percentage-group {
    justify-content: space-between;
    width: 100%;
  }

  .mix-pct {
    width: 80px;
    padding: 10px 12px;
    font-size: 16px;
  }

  .mix-slider-container {
    width: 100%;
  }

  .mix-token-amount {
    font-size: 13px;
    padding: 6px 12px;
  }

  /* ===== EXTRAS SECTION ===== */
  .extras-section {
    margin: 16px 0;
    padding: 12px;
    margin-bottom: 12px !important;
  }

  .extra-item {
    padding: 8px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .extra-label {
    font-size: 14px;
  }

  .extra-rate {
    font-size: 13px;
  }

  .extra-control {
    width: 100%;
    justify-content: space-between;
  }

  .extra-input {
    width: 60px;
    padding: 8px 10px;
    font-size: 16px;
  }

  .extra-unit {
    font-size: 14px;
  }

  /* ===== FX SELECT DROPDOWN ===== */
  .fxsel {
    z-index: 1000 !important;
  }

  .fxsel .fx-btn {
    padding: 10px 14px;
    font-size: 15px;
    min-height: 44px;
  }

  .fxsel .fx-panel {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 60vh !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 16px !important;
    z-index: 10000 !important;
  }

  .fxsel .fx-search {
    height: 44px;
    font-size: 16px;
    padding: 10px 14px;
  }

  .fxsel .fx-list {
    max-height: calc(60vh - 80px) !important;
  }

  .fxsel .fx-opt {
    padding: 12px 14px;
    font-size: 15px;
    min-height: 44px;
  }

  /* ===== COST BREAKDOWN ===== */
  .flex-cost {
    margin-top: 16px;
  }

  .flex-cost-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .flex-cost-title {
    font-size: 15px;
  }

  .flex-cost-note {
    font-size: 13px;
  }

  .flex-cost-line {
    font-size: 14px;
    padding: 8px 0;
  }

  /* ===== BADGES & PILLS ===== */
  .token-pill,
  .info-badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  .badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* ===== TOOLTIPS ===== */
  .has-tip .tip {
    position: fixed !important;
    top: auto !important;
    bottom: 60px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 14px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }

  .has-tip .tip::before {
    display: none;
  }

  /* ===== ADJUST SPACING ===== */
  .models-block {
    margin: 16px 0;
  }

  .models-title {
    font-size: 15px;
    margin-bottom: 12px !important;
  }

  .brand-stack-inline {
    gap: 6px;
  }

  .brand-chips-inline {
    flex-wrap: wrap;
    gap: 6px;
  }

  .model-chip {
    padding: 4px 8px;
    font-size: 11px;
  }

  .tools-inline {
    margin-top: 16px !important;
    font-size: 13px;
  }

  .tools-heading strong {
    font-size: 14px;
  }

  .tools-subnote {
    font-size: 12px;
  }

  .cap-note {
    font-size: 12px;
    margin-top: 8px;
  }

  /* ===== FIX VERTICAL SPACING ===== */
  .plan-card .plan-desc,
  .plan-card-horizontal .plan-desc {
    min-height: auto;
    margin-bottom: 12px;
  }

  .plan-card .tools-inline,
  .plan-card-horizontal .tools-inline {
    min-height: auto;
  }

  /* ===== ENSURE READABLE TEXT ===== */
  .plan-desc,
  .plan-desc1 {
    font-size: 14px;
    line-height: 1.5;
  }

  .feature-list li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .category-list li {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* ===== DIVIDERS ===== */
  .current-plan-divider {
    margin: 16px 0;
  }

  hr {
    margin: 20px 0;
  }

  /* ===== PREVENT HORIZONTAL SCROLL ===== */
  .plan-card,
  .plan-card-horizontal,
  .go-plan-card {
    max-width: 100%;
    overflow-x: hidden;
  }

  .mix-box,
  .extras-section {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* ===== REMOVE BOTTOM WHITE SPACE ===== */
  body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .main-box {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  html, body {
    height: auto !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Small mobile devices (max-width: 375px) */
@media screen and (max-width: 375px) {
  .main-box {
    margin: 70px 12px 20px 12px;
  }

  .plans-title {
    font-size: 22px;
  }

  .billing-switch {
    width: 100%;
    max-width: 280px;
    height: 40px;
  }

  .switch-labels label {
    font-size: 13px;
  }

  .go-title {
    font-size: 24px;
  }

  .price-amount,
  .currency-symbol-large {
    font-size: 26px;
  }

  .choose-btn,
  .current-btn,
  .flex-config-btn {
    font-size: 15px;
    padding: 12px 18px;
  }

  .mix-pct {
    width: 70px;
    font-size: 15px;
  }
}

/* Extra small devices (max-width: 320px) */
@media screen and (max-width: 320px) {
  .main-box {
    margin: 70px 10px 20px 10px;
  }

  .plans-title {
    font-size: 20px;
  }

  .billing-switch {
    max-width: 260px;
  }

  .price-amount,
  .currency-symbol-large {
    font-size: 24px;
  }
}

/* Landscape mode adjustments */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .main-box {
    margin-top: 60px;
  }

  .billing-switch {
    margin: 12px auto;
  }

  .plan-cards-container {
    gap: 16px;
  }

  .fxsel .fx-panel {
    max-height: 50vh !important;
  }
}

/* Touch-friendly adjustments for all touchscreen devices */
@media (hover: none) and (pointer: coarse) {
  .choose-btn,
  .current-btn,
  .flex-config-btn,
  .configure-btn {
    min-height: 48px;
    padding: 10px 20px;
    font-size: 16px;
  }

  .mix-btn {
    min-height: 40px;
    padding: 8px 14px;
  }

  button,
  .choose-btn,
  .mix-btn,
  .flex-step,
  .add-to-mix {
    min-height: 37px !important;
  }
}

/* ========================================
   FOOTER - DESKTOP & MOBILE STYLES
   ======================================== */

.footer {
  font-size: 0.9rem;
  background-color: #0d3b5b;
  color: #ffffff;
  padding: 40px 20px;
  margin-top: 60px;
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.footer .list-unstyled {
  margin: 0;
  padding: 0;
}

.footer a.footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 4px 0;
  line-height: 1.5;
}

.footer a.footer-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.footer .text-center {
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   FOOTER - MOBILE RESPONSIVE
   ======================================== */

@media screen and (max-width: 768px) {
  .furobox-select button {
    padding: 7px 14px;
  }

   /* Main content should not go under browser UI */
  .main-content-wrapper,
  #mainContentWrapper,
  .app-shell {
    padding-bottom: 0px !important;
  }


  .footer {
    padding: 20px 16px;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .footer .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .footer .row {
    gap: 12px;
  }

  .footer .col-6,
  .footer .col-md-2,
  .footer .col-md-4 {
    width: 100% !important;
    margin-bottom: 12px;
  }

  .footer .row > div:last-child {
    margin-bottom: 0;
  }

  .footer h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .footer h6 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
  }

  .footer p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .footer .small,
  .footer a.footer-link {
    font-size: 0.85rem;
  }

  .footer a.footer-link {
    padding: 3px 0;
    display: block;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  .footer .list-unstyled li {
    margin-bottom: 2px;
  }

  .footer .list-unstyled {
    margin-bottom: 0;
  }

  .footer hr {
    margin: 1rem 0;
    border-color: rgba(255, 255, 255, 0.15);
  }

  .footer .text-center {
    font-size: 0.8rem;
    padding: 0 8px;
    line-height: 1.3;
    margin-top: 8px;
  }
}

/* Small mobile devices (max-width: 375px) */
@media screen and (max-width: 375px) {
  .footer {
    padding: 18px 12px;
  }

  .footer .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .footer h5 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .footer h6 {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
  }

  .footer p,
  .footer .small,
  .footer a.footer-link {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .footer .row {
    gap: 10px;
  }

  .footer .col-6,
  .footer .col-md-2,
  .footer .col-md-4 {
    margin-bottom: 10px;
  }

  .footer a.footer-link {
    padding: 2px 0;
  }

  .footer hr {
    margin: 0.75rem 0;
  }
}

/* Tablet view (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .footer .container-fluid {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .footer .col-md-2 {
    width: 50% !important;
  }

  .footer .col-md-4 {
    width: 100% !important;
    margin-bottom: 20px;
  }
}



/* ===== FLEX: Brand Selector - Perfect Vertical Alignment ===== */
.brand-stack-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.brand-row-inline {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 10px;
  align-items: center; /* Vertically center both columns */
  margin-bottom: 4px;
  min-height: 36px;
}

.brand-name-inline {
  display: flex;
  align-items: center; /* Vertically center icon + text */
  gap: 6px;
  color: #0C3B56;
  font-size: 12px;
  font-weight: 500;
  width: 95px;
  min-width: 95px;
  height: 36px; /* Match dropdown height exactly */
  flex-shrink: 0;
}

.brand-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-select-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
  align-items: center;
  width: 100%;
  height: 36px;
}

.brand-select {
  width: 100%;
  height: 36px; /* Match brand name height */
  padding: 0 10px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #0C3B56;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center; /* Vertically center text */

  /* Remove line-height, use flexbox instead */
  line-height: normal;
}

.brand-select:hover {
  border-color: #BFD6FF;
  box-shadow: 0 2px 6px rgba(27, 145, 248, 0.08);
}

.brand-select:focus {
  outline: none;
  border-color: #1C72F3;
  box-shadow: 0 0 0 3px rgba(28, 114, 243, 0.1);
}

/* xAI specific alignment fix */
.brand-row-inline.xai-row .brand-select-row {
  margin-left: 2px; /* Tiny nudge to align */
}

/* ===== FLEX: Brand Selector - Icons on Left, Tighter Spacing ===== */
.brand-stack-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.brand-row-inline {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Reduced from 6px - tighter spacing */
  margin-bottom: 6px;
}

.brand-name-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0C3B56;
  font-size: 13px;
  font-weight: 600;
  height: auto;
  padding-left: 0; /* Align to left edge */
}

.brand-icon {
  width: 18px; /* Slightly larger for visibility */
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  order: -1; /* Force icon to appear first */
}

.brand-select-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
  align-items: center;
  width: 100%;
  padding-left: 26px; /* Indent to align with text after icon */
}

.brand-select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #0C3B56;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  line-height: normal;
}

.brand-select:hover {
  border-color: #BFD6FF;
  box-shadow: 0 2px 6px rgba(27, 145, 248, 0.08);
}

.brand-select:focus {
  outline: none;
  border-color: #1C72F3;
  box-shadow: 0 0 0 3px rgba(28, 114, 243, 0.1);
}

.add-to-mix {
  padding: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 0px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
  color: #0C3B56;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-to-mix:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  transform: scale(1.05);
}

.add-to-mix:active {
  transform: scale(0.95);
  background: #DBEAFE;
}

.furobox-select button {
    width: 100%;
    background: #fff;
    color: #0B2F4E;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    padding: 3px 9px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(11, 47, 78, 0.06);
    transition: all 0.2s ease;
}
