/* Advanced Mode: complete dark-grey control system.
   The original storm layout remains in rise-storm.css; this final layer
   removes the leftover Simple Mode white badges/buttons/icon tiles.
   No rules apply to Simple Mode, and no transaction/UI logic changes. */
body.rise-advanced-on{
 --rise-dark-control:#16212c;
 --rise-dark-control-hover:#243746;
 --rise-dark-control-selected:#254158;
 --rise-dark-panel:#202934;
 --rise-dark-outline:#435b70;
 --rise-dark-outline-focus:#75caff;
 --rise-dark-foreground:#ebf7ff;
 --rise-dark-muted:#acc3d6;
 --rise-dark-accent:#89d5ff;
}

/* Launch step numerals, instructions and the image upload tile. */
body.rise-advanced-on .launch-form .step-number{
 background:#293b4c;
 border:1px solid #55718a;
 color:#b7e7ff;
 box-shadow:none
}
body.rise-advanced-on .launch-form .card-heading h3,
body.rise-advanced-on .launch-form .field,
body.rise-advanced-on .launch-form .more-details summary{
 color:var(--rise-dark-foreground)
}
body.rise-advanced-on .launch-form .card-heading p,
body.rise-advanced-on .launch-form .optional,
body.rise-advanced-on .launch-form .more-details summary span{
 color:var(--rise-dark-muted)
}
body.rise-advanced-on .launch-form .dashed-line{
 border-top-color:#455668;opacity:.75
}
body.rise-advanced-on .launch-form .image-upload{
 background:#182633;border:2px dashed #4e718a;
 box-shadow:none
}
body.rise-advanced-on .launch-form .image-upload:is(:hover,:focus-within){
 background:#20364a;border-color:#75caff
}
body.rise-advanced-on .launch-form #imageHint{
 color:#a8cee5
}
body.rise-advanced-on .launch-form .image-upload img{
 background:transparent
}

/* Form inputs must use white text on dark surfaces, including the actual
   nested number input (its Simple Mode rule still set dark navy text). */
body.rise-advanced-on .launch-form :is(
 .field>input,.field>textarea,.field .ticker-input,.field .buy-wrap,
 .asset-select
){
 background:var(--rise-dark-control);
 border:1px solid var(--rise-dark-outline);
 color:var(--rise-dark-foreground)
}
body.rise-advanced-on .launch-form :is(
 .field>input,.field>textarea,.field .ticker-input,.field .buy-wrap
):focus-within{
 background:#192d3c;
 border-color:var(--rise-dark-outline-focus);
 box-shadow:0 0 0 3px rgba(106,194,255,.14)
}
body.rise-advanced-on .launch-form :is(
 .ticker-input input,.buy-wrap input,#devBuy,.field>input,.field>textarea
){
 color:var(--rise-dark-foreground);
 caret-color:#b5e8ff
}
body.rise-advanced-on .launch-form :is(
 .ticker-input span,.asset-select .chevron,.asset-select .asset-copy small
){
 color:#a3bfd5
}
body.rise-advanced-on .launch-form .asset-select .asset-copy strong{
 color:#eaf8ff
}
body.rise-advanced-on .launch-form .asset-select .asset-avatar{
 background:#284c68;
 border:1px solid #4d7a99
}
body.rise-advanced-on .launch-form .asset-select:is(:hover,:focus-visible){
 background:#243848;border-color:#7bcaff;
 box-shadow:0 0 0 3px rgba(90,184,247,.12)
}
body.rise-advanced-on .launch-form :is(.inline-help,#pairStatus){
 color:#9bd1ee
}
body.rise-advanced-on .launch-form .tiny-status{
 color:#64c6f2
}

/* Reward choices, tiny selection rings and their symbol tiles.
   Preserve a cyan active border, not a white active card. */
