:root{
  --bg:#070b14;
  --panel:#0b1220;
  --panel2:#0f1b33;
  --text:#e9efff;
  --muted:#9fb0d6;
  --line:rgba(255,255,255,.08);
  --accent:#7c5cff;
  --accent2:#00d4ff;
  --danger:#ff4d6d;
  --success:#3cf27a;
  --radius:18px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(0,212,255,.12), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{width:min(1100px, 92vw); margin:0 auto}
.container.small{width:min(520px, 92vw)}
.muted{color:var(--muted)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.small{font-size:.9rem}
.mt8{margin-top:8px}
.mt12{margin-top:12px}
.mt16{margin-top:16px}
.mt20{margin-top:20px}
.w100{width:100%}

.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(11,18,32,.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px}
.logo-dot{
  width:12px; height:12px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(124,92,255,.15);
}
.links{display:flex; gap:14px; align-items:center}
.hamburger{display:none; background:transparent; border:0; padding:8px; border-radius:10px}
.hamburger span{display:block; width:22px; height:2px; background:var(--text); margin:5px 0; opacity:.85}
.mobile-nav{display:none; padding:10px 0 14px; border-top:1px solid var(--line)}
.mobile-nav a{display:block; padding:10px 0}
.hero{padding:56px 0 12px}
.hero-grid{display:grid; grid-template-columns: 1.15fr .85fr; gap:22px; align-items:stretch}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size:.9rem;
}
h1{font-size: clamp(2.1rem, 4vw, 3.3rem); line-height:1.05; margin:14px 0}
h2{font-size: clamp(1.6rem, 2.2vw, 2.2rem); margin:0 0 14px}
h3{margin:0 0 6px}
.h3{font-size:1.15rem}
.lead{font-size:1.08rem; color:var(--muted); max-width:54ch}
.grad{background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip:text; background-clip:text; color:transparent}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.section{padding:44px 0}
.section.alt{background: rgba(255,255,255,.02); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card.soft{box-shadow:none; background: rgba(255,255,255,.03)}
.card.glow{
  position:relative;
  overflow:hidden;
}
.card.glow::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 220px at 20% 10%, rgba(124,92,255,.35), transparent 55%),
              radial-gradient(500px 240px at 80% 35%, rgba(0,212,255,.22), transparent 60%);
  pointer-events:none;
}
.card > *{position:relative}
.card-head{display:flex; justify-content:flex-end}
.chip{font-size:.85rem; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:6px 10px; background: rgba(0,0,0,.18)}
.kpi-grid{display:grid; grid-template-columns: repeat(2,1fr); gap:12px; margin-top:8px}
.kpi{padding:12px; border:1px solid var(--line); border-radius:14px; background: rgba(0,0,0,.18)}
.kpi-label{color:var(--muted); font-size:.9rem}
.kpi-value{font-size:1.6rem; font-weight:800; margin-top:6px}
.divider{height:1px; background:var(--line); margin:16px 0}
.list{display:grid; gap:8px}
.list-row{display:flex; align-items:center; gap:10px; padding:10px; border:1px solid var(--line); border-radius:14px; background: rgba(0,0,0,.15)}
.right{margin-left:auto}
.dot{width:10px;height:10px;border-radius:50%}
.dot.eth{background:var(--accent)}
.dot.poly{background:var(--accent2)}
.dot.bnb{background:#ffce5c}

/* Home: dashboard preview card */
.preview-hero{display:grid; gap:12px; padding-top:6px}
.preview-icon{width:54px; height:54px; display:grid; place-items:center; border-radius:18px; border:1px solid var(--line); background: rgba(255,255,255,.04); color:var(--text)}
.preview-icon svg{width:34px; height:34px}
.preview-title{margin:0; font-size:1.1rem}
.preview-list{display:grid; gap:8px}
.preview-item{display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background: rgba(0,0,0,.14); line-height:1.25}
.preview-item .pico{width:22px; flex:0 0 22px; display:inline-flex; justify-content:center}

/* Home: how-it-works */
.tcenter{text-align:center}
.tone{border-color: rgba(255,255,255,.12)}
.tone-a{background: rgba(124,92,255,.10)}
.tone-b{background: rgba(0,212,255,.10)}
.tone-c{background: rgba(60,242,122,.10)}
.tone-d{background: rgba(255,206,92,.12)}
.tone-e{background: rgba(255,77,109,.10)}
.tone-f{background: rgba(255,255,255,.06)}
.tone .muted{color: rgba(255,255,255,.82)}

.with-icon{display:flex; align-items:center; gap:10px}
.cards-3{display:grid; grid-template-columns: repeat(3,1fr); gap:14px}
.cards-1{display:grid; gap:12px}
.split{display:grid; grid-template-columns: 1.1fr .9fr; gap:14px; align-items:start}
.feature-list{display:grid; gap:10px; margin-top:16px}
.feature{display:flex; align-items:center; gap:10px}
.check{display:inline-flex; width:22px; height:22px; border-radius:7px; justify-content:center; align-items:center; background: rgba(60,242,122,.15); border:1px solid rgba(60,242,122,.35); color: var(--success); font-weight:800}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px)}
.btn-primary{
  border-color: rgba(124,92,255,.35);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,212,255,.85));
  color:#061024;
  font-weight:800;
}
.btn-ghost{background: rgba(255,255,255,.03)}
.btn-lg{padding:12px 16px; border-radius:16px; font-size:1rem}
.icon-btn{border:1px solid var(--line); background: rgba(255,255,255,.03); color:var(--text); border-radius:12px; padding:8px 10px; cursor:pointer}

