/* ASC Wallet Premium UI
   Visual-only layer. Does not change wallet, signing, balances, Turnkey, TumiCoins or transaction logic. */

:root{
  --asc-deep:#02152f;
  --asc-navy:#03224a;
  --asc-card:#063261;
  --asc-blue:#0b67e8;
  --asc-blue-2:#1590ff;
  --asc-cyan:#55c4ff;
  --asc-gold:#e8b842;
  --asc-surface:#ffffff;
  --asc-soft:#f4f7fb;
  --asc-text:#0b1e38;
  --asc-muted:#6e8099;
  --asc-line:#e4eaf2;
}

#walletApp{background:#f3f6fb}
#walletApp .sidebar{
  width:auto;
  background:linear-gradient(180deg,#011429 0%,#031d3d 52%,#052954 100%);
  padding:24px 18px;
  border-right:1px solid rgba(255,255,255,.05);
  box-shadow:16px 0 45px rgba(4,24,54,.08)
}
#walletApp .sidebar .brand{
  padding:4px 7px 18px;
  border-bottom:1px solid rgba(255,255,255,.08)
}
#walletApp .sidebar .brand img{width:50px!important;height:50px!important}
#walletApp .sidebar .brand strong{font-size:16px;letter-spacing:.01em}
#walletApp .sidebar .brand small{color:#8ca8cc}
#walletApp .sidebar nav{gap:5px;margin-top:24px}
#walletApp .sidebar nav a{
  position:relative;
  color:#aabbd1;
  padding:12px 14px;
  border-radius:13px;
  font-size:13px;
  font-weight:720;
  transition:background .18s ease,color .18s ease,transform .18s ease
}
#walletApp .sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(2px)}
#walletApp .sidebar nav a.active{
  background:linear-gradient(100deg,rgba(18,103,230,.95),rgba(19,127,245,.76));
  color:#fff;
  box-shadow:0 10px 24px rgba(0,87,205,.24)
}
#walletApp main{max-width:1360px;padding:26px 34px 42px}
#walletApp main>header{
  min-height:58px;
  margin-bottom:17px;
  padding:0 2px
}
#walletApp main>header h1{font-size:27px;letter-spacing:-.025em;color:#102440}
#walletApp .eyebrow{color:#7290b7;font-size:10px;letter-spacing:.17em}
#walletApp .user-box{
  background:#fff;
  border:1px solid #e4eaf2;
  border-radius:16px;
  padding:6px 7px 6px 12px;
  box-shadow:0 8px 25px rgba(31,64,114,.06)
}
#walletApp .user-box button{background:#f5f8fc;border:0}
#walletApp .avatar{background:linear-gradient(145deg,#051b39,#0b4e9d);box-shadow:0 6px 16px rgba(5,44,93,.22)}

#walletApp .hero{
  min-height:250px;
  border-radius:28px;
  padding:27px 29px;
  background:
    radial-gradient(circle at 88% 7%,rgba(101,191,255,.32),transparent 30%),
    radial-gradient(circle at 76% 92%,rgba(20,112,255,.30),transparent 28%),
    linear-gradient(135deg,#041f45 0%,#063a79 50%,#075cc4 100%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 55px rgba(10,63,137,.20)
}
#walletApp .hero:after{
  content:"";
  position:absolute;
  width:250px;height:250px;
  border-radius:50%;
  right:-105px;bottom:-150px;
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 0 0 30px rgba(255,255,255,.025),0 0 0 65px rgba(255,255,255,.018);
  pointer-events:none
}
#walletApp .hero>div:first-child>span{font-size:12px;font-weight:700;color:#a9c8ec}
#walletApp .hero h2{
  margin:7px 0 3px;
  font-size:51px;
  line-height:1;
  letter-spacing:-.045em;
  color:#fff
}
#walletApp .hero p{margin:9px 0 0;font-size:12px;color:#67e3b0}
#walletApp .address{right:29px;top:27px}
#walletApp .address span{font-size:11px;color:#9ebee5}
#walletApp .address button{
  max-width:210px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(2,24,62,.45);
  color:#dcecff;
  padding:9px 13px;
  backdrop-filter:blur(10px)
}
#walletApp .actions{gap:10px;bottom:23px;left:29px;right:29px}
#walletApp .actions button{
  min-height:54px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.95);
  color:#123760;
  box-shadow:0 8px 22px rgba(0,21,60,.12);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease
}
#walletApp .actions button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,21,60,.18);background:#fff}
#walletApp .actions button span{font-size:12px}