body.rise-advanced-on .launch-form .reward-option{
 background:#17232f;
 border:1px solid var(--rise-dark-outline);
 color:var(--rise-dark-foreground);
 box-shadow:none
}
body.rise-advanced-on .launch-form .reward-option:hover{
 background:#223645;
 border-color:#6eaccf
}
body.rise-advanced-on .launch-form .reward-option:is(.active,[aria-checked="true"]){
 background:#283f50;
 border:2px solid #72c8f6;
 box-shadow:0 0 0 2px rgba(100,193,247,.09)
}
body.rise-advanced-on .launch-form .reward-option strong{
 color:#f0faff
}
body.rise-advanced-on .launch-form .reward-option small{
 color:#b1c9dc
}
body.rise-advanced-on .launch-form .reward-emoji{
 background:#273e51;
 border:1px solid #496780;
 color:#a8e0ff
}
body.rise-advanced-on .launch-form .reward-emoji .rise-art-icon{
 filter:brightness(2.15) saturate(.78)
}
body.rise-advanced-on .launch-form .reward-option .radio-indicator{
 background:#162431;
 border:2px solid #7996ad;
 box-shadow:none
}
body.rise-advanced-on .launch-form .reward-option:is(.active,[aria-checked="true"]) .radio-indicator{
 background:#193044;
 border:5px solid #6ac7ff
}

/* Initial buy input, SOL unit label, all preset amount buttons, and hover/
   selected/focus styles. Avoid pale Simple Mode button surfaces. */
body.rise-advanced-on .launch-form .buy-wrap{
 background:var(--rise-dark-control);
 border-color:var(--rise-dark-outline)
}
body.rise-advanced-on .launch-form .buy-wrap input{
 background:transparent;
 color:#e7f8ff
}
body.rise-advanced-on .launch-form .sol-unit{
 background:#294158;
 border:1px solid #476c88;
 color:#d5edff;
 box-shadow:none
}
body.rise-advanced-on .launch-form .preset-amounts button{
 background:#1c2b38;
 border:1px solid #4a6175;
 color:#c2daec;
 box-shadow:none
}
body.rise-advanced-on .launch-form .preset-amounts button:hover:not(:disabled){
 background:#2a4154;
 border-color:#7cbbdd;
 color:#f5fbff
}
body.rise-advanced-on .launch-form .preset-amounts button:is(
 .active,[aria-pressed="true"]
){
 background:#284b65;
 border:1px solid #82d1ff;
 color:#f0faff;
 box-shadow:0 0 0 2px rgba(93,197,255,.14);
 font-weight:850
}
body.rise-advanced-on .launch-form .preset-amounts button:focus-visible{
 outline:2px solid #a5e5ff;outline-offset:3px
}
body.rise-advanced-on .launch-form .swap-preview{
 background:#193549;
 border:1px solid #406984;
 color:#c2e4fa
}
body.rise-advanced-on .launch-form .more-details{
 background:#16222e;
 border:1px solid #425b70
}
body.rise-advanced-on .launch-form .more-details[open]{
 background:#1d3040;
 border-color:#6c9ab8
}
body.rise-advanced-on .launch-form .more-details summary span{
 color:#9db9cf
}
body.rise-advanced-on .launch-form .social-fields :is(input,textarea){
 background:#14232f;
 border:1px solid #4b6278;
 color:#eef9ff
}
body.rise-advanced-on .launch-form .launch-button{
 background:#1d567d;
 border:1px solid #387fa9;
 color:#f6fbff;
 box-shadow:0 10px 24px rgba(0,0,0,.14)
}
body.rise-advanced-on .launch-form .launch-button:hover:not(:disabled){
 background:#286d99;
 border-color:#7dc9ed;
 box-shadow:0 12px 25px rgba(0,0,0,.18)
}
body.rise-advanced-on .launch-form .security-caption{
 color:#a9c5da
}