.input, select.input, textarea.input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
textarea.input{resize:vertical}
.label{display:block; margin-top:10px; margin-bottom:6px; color:var(--muted); font-size:.9rem}

.row{display:flex; gap:12px; align-items:end}
.row.gap8{gap:8px}
.col{flex:1}
.col.auto{flex:0}
.small-col{flex:0 0 180px}
.head-row{align-items:center}
.note{
  padding:12px; border-radius:14px;
  border:1px dashed rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  color:var(--muted);
  font-size:.95rem;
}

.site-footer{
  margin-top:40px;
  border-top:1px solid var(--line);
  background: rgba(11,18,32,.65);
}
.footer-grid{display:grid; grid-template-columns: 1.2fr .6fr .6fr; gap:16px; padding:26px 0}
.footer-brand{margin-bottom:10px}
.footer-links{display:grid; gap:10px; margin-top:10px}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}
.footnote{padding:12px 0 24px; border-top:1px solid var(--line); text-align:center}

.hidden{display:none}

.faq{border:1px solid var(--line); border-radius:14px; padding:12px; background: rgba(0,0,0,.12); margin-top:10px}
.faq summary{cursor:pointer; font-weight:700}

.dash{background: var(--bg)}
/* Lock the overall dashboard view to the viewport so the sidebar and main content
   can scroll independently. */
body.dash{height:100vh; overflow:hidden}
/* User dashboard font */
body.dash:not(.admin){font-family:"Times New Roman", Times, serif; font-size:16px}
body.dash.admin{font-family:"Times New Roman", Times, serif; font-size:15px}
.dash-topbar{position:sticky; top:0; z-index:50; background: rgba(11,18,32,.8); backdrop-filter: blur(12px); border-bottom:1px solid var(--line)}
.dash-topbar-inner{display:flex; justify-content:space-between; align-items:center; padding:12px 0}
.dash-menubar{display:none; position:sticky; top:62px; z-index:49; background: rgba(11,18,32,.92); border-bottom:1px solid var(--line)}
.dash-menubar-inner{display:flex; align-items:center; padding:10px 0}
.dash-wallet{display:flex; align-items:center; gap:10px}
.pill{display:inline-flex; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.04); font-size:.85rem; color:var(--muted)}
.pill.success{border-color: rgba(60,242,122,.35); color: var(--success)}
.pill.pending{border-color: rgba(255,206,92,.35); color:#ffce5c}
.pill.approved{border-color: rgba(60,242,122,.35); color: var(--success)}
.pill.declined{border-color: rgba(255,77,109,.35); color: var(--danger)}
.pill.initiated{border-color: rgba(0,212,255,.35); color: var(--accent2)}

.dash-shell{display:grid; grid-template-columns: 260px 1fr; height: calc(100vh - 62px)}
.dash-side{
  border-right:1px solid var(--line);
  background: rgba(11,18,32,.95);
  padding:14px 12px;
  position:sticky; top:62px; height: calc(100vh - 62px);
  overflow-y:auto;
  overscroll-behavior: contain;
}
.dash-main{padding:14px 12px 32px; overflow:auto; overflow-x:hidden}
.side-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px}
.side-title{color:var(--muted); font-size:.9rem}
.side-link{
  display:flex; padding:11px 12px; border-radius:14px; border:1px solid transparent;
  color:var(--muted); margin-top:8px;
}
.side-ico{display:inline-flex; width:20px; justify-content:center; margin-right:10px; flex:0 0 20px}