#walletApp .grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px}
#walletApp #assetsCard{grid-row:span 2}
#walletApp .card,
#walletApp .asc-view-card{
  border:1px solid #e5ebf2;
  border-radius:22px;
  box-shadow:0 10px 28px rgba(33,62,104,.055);
  background:rgba(255,255,255,.96)
}
#walletApp .card{padding:19px}
#walletApp .title{margin-bottom:8px}
#walletApp .title h3{font-size:17px;letter-spacing:-.015em}
#walletApp .title span{font-size:10px;text-transform:none;color:#7890ae}
#walletApp .card article{
  margin-top:8px;
  min-height:66px;
  padding:11px 12px;
  border:1px solid #e9eef4;
  border-radius:16px;
  background:#fbfcfe;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease
}
#walletApp .card article:hover{
  transform:translateY(-1px);
  border-color:#d8e5f5;
  box-shadow:0 7px 18px rgba(31,64,114,.06)
}
#walletApp .card article strong{font-size:13px;color:#132941}
#walletApp .card article small{font-size:10px;color:#7c8ca0}
#walletApp .card article b{font-size:11px;color:#0c9e69}
#walletApp .asc-coin-icon{
  width:38px;height:38px;flex-basis:38px;
  box-shadow:0 4px 12px rgba(14,51,104,.10)
}
#walletApp .asc-network-icon{width:38px;height:38px;flex-basis:38px}
#walletApp .lab-tools{opacity:.88}
#walletApp .lab-tools .title h3{font-size:15px}
#walletApp .lab-tools pre{border-radius:16px;background:#031d3d}

/* Secondary wallet views */
#walletApp .asc-view-grid{gap:15px}
#walletApp .asc-view-card{padding:20px}
#walletApp .asc-view-row{
  border-radius:15px;
  border-color:#e8edf3;
  background:#fbfcfe
}
#walletApp .asc-pill{background:#eaf3ff;color:#1265ce}
#walletApp .asc-security-item{background:#f7faff;border-color:#e2eaf4;border-radius:16px}

/* Mobile: native-wallet feel inspired by compact mobile financial apps */
@media(max-width:900px){
  body:has(#walletApp:not(.hidden)){background:#02152f}
  #walletApp{
    min-height:100vh;
    background:
      radial-gradient(circle at 50% -100px,rgba(27,117,231,.20),transparent 330px),
      linear-gradient(180deg,#02152f 0,#04244a 100%);
    color:#fff
  }
  #walletApp main{padding:12px 12px 100px;max-width:620px;margin:auto}
  #walletApp main>header{
    position:relative;
    height:70px;
    margin:0 0 8px;
    padding:7px 0 7px 58px;
    align-items:center
  }
  #walletApp main>header:before{
    content:"";
    position:absolute;
    left:1px;top:10px;
    width:48px;height:48px;
    background:url('https://kfyxoqdwgfvkctnfqmze.supabase.co/storage/v1/object/public/public-media/brand/logo_asc_wallet.png') center/contain no-repeat;
    filter:drop-shadow(0 5px 14px rgba(0,0,0,.25))
  }
  #walletApp main>header .eyebrow{display:none}
  #walletApp main>header h1{
    margin:0;
    font-size:0;
    color:#fff
  }
  #walletApp main>header h1:before{
    content:"ASC Wallet";
    display:block;
    font-size:17px;
    line-height:1.15;
    letter-spacing:.005em;
    color:#fff
  }
  #walletApp main>header h1:after{
    content:"American Smart Chain";
    display:block;
    margin-top:3px;
    font-size:10px;
    font-weight:500;
    color:#7997bb;
    letter-spacing:.01em
  }
  #walletApp .user-box{
    margin-left:auto;
    padding:4px;
    border:0;
    background:transparent;
    box-shadow:none
  }
  #walletApp .user-box>span{display:none}
  #walletApp .user-box button{
    color:#b7c9df;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:11px
  }
  #walletApp .avatar{
    width:38px;height:38px;
    background:#061a35;
    border:1px solid rgba(255,255,255,.08)
  }

  #walletApp .hero{
    min-height:auto;
    overflow:hidden;
    border-radius:24px;
    padding:22px 19px 17px;
    background:
      radial-gradient(circle at 100% 0,rgba(46,156,255,.28),transparent 36%),
      linear-gradient(150deg,#07336a,#0752a4 70%,#0866ce);
    box-shadow:0 18px 40px rgba(0,0,0,.22)
  }
  #walletApp .hero>div:first-child{text-align:left}
  #walletApp .hero>div:first-child>span{
    display:block;
    color:#9ec0e8;
    font-size:11px;
    margin-bottom:5px
  }
  #walletApp .hero h2{
    font-size:42px;
    letter-spacing:-.05em;
    margin:0;
    min-height:48px
  }
  #walletApp .hero p{font-size:10px;margin-top:6px}
  #walletApp .address{
    position:absolute;
    top:20px;
    right:17px;
    margin:0;
    text-align:right
  }
  #walletApp .address span{display:none}
  #walletApp .address button{
    width:auto;
    max-width:128px;
    padding:7px 10px;
    font-size:9px;
    color:#a9c9ec;
    background:rgba(0,16,47,.24)
  }
  #walletApp .actions{
    position:static;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    margin-top:22px
  }
  #walletApp .actions button,
  #walletApp .actions button:last-child:nth-child(odd){
    grid-column:auto;
    min-width:0;
    min-height:62px;
    padding:10px 3px 8px;
    border-radius:16px;
    background:rgba(2,25,60,.38);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    box-shadow:none;
    font-size:19px;
    line-height:1.1
  }
  #walletApp .actions button span{
    display:block;
    margin-top:6px;
    color:#dceafe;
    font-size:9px;
    font-weight:700
  }
  #walletApp .actions button:disabled{opacity:.72}
  #walletApp .grid{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin-top:13px
  }
  #walletApp #assetsCard{grid-row:auto}
  #walletApp .card,
  #walletApp .asc-view-card{
    background:rgba(5,39,78,.90);
    border:1px solid rgba(255,255,255,.075);
    color:#fff;
    border-radius:21px;
    box-shadow:0 13px 28px rgba(0,0,0,.16)
  }
  #walletApp .card{padding:16px}
  #walletApp .title h3,
  #walletApp .asc-view-card h3{color:#fff}
  #walletApp .title span{color:#7fa2c9}
  #walletApp .card article,
  #walletApp .asc-view-row{
    min-height:64px;
    background:rgba(1,24,53,.28);
    border-color:rgba(255,255,255,.065);
    border-radius:15px
  }
  #walletApp .card article:hover{transform:none;box-shadow:none}
  #walletApp .card article strong,
  #walletApp .asc-view-row strong{color:#f5f9ff}
  #walletApp .card article small,
  #walletApp .asc-view-row small,
  #walletApp .asc-view-card p{color:#7fa0c4}
  #walletApp .card article b{color:#6ce4a7}
  #walletApp .card article b.locked{color:#788ca6}
  #walletApp .asc-pill{background:rgba(14,109,226,.22);color:#8dc7ff}
  #walletApp .asc-security-item{
    background:rgba(2,26,57,.33);
    border-color:rgba(255,255,255,.07);
    color:#fff
  }
  #walletApp .asc-security-item span{color:#84a2c3}
  #walletApp .asc-setting-actions button,
  #walletApp .asc-setting-actions a{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.08);
    color:#d7e9ff
  }
  #walletApp .asc-install-note{color:#83a2c4}
  #walletApp .lab-tools{display:none}

  #walletApp .asc-mobile-nav{
    left:8px;right:8px;bottom:8px;
    grid-template-columns:repeat(6,1fr);
    padding:7px 5px calc(7px + env(safe-area-inset-bottom));
    border-radius:20px;
    background:rgba(1,18,39,.94);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 16px 45px rgba(0,0,0,.34);
    backdrop-filter:blur(18px)
  }
  #walletApp .asc-mobile-nav button{
    min-width:0;
    color:#7894b5;
    padding:7px 1px;
    border-radius:12px;
    font-size:8px
  }
  #walletApp .asc-mobile-nav button span:first-child{font-size:15px}
  #walletApp .asc-mobile-nav button.active{
    background:linear-gradient(145deg,#0b5fd3,#0e79ef);
    color:#fff;
    box-shadow:0 6px 16px rgba(0,95,220,.24)
  }
}

