.no-hidden-fees{display:inline-flex;align-items:center;align-self:flex-start;border:1px solid #379b91;border-radius:999px;padding:7px 11px;margin:0 0 15px;font-size:.875rem;font-weight:600;color:#11695f;background:#dcf7ec;line-height:1.3}
[data-theme=dark] .no-hidden-fees{background:#153b36;color:#a6edcd;border-color:#357c6d}
.quote-fee-promise{margin:14px 0 0}.quote-fee-promise .no-hidden-fees{margin:0}
.tariff-card>.no-hidden-fees,.mode-cards article>.no-hidden-fees{display:flex;width:fit-content}
.language-picker{font:inherit;font-size:.875rem;color:var(--ink);background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:10px 26px 10px 10px;max-width:124px;cursor:pointer}
.partner-rate-table{width:100%;border-collapse:collapse;margin:18px 0;font-size:.875rem}.partner-rate-table th,.partner-rate-table td{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line);white-space:normal}
.partner-offer{display:grid;gap:12px;margin-top:22px}.partner-offer textarea{box-sizing:border-box;width:100%;min-height:160px;resize:vertical;font:inherit;font-size:1rem;line-height:1.6;padding:14px;border-radius:12px;border:1px solid var(--line);background:var(--bg-2);color:var(--ink)}
.partner-reward-balance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.partner-reward-balance div{padding:16px;border:1px solid var(--line);border-radius:14px}.partner-reward-balance dt{font-size:.875rem;color:var(--muted)}.partner-reward-balance dd{font-size:1.25rem;margin:10px 0 0;overflow-wrap:anywhere}
.mode-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-cards article{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.mode-cards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.language-picker{max-width:72px;padding-left:6px;padding-right:16px}.site-header{gap:7px}.partner-rate-table{font-size:.875rem}.partner-rate-table th,.partner-rate-table td{padding:10px 4px}.partner-reward-balance{grid-template-columns:1fr}}

/* Mobile layout uses the viewport width, not the calculator's intrinsic width.
   Keep amounts, exact network labels and addresses readable without page zoom. */
@media (max-width: 1100px) {
  .hero-calculator::before { inset: 0; }
}
@media (max-width: 840px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .section-shell { width: calc(100% - 32px); min-width: 0; }
  .hero.portunex-hero, .exchange-layout { grid-template-columns: minmax(0, 1fr); }
  .hero__copy, .hero-calculator, #exchangeMount, .exchange-card,
  .partner-entry > *, .partner-settings-grid > * { min-width: 0; max-width: 100%; }
  .site-header {
    display: grid; grid-template-columns: minmax(0, 1fr) 64px 44px 44px;
    width: calc(100% - 24px); min-height: 64px; padding: 8px 10px; gap: 6px;
  }
  .site-header .brand { grid-column: 1; grid-row: 1; min-width: 0; font-size: 19px; gap: 6px; }
  .site-header .brand-portal { width: 24px; height: 30px; flex: 0 0 24px; }
  .site-header > .button { display: none; }
  .site-header .language-picker {
    grid-column: 2; grid-row: 1; width: 64px; max-width: none; min-height: 44px;
    padding: 8px 24px 8px 10px; font-size: 16px; border-radius: 10px;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%235caaa5' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 12px 12px; background-position: right 8px center;
  }
  .site-header .theme-toggle, .site-header .mobile-menu {
    width: 44px; height: 44px; min-height: 44px; margin: 0;
  }
  .site-header .theme-toggle { grid-column: 3; grid-row: 1; }
  .site-header .mobile-menu { grid-column: 4; grid-row: 1; }
  .site-header.menu-open .nav {
    background: var(--bg-2); border-color: var(--line); padding: 12px; gap: 4px;
    max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header.menu-open .nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; }
  .hero.portunex-hero { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .hero__copy { padding-top: 0; }
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .button { max-width: 100%; }
  .motion-reveal, .motion-reveal:not(.motion-in), .step-card.motion-reveal,
  .mode-cards article.motion-reveal, .tariff-card.motion-reveal {
    opacity: 1; translate: none; scale: 1; transition: none;
  }
  #how .scheme-card { animation: none; opacity: 1; translate: none; }
  #how .scheme-link-draw { animation: none; stroke-dashoffset: 0; }
  .asset-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, 46%); gap: 10px; }
  .asset-main > input, .asset-main > output { width: 100%; min-width: 0; font-size: 28px; }
  .asset-picker { width: 100%; min-width: 0; max-width: 100%; padding: 8px; gap: 6px; }
  .asset-picker > span { min-width: 0; }
  .asset-picker img { width: 30px; height: 30px; flex: 0 0 30px; }
  .asset-picker small { white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.35; }
  .asset-caption, .quote-note, .launch-status, .minimum-line, .quote-lines > div,
  .order-top > *, .order-stages li > *, .partner-share-row > * { min-width: 0; overflow-wrap: anywhere; }
  .exchange-tabs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .exchange-tabs button { min-width: 0; min-height: 48px; padding: 10px 6px; font-size: 14px; line-height: 1.4; white-space: normal; }
  .hero-calculator .exchange-card, .exchange-layout .exchange-card { padding: 16px; }
  .exchange-aside .route-card { display: block; margin-top: 0; }
  .exchange-aside .mint-scene--compact { display: none; }
  .exchange-aside .route-card h3 { margin: 20px 0 12px; }
  .exchange-aside .route-card p { margin: 0; font-size: 16px; line-height: 1.65; }
  .asset-block { padding: 14px 12px; }
  .address-details .address-field, .address-field, .asset-dialog input,
  #referralPage input:not([type=checkbox]), #referralPage select, .partner-offer textarea { font-size: 16px; }
  .field-label, .mode-description, .quote-lines, .quote-lines strong,
  .price-reference, .minimum-line, .minimum-line button,
  .hero-calculator .asset-caption, .hero-calculator .form-footnote { font-size: 14px; }
  .quote-lines > div { gap: 12px; }
  .quote-lines strong { max-width: 62%; }
  .price-reference { flex-wrap: wrap; }
  .asset-dialog { max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 16px; overflow: hidden; }
  .asset-list { max-height: min(55vh, calc(100dvh - 170px)); overscroll-behavior: contain; }
  .asset-option { min-width: 0; min-height: 52px; }
  .asset-option span { min-width: 0; overflow-wrap: anywhere; }
  .deposit-address { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .deposit-address code { flex-basis: calc(100% - 48px); font-size: 14px; }
  .order-top { align-items: flex-start; }
  .order-top h2 { overflow-wrap: anywhere; }
  .order-stages li { align-items: flex-start; flex-wrap: wrap; }
  .order-stages li > span:last-child { margin-left: 40px; font-size: 14px; }
  .site-footer { gap: 18px; font-size: 14px; }
}
@media (max-width: 600px) {
  .site-header .brand { font-size: 17px; }
  .hero__copy h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
  .section-heading h2, .exchange-heading h1 { font-size: clamp(26px, 7.5vw, 36px); overflow-wrap: anywhere; }
  .hero__copy .hero__lead, .hero__sublead { font-size: 16px; line-height: 1.65; }
  .hero__actions { gap: 16px; margin-top: 20px; }
  .hero__actions .button { width: 100%; min-height: 48px; font-size: 16px; }
  .hero__actions .text-link { font-size: 14px; }
  .hero__copy .portal-scene { display: none !important; }
  .section { padding-block: 36px; }
  .mode-cards article, .pricing-copy, .partner-auth-card { padding: 20px; }
  .pricing-copy .tariff-card { padding: 20px; }
  .tariff-card h3, .mode-cards h3 { overflow-wrap: anywhere; }
  .partner-intro h1 { font-size: clamp(28px, 8.5vw, 38px); overflow-wrap: anywhere; }
  .partner-tabs button { min-width: 0; padding-inline: 6px; font-size: 14px; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .site-header { gap: 4px; }
  .site-header .brand { font-size: 16px; gap: 4px; }
  .site-header .brand-portal { width: 20px; height: 26px; flex-basis: 20px; }
  .exchange-tabs { grid-template-columns: minmax(0, 1fr); }
  .exchange-tabs button { min-height: 44px; }
}
