:root {
  --swap-border: rgba(81,255,138,.2);
  --swap-border-soft: rgba(81,255,138,.13);
  --swap-surface: rgba(8,32,21,.76);
  --swap-surface-deep: rgba(3,20,11,.48);
  --swap-copy-muted: #a9c8b0;
}

.swap-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(46,230,107,.26), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(13,129,72,.28), transparent 34%),
    linear-gradient(135deg, #03140b 0%, #052113 48%, #031109 100%);
}

.swap-page:before {
  background:
    linear-gradient(rgba(46,230,107,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,230,107,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.86), transparent 82%);
}

.swap-nav { border-color: rgba(81,255,138,.2); }
.swap-nav .desktop-nav a.is-active { color: var(--lime); }
.swap-page,
.swap-page button,
.swap-page input,
.swap-page select,
.swap-page textarea { font-family: var(--font); }
.swap-page .eyebrow,
.swap-page .slippage-control,
.swap-page .slippage-input,
.swap-page .stat-strip strong,
.swap-page .lp-position strong,
.swap-page .contract-card a,
.swap-page .modal-input-row>b { font-family: var(--mono); }
.swap-official-x {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(81,255,138,.32);
  border-radius: 8px;
  color: #c7ecd0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.swap-x-icon { color: var(--lime); font-size: 15px; line-height: 1; }
.swap-official-x:hover { border-color: rgba(81,255,138,.72); background: rgba(46,230,107,.1); color: var(--white) !important; transform: translateY(-1px); }
.swap-official-x:hover .swap-x-icon { color: #92ff58; }
.swap-nav-actions { display:flex; align-items:center; gap:14px; }
.swap-language-picker { position:relative; z-index:130; }
.swap-language-button { border:0; background:transparent; color:#c7ecd0; cursor:pointer; font:600 12px var(--font); }
.swap-language-menu { position:absolute; top:calc(100% + 10px); right:0; display:grid; min-width:116px; padding:5px; border:1px solid rgba(81,255,138,.24); border-radius:10px; background:#082015; box-shadow:0 16px 38px rgba(0,0,0,.35); opacity:0; visibility:hidden; transform:translateY(-4px); transition:.18s; }
.swap-language-menu.is-open { opacity:1; visibility:visible; transform:none; }
.swap-language-menu button { border:0; border-radius:6px; padding:8px 9px; background:transparent; color:#c7ecd0; text-align:left; cursor:pointer; font:12px var(--font); }
.swap-language-menu button:hover,.swap-language-menu button[aria-selected="true"] { background:rgba(46,230,107,.12); color:var(--lime); }

.swap-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 104px;
}

.swap-hero { margin: 0 0 30px; }
.swap-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.swap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr);
  gap: 22px;
  align-items: start;
}

.swap-card,
.liquidity-card,
.contract-card,
.stat-strip {
  border: 1px solid var(--swap-border);
  background: linear-gradient(180deg, var(--swap-surface), var(--swap-surface-deep));
  box-shadow: 0 18px 44px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035);
  border-radius: 20px;
}

.swap-card { padding: 25px; }
.swap-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.swap-card h2,
.liquidity-card h2 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.icon-button,
.flip-button {
  border: 1px solid var(--swap-border);
  background: rgba(46,230,107,.07);
  color: var(--lime);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.icon-button:hover,
.flip-button:hover { border-color: rgba(81,255,138,.52); background: rgba(46,230,107,.14); transform: translateY(-1px); }
.icon-button { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; }

.asset-input {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid var(--swap-border-soft);
  border-radius: 16px;
  background: rgba(3,20,11,.44);
}
.asset-label,
.asset-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.asset-label { color: var(--swap-copy-muted); font-size: 11px; }
.balance-label b { color: var(--white); font-weight: 500; }
.asset-row { margin-top: 8px; }
.asset-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: 500 28px var(--mono);
}
.asset-row input::placeholder { color: #648b70; }
.asset-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--swap-border-soft);
  border-radius: 999px;
  background: rgba(13,47,30,.82);
  color: var(--white);
  padding: 8px 11px;
  white-space: nowrap;
  font: 600 13px var(--font);
  cursor: pointer;
}
.token-dot { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font: 700 11px var(--mono); }
.frb-dot { background: #92ff58; color: #021008; }
.frusd-dot { background: #a9c7ff; color: #10213a; }
.flip-button { display: block; width: 34px; height: 34px; margin: -5px auto; position: relative; z-index: 1; border-radius: 50%; font-size: 13px; }

.swap-details {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 13px 0;
  border-top: 1px solid var(--swap-border-soft);
  border-bottom: 1px solid var(--swap-border-soft);
}
.swap-details div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.swap-details span { color: var(--swap-copy-muted); font-size: 11px; }
.swap-details b { overflow-wrap: anywhere; color: var(--white); font-size: 12px; font-weight: 500; }
.slippage-control { color: var(--white); font: 500 12px var(--mono); white-space: nowrap; }
.slippage-input { width: 44px; border: 0; border-bottom: 1px solid var(--lime); outline: 0; background: transparent; color: var(--white); font: inherit; text-align: right; }
.action-button { width: 100%; min-height: 46px; justify-content: center; }
.action-status { min-height: 18px; margin: 10px 0 0; color: var(--swap-copy-muted); font-size: 11px; overflow-wrap: anywhere; }

.swap-side { display: grid; gap: 14px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.stat-strip div { min-width: 0; padding: 16px 14px; background: rgba(3,20,11,.3); }
.stat-strip div + div { border-left: 1px solid var(--swap-border-soft); }
.stat-strip span,
.lp-position span { display: block; margin-bottom: 7px; color: var(--swap-copy-muted); font-size: 11px; }
.stat-strip strong { display: block; overflow-wrap: anywhere; color: var(--white); font: 500 16px var(--mono); }
.liquidity-card,
.contract-card { padding: 22px; }
.liquidity-card p { margin: 16px 0 0; color: var(--swap-copy-muted); font-size: 13px; line-height: 1.7; }
.lp-badge { padding: 5px 8px; border: 1px solid var(--swap-border); border-radius: 999px; color: var(--lime); font: 500 10px var(--mono); white-space: nowrap; }
.liquidity-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.button-secondary,
.button-ghost { width: 100%; min-height: 42px; justify-content: center; }
.button-secondary { color: #021008; border-color: rgba(81,255,138,.72); background: linear-gradient(135deg,#2ee66b 0%,#92ff58 100%); box-shadow: 0 10px 22px rgba(46,230,107,.17); }
.button-ghost { border: 1px solid var(--swap-border); background: transparent; color: var(--white); box-shadow: none; }
.button-ghost:hover { background: rgba(46,230,107,.08); transform: translateY(-2px); }
.lp-position { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--swap-border-soft); }
.lp-position strong { color: var(--white); font: 500 16px var(--mono); }
.contract-card { display: grid; gap: 11px; }
.contract-card>div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid var(--swap-border-soft); color: var(--swap-copy-muted); font-size: 12px; }
.contract-card a { max-width: 235px; overflow: hidden; color: var(--lime); font: 500 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.liquidity-modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 200; }
.liquidity-modal.is-open { opacity: 1; pointer-events: auto; }
.liquidity-modal-backdrop { position: absolute; inset: 0; background: rgba(1,10,5,.76); backdrop-filter: blur(9px); }
.liquidity-modal-panel { position: relative; width: min(470px,100%); padding: 27px; border: 1px solid rgba(81,255,138,.28); border-radius: 22px; background: linear-gradient(180deg,rgba(8,32,21,.98),rgba(3,20,11,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.48); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: 1px solid var(--swap-border); border-radius: 50%; background: rgba(46,230,107,.07); color: var(--white); font-size: 20px; cursor: pointer; }
.modal-heading { padding-right: 35px; }.modal-heading h2 { margin: 7px 0; color: var(--white); font-size: 25px; letter-spacing: -.03em; }.modal-description { margin: 0; color: var(--swap-copy-muted); font-size: 13px; line-height: 1.65; }
.modal-form { margin-top: 21px; }.modal-field { display: block; margin-top: 12px; padding: 13px 14px; border: 1px solid var(--swap-border-soft); border-radius: 15px; background: rgba(3,20,11,.42); }.modal-field>span:first-child { color: var(--swap-copy-muted); font-size: 11px; }.modal-balance { float: right; color: var(--swap-copy-muted); font-size: 10px; }.modal-balance b { color: var(--white); font-weight: 500; }.modal-input-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }.modal-input-row input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font: 500 23px var(--mono); }.modal-input-row input::placeholder { color: #648b70; }.modal-input-row>b { color: var(--lime); font: 500 12px var(--mono); }.modal-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }.modal-summary>div { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-top: 1px solid var(--swap-border-soft); border-bottom: 1px solid var(--swap-border-soft); }.modal-summary span { color: var(--swap-copy-muted); font-size: 10px; }.modal-summary b { overflow-wrap: anywhere; color: var(--white); font: 500 12px var(--mono); }.modal-submit { width: 100%; min-height: 44px; justify-content: center; }.modal-status { min-height: 18px; margin: 10px 0 0; color: var(--swap-copy-muted); font-size: 11px; overflow-wrap: anywhere; }
.wallet-toast { position: fixed; right: 20px; bottom: 20px; z-index: 220; max-width: 360px; padding: 12px 15px; border: 1px solid rgba(81,255,138,.34); border-radius: 10px; background: #b7ff7e; color: #021008; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; font-size: 12px; }.wallet-toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .swap-main { width: min(680px, calc(100% - 36px)); padding-top: 44px; }
  .swap-layout { grid-template-columns: 1fr; }
  .swap-hero h1 { font-size: 36px; }
  .swap-official-x { padding: 6px 8px; }
}
@media (max-width: 520px) {
  .swap-main { width: min(100% - 28px, 480px); padding: 36px 0 72px; }
  .swap-card,.liquidity-card,.contract-card { padding: 18px; border-radius: 18px; }
  .swap-hero { margin-bottom: 22px; }.swap-hero h1 { font-size: clamp(25px, 8vw, 34px); }
  .swap-official-x span:last-child { display: none; }
  .swap-official-x { width: 30px; height: 30px; justify-content: center; padding: 0; }
  .swap-details { grid-template-columns: 1fr 1fr; }.swap-details>div:last-child { grid-column: 1/-1; }
  .stat-strip strong { font-size: 13px; }.liquidity-modal-panel { padding: 23px 18px; border-radius: 18px; }.modal-heading h2 { font-size: 23px; }.modal-summary { grid-template-columns: 1fr; }
}

/* RobinFork Swap warm-spectrum theme */
:root {
  --swap-border:rgba(255,196,150,.24);
  --swap-border-soft:rgba(255,196,150,.15);
  --swap-surface:rgba(47,27,59,.86);
  --swap-surface-deep:rgba(25,15,35,.66);
  --swap-copy-muted:#d0bdd0;
  --bg:#140e1a;
  --surface:#21152a;
  --surface2:#31203b;
  --line:rgba(255,196,150,.22);
  --muted:#c1afc5;
  --lime:#ff826e;
  --green:#ffd166;
  --white:#fff4eb;
}

.swap-page {
  color:var(--white);
  background:
    radial-gradient(circle at 82% 6%, rgba(255,130,110,.2), transparent 29%),
    radial-gradient(circle at 8% 22%, rgba(164,168,255,.18), transparent 28%),
    linear-gradient(145deg, #140e1a 0%, #1b1226 54%, #100c18 100%);
}

.swap-page:before {
  background:
    linear-gradient(rgba(255,210,175,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,210,175,.035) 1px, transparent 1px);
  background-size:44px 44px;
}

.swap-nav { border-color:rgba(255,196,150,.18); }
.swap-nav .desktop-nav a.is-active { color:var(--lime); }

.swap-official-x {
  border-color:rgba(255,130,110,.34);
  color:#dbc8d8!important;
}

.swap-x-icon { color:var(--lime); }
.swap-official-x:hover {
  border-color:rgba(255,130,110,.72);
  background:rgba(255,130,110,.1);
}
.swap-official-x:hover .swap-x-icon { color:#ffd39a; }
.swap-language-button { color:#dbc8d8; }
.swap-language-menu {
  border-color:rgba(255,130,110,.3);
  background:#1f1128;
}
.swap-language-menu button { color:#d3bfd2; }
.swap-language-menu button:hover,
.swap-language-menu button[aria-selected="true"] {
  background:rgba(255,130,110,.12);
  color:var(--lime);
}

.swap-card,
.liquidity-card,
.contract-card,
.stat-strip {
  border-color:var(--swap-border);
  background:linear-gradient(180deg, var(--swap-surface), var(--swap-surface-deep));
  box-shadow:0 18px 44px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}

.asset-input,
.modal-field {
  border-color:var(--swap-border-soft);
  background:rgba(20,12,29,.48);
}

.asset-select {
  border-color:var(--swap-border-soft);
  background:rgba(67,34,60,.82);
}

.token-dot.frb-dot,
.button-secondary {
  background:linear-gradient(135deg, var(--lime), #ffd39a);
  color:#241019;
}

.frusd-dot { background:#a4a8ff; color:#1d1734; }
.icon-button,
.flip-button {
  border-color:var(--swap-border);
  background:rgba(255,130,110,.08);
  color:var(--lime);
}
.icon-button:hover,
.flip-button:hover { border-color:rgba(255,130,110,.56); background:rgba(255,130,110,.15); }
.asset-row input,
.modal-input-row input { color:var(--white); }
.asset-row input::placeholder,
.modal-input-row input::placeholder { color:#987b96; }
.button-secondary { border-color:rgba(255,130,110,.72); box-shadow:0 10px 22px rgba(255,130,110,.18); }
.button-ghost { border-color:var(--swap-border); color:var(--white); }
.button-ghost:hover { background:rgba(255,130,110,.09); }
.modal-input-row>b,
.contract-card a,
.lp-badge { color:var(--lime); }
.liquidity-modal-backdrop { background:rgba(13,7,18,.8); }
.liquidity-modal-panel {
  border-color:rgba(255,130,110,.3);
  background:linear-gradient(180deg, rgba(47,27,59,.98), rgba(25,15,35,.98));
}
.modal-close { border-color:var(--swap-border); background:rgba(255,130,110,.08); }
.wallet-toast { border-color:rgba(255,130,110,.34); background:#ffd0b2; color:#241019; }