@media(max-width:480px){
  #walletApp main{padding-left:9px;padding-right:9px}
  #walletApp .hero h2{font-size:38px}
  #walletApp .hero{padding-left:16px;padding-right:16px}
  #walletApp .actions{gap:5px}
  #walletApp .actions button{font-size:17px}
  #walletApp .card{padding:14px}
  #walletApp .asc-mobile-nav{left:5px;right:5px;bottom:5px}
}

@media(min-width:901px){
  #walletApp{grid-template-columns:245px 1fr}
}


/* Account menu: identity first, clear profile access and obvious sign out */
#walletApp .user-box{position:relative}
#walletApp .asc-account-trigger{
  border:1px solid rgba(148,163,184,.28)!important;
  padding:5px 7px 5px 10px!important;
  background:rgba(255,255,255,.92)!important;
  cursor:pointer;
  border-radius:999px!important;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  box-shadow:0 8px 22px rgba(15,42,78,.10);
}
#walletApp .asc-account-trigger:hover{background:#f7faff!important}
#walletApp .asc-account-trigger .avatar{pointer-events:none}
#walletApp .asc-account-trigger-name{
  display:block;
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:900;
  color:#173654;
}
#walletApp .asc-account-trigger-chevron{
  font-size:15px;
  line-height:1;
  color:#6f839d;
  margin-right:2px
}
#walletApp .asc-account-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:90000;
  width:260px;
  padding:10px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e3e9f1;
  box-shadow:0 20px 52px rgba(18,44,82,.22);
}
#walletApp .asc-account-menu[hidden]{display:none!important}
#walletApp .asc-account-identity{
  padding:10px 11px 12px;
  border-bottom:1px solid #edf1f6;
  margin-bottom:7px;
}
#walletApp .asc-account-name{
  display:block;
  font-size:16px;
  line-height:1.2;
  color:#0b2748;
}
#walletApp .asc-account-email{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#7890aa;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#walletApp .asc-account-menu .asc-account-profile,
#walletApp .asc-account-menu #logoutBtn{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  padding:11px 12px!important;
  border:0!important;
  border-radius:12px!important;
  font-size:13px!important;
  font-weight:800!important;
  cursor:pointer;
}
#walletApp .asc-account-menu .asc-account-profile{
  background:#f3f7fc!important;
  color:#173654!important;
}
#walletApp .asc-account-menu .asc-account-profile:hover{background:#e9f1fa!important}
#walletApp .asc-account-menu #logoutBtn{
  margin-top:8px;
  min-height:48px;
  color:#9f2020!important;
  background:#fff0f0!important;
  border:1px solid #f1caca!important;
  font-size:14px!important;
}
#walletApp .asc-account-menu #logoutBtn:hover{background:#ffe5e5!important}
#walletApp .asc-account-menu .asc-account-profile span,
#walletApp .asc-account-menu #logoutBtn span{
  width:22px;
  display:inline-grid;
  place-items:center;
  font-size:15px;
}
#walletApp .user-box>button#logoutBtn,
#walletApp .user-box>#ascEcosystemLinks{display:none}

