:root{
  --bg0:#0b0f17;      /* lighter black */
  --bg1:#0e1420;
  --panel:#0f1827;
  --panel2:#0c1320;

  --stroke: rgba(255,255,255,.08);
  --stroke2: rgba(59,130,246,.28);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);

  --blue:#3b82f6;       /* accent */
  --blue2:#60a5fa;
  --blueDim: rgba(59,130,246,.16);

  --good:#34d399;
  --bad:#fb7185;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --r: 18px;
  --container: 1080px;
}

a { 
  text-decoration: none; 
  color: inherit; 
}
a:visited { color: inherit; }

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #0a0f18);
  overflow-x:hidden;
  min-height: 100svh;
}

img, svg, canvas { max-width: 100%; }

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,.78);
  border-bottom: 1px solid var(--stroke);
}

.nav{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  padding:8px 10px;
  border-radius: 14px;
  border:1px solid transparent;
}
.brand:hover{ background: rgba(255,255,255,.03); border-color: var(--stroke); }
.brand-mark{
  width:10px; height:10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}
.brand-text{ font-weight:800; letter-spacing:.2px; }

.nav-left, .nav-right{ display:flex; align-items:center; gap:8px; }
.nav-right{ margin-left:auto; }

.nav-btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: medium;

  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  font-weight:700;
  cursor:pointer;
  transition:.16s ease;
  white-space:nowrap;
}
.nav-btn:hover{ background: rgba(255,255,255,.04); border-color: var(--stroke2); }
.nav-btn.is-active{
  border-color: rgba(59,130,246,.45);
  background: rgba(59,130,246,.10);
}
.nav-btn.accent{
  border-color: rgba(59,130,246,.55);
  background: rgba(59,130,246,.14);
}
.nav-btn.ghost{ background: transparent; }
.nav-btn.danger{
  border-color: rgba(251,113,133,.35);
  background: rgba(251,113,133,.10);
}

.hamburger{
  display:none;
  margin-left:auto;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  cursor:pointer;
  padding:10px;
  gap:6px;
}
.hamburger span{
  display:block;
  height:2px;
  background: rgba(255,255,255,.75);
  border-radius:2px;
}

.drawer{
  border-top:1px solid var(--stroke);
  padding:12px 0 16px;
}
.drawer-inner{ display:grid; gap:12px; }
.drawer-group{ display:grid; gap:10px; }
.drawer-label{ font-size:12px; padding:0 2px; }

.main{ padding:18px 0 38px; }
.view{ display:none; }
.view.is-visible{ display:block; }

/* Mobile-first layout */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  align-items:stretch;
}
.grid.single{ grid-template-columns: 1fr; }

.card{
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding:16px;
}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.card-title{ margin:0; font-size:16px; letter-spacing:.2px; }

.pill{
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
  padding:7px 10px;
  border-radius: 999px;
  border:1px solid rgba(59,130,246,.40);
  color: rgba(255,255,255,.92);
  background: rgba(59,130,246,.12);
}

select {
  color: var(--text);
  background: rgba(0,0,0,.85);
}

select option {
  background: #0f1827;
  color: white;
}


.muted{ color:var(--muted); }

.welcome{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:2px 0 10px;
  font-size: large;
}
.welcome-name{ font-weight:900; color: rgba(255,255,255,.95); }

.welcome .pill{
  margin-left:auto;   /* pushes it to the far right */
}

.actions{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}

.action-btn{
  width:100%;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color:var(--text);
  padding:12px 10px;
  border-radius: 16px;
  font-weight:900;
  cursor:pointer;
  transition:.16s ease;
}
.action-btn:hover{ background: rgba(255,255,255,.04); border-color: var(--stroke2); }
.action-btn.primary{
  border-color: rgba(59,130,246,.55);
  background: rgba(59,130,246,.16);

}
.actions.three{ grid-template-columns: repeat(3, 1fr); }

.balance-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:12px 0 10px;
}

