/* FastPay app pages: light Heleket-like look, FastPay accent. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f5f6f8; --card: #ffffff; --line: #e7e9ee;
  --text: #0f172a; --muted: #64748b; --accent: #0284c7; --accent-soft: #e0f2fe;
  --green: #16a34a; --red: #dc2626;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: var(--text); }
.wordmark span { color: var(--accent); }

/* auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
             padding: 36px 32px; width: 100%; max-width: 420px; }
.auth-card .wordmark { display: block; text-align: center; margin-bottom: 22px; }
.tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px;
               font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
               font-size: 15px; outline: none; background: var(--card); color: var(--text); }
.field input:focus { border-color: var(--accent); }
.btn { display: inline-block; width: 100%; padding: 12px; border: 0; border-radius: 10px;
       background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: default; }
.form-error { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 10px; }

/* dashboard */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 26px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.userbox { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.userbox button { border: 1px solid var(--line); background: var(--card); color: var(--muted);
                  padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.h1 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card .cap { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card .big { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.section { margin-top: 26px; }
.section h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.netpick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.netpick button { border: 1px solid var(--line); background: var(--card); padding: 9px 14px;
                  border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.netpick button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.receive { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.receive img { border: 1px solid var(--line); border-radius: 12px; }
.addr-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.addr-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
        background: var(--bg); border: 1px solid var(--line); padding: 11px 14px; border-radius: 10px;
        word-break: break-all; max-width: 520px; }
.copy-btn { border: 1px solid var(--line); background: var(--card); padding: 10px 16px; border-radius: 10px;
            font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); white-space: nowrap; }
.copy-btn.copied { border-color: var(--green); color: var(--green); }
.hint { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
table.tx { width: 100%; border-collapse: collapse; }
table.tx th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
              padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tx td { padding: 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.amt-pos { color: var(--green); font-weight: 600; }
.amt-neg { color: var(--red); font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; padding: 26px 0; text-align: center; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
        background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .topbar-in { flex-wrap: wrap; gap: 10px; } .userbox { margin-left: auto; } }

/* assets list */
.coin-dot { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: inline-flex;
            align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.asset-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.asset-row:last-child { border-bottom: 0; }
.asset-name { flex: 1; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.asset-name small { color: var(--muted); font-weight: 400; }
.asset-qty { font-size: 14px; font-weight: 600; }
.pill-soon { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px;
             background: var(--bg); color: var(--muted); font-weight: 600; border: 1px solid var(--line); }

/* sub navigation (second bar under the top bar) */
.subnav { background: var(--card); border-bottom: 1px solid var(--line); }
.subnav-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; gap: 22px; overflow-x: auto; }
.subnav a { padding: 13px 2px; font-size: 14px; font-weight: 600; color: var(--muted);
            border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* two column layout (heleket personal overview) */
.cols { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* assets table */
.assets-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.assets-head h2 { margin: 0; }
.assets-head label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
table.assets { width: 100%; border-collapse: collapse; }
table.assets th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
                  padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.assets td { padding: 12px 8px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.assets tr:last-child td { border-bottom: 0; }
.coin-cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.qty-cell b { display: block; font-weight: 700; }
.qty-cell small { color: var(--muted); }
.alloc-bar { width: 84px; height: 5px; border-radius: 4px; background: var(--bg); margin-top: 5px; overflow: hidden; }
.alloc-bar i { display: block; height: 100%; background: #94a3b8; border-radius: 4px; }
.act-btns { display: flex; gap: 6px; }
.act-btns button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
                   background: var(--card); cursor: pointer; font-size: 14px; color: var(--text);
                   display: inline-flex; align-items: center; justify-content: center; }
.act-btns button:hover { border-color: var(--accent); color: var(--accent); }
.act-btns button:disabled { opacity: .35; cursor: default; }
.act-btns button:disabled:hover { border-color: var(--line); color: var(--text); }

/* notes */
.note { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px 16px;
        font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; display: flex; gap: 10px; }
.note .ic { flex: none; }
.note-inline { margin-top: 14px; font-size: 13.5px; border-radius: 10px; padding: 12px 14px; display: none; }
.note-inline.warn { display: block; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.note-inline.ok { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* coin / network picker */
.picker { position: relative; max-width: 560px; }
.picker-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
              border: 1px solid var(--line); border-radius: 12px; background: var(--card);
              cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); }
.picker-btn .grow { flex: 1; text-align: left; }
.picker-btn .bal { color: var(--text); font-weight: 700; }
.picker-btn .chev { color: var(--muted); }
.picker-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
               background: var(--card); border: 1px solid var(--line); border-radius: 12px;
               box-shadow: 0 12px 32px rgba(15,23,42,.12); padding: 10px; display: none; }
.picker-menu.open { display: block; }
.picker-search { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
                 font-size: 14px; outline: none; margin-bottom: 8px; }
.picker-list { max-height: 260px; overflow-y: auto; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px;
               cursor: pointer; font-size: 14px; font-weight: 600; }
.picker-item:hover { background: var(--bg); }
.picker-item .grow { flex: 1; }
.picker-item .r { color: var(--muted); font-weight: 500; font-size: 13px; }
.picker-item.disabled { opacity: .5; cursor: default; }
.form-label { display: block; font-size: 15px; font-weight: 700; margin: 22px 0 4px; }
.form-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.text-input { width: 100%; max-width: 560px; padding: 12px 14px; border: 1px solid var(--line);
              border-radius: 12px; font-size: 15px; outline: none; background: var(--card); color: var(--text); }
.text-input:focus { border-color: var(--accent); }
.amount-wrap { position: relative; max-width: 560px; }
.amount-wrap .all { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
                    border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 13px; }
.btn-row { display: flex; gap: 12px; margin-top: 26px; max-width: 560px; }
.btn-secondary { flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
                 background: var(--card); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-primary2 { flex: 1; padding: 12px; border: 0; border-radius: 10px; background: var(--accent);
                color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-primary2:disabled { opacity: .5; cursor: default; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px;
              font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.swap-circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
               background: var(--card); font-size: 16px; cursor: default; margin: 10px 0; }
.tx-mini { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tx-mini:last-child { border-bottom: 0; }
.tx-mini .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: inline-flex;
               align-items: center; justify-content: center; flex: none; }
.tx-mini .grow { flex: 1; }
.tx-mini .t { font-weight: 600; }
.tx-mini .d { color: var(--muted); font-size: 12px; }
.tx-mini .amt { text-align: right; font-weight: 700; }
.tx-mini .amt small { display: block; color: var(--muted); font-weight: 400; }