#ascEcosystemLinks{display:none!important}

#profileView,
#walletApp .asc-profile-card{min-height:0}
#walletApp .asc-profile-summary{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 0 20px;
}
#walletApp .asc-profile-avatar{
  width:58px;
  height:58px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#051b39,#0b4e9d);
  color:#fff;
  font-size:22px;
  font-weight:900;
}
#walletApp .asc-profile-summary strong,
#walletApp .asc-profile-summary small{display:block}
#walletApp .asc-profile-summary strong{font-size:20px;color:#173654}
#walletApp .asc-profile-summary small{margin-top:4px;color:#7890aa}
#walletApp .asc-profile-note{margin-top:16px;color:#6f829a;font-size:12px;line-height:1.55}

@media(max-width:900px){
  #walletApp main>header{
    height:88px;
    padding:7px 0;
    justify-content:center;
  }
  #walletApp main>header:before{
    left:50%;
    top:7px;
    width:68px;
    height:68px;
    transform:translateX(-50%);
    filter:drop-shadow(0 7px 18px rgba(0,0,0,.28));
  }
  #walletApp main>header>div:first-child{
    visibility:hidden;
    width:72px;
    height:72px;
  }
  #walletApp .user-box{
    position:absolute;
    right:0;
    top:18px;
    margin:0;
  }
  #walletApp .user-box>span,
  #walletApp .user-box>button#logoutBtn,
  #walletApp .user-box>#ascEcosystemLinks{display:none!important}
  #walletApp .asc-account-trigger{
    background:rgba(1,18,39,.88)!important;
    border-color:rgba(255,255,255,.12)!important;
    padding:4px 6px 4px 10px!important;
    box-shadow:0 8px 20px rgba(0,0,0,.22);
  }
  #walletApp .asc-account-trigger-name{color:#e7f1ff;max-width:88px;font-size:12px}
  #walletApp .asc-account-trigger-chevron{color:#8ea9c8}
  #walletApp .asc-account-trigger .avatar{
    width:36px;
    height:36px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:none;
  }
  #walletApp .asc-account-menu{
    right:0;
    top:52px;
    width:min(270px,calc(100vw - 24px));
    background:#061f40;
    border-color:rgba(255,255,255,.09);
    box-shadow:0 20px 54px rgba(0,0,0,.42);
  }
  #walletApp .asc-account-identity{border-bottom-color:rgba(255,255,255,.08)}
  #walletApp .asc-account-name{color:#fff}
  #walletApp .asc-account-email{color:#83a4cb}
  #walletApp .asc-account-menu .asc-account-profile{
    background:rgba(255,255,255,.07)!important;
    color:#e4f0ff!important;
  }
  #walletApp .asc-account-menu #logoutBtn{
    color:#ffc1c1!important;
    background:rgba(190,55,55,.13)!important;
    border-color:rgba(255,145,145,.14)!important;
  }
  #walletApp .asc-profile-summary strong{color:#dcecff}
  #walletApp .asc-profile-summary small,
  #walletApp .asc-profile-note{color:#86a5ca}
}

/* Mobile brand lockup v2: larger emblem + high-contrast metallic ASC wordmark */
@media(max-width:900px){
  #walletApp main>header{
    height:150px;
    min-height:150px;
    margin-bottom:10px;
    padding:0;
    justify-content:center;
    overflow:visible;
  }

  /* Use the compact ASC emblem instead of squeezing the horizontal logo */
  #walletApp main>header:before{
    content:"";
    position:absolute;
    left:50%;
    top:4px;
    width:104px;
    height:104px;
    transform:translateX(-50%);
    background:url('https://kfyxoqdwgfvkctnfqmze.supabase.co/storage/v1/object/public/public-media/brand/favicon_asc_wallet.png') center/contain no-repeat;
    filter:
      drop-shadow(0 8px 18px rgba(0,0,0,.34))
      drop-shadow(0 0 16px rgba(232,184,66,.12));
  }

  /* UI wordmark: chrome/silver with a subtle gold highlight */
  #walletApp main>header:after{
    content:"ASC WALLET";
    position:absolute;
    left:50%;
    top:101px;
    transform:translateX(-50%);
    white-space:nowrap;
    font-size:29px;
    line-height:1;
    font-weight:950;
    letter-spacing:.075em;
    background:linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f7fb 18%,
      #c9d0da 43%,
      #fff4c9 56%,
      #d7a83d 72%,
      #f7e4a4 88%,
      #ffffff 100%
    );
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
    text-shadow:
      0 1px 0 rgba(255,255,255,.12),
      0 4px 14px rgba(0,0,0,.34);
    filter:drop-shadow(0 0 8px rgba(255,220,135,.10));
  }

  #walletApp main>header>div:first-child{
    visibility:hidden;
    width:230px;
    height:140px;
  }

  /* Keep account control visually secondary */
  #walletApp .user-box{
    top:24px;
    right:2px;
  }
  #walletApp .asc-account-trigger .avatar{
    width:34px;
    height:34px;
    font-size:11px;
    opacity:.96;
  }
  #walletApp .asc-account-trigger-name{
    display:block;
    max-width:76px;
  }
}