.balance-value{
  font-size:34px;
  font-weight:900;
  letter-spacing:-.6px;
}
.subrow{ display:flex; gap:10px; align-items:center; margin-top:6px; }

.delta{
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}
.delta.up{ color: var(--good); border-color: rgba(52,211,153,.22); background: rgba(52,211,153,.08); }
.delta.down{ color: var(--bad); border-color: rgba(251,113,133,.22); background: rgba(251,113,133,.08); }

.spark{
  border:1px solid rgba(59,130,246,.22);
  border-radius: 16px;
  background: rgba(59,130,246,.08);
  padding:10px 12px;
}
.spark canvas{
  width:100%;
  height:64px;
  display:block;
}

.expander{
  width:100%;
  margin-top:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.90);
  padding:12px 12px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-weight:700;
  font-size:medium;
}
.expander:hover{ border-color: var(--stroke2); background: rgba(255,255,255,.03); }
.chev{ opacity:.9; transition:.16s ease; }
.expander[aria-expanded="true"] .chev{ transform: rotate(180deg); }

.breakdown{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  border-radius: 18px;
  padding:12px;
}
.breakdown-note{ font-size:12px; margin-top:10px; text-align:center; }

.mini{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.mini-item{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  padding:10px 12px;
  text-align:center;
}
.mini-label{ color:var(--muted); font-size:12px; }
.mini-value{ font-weight:900; margin-top:6px; }

/* Table */
.table{
  border:1px solid var(--stroke);
  border-radius: 18px;
  overflow:hidden;
}
.trow{
  display:grid;
  grid-template-columns: 1.2fr .9fr .7fr;
  padding:12px 12px;
  gap:10px;
  align-items:center;
}
.trow:not(.thead){ border-top:1px solid rgba(255,255,255,.06); }
.thead{ background: rgba(255,255,255,.03); font-weight:900; }
.tcell{ font-size:14px; }
.tcell.right{ text-align:right; }

.asset{ display:flex; align-items:center; gap:10px; min-width:0; }

.coin{
  width:30px; height:30px;
  border-radius: 12px;
  background: rgba(59,130,246,.14);
  border:1px solid rgba(59,130,246,.28);
  display:grid;
   overflow:hidden;
  place-items:center;
  color: rgba(255,255,255,.92);
  font-weight:1000;
}
.coin img{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
}
.asset-name{ font-weight:900; }
.asset-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.right-tools{ display:flex; align-items:center; gap:10px; width:100%; }
.search{ flex:1; }
.search input{
  width:100%;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding:10px 12px;
  border-radius: 14px;
  outline:none;
}
.search input:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.chip{
  border:1px solid rgba(59,130,246,.45);
  background: rgba(59,130,246,.12);
  color: rgba(255,255,255,.92);
  padding:10px 12px;
  border-radius: 14px;
  font-weight:900;
  cursor:pointer;
}
.chip:hover{ background: rgba(59,130,246,.16); }

.footnote{ margin-top:10px; font-size:12px; }

/* Shared panels */
.two{ display:grid; grid-template-columns: 1fr; gap:12px; }
.panel{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding:14px;
}
.panel-title{ font-weight:1000; margin-bottom:10px; }

.seg{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }
.two-seg{ grid-template-columns: repeat(2, 1fr); }
.seg-btn{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.90);
  padding:10px 10px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:900;
  transition:.16s ease;
}
.seg-btn:hover{ border-color: rgba(59,130,246,.35); }
.seg-btn.is-active{
  border-color: rgba(59,130,246,.55);
  background: rgba(59,130,246,.14);
}

.form{ display:grid; gap:10px; }

.field + .field{
  margin-top: 6px;
}

.field label{ display:block; font-size:12px; color: var(--muted); margin-bottom:6px; }
.field input{
  width:100%;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding:12px 12px;
  border-radius: 16px;
  outline:none;
}
.field input:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.hint{
  margin-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:12px;
  display:grid;
  gap:8px;
}
.hint-row{ display:flex; gap:10px; align-items:flex-start; color: rgba(255,255,255,.86); }
.dot{
  width:7px; height:7px;
  border-radius:999px;
  background: rgba(96,165,250,.95);
  margin-top:6px;
}