.brand-logo{height:24px; width:auto; margin-right:10px; border-radius:6px}
.side-link:hover{border-color: var(--line); color:var(--text); background: rgba(255,255,255,.03)}
.side-link.active{border-color: rgba(124,92,255,.28); color:var(--text); background: rgba(124,92,255,.10)}
.side-link.danger{color: #ff98aa}
.side-divider{height:1px; background: var(--line); margin:14px 0}

/* Mobile dashboard menu button */
.dash-menu-btn{display:none}

.dash-container{width:min(1100px, 100%); margin:0 auto; padding:0 8px; box-sizing:border-box}
.dash-head{margin: 8px 0 16px}
.grid-2{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px}

.toast{
  padding:12px 14px; border-radius:14px; border:1px solid var(--line);
  background: rgba(0,0,0,.18); margin-bottom:12px;
}
.toast.success{border-color: rgba(60,242,122,.25); color: var(--success)}
.toast.error{border-color: rgba(255,77,109,.25); color: var(--danger)}

.table-wrap{max-width:100%; overflow-y:auto; overflow-x:auto}
body.dash .table-wrap{overflow-x:hidden}
.dash .table{table-layout:fixed}
.dash .table th, .dash .table td{word-break:break-word}
.table{width:100%; border-collapse:separate; border-spacing:0 10px}
.table th{color:var(--muted); font-weight:600; text-align:left; font-size:.9rem; padding:0 10px}
.table td{padding:12px 10px; background: rgba(0,0,0,.14); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.table tr td:first-child{border-left:1px solid var(--line); border-radius:14px 0 0 14px}
.table tr td:last-child{border-right:1px solid var(--line); border-radius:0 14px 14px 0}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .cards-3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .links{display:none}
  .hamburger{display:block}
  .mobile-nav.show{display:block}
  .dash-menubar{display:block}
  .dash-shell{grid-template-columns: 1fr; height: calc(100vh - 62px - 52px)}
  /* Off-canvas drawer: covers ~half screen, not full */
  .dash-side{
    position:fixed;
    left:12px;
    right:auto;
    top: 124px;
    height: calc(100vh - 144px);
    width: min(340px, 72vw);
    border:1px solid var(--line);
    border-radius:16px;
    transform: translateX(-120%);
    transition: transform .2s ease;
    overflow-y:auto;
    z-index:60;
    background: rgba(11,18,32,1);
  }
  .dash-side.show{transform: translateX(0)}
  .dash-main{padding-top:10px}
  .grid-2{grid-template-columns:1fr}
  .row{flex-direction:column; align-items:stretch}
  .small-col{flex:1}
  .dash-menu-btn{display:inline-flex}

  /* Hide the 'Connected' status pill on mobile (user dashboard) */
  body.dash:not(.admin) .dash-wallet .pill{display:none}
}


.progress{height:10px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.progress-bar{height:100%;background:rgba(255,255,255,.7);border-radius:999px}


/* Dashboard content fitting + readable sizing */
body.dash{font-size:15px}
body.dash:not(.admin){font-size:15px}
body.dash.admin{font-size:14.5px}
body.dash .card, body.dash .box{max-width:100%}
body.dash .table th{font-size:.85rem; padding:0 8px}
body.dash .table td{padding:10px 8px; font-size:.92rem}

/* Make columns/cards less wide so they fit without horizontal scroll */
body.dash .row{gap:10px}
body.dash .small-col{flex:0 0 160px}
@media (max-width: 980px){
  body.dash .small-col{flex:1}
}

/* Slim scrollbars (dashboards) */
body.dash *{scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent}
body.dash *::-webkit-scrollbar{width:6px;height:6px}
body.dash *::-webkit-scrollbar-track{background:transparent}
body.dash *::-webkit-scrollbar-thumb{background: rgba(255,255,255,.22); border-radius:999px}
body.dash *::-webkit-scrollbar-thumb:hover{background: rgba(255,255,255,.32)}



/* About page colored cards */
.cards-2{display:grid; grid-template-columns: repeat(2,1fr); gap:14px}
.about-cards .card{overflow:hidden}
.about-card p{margin:0; line-height:1.6}
.card.bg-a1{background:#0f172a; color:#f8fafc}
.card.bg-a1 .muted{color:rgba(248,250,252,.8)}
.card.bg-a2{background:#052e16; color:#ecfdf5}
.card.bg-a3{background:#1f2937; color:#f9fafb}
.card.bg-a4{background:#312e81; color:#eef2ff}
.card.bg-a5{background:#7c2d12; color:#fff7ed}
.card.bg-a6{background:#0c4a6e; color:#e0f2fe}
.card.bg-a2 a,.card.bg-a3 a,.card.bg-a4 a,.card.bg-a5 a,.card.bg-a6 a,.card.bg-a1 a{color:inherit; text-decoration:underline}

.footer-social{display:flex; align-items:center; gap:10px}
.footer-social .icon{display:inline-flex; align-items:center; justify-content:center}

/* Thinner scrollbars (dashboards + general) */
*{scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.55) transparent}
*::-webkit-scrollbar{height:6px; width:6px}
*::-webkit-scrollbar-thumb{background:rgba(148,163,184,.55); border-radius:999px}
*::-webkit-scrollbar-track{background:transparent}