@media(max-width:480px){
  #walletApp main>header{
    height:144px;
    min-height:144px;
  }
  #walletApp main>header:before{
    width:96px;
    height:96px;
    top:5px;
  }
  #walletApp main>header:after{
    top:96px;
    font-size:26px;
    letter-spacing:.065em;
  }
}


/* Desktop brand lockup v2: mirror the premium mobile identity */
@media(min-width:901px){
  #walletApp main>header{
    position:relative;
    min-height:138px;
    height:138px;
    margin-bottom:20px;
    padding:0;
    justify-content:center;
    align-items:center;
    overflow:visible;
  }

  #walletApp main>header>div:first-child{
    visibility:hidden;
    width:250px;
    height:120px;
  }

  #walletApp main>header:before{
    content:"";
    position:absolute;
    left:50%;
    top:4px;
    width:86px;
    height:86px;
    transform:translateX(-50%);
    background:url('https://kfyxoqdwgfvkctnfqmze.supabase.co/storage/v1/object/public/public-media/brand/favicon_asc_wallet.png') center/contain no-repeat;
    filter:
      drop-shadow(0 8px 18px rgba(9,34,72,.24))
      drop-shadow(0 0 16px rgba(232,184,66,.10));
  }

  #walletApp main>header:after{
    content:"ASC WALLET";
    position:absolute;
    left:50%;
    top:88px;
    transform:translateX(-50%);
    white-space:nowrap;
    font-size:31px;
    line-height:1;
    font-weight:950;
    letter-spacing:.075em;
    background:linear-gradient(
      180deg,
      #ffffff 0%,
      #eef2f7 19%,
      #bfc8d4 42%,
      #fff0b8 55%,
      #d6a43a 72%,
      #f4df9a 88%,
      #ffffff 100%
    );
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
    text-shadow:
      0 1px 0 rgba(255,255,255,.30),
      0 5px 15px rgba(18,42,77,.16);
    filter:drop-shadow(0 0 8px rgba(218,170,65,.09));
  }

  #walletApp .user-box{
    position:absolute;
    right:2px;
    top:34px;
  }

  #walletApp .sidebar .brand{
    justify-content:center;
    text-align:center;
    flex-direction:column;
    gap:8px;
    padding:8px 4px 22px;
  }

  #walletApp .sidebar .brand img{
    width:78px!important;
    height:78px!important;
    object-fit:contain!important;
    filter:
      drop-shadow(0 7px 16px rgba(0,0,0,.26))
      brightness(1.10);
  }

  #walletApp .sidebar .brand strong{
    font-size:20px;
    line-height:1;
    font-weight:900;
    letter-spacing:.055em;
    background:linear-gradient(180deg,#fff,#c9d1dc 44%,#e1b755 68%,#fff0b0);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
  }

  #walletApp .sidebar .brand small{
    font-size:10px;
    color:#8fa8c7;
    margin-top:5px;
    letter-spacing:.035em;
  }
}