/* Wallet */
.wallet-grid{ display:grid; grid-template-columns: 1fr; gap:10px; }
.wallet-tile{
   color: #e6f0ff !important;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding:14px;
  cursor:pointer;
  transition:.16s ease;
   display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  
}
.wallet-tile:hover{ border-color: rgba(59,130,246,.35); background: rgba(255,255,255,.03); }
.wallet-ico{
width: auto;
  height: auto;
  border: none;
  background: transparent;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-ico img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
}
.wallet-name{ font-weight:1000; color: #e6f0ff !important; }
.wallet-sub{ font-size:12px; margin-top:4px; }

/* Card mock */
.card-mock{
  border:1px solid rgba(59,130,246,.25);
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(255,255,255,.03));
  border-radius: 24px;
  padding:16px;
}
.card-mock-top{ display:flex; justify-content:space-between; align-items:center; }
.card-chip{
  width:42px; height:32px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
}
.card-brand{ font-weight:1000; letter-spacing:1px; }
.card-number{ margin-top:22px; font-size:18px; letter-spacing:2px; font-weight:1000; }
.card-meta{ margin-top:14px; display:flex; justify-content:space-between; align-items:flex-end; }
.strong{ font-weight:1000; }

/* Profile */
.profile{ display:flex; align-items:center; gap:12px; padding:10px 0 14px; }
.avatar{
  width:44px; height:44px;
  border-radius: 16px;
  border:1px solid rgba(59,130,246,.28);
  background: rgba(59,130,246,.14);
  display:grid; place-items:center;
  color: rgba(255,255,255,.92);
  font-weight:1000;
}

/* Modal */
.modal{ position:fixed; inset:0; display:grid; place-items:center; z-index:50; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.modal[hidden]{ display:none; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.62); backdrop-filter: blur(10px); }
.modal-card{
  position:relative;
  width:min(520px, calc(100% - 28px));
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,18,30,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  padding:16px;
}
.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal-title{ font-weight:1000; font-size:16px; }
.modal-sub{ font-size:12px; margin-top:2px; }
.modal-body{ padding:12px 0 10px; color: rgba(255,255,255,.90); }
.modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:12px;
}

.icon-btn{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius: 14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.90);
  cursor:pointer;
}

/* Responsive: desktop enhancements */
@media (min-width: 981px){
  .grid{ grid-template-columns: 1.05fr .95fr; }
  .actions{ grid-template-columns: repeat(4, 1fr); }
  .mini{ grid-template-columns: repeat(3, 1fr); }
  .two{ grid-template-columns: 1fr 1fr; }
  .wallet-grid{ grid-template-columns: repeat(3, 1fr); }
  .balance-row{ flex-direction:row; align-items:flex-end; justify-content:space-between; }
  .spark{ width: 240px; }
  .right-tools{ width:auto; }
  .search{ width: 240px; flex:0 0 auto; }
}

/* Mobile nav */
@media (max-width: 760px){
  .nav-left, .nav-right{ display:none; }
  .hamburger{ display:grid; }
  .drawer[hidden]{ display:none; }
  .drawer{ display:block; }
}


/* --- Global link reset for button-like anchors --- */
a{ text-decoration:none; color:inherit; }
a:visited{ color:inherit; }

/* --- Action buttons: ensure perfect centering & readability --- */
.action-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1;
  font-weight:800;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Breakdown list (per-asset) --- */
.bd-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.bd-total{ font-weight:900; }
.bd-list{ display:grid; gap:10px; }

