:root {
  --bg: #040a14; --panel: #0a1626; --panel-2: #0e1f36; --line: #15385a; --text: #eaf6ff; --muted: #8aa9c4; --accent: #1ec8ff; --accent-2: #0a8cff; --neg: #fb7185; --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: radial-gradient(900px 520px at 85% -10%, rgba(30, 200, 255, .14), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(10, 140, 255, .09), transparent 60%), var(--bg);
  background-attachment: fixed; color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; object-fit: contain; display: block; }
svg { max-width: 100%; }
.chart { width: 100%; height: auto; display: block; max-height: 200px; }
.brand img.logo-img { height: 36px !important; width: 36px !important; border-radius: 8px; }
.fcard-logo { height: 34px !important; width: 34px !important; }
.eye svg, .tx-icon svg, .nav-item svg { width: 20px !important; height: 20px !important; stroke: currentColor; fill: none; stroke-width: 2; }

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mono { font-family: monospace; font-size: .8rem; opacity: .85; }
.link { background: none; border: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

.shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; padding: 22px 16px; background: rgba(4, 10, 20, 0.92); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; padding: 4px 10px 22px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.nav-item:hover, .nav-item.active { background: rgba(30, 200, 255, 0.12); border-color: rgba(30, 200, 255, 0.4); color: var(--accent); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); object-fit: cover; }
.uname { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { flex: 1; padding: 34px 44px 70px; width: 100%; max-width: 1000px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.card-intro { margin-bottom: 20px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: 0.15s; }
.btn:hover { border-color: var(--accent); } .btn.small { padding: 7px 12px; font-size: .9rem; }
.btn.primary { background: var(--accent); color: #040a14; border-color: var(--accent); } .btn.primary:hover { background: #1cb0e0; }
.btn.danger { background: #e74c3c; color: white; border-color: #e74c3c; } .icon-btn { background: #374151; color: white; border: 1px solid #4b5563; }

.hero-card { border-radius: 22px; padding: 40px 24px; border: 1px solid rgba(30, 200, 255, 0.4); background: linear-gradient(135deg, #0a2a52, #071a35 70%); text-align: center; margin-bottom: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.hero-label { color: #7fdcff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 200, 255, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(30, 200, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 200, 255, 0); } }
.reveal { background: none; border: none; color: inherit; font: inherit; cursor: pointer; margin: 14px 0 8px; padding: 6px 22px; border-radius: 18px; }

/* FIXED: Reduced min font size and added word-break for mobile */
.bal-text { display: block; font-size: clamp(2rem, 8vw, 4.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; word-break: break-word; overflow-wrap: anywhere; }
.bal-text.masked { color: #5fb8d8; letter-spacing: 0.2em; text-shadow: 0 0 26px rgba(30, 200, 255, 0.35); }
.reveal-hint { color: var(--muted); font-size: 0.85rem; display: flex; justify-content: center; align-items: center; gap: 8px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.tile-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.tile-value { font-size: 1.8rem; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; word-break: break-word; overflow-wrap: anywhere; }
.tile-value.pos { color: var(--accent); } .tile-value.neg { color: var(--neg); } .tile-sub { color: var(--muted); font-size: 0.84rem; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; } .panel-head h3 { font-size: 1.1rem; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.g-val { font-size: 1.6rem; font-weight: 800; margin: 4px 0; font-variant-numeric: tabular-nums; word-break: break-word; overflow-wrap: anywhere;}
.g-val.pos { color: var(--accent); } .g-val.neg { color: var(--neg); }
.winrate { display: flex; align-items: center; gap: 12px; margin-top: 20px; } .winbar { flex: 1; height: 10px; border-radius: 99px; background: rgba(251, 113, 133, 0.25); overflow: hidden; } .winfill { height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width 0.6s ease; }
.chart .base { stroke: var(--line); stroke-width: 1; } .chart .bar.pos { fill: var(--accent); } .chart .bar.neg { fill: var(--neg); } .chart .bar.zero { fill: var(--line); } .chart .axis { fill: var(--muted); font-size: 12px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.search { position: relative; width: 300px; max-width: 100%; } .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px !important; height: 18px !important; stroke: var(--muted); fill: none; stroke-width: 2; } .search input { width: 100%; padding: 10px 36px 10px 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; outline: none; } .search input:focus { border-color: var(--accent); }

.day { display: flex; align-items: center; gap: 14px; margin: 24px 0 12px; color: var(--accent); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; } .day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.tx { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.tx-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tx.in .tx-icon { background: rgba(30, 200, 255, 0.12); stroke: var(--accent); } .tx.out .tx-icon { background: rgba(251, 113, 133, 0.1); stroke: var(--neg); }
.tx-main { flex: 1; min-width: 0; } .tx-title { font-weight: 700; display: flex; align-items: center; gap: 8px; } .tx-sub { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-right { text-align: right; flex: none; } .tx-amt { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; word-break: break-word; overflow-wrap: anywhere;}
.tx.in .tx-amt { color: var(--accent); } .tx.out .tx-amt { color: var(--neg); } .tx-time { color: var(--muted); font-size: 0.82rem; }
.tx-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.76rem; color: var(--muted); flex-wrap: wrap; } .tx-idlabel { text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; opacity: 0.75; } .idbtn { font-size: 0.82rem; padding: 3px 10px; border-radius: 7px; color: #d9f3ff; background: rgba(4, 10, 20, 0.75); border: 1px solid var(--line); cursor: pointer; } .idbtn:hover { border-color: var(--accent); color: var(--accent); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); } .tag.warn { color: #fde68a; border-color: rgba(253, 230, 138, 0.35); }

.card-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; } .card-visual { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 380px; } .card-scene { width: 100%; height: 240px; perspective: 1000px; margin-bottom: 15px; } .fcard { width: 100%; height: 100%; position: relative; transition: transform 0.8s; transform-style: preserve-3d; } .fcard.is-flipped { transform: rotateY(180deg); } .fcard-face { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: #1e3a8a; background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.3); overflow: hidden; } .fcard-back { transform: rotateY(180deg); background: linear-gradient(135deg, #06b6d4, #0891b2 70%); } .fcard-top { display: flex; justify-content: space-between; align-items: center; } .fcard-brand { font-weight: 800; letter-spacing: 0.22em; font-size: 0.85rem; color: #d6f4ff; text-transform: uppercase; } .fcard-mid { display: flex; align-items: center; gap: 14px; } .fcard-chip { width: 44px; height: 33px; border-radius: 7px; background: linear-gradient(135deg, #c7f1ff, #5cc8f0 50%, #a4e6ff); } .fcard-nfc { width: 26px !important; height: 26px !important; stroke: rgba(220, 244, 255, 0.8); fill: none; stroke-width: 1.8; } .fcard-num { font-family: monospace; font-size: 1.15rem; letter-spacing: 0.14em; } .fcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; } .fcard-lbl { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(220, 244, 255, 0.7); } .fcard-name { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; } .fcard-stripe { position: absolute; top: 30px; left: 0; width: 100%; height: 50px; background: #000; } .fcard-signature { margin-top: 50px; background: #e5e7eb; height: 45px; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; } .fcard-cvv-box { background: white; color: black; padding: 5px 10px; border-radius: 4px; font-family: monospace; display: flex; gap: 5px; align-items: center; } .fcard-cvv-label { font-size: 10px; color: #6b7280; } .fcard-cvv { font-size: 18px; font-weight: bold; } .fcard-logo-back { font-size: 24px; font-weight: bold; opacity: 0.3; text-align: right; margin-top: auto; position: absolute; bottom: 20px; right: 20px; } .card-actions { display: flex; gap: 12px; }
.details dl { margin: 0; } .details .row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); } .details .row:last-child { border-bottom: none; } .details dt { color: var(--muted); font-size: 0.9rem; } .details dd { font-weight: 600; text-align: right; margin: 0; } .details .sub { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.limit-input-group { display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 400px; } .limit-input-group:focus-within { border-color: var(--accent); } .currency-prefix { display: flex; align-items: center; justify-content: center; padding: 0 14px; background: var(--panel-2); border-right: 1px solid var(--line); font-size: 18px; color: var(--muted); } .limit-input-group input { flex: 1; background: transparent; border: none; padding: 12px 14px; color: var(--text); font: inherit; outline: none; min-width: 0; } .limit-input-group .btn { border-radius: 0; border: none; border-left: 1px solid var(--line); }
.limits { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .limit { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; } .limit-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; } .limit-name { font-weight: 700; font-size: 0.95rem; } .limit-val { color: var(--muted); font-size: 0.85rem; font-weight: 600; word-break: break-word; overflow-wrap: anywhere;} .limit-bar { height: 10px; border-radius: 99px; background: rgba(30, 200, 255, 0.1); overflow: hidden; margin-bottom: 10px; } .limit-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 0.4s ease; } .limit-fill.high { background: var(--neg); } .limit-fill.warn { background: #fbbf24; } .limit-sub { color: var(--muted); font-size: 0.8rem; } .limit.static .limit-big { font-size: 1.5rem; font-weight: 800; margin: 6px 0; word-break: break-word; overflow-wrap: anywhere;}
.where { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .where-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; } .where-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(30, 200, 255, 0.12); border: 1px solid rgba(30, 200, 255, 0.35); font-size: 22px; } .where-body { flex: 1; min-width: 0; } .where-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .badge { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid; margin-left: auto; } .badge.ok { color: var(--accent); border-color: rgba(30, 200, 255, .4); background: rgba(30, 200, 255, .1); } .badge.soon { color: #fde68a; border-color: rgba(253, 230, 138, .4); background: rgba(253, 230, 138, .08); } .badge.no { color: var(--neg); border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); } .where-desc { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.empty { padding: 30px; text-align: center; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--line); border-radius: 14px; } .copyable { cursor: pointer; transition: 0.2s; } .copyable:hover { color: var(--accent) !important; text-shadow: 0 0 8px rgba(30, 200, 255, 0.4); }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 15px; }
  .sidebar .brand { padding: 0; }
  .nav-group { flex-direction: row; width: auto; gap: 5px; margin-top: 10px; width: 100%; }
  .nav-item { width: auto; padding: 8px 12px; flex: 1; justify-content: center; }
  .side-user { margin: 0; padding: 0; border: none; }
  .side-user .uname { display: none; }
  .card-layout { grid-template-columns: 1fr; }
  .hero-card { padding: 30px 15px; }
  .content { padding: 20px 15px 50px; }
}