/* Desktop dark wallet theme v3: match the mobile product language */
@media(min-width:901px){
  body:has(#walletApp:not(.hidden)){
    background:#02152f;
  }

  #walletApp{
    min-height:100vh;
    background:
      radial-gradient(circle at 62% -140px,rgba(30,126,255,.17),transparent 420px),
      radial-gradient(circle at 100% 18%,rgba(10,102,210,.10),transparent 360px),
      linear-gradient(180deg,#02152f 0%,#031d3e 54%,#042449 100%);
    color:#fff;
  }

  #walletApp main{
    max-width:1360px;
    padding:24px 34px 48px;
  }

  #walletApp main>header{
    background:transparent;
  }

  #walletApp .hero{
    background:
      radial-gradient(circle at 90% 0,rgba(54,163,255,.26),transparent 32%),
      radial-gradient(circle at 72% 100%,rgba(4,92,220,.18),transparent 28%),
      linear-gradient(145deg,#062d61 0%,#064688 55%,#075fbe 100%);
    border-color:rgba(255,255,255,.08);
    box-shadow:0 22px 48px rgba(0,0,0,.20);
  }

  #walletApp .actions button{
    background:rgba(2,28,64,.40);
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:none;
    backdrop-filter:blur(8px);
  }

  #walletApp .actions button span{color:#dceafe}
  #walletApp .actions button:not(:disabled):hover{
    background:rgba(10,73,145,.58);
    box-shadow:0 10px 24px rgba(0,0,0,.16);
  }

  #walletApp .grid{gap:16px}

  #walletApp .card,
  #walletApp .asc-view-card{
    background:rgba(5,39,78,.90);
    border:1px solid rgba(255,255,255,.07);
    color:#fff;
    box-shadow:0 14px 32px rgba(0,0,0,.14);
  }

  #walletApp .title h3,
  #walletApp .asc-view-card h3{
    color:#f7faff;
  }

  #walletApp .title span{color:#789bc3}
  #walletApp .asc-view-card p{color:#86a3c4}

  #walletApp .card article,
  #walletApp .asc-view-row{
    background:rgba(1,24,53,.30);
    border-color:rgba(255,255,255,.065);
  }

  #walletApp .card article:hover{
    border-color:rgba(122,184,255,.18);
    box-shadow:0 8px 18px rgba(0,0,0,.12);
  }

  #walletApp .card article strong,
  #walletApp .asc-view-row strong{
    color:#f4f8ff;
  }

  #walletApp .card article small,
  #walletApp .asc-view-row small{
    color:#7f9dbf;
  }

  #walletApp .card article b{color:#6ce4a7}
  #walletApp .card article b.locked{color:#7e92aa}

  #walletApp .asc-pill{
    background:rgba(14,109,226,.20);
    color:#8cc8ff;
  }

  #walletApp .asc-security-item{
    background:rgba(2,26,57,.34);
    border-color:rgba(255,255,255,.07);
    color:#fff;
  }

  #walletApp .asc-security-item span{color:#88a4c3}

  #walletApp .asc-setting-actions button,
  #walletApp .asc-setting-actions a{
    background:rgba(255,255,255,.055);
    border-color:rgba(255,255,255,.08);
    color:#dcecff;
  }

  #walletApp .asc-install-note{color:#82a0c0}

  #walletApp .user-box{
    background:rgba(2,24,52,.72);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 26px rgba(0,0,0,.16);
    backdrop-filter:blur(12px);
  }

  #walletApp .user-box>span{color:#9ab4d2}
  #walletApp .user-box button{
    background:rgba(255,255,255,.06);
    color:#d8e8fb;
  }

  #walletApp .avatar{
    background:#061a35;
    border:1px solid rgba(255,255,255,.09);
    color:#fff;
  }

  #walletApp .asc-account-menu{
    background:#061f40;
    border-color:rgba(255,255,255,.09);
    box-shadow:0 18px 50px rgba(0,0,0,.36);
  }

  #walletApp .asc-account-menu .asc-account-title{color:#7898bd}

  #walletApp .asc-account-menu #ascEcosystemLinks button,
  #walletApp .asc-account-menu #logoutBtn{
    background:rgba(255,255,255,.06)!important;
    color:#d9e9fb!important;
  }

  #walletApp .asc-account-menu #logoutBtn{
    color:#ffb7b7!important;
    background:rgba(190,55,55,.11)!important;
  }

  #walletApp .sidebar{
    background:
      radial-gradient(circle at 50% 0,rgba(20,94,185,.14),transparent 260px),
      linear-gradient(180deg,#011329 0%,#021a36 52%,#03234a 100%);
    border-right:1px solid rgba(255,255,255,.06);
    box-shadow:18px 0 42px rgba(0,0,0,.10);
  }

  #walletApp .sidebar nav a{color:#91a8c4}
  #walletApp .sidebar nav a:hover{background:rgba(255,255,255,.045);color:#fff}
  #walletApp .sidebar nav a.active{
    background:linear-gradient(100deg,rgba(13,83,185,.88),rgba(11,111,218,.76));
    box-shadow:0 9px 22px rgba(0,70,165,.22);
  }

  #walletApp .sidebar .security{
    background:rgba(4,35,73,.66);
    border-color:rgba(255,255,255,.08);
  }

  #walletApp .lab-tools{
    background:rgba(5,39,78,.74);
    border-color:rgba(255,255,255,.06);
  }

  #walletApp .tool-grid button{
    background:rgba(255,255,255,.055);
    border-color:rgba(255,255,255,.08);
    color:#dcecff;
  }

  #walletApp .lab-tools pre{
    background:#01152e;
    color:#cfe2fb;
  }
}


/* Activity V1 + account menu stacking */
#walletApp main,
#walletApp main>header{position:relative}
#walletApp main>header{z-index:1200}
#walletApp .user-box{z-index:1300}
#walletApp .asc-account-menu{z-index:200000!important}
#walletApp .hero{z-index:1}
#walletApp .asc-account-email{
  margin:0 2px 8px;
  padding:8px 10px;
  border-radius:10px;
  font-size:11px;
  line-height:1.35;
  word-break:break-all;
  background:rgba(255,255,255,.045);
  color:#a8bfd9;
}
#walletApp .asc-account-trigger .avatar{
  font-weight:900;
  letter-spacing:.02em
}