.bd-row{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.bd-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.bd-coin{
  width:32px; height:32px;
  border-radius: 12px;
  background: rgba(59,130,246,.14);
  border:1px solid rgba(59,130,246,.28);
  display:grid;
  place-items:center;
  font-weight:1000;
  
}
.bd-coin img{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
}

.bd-meta{ min-width:0; }

.bd-sym{
  font-weight:1000;
  line-height:1.05;
}

.bd-units{
  font-size:12px;
  color: var(--muted);
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 48vw;
}

.bd-right{
  text-align:right;
  flex: 0 0 auto;
}

.bd-usd{ font-weight:1000; }

.bd-price{
  font-size:12px;
  color: var(--muted);
  margin-top:3px;
}

/* ===== Deposit: dropdown + address + QR + memo/tag ===== */

.actions.centered{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-top:12px;
}

.actions.centered .action-btn{
  width:160px;
}

.select{
  width:100%;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding:12px;
  border-radius:16px;
  outline:none;
}
.select:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.dep-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:12px;
}

.addr-wrap{
  display:flex;
  gap:10px;
  align-items:center;
}
.addr-wrap input{ flex:1; }

.qr-box{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  border-radius:16px;
  padding:12px;
}
.qr-slot{
  width:100%;
  aspect-ratio: 1 / 1;   /* makes it perfectly square */
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;       /* prevents image spill */
  background: rgba(255,255,255,.02);
}

.qr-slot img{
  width:100%;
  height:100%;
  object-fit:contain;   /* keeps full QR visible */
}


/* Small memo/tag input (not full-width bar) */
.memo-input{
  width: 60%;
  max-width: 260px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}
.memo-input:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* Withdraw validation errors */
.error-text{
  margin-top:6px;
  font-size:12px;
  color: rgba(251,113,133,.95);
}

/* ===== Register PAGE ===== */

/*Narrow Desktop Size */
@media (min-width: 900px) {
  .auth-card {
    max-width: 450px;   /* ← adjust 340–380 to taste */
  }
}


.qfs-bg{
  background: linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #0a0f18);
  min-height: 100svh;
}

header.app{
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,.78);
  border-bottom: 1px solid var(--stroke);
}

header.app .nav{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
}

header.app .brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius: 14px;
  border:1px solid transparent;
}
header.app .brand:hover{ background: rgba(255,255,255,.03); border-color: var(--stroke); }

header.app .logo{
  width:34px;
  height:34px;
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,.28);
  background: rgba(59,130,246,.14);
  display:grid;
  place-items:center;
  overflow:hidden;
}
header.app .logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header.app .right{ margin-left:auto; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  font-weight:800;
  cursor:pointer;
  transition:.16s ease;
  white-space:nowrap;
}
.btn:hover{ background: rgba(255,255,255,.04); border-color: var(--stroke2); }
.btn.primary{
  border-color: rgba(59,130,246,.55);
  background: rgba(59,130,246,.16);
}
.btn.xl{
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 900;
}

.hero-wrap{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 10px;
}
.hero{
  text-align:center;
  padding: 18px 0 10px;
}
.hero-kicker{
  letter-spacing:.22em;
  font-weight: 900;
  font-size: 12px;
  color: rgba(96,165,250,.95);
  margin-bottom: 10px;
}
.hero-title{
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -.02em;
}
.hero-sub{
  margin: 14px auto 0;
  max-width: 820px;
  color: rgba(255,255,255,.70);
  font-size: 16px;
  line-height: 1.6;
}

.auth-wrap{ padding: 8px 0 30px; }

.qfs-card.auth-card{
  width: min(720px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

  .qfs-badge{
    display:flex;
    align-items:center;
    gap:10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .3px;
    color: rgba(255,255,255,.82);
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    margin-bottom: 14px;
  }
  .qfs-badge .dot{
    width:8px; height:8px;
    border-radius:999px;
    background: rgba(96,165,250,.95);
    box-shadow: 0 0 0 4px rgba(59,130,246,.14);
  }

  /* === QFS badge: narrower (not full width) + dot centered === */
.qfs-card .qfs-badge{
  width: min(360px, 100%);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;       /* ✅ centers dot + text together */
  line-height: 1;
}

  /* ensure the dot shows and is centered */
  .qfs-card .qfs-badge .dot{
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(96,165,250,.95); /* same vibe as your theme */
    flex: 0 0 auto;
    display: inline-block;
    margin: 0;                   /* no weird offsets */
  }

.auth-form{ display:grid; gap:12px; }

.field{
  display:grid;
  gap:8px;
}
.field > span{
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,.75);
}

.input{
  width:100%;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding:12px 12px;
  border-radius:16px;
  outline:none;
}
.input:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.password-wrap{
  display:flex;
  gap:10px;
  align-items:center;
}
.ghost.eye{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.88);
  cursor:pointer;
}
.ghost.eye:hover{
  border-color: var(--stroke2);
  background: rgba(255,255,255,.04);
}

