:root{
      /* Telegram-like light theme */
      --bg:#f5f7fb;
      --bg-card:#ffffff;
      --text:#0f172a;
      --muted:#6b7280;
      --border:#e6ecf1;
      --blue:#1e90ff;  /* Telegram-ish */
      --blue-600:#0f6fd1;
      --green:#10b981;
      --red:#ef4444;
      --radius:16px;
      --shadow:0 10px 24px rgba(15, 23, 42, .08);
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0; background:var(--bg); color:var(--text); font-family:"Vazirmatn", system-ui, -apple-system, Segoe UI, Tahoma, Arial, sans-serif;
      display:flex; align-items:center; justify-content:center; padding:16px;
    }

    .app{width:100%; max-width:520px; background:var(--bg-card); border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow); overflow:hidden}

    /* Header */
    .header{height:56px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; background:var(--blue); color:#fff}
    .h-left,.h-right{display:flex; align-items:center; gap:8px}
    .title{font-weight:700}
    .icon-btn{width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:rgba(255,255,255,.18); color:#fff; cursor:pointer; border:1px solid rgba(255,255,255,.24)}

    /* Progress */
    .progress{height:3px; background:#dbeafe}
    .progress > i{height:3px; width:0; background:#fff; display:block; transition:width .35s ease}

    /* Tabs */
    .tabs{min-height:calc(100svh - 56px - 3px - 68px); max-height:740px; overflow:auto}
    .tab{display:none; padding:18px 16px; animation:fade .35s ease}
    .tab.active{display:block}
    @keyframes fade{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}

    h1{font-size:18px; margin:6px 0 10px}
    p{font-size:14px; line-height:1.9; color:var(--text)}
    .muted{color:var(--muted)}

    /* Hero */
    .hero{display:grid; place-items:center; padding:20px 8px}
    .mark{font-size:56px; filter:drop-shadow(0 6px 14px rgba(30,144,255,.35)); animation:pulse 2s infinite}
    @keyframes pulse{0%{transform:scale(1)} 50%{transform:scale(1.08)} 100%{transform:scale(1)}}

    /* Cards */
    .cards{display:grid; gap:10px}
    .card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:14px}
    .card .k{font-weight:700; font-size:14px; margin-bottom:6px}
    .badge{display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid var(--border); background:#f8fafc; font-size:12px}
    .grid-2{display:grid; grid-template-columns:1fr 1fr; gap:10px}

    /* Wallet */
    .wallet{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:14px}
    .net{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
    .chip{padding:8px 12px; border-radius:999px; border:1px solid var(--border); background:#f8fafc; cursor:pointer; font-size:13px}
    .chip.active{background:var(--blue); border-color:var(--blue); color:#fff}
    .addr-row{display:flex; gap:8px; align-items:center}
    .addr{flex:1; padding:12px; border-radius:12px; border:1px solid var(--border); background:#f9fafb; font-family:ui-monospace, Menlo, Consolas, monospace; direction:ltr; overflow:auto; white-space:nowrap}
    .copy-btn{min-width:44px; height:44px; border-radius:12px; border:1px solid var(--border); background:#fff; cursor:pointer; display:grid; place-items:center}
    .wallet-note{font-size:12.5px; color:var(--muted); margin-top:8px}

    /* Buttons */
    .btn{height:44px; padding:0 14px; border-radius:12px; border:1px solid var(--border); background:#fff; cursor:pointer; font-weight:700}
    .btn.primary{background:var(--blue); border-color:var(--blue); color:#fff}
    .btn.ghost{background:#fff}

    /* Footer */
    .footer{height:68px; display:flex; gap:8px; align-items:center; padding:10px; border-top:1px solid var(--border); background:#fff}
    .grow{flex:1}

    /* Dots */
    .dots{display:flex; justify-content:center; gap:6px; margin:10px 0 0}
    .dot{width:8px; height:8px; background:#d1d5db; border-radius:999px}
    .dot.active{background:var(--blue)}

    /* Toast */
    .toast{position:fixed; inset-inline:0; bottom:18px; display:grid; place-items:center; pointer-events:none}
    .toast > div{background:#111827; color:#fff; padding:10px 14px; border-radius:10px; box-shadow:0 10px 24px rgba(0,0,0,.2); opacity:0; transform:translateY(10px); transition:all .25s}
    .toast.show > div{opacity:1; transform:none}

    @media (max-width:420px){
      .app{border-radius:16px}
    }