#walletApp .asc-activity-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px
}
#walletApp .asc-activity-head h3{margin:11px 0 5px}
#walletApp .asc-activity-head p{margin:0}
#walletApp .asc-activity-head button{
  flex:0 0 auto;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.06);
  color:#dcecff;
  font-weight:750;
  cursor:pointer
}
#walletApp .asc-activity-list{
  display:grid;
  gap:9px;
  margin-top:14px
}
#walletApp .asc-activity-item{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:13px;
  border-radius:16px;
  background:rgba(1,24,53,.30);
  border:1px solid rgba(255,255,255,.065)
}
#walletApp .asc-activity-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(145deg,rgba(17,111,227,.85),rgba(5,71,148,.78));
  color:#fff;
  font-size:19px;
  font-weight:900;
  box-shadow:0 7px 18px rgba(0,60,150,.18)
}
#walletApp .asc-activity-copy{min-width:0}
#walletApp .asc-activity-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
#walletApp .asc-activity-top strong{color:#f6f9ff}
#walletApp .asc-activity-copy>small{
  display:block;
  margin-top:3px;
  color:#7f9dbf
}
#walletApp .asc-activity-amount{
  color:#7ce6ac!important;
  white-space:nowrap
}
#walletApp .asc-activity-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px 12px;
  margin-top:8px;
  font-size:10px;
  color:#6f8daf
}
#walletApp .asc-activity-status{
  font-weight:850;
  color:#8fc4ff
}
#walletApp .asc-activity-status.confirmed{color:#6ce4a7}
#walletApp .asc-activity-status.failed{color:#ff9a9a}
#walletApp .asc-activity-status.created,
#walletApp .asc-activity-status.pending{color:#f1c56b}
#walletApp .asc-activity-tx{
  margin-top:8px;
  font-size:10px;
  color:#7f9dbf;
  word-break:break-all
}
#walletApp .asc-activity-link{
  margin-left:6px;
  color:#8dc7ff;
  text-decoration:none;
  font-weight:750
}
#walletApp .asc-activity-link:hover{text-decoration:underline}
#walletApp .asc-activity-state{
  margin-top:14px;
  padding:16px;
  border-radius:15px;
  background:rgba(1,24,53,.30);
  border:1px solid rgba(255,255,255,.065)
}
#walletApp .asc-activity-state strong{color:#f6f9ff}

@media(max-width:900px){
  #walletApp main>header{z-index:5000}
  #walletApp .user-box{z-index:6000}
  #walletApp .asc-account-menu{
    z-index:999999!important;
    position:fixed!important;
    top:74px!important;
    right:12px!important;
  }
  #walletApp .asc-activity-head{align-items:center}
  #walletApp .asc-activity-head p{display:none}
  #walletApp .asc-activity-head button{font-size:10px;padding:8px 10px}
  #walletApp .asc-activity-item{grid-template-columns:40px minmax(0,1fr);padding:11px}
  #walletApp .asc-activity-icon{width:38px;height:38px}
  #walletApp .asc-activity-top{align-items:flex-start}
}


/* Wallet state visibility fix */
@media(min-width:901px){
  #walletApp #walletState{
    position:absolute;
    left:29px;
    bottom:92px;
    z-index:5;
    display:block;
    margin:0;
    min-height:18px;
    line-height:1.35;
    font-size:12px;
    white-space:nowrap;
  }
}
@media(max-width:900px){
  #walletApp #walletState{
    position:relative;
    z-index:4;
    display:block;
    margin:8px 0 16px;
    min-height:18px;
    line-height:1.35;
    font-size:11px;
  }
  #walletApp .hero .actions{
    margin-top:14px!important;
  }
}