/* Preview / trust cards also contain Simple Mode's pale pills and icons. */
body.rise-advanced-on :is(.preview-card.card,.trust-note){
 background:var(--rise-dark-panel);
 border:1px solid #3c5369;
 color:#e6f6ff
}
body.rise-advanced-on .preview-card :is(h3,.preview-line strong){
 color:#f0f8ff
}
body.rise-advanced-on .preview-card :is(.preview-top,.preview-line span,.preview-line small){
 color:#a7c1d5
}
body.rise-advanced-on .preview-card .live-pill{
 background:#23445a;
 border:1px solid #3a7296;
 color:#b7e5ff
}
body.rise-advanced-on .preview-card .preview-image{
 background:radial-gradient(circle at center,#304a5f 0%,#1b303f 88%);
 border:1px solid #3f5b70
}
body.rise-advanced-on .preview-card .preview-divider{
 border-top-color:#425468
}
body.rise-advanced-on .trust-note{
 background:#1c2d3b;
 border-color:#426078
}
body.rise-advanced-on .trust-note :is(strong,p){
 color:#bed6e8
}

/* Coin browsing and trading: filters, selection chips, and chart controls. */
body.rise-advanced-on :is(
 .rise-coin-filters button,.rise-token-trade-tabs button,
 .rise-token-chart-controls button,.rise-token-chart-bottom button,
 .rise-token-simple-contract button,.rise-coin-sort select,
 .rise-learn-quick-nav button,.rise-learn-reward-switch button
){
 background:#1b2a38;
 border:1px solid #476075;
 color:#bfd9ec;
 box-shadow:none
}
body.rise-advanced-on :is(
 .rise-coin-filters button,.rise-token-trade-tabs button,
 .rise-token-chart-controls button,.rise-token-chart-bottom button,
 .rise-token-simple-contract button,.rise-learn-quick-nav button,
 .rise-learn-reward-switch button
):hover:not(:disabled){
 background:#2b4458;
 border-color:#79bde4;
 color:#f4faff
}
body.rise-advanced-on :is(
 .rise-coin-filters button,.rise-token-trade-tabs button,
 .rise-token-chart-controls button,.rise-learn-reward-switch button
):is(.active,[aria-pressed="true"]){
 background:#294e69;
 border-color:#79cefa;
 color:#f0fbff;
 box-shadow:0 0 0 1px rgba(85,190,252,.12)
}
body.rise-advanced-on :is(
 .rise-coin-filters,.rise-learn-reward-switch,.rise-token-trade-tabs,
 .rise-token-chart-controls
){
 background:#152430;
 border-color:#385269
}
body.rise-advanced-on :is(
 .rise-explore-search input,.rise-coin-sort select,
 .rise-token-trade-input input,.rise-pair-search input,
 .rise-learn-faq-search input
){
 background:transparent;
 color:#effaff
}
body.rise-advanced-on :is(
 .rise-token-simple-share button,.rise-token-chart-bottom button,
 .token-page-share button,.rise-learn-last button
){
 background:#234057;
 color:#ccecff;
 border:1px solid #456f8b
}
body.rise-advanced-on :is(
 .rise-token-simple-share button,.token-page-share button,
 .rise-learn-last button
):hover{
 background:#2a536d;
 color:#fff
}

/* Learn guide checklist, fee example and illustrated step tiles. */
body.rise-advanced-on :is(
 .rise-learn-checklist,.rise-learn-fee-tiles>div,
 .rise-learn-fee-distribution,.rise-learn-quick-nav,
 .rise-learn-step-icon,.rise-learn-reward-icon,
 .rise-explore-empty-icon
){
 background:#1c3040;
 border-color:#405d74
}
body.rise-advanced-on :is(
 .rise-learn-checklist strong,.rise-learn-fee-tiles strong,
 .rise-learn-fee-example h3
){
 color:#eaf8ff
}
body.rise-advanced-on :is(
 .rise-learn-checklist p,.rise-learn-fee-tiles span,
 .rise-learn-fee-tiles small
){
 color:#a9c5d9
}
body.rise-advanced-on .rise-learn-checklist>div>span{
 background:#2c4a61;
 color:#a8deff
}

/* Pair picker: the SOL default row, category pills, search and status tags. */
body.rise-advanced-on .asset-modal :is(
 .rise-sol-default,.rise-asset-empty,.rise-pair-search
){
 background:#172836;
 border:1px solid #416078;
 color:#e8f8ff
}
body.rise-advanced-on .asset-modal .rise-sol-default:is(:hover,[aria-pressed="true"]){
 background:#284a61;
 border-color:#79c8f4
}
body.rise-advanced-on .asset-modal :is(
 .rise-sol-default .asset-copy strong,
 .rise-asset-category-title strong,.rise-asset-results-title strong,
 .rise-quote-row .asset-copy strong,.rise-asset-empty strong
){
 color:#eaf7ff
}
body.rise-advanced-on .asset-modal :is(
 .rise-sol-default .asset-copy small,.rise-quote-row .asset-copy small,
 .rise-asset-category-title>span,.rise-asset-results-title>span,
 .rise-asset-empty p
){
 color:#a8c3d8
}
body.rise-advanced-on .asset-modal :is(
 .rise-default-sol-tag,.rise-sol-default em.verified,
 .rise-quote-row em,.rise-asset-category
){
 background:#243d51;
 border:1px solid #456b87;
 color:#c4e5fb
}
body.rise-advanced-on .asset-modal .rise-asset-category:is(:hover,.active,[aria-pressed="true"]){
 background:#2c506b;
 border-color:#75c9f8;
 color:#f0faff
}
body.rise-advanced-on .asset-modal .rise-asset-category small{
 color:#a3bdd0
}
body.rise-advanced-on .asset-modal .rise-quote-row.is-selected{
 background:#294b62;
 border-color:#78c9f5
}
body.rise-advanced-on .asset-modal .rise-pair-category-heading{
 border-bottom-color:#3c5669;
 color:#a6dfff
}
body.rise-advanced-on .asset-modal .rise-asset-categories{
 border-bottom-color:#3e576c
}
body.rise-advanced-on .asset-modal .rise-pair-search:focus-within{
 border-color:#76caff;
 box-shadow:0 0 0 3px rgba(100,196,255,.13)
}

/* Keep disabled states legible; native system buttons must not reappear
   as white/pale controls on mobile. */
body.rise-advanced-on :is(button,select,summary,input,textarea):focus-visible{
 outline-color:#91d9ff
}
body.rise-advanced-on button:disabled{
 filter:saturate(.75);
 opacity:.55
}
@media(max-width:560px){
 body.rise-advanced-on .launch-form .preset-amounts button{
  min-height:39px;
  padding:8px 11px
 }
 body.rise-advanced-on .launch-form .step-number{
  width:36px;height:36px
 }
}
@media(prefers-reduced-motion:reduce){
 body.rise-advanced-on .launch-form :is(
  .reward-option,.launch-button,.preset-amounts button
 ){transition:none;transform:none}
}

/* Learn CTA: a single dark-grey action group in Advanced Mode, with
   evenly aligned buttons and no detached light-colored control. */
body.rise-advanced-on .rise-learn-last{
 background:linear-gradient(135deg,#283441,#212c38);
 border:1px solid #526779
}
body.rise-advanced-on .rise-learn-last :is(h2,p){color:#eef8ff}
body.rise-advanced-on .rise-learn-last .rise-learn-last-actions .rise-learn-last-primary{
 background:#245677;
 border:1px solid #528cb0;
 color:#f4fbff;box-shadow:none
}
body.rise-advanced-on .rise-learn-last .rise-learn-last-actions .rise-learn-last-primary:hover{
 background:#316d92;border-color:#85c9f1
}
body.rise-advanced-on .rise-learn-last .rise-learn-last-actions .rise-learn-last-secondary{
 background:#202f3e;
 border:1px solid #647f94;
 color:#d8edfa;box-shadow:none
}
body.rise-advanced-on .rise-learn-last .rise-learn-last-actions .rise-learn-last-secondary:hover{
 background:#2b4356;border-color:#88bfdf;color:#fff
}