.strength{
  margin-top: 10px;
  border-radius: 999px;
  height: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.strength .bar{
  height:100%;
  width:0%;
  background: rgba(96,165,250,.85);
  transition: width .18s ease;
}
.strength-hints{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}


.form-status {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background .25s ease, border .25s ease, color .25s ease;
}

/* Grey (loading) */
.form-status.loading {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
}

/* Red (error) */
.form-status.error {
  background: rgba(255,107,107,.08);
  border: 1px solid rgba(255,107,107,.35);
  color: var(--bad);
}

/* Green (success) */
.form-status.success {
  background: rgba(0,208,138,.08);
  border: 1px solid rgba(0,208,138,.35);
  color: var(--ok);
}

.success-text {
  color: #22c55e;
  font-weight: 600;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  padding: 10px 12px;
  border-radius: 10px;
}


.auth-footer{
  margin-top: 14px;
  display:flex;
  gap: 6px;
  justify-content: center;
  align-items:center;
  font-size: 12px;
  color: var(--muted);
}
.auth-footer a{
  color: rgba(96,165,250,.95);
  font-weight: 900;
}

.trust-strip{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap:10px;
  justify-content: center;
}
.trust-item{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

footer{
  text-align:center;
  padding: 10px 0 22px;
  font-size: 12px;
  color: var(--muted);
}

/* Register submit button states */
#submitBtn.is-loading{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.70) !important;
}

#submitBtn.is-error{
  background: rgba(255,107,107,.12) !important;
  border-color: rgba(255,107,107,.45) !important;
  color: rgba(251,113,133,.95) !important;
}

#submitBtn.is-success{
  background: rgba(0,208,138,.14) !important;
  border-color: rgba(0,208,138,.45) !important;
  color: rgba(52,211,153,.95) !important;
}

/* ===== Login row polish ===== */

.login-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 2px;
}

.login-row .check{
  font-size: 13px;
  color: var(--muted);
}

.login-row .check input{
  width:16px;
  height:16px;
  accent-color: var(--brand);
}

.login-row .tiny-muted{
  font-size:13px;
  color: var(--brand);
  font-weight:500;
  transition: opacity .2s ease;
}

.login-row .tiny-muted:hover{
  opacity:.75;
}

/* ===== Connect Wallet page helpers ===== */
.wallet-page { align-items: start; }
.wallet-hero { text-align: left; }
.wallet-title{
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: .2px;
}
.wallet-sub{ margin: 10px 0 0; }

.wallet-grid-centered{
  max-width: 980px;
  margin: 14px auto 0;
}

/* Make wallet "buttons" look like cards but clickable */
.wallet-item{
  border: 1px solid rgba(255,255,255,.08);
}
.wallet-item.is-selected{
  border-color: rgba(123,214,255,.55);
  box-shadow: 0 10px 26px rgba(90,140,255,.18);
}

/* Logo fallback (if you don't have image files yet) */
.wallet-fallback{
  width: 55px;
  height: 55px;
  display: none;
  place-items: center;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 22px rgba(90,140,255,.14);
}

.wallet-panel.hidden{ display:none; }

/* Mobile: keep it centered and stacked nicely */
@media (max-width: 900px){
  .wallet-hero { text-align: center; }
  .wallet-panel { grid-column: 1 / -1 !important; }
}

@media (min-width:981px){
  .dep-grid{ grid-template-columns: 1.4fr .6fr; }
}