/* Unified onboarding responsive layer */
#ascWalletProvisionCard,
#ascDirectOnboarding{
  margin:0 0 16px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(5,39,78,.9);
  color:#fff;
  box-shadow:0 14px 32px rgba(0,0,0,.14);
}
#ascWalletProvisionCard[hidden],
#ascDirectOnboarding[hidden]{display:none!important}
#ascWalletProvisionCard h3,
#ascDirectOnboarding h3{margin:6px 0 8px;color:#fff}
#ascWalletProvisionCard p,
#ascDirectOnboarding p{margin:0 0 12px;color:#8eabc9;line-height:1.55}
#ascWalletProvisionCard small{display:block;margin-top:10px;color:#8eabc9;line-height:1.45}
#ascWalletProvisionCard .asc-wallet-provision-action{margin-top:12px}
#ascWalletProvisionCard #provisionBtn{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:12px;
  background:#fff;
  color:#12335e;
  font-weight:850;
  padding:12px 16px;
  cursor:pointer;
}
#ascWalletProvisionCard #provisionBtn:disabled{opacity:.55;cursor:not-allowed}
#ascDirectOnboarding .asc-onboarding-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px
}
#ascDirectOnboarding label{display:block;color:#9db5d1;font-size:12px;font-weight:700}
#ascDirectOnboarding input,
#ascDirectOnboarding select{
  width:100%;
  box-sizing:border-box;
  margin-top:6px;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  background:#031b38;
  color:#fff;
  outline:none
}
#ascDirectOnboarding .asc-check{
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin-top:12px;
  color:#a9bfd8;
  font-size:12px
}
#ascDirectOnboarding .asc-check input{width:auto;margin-top:2px}
#ascDirectOnboarding .asc-onboarding-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px
}
#ascDirectOnboarding .asc-onboarding-actions button{
  min-height:42px;
  padding:10px 13px;
  border:0;
  border-radius:11px;
  font-weight:800;
  cursor:pointer
}
#ascDirectOnboarding .asc-primary{background:#0b67da;color:#fff}
#ascDirectOnboarding .asc-secondary{background:rgba(255,255,255,.07);color:#dcecff}
#ascDirectOnboarding #ascOnboardingStatus{margin-top:12px;color:#8eabc9}

@media(max-width:900px){
  #ascWalletProvisionCard,
  #ascDirectOnboarding{padding:15px;border-radius:16px}
  #ascDirectOnboarding .asc-onboarding-grid{grid-template-columns:1fr}
  #ascDirectOnboarding .asc-onboarding-actions{display:grid;grid-template-columns:1fr}
  #ascWalletProvisionCard #provisionBtn{min-height:52px}
}


/* Login ecosystem access note */
.auth-first-access-note{
  display:block;
  margin:12px 0 9px;
  padding:10px 12px;
  border-radius:11px;
  background:rgba(255,255,255,.045);
  color:#8fa8c4;
  font-size:11px;
  line-height:1.5;
}
.auth-federation-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 0 8px;
  color:#6f8aa7;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.auth-federation-divider::before,
.auth-federation-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(255,255,255,.08);
}
.auth-provider-stack{
  display:grid;
  gap:8px;
}
.auth-provider-stack .secondary{
  width:100%;
}


/* Mandatory KYC gate before wallet provisioning */
#ascKycGate{
  margin:0 0 18px;
  padding:24px;
  border-radius:22px;
  border:1px solid #dce7f4;
  background:#fff;
  color:#102440;
  box-shadow:0 16px 40px rgba(18,58,112,.08)
}
#ascKycGate[hidden]{display:none!important}
#ascKycGate h2{margin:8px 0 10px;font-size:28px;letter-spacing:-.025em}
#ascKycGate>p{color:#667c98;line-height:1.6;max-width:760px}
#ascKycGate .asc-kyc-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:20px 0
}
#ascKycGate .asc-kyc-steps>div{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px;
  border-radius:15px;
  background:#f5f8fc;
  border:1px solid #e4ebf4
}
#ascKycGate .asc-kyc-steps b{
  width:30px;height:30px;flex:0 0 30px;
  display:grid;place-items:center;
  border-radius:50%;
  background:#0b67da;color:#fff
}
#ascKycGate .asc-kyc-steps span{font-size:12px;font-weight:750;color:#365273}
#ascKycGate .asc-onboarding-actions{display:flex;gap:10px;flex-wrap:wrap}
#ascKycGate .asc-onboarding-actions button{
  min-height:46px;
  padding:11px 16px;
  border-radius:12px;
  border:0;
  font-weight:850;
  cursor:pointer
}
#ascKycGate .asc-primary{background:#0b67da;color:#fff}
#ascKycGate .asc-secondary{background:#edf4fc;color:#17549f}
#ascKycGate #ascOnboardingStatus{margin:14px 0 0;font-size:12px;color:#667c98}

#walletApp.kyc-required main>.hero,
#walletApp.kyc-required main>.grid,
#walletApp.kyc-required main>.lab-tools,
#walletApp.kyc-required main>.asc-view{display:none!important}
#walletApp.kyc-required .sidebar nav{opacity:.3;pointer-events:none}
#walletApp.kyc-required ~ .asc-mobile-nav{display:none!important}

@media(max-width:900px){
  #ascKycGate{
    margin:0 0 14px;
    padding:18px;
    border-radius:18px;
    background:rgba(5,39,78,.96);
    border-color:rgba(255,255,255,.08);
    color:#fff
  }
  #ascKycGate h2{font-size:24px;color:#fff}
  #ascKycGate>p,#ascKycGate #ascOnboardingStatus{color:#90acd0}
  #ascKycGate .asc-kyc-steps{grid-template-columns:1fr}
  #ascKycGate .asc-kyc-steps>div{
    background:rgba(1,24,53,.35);
    border-color:rgba(255,255,255,.07)
  }
  #ascKycGate .asc-kyc-steps span{color:#dbeaff}
  #ascKycGate .asc-onboarding-actions{display:grid;grid-template-columns:1fr}
  #ascKycGate .asc-secondary{background:rgba(255,255,255,.07);color:#dbeaff}
}