/* Mobile: 2 wallets per row */
@media (max-width: 700px) {
  .wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  /* prevent overflow from long names / padding */
  .wallet-tile {
    padding: 18px 12px;
    min-width: 0;
  }

  .wallet-name {
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
  }

  /* keep logos inside bounds */
  .wallet-ico img {
    max-width: 64px;
    max-height: 64px;
  }
}
/* Ensure modals never show on load */
    .modal[hidden]{ display:none !important; }

    /* Page-only styling (still in your theme vibe) */
    .qfs-stage{
  position:relative;
  border:none;
  background: transparent;
  border-radius:0;
  overflow:visible;
  min-height:320px;
  display:grid;
  place-items:center;
  box-shadow:none;
    }
    .qfs-stage::before{
      content:"";
      position:absolute;
      inset:-2px;
      background:
        radial-gradient(700px 260px at 20% 20%, rgba(59,130,246,.22), transparent 60%),
        radial-gradient(600px 260px at 80% 80%, rgba(96,165,250,.16), transparent 60%);
      pointer-events:none;
      opacity:.9;
    }
    .qfs-card-wrap{
      
      position:relative;
      width:min(560px, 92%);
      aspect-ratio: 16/10;
      border-radius: 20px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      overflow:hidden;
      display:grid;
      place-items:center;
      box-shadow: 0 22px 70px rgba(0,0,0,.45);
    }
    .qfs-card-wrap img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
      opacity:.95;
      
    }
    .qfs-ph{
      padding:18px;
      text-align:center;
      line-height:1.6;
      color: rgba(255,255,255,.86);
    }
    .qfs-ph .t{
      font-weight:1000;
      letter-spacing:.18em;
      font-size:12px;
      color: rgba(96,165,250,.95);
      margin-bottom:8px;
    }

    .qfs-lock{
      position:absolute;
  inset:0;
  border-radius:inherit;          /* match card radius */
  display:grid;
  place-items:center;

  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
    }
    .qfs-lock-box{
      border:none;
  background:transparent;
  border-radius:0;
  padding:16px;
  text-align:center;
    }
    .qfs-lock-icon{
      width:58px;height:58px;
      border-radius:18px;
      margin:0 auto 10px;
      display:grid;place-items:center;
      border:1px solid rgba(59,130,246,.28);
      background: rgba(59,130,246,.12);
      font-size:20px;
    }

    .qfs-kv{
      display:flex;
      justify-content:space-between;
      gap:10px;
      padding:10px 12px;
      border:1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.02);
      border-radius: 16px;
      margin-top: 12px;
    }
    .qfs-kv .k{ color: rgba(255,255,255,.62); font-size: 12px; }
    .qfs-kv .v{ font-weight: 1000; font-size: 18px; }

    .qfs-badge{
      font-size: 12px;
      font-weight: 1000;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.02);
    }
    .qfs-badge.good{ border-color: rgba(52,211,153,.30); background: rgba(52,211,153,.10); color: rgba(52,211,153,.95); }
    .qfs-badge.bad{ border-color: rgba(251,113,133,.30); background: rgba(251,113,133,.10); color: rgba(251,113,133,.95); }


/* RANDOM BOX OVERRIDES */
.qfs-stage{
   padding:0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.qfs-stage::before{
  content: none !important;
  display: none !important;
}

.qfs-card-wrap{
  position:relative;
  max-width: 560px;
  min-height: 260px;
   padding:0;
  background: transparent !important;  /* or transparent if you want */
  overflow:hidden;
  border:none !important;
  box-shadow:none !important;

}

@media (min-width: 768px) {
  .qfs-card-wrap {
    aspect-ratio: 16/10;
    min-height: unset;
  }
}


.qfs-lock-box{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important
}


.card-access-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

/* normalize both */
.card-access-header .panel-title{
  margin:0 !important;
  line-height:1 !important;
}

.card-access-header .qfs-badge{
  margin:0 !important;
  line-height:1 !important;
  display:inline-flex;
  align-items:center;
}

/* 1px optical alignment */
.card-access-header .qfs-badge{
  transform: translateY(-1px);
}

/* Details modal card preview */
.details-card{
  margin-bottom: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  position: relative;
}

.details-card img{
  width: 100%;
  display: block;
}

/* Locked state: blur + subtle dim + label */
.details-card.is-locked img{
  filter: blur(10px);
  transform: scale(1.06); /* prevents blur edges */
  opacity: .85;
}

.details-card.is-locked::after{
  content: "LOCKED";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 1000;
  letter-spacing: .18em;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.35);
}

/* QFS actions: consistent sizing across mobile */
.actions.three .action-btn{
  font-size: 14px;
  font-weight: 800;
}

/* prevent iOS from auto-shrinking button text */
html{ -webkit-text-size-adjust: 100%; }

/* Keep the promo countdown on one line + stable digit widths */
#promoCountdown{
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
#promoCountdown strong{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Compact promo badge */
#promoCountdown.promo-badge{
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(59,130,246,.10));
  text-align: center;
}

/* Top label */
#promoCountdown .promo-label{
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
  opacity: .9;
}

/* Prices in same row */
#promoCountdown .promo-price-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 14px;
  margin-bottom: 6px;
}

#promoCountdown .was{
  text-decoration: line-through;
  opacity: .6;
  font-weight: 700;
  font-size: 15px;
}

#promoCountdown .now{
  font-weight: 900;
  font-size: 20px;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.35);
}

/* Countdown row */
#promoCountdown .promo-timer{
  font-size: 12.5px;
  opacity: .85;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Mobile adjustments for promo box */
@media (max-width: 480px){

  #promoCountdown.promo-badge{
    padding: 10px 10px;
    border-radius: 12px;
  }

  #promoCountdown .promo-label{
    font-size: 13px;
    margin-bottom: 4px;
  }

  #promoCountdown .promo-price-row{
    gap: 10px;
    margin-bottom: 4px;
  }

  #promoCountdown .was{
    font-size: 14px;
  }

  #promoCountdown .now{
    font-size: 18px;
    padding: 2px 10px;
  }

  #promoCountdown .promo-timer{
    font-size: 11.5px;
  }

}
/* Contact page: make values consistent */
#contactTelegramBtn{
  width: auto !important;
}

/* Only center rows on contact page */
.contact-panel .qfs-kv{
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.nesara-success{
  margin:16px auto 0;
  padding:12px 16px;

  max-width:420px;
  text-align:center;

  border-radius:10px;

  background:linear-gradient(180deg,#0b3f2c,#082c20);
  border:1px solid rgba(0,255,150,.25);

  color:#3ef2a0;
  font-weight:500;
  font-size:14px;
  line-height:1.5;

  box-shadow:0 0 12px rgba(0,255,140,.15);
}

/* center NESARA instruction text */
#nesaraModal .nesara-info{
  margin-bottom:15px;
  line-height:1.6;
  font-size:15px;
}

/* add spacing above Access Code label */
#nesaraModal .field label{
  display:block;
  margin-top:5px;
  margin-bottom: 0px; 
}
/* center header text vertically with the X button */
#nesaraModal .modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* remove extra spacing that can offset vertical alignment */
#nesaraModal .modal-title{
  margin:0;
  line-height:1;
}
/* Access Hub buttons only */
#hubModal .actions .action-btn{
  font-family: 'Inter', sans-serif;  /* keep your site font */
  font-size: 15px;                   /* bigger text */
  font-weight: 800;                  /* lighter weight */
}
/* Close buttons only inside modals */
.modal-actions .action-btn{
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
}

/* ===== Withdraw: Fee popup ===== */
.fee-hero{
  font-size: 36px;
  font-weight: 1000;
  letter-spacing: -0.6px;
  text-align: center;
  padding: 10px 0 4px;
}

.fee-box{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 12px;
}

.fee-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 8px;
}

.fee-row + .fee-row{
  border-top: 1px solid rgba(255,255,255,.08);
}
