:root {
  /* Core palette - dark crypto theme with USDT green accent */
  --bg: #0b0f14;
  --bg-elevated: #121821;
  --surface: #161d28;
  --surface-2: #1d2632;
  --border: #232e3c;
  --text: #e7edf3;
  --text-muted: #8a97a8;
  --text-dim: #5b6776;

  --primary: #26a17b;       /* USDT green */
  --primary-600: #1f8e6c;
  --primary-700: #18785a;
  --primary-soft: rgba(38, 161, 123, 0.12);

  --accent: #f0b90b;        /* gold for highlights */
  --danger: #e5484d;
  --warning: #f5a524;
  --success: #30a46c;
  --info: #4493f8;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);

  --maxw: 480px;            /* mobile-app container width */
  --nav-h: 64px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ------------------------------------------------------------------ Layout */
.app-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--nav-h) + 24px);
}

.page {
  padding: 16px 16px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.topbar .brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.header-help {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 42px;
  min-height: 44px;
  padding: 3px 5px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.header-help span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-shadow: 0 0 6px color-mix(in srgb, var(--primary) 55%, transparent);
  animation: header-help-label-glow 2.8s ease-in-out infinite;
}
.header-help i { color: var(--text-muted); font-size: 18px; transition: color .2s ease; }
.header-help:hover { color: var(--text); background: color-mix(in srgb, var(--primary) 10%, transparent); transform: translateY(-1px); }
.header-help:hover i { color: var(--primary); }
.header-help:active { transform: translateY(0) scale(.96); }
.header-help:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@keyframes header-help-label-glow {
  0%, 100% { text-shadow: 0 0 4px color-mix(in srgb, var(--primary) 40%, transparent); }
  50% { text-shadow: 0 0 10px color-mix(in srgb, var(--primary) 85%, transparent), 0 0 2px color-mix(in srgb, var(--primary) 60%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .header-help, .header-help span, .header-help i { animation: none; transition: none; }
  .header-help span { text-shadow: 0 0 6px color-mix(in srgb, var(--primary) 55%, transparent); }
}

@media (max-width: 520px) {
  .topbar { padding-inline: 12px; }
  .topbar-actions { gap: 5px; }
  .header-help { min-width: 38px; min-height: 42px; padding-inline: 3px; }
  .header-help span { font-size: 10px; }
  .header-help i { font-size: 16px; }
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.icon-btn .badge {
  position: absolute; top: -9px; right: -2px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--danger); color: #fff;
  border-radius: 9px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
isolation: isolate;
transform: translateZ(0);
animation: badge-breathe 2s ease-in-out infinite;
-webkit-tap-highlight-color: transparent;
}

/* Stronger red breathing effect */
@keyframes badge-breathe {
  0%, 100% {
    box-shadow:
      0 5px 14px rgba(220, 53, 69, 0.35),
      0 0 0 2px rgba(220, 53, 69, 0.30),
      0 0 0 0 rgba(220, 53, 69, 0.45);
  }

  50% {
    box-shadow:
      0 7px 22px rgba(220, 53, 69, 0.65),
      0 0 0 3px rgba(220, 53, 69, 0.45),
      0 0 0 7px rgba(220, 53, 69, 0.15);
  }
}

/* Expanding red pulse ring */
@keyframes badge-ring {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  12% {
    opacity: 0.65;
  }

  68%, 100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
/* ------------------------------------------------------------------ Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.card.tight { padding: 14px; }

.balance-card {
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  border: none;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.balance-card .label { opacity: 0.85; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.balance-card .amount { font-size: 34px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.5px; }
.balance-card .sub { opacity: 0.85; font-size: 13px; }
.balance-actions { display: flex; gap: 10px; margin-top: 18px; }
.balance-actions .btn { flex: 1; }

/* ------------------------------------------------------------------ Stats grid */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.stat .stat-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .stat-value { font-size: 20px; font-weight: 700; margin-top: 4px; }
.stat .stat-value.green { color: var(--primary); }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px;
  background: var(--surface-2); color: var(--text);
  transition: transform 0.05s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-light { background: rgba(255,255,255,0.16); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 22px; font-size: 16px; }

/* ------------------------------------------------------------------ Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; font-weight: 500; }
.form-control, select.form-control, textarea.form-control {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-dim); }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
textarea.form-control { resize: vertical; min-height: 90px; }

.input-file {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 18px; text-align: center; color: var(--text-muted);
  background: var(--bg-elevated); cursor: pointer;
}

/* ------------------------------------------------------------------ Section headings */
.section-title { font-size: 17px; font-weight: 700; margin: 4px 0 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.section-head a { color: var(--primary); font-size: 13px; font-weight: 600; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}

/* ------------------------------------------------------------------ Lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px;
}
.list-item .li-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.list-item .li-body { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; font-size: 14px; }
.list-item .li-sub { color: var(--text-muted); font-size: 12px; }
.list-item .li-amount { font-weight: 700; font-size: 15px; }
.li-amount.credit { color: var(--primary); }
.li-amount.debit { color: var(--danger); }

/* ------------------------------------------------------------------ Badges */
.badge-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-success { background: rgba(48,164,108,0.16); color: var(--success); }
.badge-warning { background: rgba(245,165,36,0.16); color: var(--warning); }
.badge-danger { background: rgba(229,72,77,0.16); color: var(--danger); }
.badge-secondary { background: var(--surface-2); color: var(--text-muted); }

/* ------------------------------------------------------------------ Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(18, 24, 33, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 50;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-dim); font-size: 11px; font-weight: 500;
  flex: 1; padding: 6px 0;
}
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav .mine-btn {
  margin-top: -1px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(38,161,123,0.5);
  flex: 0 0 auto;
}
.bottom-nav .mine-btn svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ Flash */
.flash-wrap { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
  animation: slideDown 0.3s ease;
}
.flash-success { background: var(--success); color: #fff; }
.flash-error { background: var(--danger); color: #fff; }
.flash-info { background: var(--info); color: #fff; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------------ Mining visual */
.miner {
  text-align: center; padding: 8px 0 4px;
}
.miner-orb {
  width: 180px; height: 180px; margin: 16px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--primary-soft), transparent 70%);
  display: grid; place-items: center; position: relative;
}
.miner-orb .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--primary); opacity: 0.25;
}
.miner-orb .ring.r2 { inset: 18px; opacity: 0.4; }
.miner-orb .ring.r3 { inset: 36px; opacity: 0.6; }
.miner-orb.active .ring { animation: pulse 2s ease-in-out infinite; }
.miner-orb.active .ring.r2 { animation-delay: 0.3s; }
.miner-orb.active .ring.r3 { animation-delay: 0.6s; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.06); opacity: 0.7; } }
.miner-orb .hash { font-size: 26px; font-weight: 800; color: var(--primary); }
.miner-orb .hash small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ------------------------------------------------------------------ Power / plan cards */
.power-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.power-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary-soft); }
.power-card .pc-head { display: flex; align-items: center; justify-content: space-between; }
.power-card .pc-name { font-weight: 700; font-size: 16px; }
.power-card .pc-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.power-card .pc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.power-card .pc-meta .m { background: var(--bg-elevated); border-radius: 8px; padding: 8px 10px; }
.power-card .pc-meta .m span { display: block; font-size: 11px; color: var(--text-muted); }
.power-card .pc-meta .m b { font-size: 14px; }

/* ------------------------------------------------------------------ Misc */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--text-dim); }
.empty svg { width: 48px; height: 48px; margin-bottom: 10px; opacity: 0.5; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.tag-copy { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-elevated); border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; font-family: monospace; font-size: 14px; }

.profile-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.menu-list { display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--border); }
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-icon { color: var(--text-muted); }
.menu-item .chev { margin-left: auto; color: var(--text-dim); }

.currency-switch { display: flex; gap: 6px; }
.currency-switch button { padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; font-weight: 600; }
.currency-switch button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.topbar-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.currency-dropdown{
    position:relative;
}

.currency-select{
    height:42px;
    min-width:90px;
    padding:0 36px 0 14px;

    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;

    background:#111827;
    color:#fff;

    font-size:14px;
    font-weight:600;

    outline:none;
    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;
}

.currency-dropdown::after{
    content:"▼";

    position:absolute;
    right:12px;
    top:50%;

    transform:translateY(-50%);

    font-size:10px;
    color:#94a3b8;

    pointer-events:none;
}

.currency-select:focus{
    border-color:#22c55e;
}
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 80; display: none; align-items: flex-end; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: var(--maxw); background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: slideUp 0.25s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal h3 { margin-bottom: 14px; }

/* ==================================================================== */
/*  USER PORTAL COMPONENTS (classes used across the current views)      */
/* ==================================================================== */

/* ---- Generic inputs (forms that omit .form-control) ---- */
.bank-search-input{
    width:100%;
    margin-bottom:10px;
}
.panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.panel select,
.panel textarea,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.panel input:focus, .panel select:focus, .panel textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.panel input::placeholder, .form-group input::placeholder { color: var(--text-dim); }
.panel input:disabled, .panel select:disabled,
.form-group input:disabled { opacity: 0.6; cursor: not-allowed; }
.panel textarea, .form-group textarea { resize: vertical; min-height: 90px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; min-width: 0; }

/* ---- Page headings ---- */
.page-head { margin-bottom: 16px; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.page-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.back-link:hover { color: var(--primary); }

/* ---- Balance card (new structure) ---- */
.balance-card-top { display: flex; align-items: center; justify-content: space-between; }
.balance-label { opacity: 0.9; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.balance-amount { font-size: 36px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.6px; }
.balance-sub { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0.92; font-size: 13px; }
.balance-sub span { display: inline-flex; align-items: center; gap: 5px; }
.balance-sub svg { opacity: 0.9; }

/* ---- Chips ---- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; }
.chip-on { background: rgba(255,255,255,0.18); color: #fff; }
.balance-card .chip-on { background: rgba(255,255,255,0.22); color: #fff; }
.chip-off { background: var(--surface-2); color: var(--text-muted); }
/* When chip sits on a dark surface (mine/referrals/power) */
.power-card .chip-on, .mine-power-name .chip-on, .team-item .chip-on { background: var(--primary-soft); color: var(--primary); }

/* ---- Quick actions grid ---- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; margin-top: 16px;}
.quick-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.05s ease, border-color 0.15s ease;
}
.quick-tile:active { transform: scale(0.97); }
.quick-tile:hover { border-color: var(--primary); }
.quick-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.quick-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ---- Stat cards (new) ---- */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.stat-card .stat-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .stat-value { font-size: 22px; font-weight: 800; margin-top: 5px; letter-spacing: -0.4px; }
.stat-card .stat-value.green { color: var(--primary); }
.stat-card .stat-meta { color: var(--text-dim); font-size: 12px; margin-top: 3px; }

/* ---- Panels ---- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-title svg { color: var(--text-muted); }
.panel-link { color: var(--primary); font-size: 13px; font-weight: 600; }

/* ---- Transaction lists ---- */
.tx-list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.tx-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tx-item:last-child { border-bottom: none; }
.tx-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; }
.tx-in { background: var(--primary-soft); color: var(--primary); }
.tx-out { background: rgba(229,72,77,0.14); color: var(--danger); }
.tx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tx-title { font-weight: 600; font-size: 14px; }
.tx-desc { color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amount { font-weight: 700; font-size: 15px; white-space: nowrap; }
.tx-amount.pos { color: var(--primary); }
.tx-amount.neg { color: var(--danger); }
.tx-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---- Dashboard referral CTA ---- */
.dashboard-referral-cta {
  width: 100%; min-height: 56px; margin: 0 0 16px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--primary); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, #000));
  color: #fff; font-size: 15px; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 22%, transparent);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-referral-cta:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 30%, transparent); }
.dashboard-referral-cta:active { transform: translateY(0); filter: brightness(0.96); }
.dashboard-referral-icon { display: grid; place-items: center; }
.dashboard-referral-arrow { display: inline-flex; margin-left: 2px; transition: transform 0.15s ease; }
.dashboard-referral-cta:hover .dashboard-referral-arrow { transform: translateX(3px); }

/* ---- Empty states ---- */
.empty-state { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-dim); }

.withdrawal-locked {
    gap: 12px;
    margin-bottom: 16px;
}

.withdrawal-locked .empty-icon {
    color: var(--warning);
    background: rgba(245,165,36,0.12);
    border: 1px solid rgba(245,165,36,0.22);
}

.withdrawal-locked .panel-title {
    margin: 0;
}

.withdrawal-locked .muted {
    max-width: 420px;
    margin: 0 0 4px;
    line-height: 1.6;
}

/* ---- Badges (status) ---- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; text-transform: capitalize; }
.badge-success { background: rgba(48,164,108,0.16); color: var(--success); }
.badge-warning { background: rgba(245,165,36,0.16); color: var(--warning); }
.badge-danger { background: rgba(229,72,77,0.16); color: var(--danger); }
.badge-secondary { background: var(--surface-2); color: var(--text-muted); }

/* ---- Alerts ---- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.alert-warn { background: rgba(245,165,36,0.12); border-color: rgba(245,165,36,0.3); color: var(--warning); }
.alert-danger { background: rgba(229,72,77,0.12); border-color: rgba(229,72,77,0.3); color: var(--danger); }
.alert-info { background: rgba(68,147,248,0.12); border-color: rgba(68,147,248,0.3); color: var(--info); }

/* ---- Mining stage ---- */
.mine-stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 18px; margin-bottom: 16px; text-align: center; }
.rig { position: relative; width: 150px; height: 150px; margin: 4px auto 18px; display: grid; place-items: center; }
.rig-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--primary-soft), transparent 68%); }
.rig-core { position: relative; z-index: 2; color: var(--primary); }
.rig-ring { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0.35; }
.mine-stage[data-active="1"] .rig-ring { animation: rigpulse 2s ease-in-out infinite; }
.mine-stage.claiming .rig-core { animation: rigspin 0.6s ease; }
@keyframes rigpulse { 0%,100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.12); opacity: 0.7; } }
@keyframes rigspin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.mine-power-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 18px; }

.claim-btn {
  width: 100%; max-width: 280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px; border: none; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 22px rgba(38,161,123,0.45);
  transition: transform 0.06s ease, opacity 0.15s ease;
}
.claim-btn:active { transform: scale(0.97); }
.claim-btn:disabled { background: var(--surface-2); color: var(--text-dim); box-shadow: none; cursor: not-allowed; }
.claim-btn-label { font-size: 16px; font-weight: 700; }
.claim-btn-reward { font-size: 13px; opacity: 0.9; }

.mine-meters { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; text-align: left; }
.meter-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.meter-head span:first-child { color: var(--text-muted); }
.meter-head span:last-child { font-weight: 600; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--primary); transition: width 0.4s ease; }
.meter-fill.warn { background: var(--accent); }

.mining-active
.mining-glow
.mining-pulse
.spinner

.spinner{
    width:18px;
    height:18px;
    display:inline-block;
    margin-right:8px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.25);
    border-top-color:#fff;
    animation:mine-spin .8s linear infinite;
}

@keyframes mine-spin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

.mining-glow{

    box-shadow:
        0 0 10px rgba(0,255,170,.4),
        0 0 25px rgba(0,255,170,.5),
        0 0 45px rgba(0,255,170,.35);

}

.mining-pulse{

    animation:
        miningPulse 1s ease infinite;

}

@keyframes miningPulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.04);

    }

    100%{

        transform:scale(1);

    }

}

.mining-active{

    cursor:not-allowed;

    opacity:.85;

    position:relative;

    overflow:hidden;

}

.mining-active::after{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:60%;

    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    animation:
        miningSweep 1.2s linear infinite;

}

@keyframes miningSweep{

    to{

        left:160%;

    }

}

/* ---- Node check ---- */
.node-check { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.node-info { flex: 1; min-width: 180px; }
.node-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.node-status.ready { color: var(--primary); }
.node-status.wait { color: var(--text-muted); }
.node-check .btn { flex-shrink: 0; }

/* ---- Upsell ---- */
.upsell { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upsell-body { flex: 1; min-width: 180px; }
.upsell-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }

/* ---- Segmented control + payment channels ---- */
.seg-control { display: flex; gap: 6px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.seg { flex: 1; padding: 9px 8px; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.seg.active { background: var(--primary); color: #fff; }
.channel-pane[hidden] { display: none; }
.method-select { margin-top: 0; }
/* Home page */
.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-top {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.leaderboard-user {
    flex: 1;
    text-align: center;
    background: var(--surface);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.06);
}

.leaderboard-user.first {
    transform: scale(1.05);
    border-color: rgba(38,161,123,.45);
}

.leaderboard-user.second,
.leaderboard-user.third {
    opacity: .95;
}

.lb-rank {
    font-size: 24px;
    margin-bottom: 6px;
}

.lb-name {
    font-weight: 700;
    font-size: 14px;
}

.lb-value {
    color: var(--green);
    font-weight: 700;
    margin-top: 4px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* =========================
   PAYMENT DETAILS
========================= */

.pay-to{
    margin-top:20px;
}

.pay-to-label{
    display:block;
    margin-bottom:12px;
    font-size:13px;
    font-weight:600;
    color:#94a3b8;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.payment-details{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.payment-block{
    background:#111827;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    padding:14px;
    transition:.2s ease;
}

.payment-block:hover{
    border-color:rgba(255,255,255,.15);
}

.payment-block-label{
    font-size:12px;
    font-weight:600;
    color:#94a3b8;
    margin-bottom:8px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.payment-block-value{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-width:0;
}

.payment-block-value span{
    flex:1;
    font-size:15px;
    font-weight:600;
    color:#ffffff;
    line-height:1.4;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* =========================
   COPY BUTTON
========================= */

.copy-detail-btn{
    width:32px;
    height:32px;
    min-width:32px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
    background:rgba(255,255,255,.08);
    color:#fff;
    transition:.2s ease;
}

.copy-detail-btn:hover{
    background:rgba(255,255,255,.15);
    transform:translateY(-1px);
}

.copy-detail-btn:active{
    transform:scale(.96);
}

/* =========================
   CHANNEL BUTTONS
========================= */

/* .seg-control{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.seg{
    border:none;
    cursor:pointer;
    padding:10px 16px;
    border-radius:12px;
    background:#1f2937;
    color:#cbd5e1;
    font-weight:600;
    transition:.2s ease;
}

.seg:hover{
    background:#374151;
}

.seg.active{
    background:#2563eb;
    color:#fff;
} */

/* =========================
   SUMMARY BOX
========================= */

.quote-box{
    margin-top:20px;
     background:
        linear-gradient(
            135deg,
            rgba(46,204,113,.08),
            rgba(46,204,113,.02)
        );

    border:1px solid rgba(46,204,113,.2);
     box-shadow:
        0 0 0 1px rgba(46,204,113,.08),
        0 8px 24px rgba(0,0,0,.25);
    border-radius:16px;
    padding:16px;  
}

.quote-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
}

.quote-row:not(:last-child){
    border-bottom:1px solid rgba(255,255,255,.06);
}

.quote-row span{
    color:#94a3b8;
}

.quote-row strong{
    color:#fff;
}

.quote-row.total strong{
    color:#60a5fa;
}

/* =========================
   FILE UPLOAD
========================= */

.file-drop{
    position:relative;
    border:2px dashed rgba(255,255,255,.15);
    border-radius:16px;
    padding:30px 20px;
    text-align:center;
    cursor:pointer;
    overflow:hidden;
}

.file-drop input[type="file"]{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.file-drop-text{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    color:#94a3b8;
    font-size:14px;
}

.form-hint{
    display:block;
    margin-top:8px;
    font-size:12px;
    color:#94a3b8;
}

/* =========================
   PROOF PREVIEW
========================= */

#proofPreviewWrap{
    margin-top:15px;
}

#proofPreview{
    width:100%;
    max-height:300px;
    object-fit:contain;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
}

/* =========================
   BUY SUMMARY
========================= */

.buy-summary{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.buy-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.buy-row:last-child{
    border-bottom:none;
}

.buy-row span{
    color:#94a3b8;
}

.buy-row strong{
    color:#fff;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 576px){

    .payment-block-value{
        align-items:flex-start;
    }

    .payment-block-value span{
        font-size:14px;
    }

    .copy-detail-btn{
        width:38px;
        height:38px;
        min-width:38px;
    }

    .seg-control{
        flex-direction:row;
    }

    .seg{
        width:100%;
    }
}
.copy-field input { width: 100%; }
.copy-btn { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.copy-btn.copied { background: var(--primary); color: var(--primary-600); border-color: var(--primary); }
.fa-solid {color: var(--primary-600);}
.link-btn { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; padding: 0; }

/* ---- File drop ---- */
.file-drop { position: relative; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 22px 16px; text-align: center; background: var(--bg-elevated); color: var(--text-muted); cursor: pointer; transition: border-color 0.15s ease; }
.file-drop:hover { border-color: var(--primary); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.file-drop-text { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.file-drop.has-file { border-color: var(--primary); color: var(--primary); }

/* ---- Withdraw quote ---- */
.quote-box { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; }
.quote-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.quote-row span { color: var(--text-muted); }
.quote-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.quote-row.total strong { color: var(--primary); }

/* --------------------------------------------------
   Withdrawal Fee Card
-------------------------------------------------- */
.fee-card {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px var(--primary-soft);
}

.fee-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fee-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.fee-card-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.fee-amount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.fee-card-note {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.fee-card-note strong {
  color: var(--primary);
  font-weight: 700;
}

/* highlighted payment destination */
.fee-card .pay-to {
  margin-top: 12px;
}

.fee-card .pay-to-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}


/* subtle glow when active */
.fee-card.active {
  animation: feeGlow 2s ease-in-out infinite;
}

@keyframes feeGlow {
  0%,100% {
    box-shadow: 0 0 0 1px var(--primary-soft);
  }
  50% {
    box-shadow:
      0 0 0 1px var(--primary-soft),
      0 0 18px rgba(38,161,123,.18);
  }
}

.fee-card {
  position: relative;
  overflow: hidden;
}

.fee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.account-detail-block{
    margin-bottom:15px;
    padding:14px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(255,255,255,.03);
}

.account-detail-label{
    font-size:12px;
    text-transform:uppercase;
    opacity:.7;
    margin-bottom:8px;
}

.account-detail-value-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.account-detail-value{
    font-size:15px;
    font-weight:600;
    word-break:break-all;
}

.copy-btn{
    flex-shrink:0;
}

/* ==========================================
   SUPPORT PAGE
========================================== */

.support-page{
    max-width:700px;
    margin:0 auto;
    padding:20px;
}

.support-card{
    background:linear-gradient(
        180deg,
        rgba(23,33,53,.95),
        rgba(15,22,36,.95)
    );
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:24px;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.support-header{
    text-align:center;
    margin-bottom:25px;
}

.support-header h2{
    margin:0 0 10px;
    font-size:28px;
    font-weight:700;
    color:#fff;
}

.support-header p{
    margin:0;
    color:#9aa4b5;
    font-size:15px;
    line-height:1.6;
}

.support-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-top:25px;
}

.support-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px;
    border-radius:14px;
    text-decoration:none;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.06);
    transition:.25s ease;
    color:#fff;
}

.support-item:hover{
    transform:translateY(-3px);
    background:rgba(33,150,243,.12);
    border-color:rgba(33,150,243,.4);
}

.support-item i{
    font-size:24px;
    width:28px;
    text-align:center;
}

.support-item span{
    font-size:15px;
    font-weight:600;
}

.support-footer{
    margin-top:25px;
    padding:15px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    gap:10px;
    color:#cbd5e1;
}

.support-footer i{
    color:#22c55e;
}

/* Mobile */

@media (max-width:640px){

    .support-page{
        padding:15px;
    }

    .support-grid{
        grid-template-columns:1fr;
    }

    .support-header h2{
        font-size:24px;
    }

    .support-item{
        padding:14px;
    }
}
/* ---- Referrals ---- */
.referral-share .form-label { display: block; margin-bottom: 8px; }
.ref-code-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.team-list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.team-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.team-item:last-child { border-bottom: none; }
.team-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.team-name { font-weight: 600; font-size: 14px; }
.team-meta { color: var(--text-muted); font-size: 12px; }

/* ---- Profile ---- */
.profile-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-handle { color: var(--text-muted); font-size: 14px; }

/* ---- Mining power grid ---- */
.power-grid { display: flex; flex-direction: column; gap: 14px; }
.power-card-head { display: flex; align-items: center; justify-content: space-between; }
.power-name { font-size: 17px; font-weight: 700; }
.power-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary-soft); }
.power-price { font-size: 26px; font-weight: 800; color: var(--primary); margin: 8px 0 14px; letter-spacing: -0.5px; }
.power-specs { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.power-specs li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-muted); }
.power-specs li svg { color: var(--primary); flex-shrink: 0; }
.power-specs li span { color: var(--text); }

/* ---- Purchase summary + wallets ---- */
.buy-summary { display: flex; flex-direction: column; gap: 2px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.buy-row:last-child { border-bottom: none; }
.buy-row span { color: var(--text-muted); }
.wallet-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wallet-row:last-child { border-bottom: none; }
.wallet-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); width: 100%; }
.wallet-addr { flex: 1; min-width: 0; font-family: monospace; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg-elevated); border-radius: 6px; padding: 8px 10px; }

/* ---- Notifications ---- */
.notif-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.notif-item { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.notif-item.unread { border-color: var(--primary); }
.notif-item.unread::before { content: ""; position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.notif-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-title { font-weight: 600; font-size: 14px; }
.notif-text { color: var(--text-muted); font-size: 13px; }
.notif-time { color: var(--text-dim); font-size: 12px; }

.quick-amounts{
    display:flex;
    gap:10px;
    margin-top:12px;
}

.quick-btn{
    border:none;
    padding:10px 16px;
    border-radius:10px;
    background: var(--primary);
    color:#fff;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.quick-btn:hover{
    opacity:.9;
}

.quick-max{
    background: var(--success);
}

/* ---- Pager ---- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pager-info { color: var(--text-muted); font-size: 13px; }

/* ==================================================================== */
/*  RESPONSIVE                                                          */
/* ==================================================================== */
@media (max-width: 360px) {
  .quick-grid { gap: 8px; }
  .quick-icon { width: 38px; height: 38px; }
  .balance-amount { font-size: 30px; }
  .stat-card .stat-value { font-size: 19px; }
}
/* On tablet/desktop the app stays a centered mobile-app column, but we
   add breathing room and a subtle frame around the shell. */
@media (min-width: 768px) {
  body { padding: 24px 0; }
  .app-shell { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; min-height: calc(100vh - 48px); box-shadow: var(--shadow); }
  .topbar { border-radius: 0; }
}
@media (min-width: 1024px) {
  body { padding: 32px 0; }
}
/* Fade Up Animation */
.fade-up{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .7s ease, transform .7s ease;
    will-change:opacity, transform;
}

.fade-up.show{
    opacity:1;
    transform:translateY(0);
}
.bank-picker-trigger{
    width:100%;
    height:52px;
    border:none;
    border-radius:12px;
    padding:0 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.15s ease;
}

.bank-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.bank-modal.active{
    display:flex;
}

.bank-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(4px);
}

.bank-modal-content{
    position:relative;
    width:100%;
    max-width:520px;
    background:#10151d;
    border-radius:20px;
    overflow:hidden;
    z-index:1;

    box-shadow:
        0 20px 50px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.06);

    animation:bankModalIn .2s ease;
}

.bank-modal-header{
    padding:20px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.bank-modal-header h3{
    margin:0;
}

.bank-search-wrap{
    padding:16px;
}

.bank-search-input{
    width:100%;
    height:48px;
    border-radius:12px;
    padding:0 14px;
}

.bank-list{
    max-height:350px;
    overflow-y:auto;
}

.bank-item{
    width:100%;
    text-align:left;
    padding:14px 20px;
    background:none;
    border:none;
    color:#fff;
    cursor:pointer;
    transition:.15s ease;
}

.bank-item:hover{
    background:rgba(255,255,255,.05);
}

.bank-item:focus{
    background:rgba(255,255,255,.05);
}

.bank-item[hidden]{
    display:none !important;
}

.bank-picker-empty{
    margin:0;
    padding:18px 20px;
    color:var(--text-muted, #a8b7df);
    text-align:center;
}

.bank-picker-trigger:focus-visible,
.bank-item:focus-visible{
    outline:2px solid var(--primary, #21f58b);
    outline-offset:2px;
}

@keyframes bankModalIn{
    from{
        opacity:0;
        transform:translateY(10px) scale(.98);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

/* =========================
   RECEIPT MODAL
========================= */

  /* Legacy withdrawal receipt modal styles are retained below only for shared receipt primitives. */

.receipt-modal {
    --receipt-bg: #06132d;
    --receipt-card: rgba(7, 21, 48, .96);
    --receipt-row-icon: #14284b;
    --receipt-text: #f5f7ff;
    --receipt-muted: #a8b7df;
    --receipt-line: rgba(151, 174, 220, .15);
    --receipt-green: #21f58b;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    color: var(--receipt-text);
    font-family: inherit;
}
.receipt-modal.active { display: flex; }
.receipt-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 18, .82);
    backdrop-filter: blur(9px);
}
.receipt-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 584px);
    max-height: min(94dvh, 920px);
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(88, 121, 181, .24);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% -12%, rgba(0, 218, 128, .13), transparent 40%),
        var(--receipt-bg);
    box-shadow: 0 28px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.035);
    animation: receiptPop .22s ease-out;
}
@keyframes receiptPop {
    from { opacity: 0; transform: translateY(10px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.receipt-header {
    flex: 0 0 auto;
    padding: 25px 24px 8px;
    text-align: center;
}
.receipt-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 17px;
    border: 3px solid #39ff9a;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #0cf28a, #008d63 70%, #075341);
    color: #fff;
    font-size: 49px;
    box-shadow: 0 0 0 8px rgba(25, 231, 131, .08), 0 0 32px rgba(16, 235, 128, .42), inset 0 0 16px rgba(255,255,255,.14);
}
.receipt-header h3 {
    margin: 0;
    color: var(--receipt-text);
    font-size: clamp(24px, 4.7vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.7px;
}
.receipt-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 9px auto 0;
}
.receipt-subtitle span {
    height: 1px;
    flex: 1;
    max-width: 145px;
    background: #415273;
}
.receipt-subtitle p {
    margin: 0;
    color: var(--receipt-muted);
    font-size: clamp(15px, 2.8vw, 21px);
    white-space: nowrap;
}
.receipt-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 24px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(111,143,191,.4) transparent;
}
.receipt-amount {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 20px 12px 23px;
    margin-bottom: 17px;
    border: 1px solid rgba(37, 247, 157, .8);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(0, 224, 139, .18), rgba(5, 56, 73, .55) 55%, rgba(3, 24, 52, .7));
    box-shadow: inset 0 0 24px rgba(0, 231, 142, .07), 0 0 18px rgba(0, 221, 131, .08);
}
.receipt-amount-label {
    display: block;
    margin-bottom: 5px;
    color: #dce8ff;
    font-size: clamp(15px, 3vw, 21px);
}
.receipt-amount-value {
    color: var(--receipt-green);
    font-size: clamp(25px, 6vw, 43px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
}
.receipt-details {
    padding: 8px 19px;
    border: 1px solid rgba(83, 116, 174, .23);
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(11, 29, 62, .97), rgba(5, 17, 40, .97));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.receipt-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--receipt-line);
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--receipt-row-icon);
    color: #e2eaff;
    font-size: 21px;
}
.receipt-row-label {
    min-width: 0;
    color: var(--receipt-muted);
    font-size: clamp(13px, 2.7vw, 17px);
    line-height: 1.35;
}
.receipt-row strong {
    min-width: 0;
    color: var(--receipt-text);
    text-align: right;
    font-size: clamp(13px, 2.7vw, 17px);
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: normal;
}
.receipt-row-destination { align-items: start; }
.receipt-row-destination .receipt-row-icon { margin-top: 1px; }
.receipt-status-icon {
    color: #fff;
    background: linear-gradient(145deg, #16e985, #087a58);
    box-shadow: 0 0 13px rgba(22,233,133,.2);
}
.receipt-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
}
.status-success { color: #a4ffd0; background: rgba(13, 204, 113, .17); border-color: rgba(31, 245, 139, .55); }
.status-pending { color: #ffd68a; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.status-failed { color: #ffb4b4; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }
.receipt-footer {
    flex: 0 0 auto;
    padding: 16px 24px 20px;
    background: linear-gradient(180deg, transparent, rgba(1, 11, 29, .25));
}
.receipt-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 2px solid #27e991;
    border-radius: 999px;
    background: transparent;
    color: var(--receipt-text);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.receipt-back-button i { font-size: 22px; }
.receipt-back-button:hover { background: rgba(25, 230, 133, .1); box-shadow: 0 0 20px rgba(25,230,133,.12); }
.receipt-back-button:active { transform: scale(.99); }
.receipt-back-button:focus-visible { outline: 3px solid rgba(39,233,145,.4); outline-offset: 3px; }
.receipt-modal[aria-hidden="true"] { visibility: visible; }
body.modal-open { overflow: hidden; }

/* Respect the site's existing data-theme light-mode toggle. */
[data-theme="light"] .receipt-modal,
html[data-theme="light"] .receipt-modal,
body[data-theme="light"] .receipt-modal {
    --receipt-bg: #f8fafc;
    --receipt-card: #fff;
    --receipt-row-icon: #e9f0fa;
    --receipt-text: #17243b;
    --receipt-muted: #64748b;
    --receipt-line: rgba(100, 116, 139, .2);
    --receipt-green: #08a95b;
}
[data-theme="light"] .receipt-card,
html[data-theme="light"] .receipt-card,
body[data-theme="light"] .receipt-card {
    background: radial-gradient(ellipse at 50% -12%, rgba(0, 218, 128, .1), transparent 40%), var(--receipt-bg);
    border-color: rgba(100,116,139,.24);
    box-shadow: 0 24px 70px rgba(15,23,42,.22);
}
[data-theme="light"] .receipt-amount,
html[data-theme="light"] .receipt-amount,
body[data-theme="light"] .receipt-amount {
    background: linear-gradient(145deg, #e6fff2, #f2fffa 60%, #e7f7ff);
}
[data-theme="light"] .receipt-amount-label,
html[data-theme="light"] .receipt-amount-label,
body[data-theme="light"] .receipt-amount-label { color: #334155; }
[data-theme="light"] .receipt-details,
html[data-theme="light"] .receipt-details,
body[data-theme="light"] .receipt-details {
    background: #fff;
    box-shadow: 0 5px 20px rgba(15,23,42,.045);
}
[data-theme="light"] .receipt-row-icon,
html[data-theme="light"] .receipt-row-icon,
body[data-theme="light"] .receipt-row-icon { color: #28436d; }
[data-theme="light"] .receipt-status-icon,
html[data-theme="light"] .receipt-status-icon,
body[data-theme="light"] .receipt-status-icon { color: #fff; }
[data-theme="light"] .receipt-footer,
html[data-theme="light"] .receipt-footer,
body[data-theme="light"] .receipt-footer { background: transparent; }

@media (max-width: 480px) {
    .receipt-modal { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
    .receipt-card { width: 100%; max-height: min(96dvh, 900px); border-radius: 24px; }
    .receipt-header { padding: 16px 16px 4px; }
    .receipt-check { width: 70px; height: 70px; margin-bottom: 11px; font-size: 36px; border-width: 2px; }
    .receipt-content { padding: 12px 12px 0; }
    .receipt-amount { padding: 14px 8px 16px; margin-bottom: 12px; border-radius: 20px; }
    .receipt-details { padding: 5px 12px; border-radius: 21px; }
    .receipt-row { grid-template-columns: 38px minmax(76px, .85fr) minmax(0, 1.25fr); gap: 9px; padding: 10px 0; }
    .receipt-row-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
    .receipt-footer { padding: 12px 12px 14px; }
    .receipt-back-button { min-height: 48px; font-size: 14px; }
}
@media (max-width: 360px) {
    .receipt-header h3 { font-size: 23px; letter-spacing: -.4px; }
    .receipt-subtitle { gap: 8px; }
    .receipt-row { grid-template-columns: 34px minmax(70px, .8fr) minmax(0, 1.2fr); gap: 7px; }
    .receipt-row-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
    .receipt-row-label, .receipt-row strong { font-size: 12px; }
    .receipt-details { padding-right: 9px; padding-left: 9px; }
}
@media (max-height: 740px) {
    .receipt-header { padding-top: 12px; }
    .receipt-check { width: 62px; height: 62px; margin-bottom: 9px; font-size: 32px; }
    .receipt-content { padding-top: 10px; }
    .receipt-amount { padding-top: 12px; padding-bottom: 13px; margin-bottom: 10px; }
    .receipt-row { padding-top: 8px; padding-bottom: 8px; }
    .receipt-row-icon { width: 36px; height: 36px; }
    .receipt-footer { padding-top: 10px; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .receipt-card { animation: none; }
    .receipt-back-button { transition: none; }
}
/* ---- Purchase payment proof / bank notice ---- */
.purchase-pending-alert {
  gap: 12px;
  align-items: flex-start;
}
.purchase-pending-alert > div,
.bank-payment-notice > div {
  display: grid;
  gap: 4px;
}
.purchase-pending-alert strong,
.bank-payment-notice strong {
  font-weight: 800;
}
.purchase-pending-alert span,
.bank-payment-notice span {
  line-height: 1.55;
}
.bank-payment-notice {
  margin-top: 14px;
  margin-bottom: 0;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(245,165,36,.08);
}
.purchase-proof-disabled {
  opacity: .72;
}
.purchase-proof-disabled .file-drop {
  cursor: not-allowed;
}
.purchase-proof-disabled input[type="file"] {
  cursor: not-allowed;
}
button:disabled {
  cursor: not-allowed;
}
/* Pending Payment Alert */
.purchase-pending-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 0;
    padding: 14px 16px;
    background: linear-gradient(
        135deg,
        rgba(0, 214, 111, 0.14),
        rgba(0, 180, 255, 0.07)
    );
    border: 1px solid rgba(0, 214, 111, 0.35);
    border-left: 4px solid #00d66f;
    border-radius: 12px;
    color: #dfffee;
    box-shadow: 0 4px 18px rgba(0, 214, 111, 0.08);
}

.purchase-pending-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 214, 111, 0.15);
    color: #00e879;
}

.purchase-pending-alert > div:last-child {
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
}

.purchase-pending-alert strong {
    display: block;
    margin-bottom: 4px;
    color: #29f58d;
    font-size: 14px;
    font-weight: 700;  
}

@media (max-width: 480px) {
    .purchase-pending-alert {
        padding: 12px 13px;
        gap: 10px;
    }

    .purchase-pending-alert > div:last-child {
        font-size: 12.5px;
    }

    .purchase-pending-alert strong {
        font-size: 13.5px;
    }
}

/* OPay Bank Transfer Warning */
.purchase-bank-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 174, 0, 0.16), rgba(255, 94, 0, 0.08));
    border: 1px solid rgba(255, 174, 0, 0.45);
    border-left: 4px solid #ffb000;
    border-radius: 12px;
    color: #fff4d6;
    box-shadow: 0 4px 18px rgba(255, 174, 0, 0.08);
}

.purchase-bank-notice-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 174, 0, 0.18);
    color: #ffb000;
}

.purchase-bank-notice-content {
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
}

.purchase-bank-notice-content strong {
    display: block;
    margin-bottom: 4px;
    color: #ffc247;
    font-size: 14px;
    font-weight: 700;
}

.purchase-bank-notice[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .purchase-bank-notice {
        padding: 12px 13px;
        gap: 10px;
    }

    .purchase-bank-notice-content {
        font-size: 12.5px;
    }

    .purchase-bank-notice-content strong {
        font-size: 13.5px;
    }
}

/* ------------------------------------------------------------------ Auth form inputs */
.tm-input-wrap {
  position: relative;
  width: 100%;
}

.tm-input-wrap .form-control {
  min-height: 48px !important;
  padding-left: 50px !important;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.tm-input-wrap .form-control.tm-has-left-icon {
    padding-left: 52px;
}

.tm-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  transition: color 0.18s ease;
}

.tm-input-icon svg {
  width: 20px;
  height: 20px;
}

.tm-input-wrap:focus-within .form-control {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.tm-input-wrap:focus-within .tm-input-icon {
  color: var(--primary);
}

.tm-input-wrap .form-control[aria-invalid="true"] {
  border-color: var(--danger);
}

.tm-input-wrap .form-control[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.tm-password-wrap .form-control {
  padding-right: 52px;
}

.tm-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  transform: translateY(-50%);
  z-index: 3;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.tm-password-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tm-password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.tm-password-toggle .tm-eye-icon,
.tm-password-toggle .tm-eye-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tm-password-toggle[aria-pressed="true"] {
  color: var(--primary);
}

.tm-input-wrap select.form-control {
  padding-right: 40px;
}

@media (max-width: 380px) {
  .tm-input-wrap .form-control {
    min-height: 46px;
  }

  .tm-input-icon {
    left: 13px;
  }

  .tm-input-wrap .form-control.tm-has-left-icon {
    padding-left: 43px;
  }

  .tm-password-wrap .form-control {
    padding-right: 50px;
  }
}

.tm-password-toggle .tm-eye-hidden { display: none; }
.tm-password-toggle[aria-pressed="true"] .tm-eye-visible { display: none; }
.tm-password-toggle[aria-pressed="true"] .tm-eye-hidden { display: inline-flex; }


/* ========================================================================
   TetherMine Phase 5 — UX & Frontend Modernization
   Layered on top of the existing design system; no framework required.
   ======================================================================== */

:root {
  --tm-focus: 0 0 0 3px var(--primary-soft);
  --tm-space-1: 6px;
  --tm-space-2: 10px;
  --tm-space-3: 14px;
  --tm-space-4: 18px;
  --tm-space-5: 24px;
  --tm-content-max: 760px;
}

/* Accessible keyboard skip link */
.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 10001;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

#main-content:focus { outline: none; }

/* More consistent app rhythm */
.page { max-width: var(--tm-content-max); margin: 0 auto; }
.page-head { padding-top: 2px; margin-bottom: 20px; }
.page-title { line-height: 1.2; }
.page-sub { max-width: 62ch; line-height: 1.6; }

.card, .panel, .stat-card, .quick-tile, .power-card, .mine-stage {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.panel:hover,
.stat-card:hover,
.power-card:hover {
  border-color: color-mix(in srgb, var(--border) 65%, var(--primary));
}

.panel-head { gap: 12px; }
.panel-link { white-space: nowrap; }

/* Better focus treatment for all interactive controls */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Dashboard */
.balance-card {
  position: relative;
  overflow: hidden;
}
.balance-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.balance-actions { position: relative; z-index: 1; }
.quick-tile { min-height: 104px; justify-content: center; }
.quick-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-card { min-height: 100px; justify-content: center; }
.stat-card .stat-value { overflow-wrap: anywhere; }

/* Better transaction rows */
.tx-item {
  min-width: 0;
  gap: 12px;
  transition: background-color .15s ease, transform .15s ease;
}
.tx-item:hover { background: var(--bg-elevated); }
.tx-body { min-width: 0; }
.tx-title, .tx-desc { overflow-wrap: anywhere; }
.tx-amount { white-space: nowrap; }

/* Status chips and badges */
.badge, .chip { white-space: nowrap; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.form-hint { line-height: 1.5; }
.panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.panel select,
.panel textarea,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select,
.form-group textarea {
  min-height: 46px;
}
.form-row { align-items: flex-start; }

/* Segmented controls are easier to scan and tap */
.seg { min-height: 42px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.seg:not(.active):hover { background: var(--surface); color: var(--text); }

/* Copy controls */
.copy-field {display: flex; min-width: 0; gap: 10px; }
.copy-field input { overflow: hidden; text-overflow: ellipsis; }
.copy-btn {margin-top: 6px;}
.copy-btn, .link-btn { min-height: 36px; }
.copy-btn:hover { border-color: var(--primary); }

/* Upload drop zones */
.file-drop {
  min-height: 116px;
  display: grid;
  place-items: center;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.file-drop.has-file { background: var(--primary-soft); }

/* Mining experience */
.mine-stage {
  overflow: hidden;
}
.mine-stage:hover { box-shadow: var(--shadow); }
.claim-btn {
  min-height: 70px;
}
.claim-btn:not(:disabled):hover {
  transform: translateY(-1px);
}
.meter-bar {
  overflow: hidden;
  border-radius: 999px;
}
.meter-fill { transition: width .35s ease; }

/* Node check */
.node-check {
  gap: 16px;
}
.node-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.node-info p { margin-top: 5px; }

Referral/share experience
.referral-share {
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
}
.ref-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Notifications */
.notif-list { gap: 10px; }
.notif-item {
  transition: border-color .18s ease, transform .15s ease, background .15s ease;
}
.notif-item:hover { transform: translateY(-1px); }
.notif-item.unread { box-shadow: inset 3px 0 0 var(--primary); }
.notif-item.has-link { cursor: pointer; }
.notif-link { color: inherit; text-decoration: none; }
.notif-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.notif-link:focus-visible { outline: none; }
.notif-item.has-link:focus-within { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; }

/* Empty states */
.empty-state {
  padding: 34px 18px;
  text-align: center;
}
.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Toast/flash polish */
.flash-wrap { pointer-events: none; }
.flash { pointer-events: auto; display: flex; align-items: center; gap: 10px; }
.flash::before {
  content: "•";
  font-size: 20px;
  line-height: 1;
}
.flash-success::before { color: rgba(255,255,255,.85); }
.flash-error::before { color: rgba(255,255,255,.85); }

/* Modal accessibility / mobile behavior */
body.modal-open { overflow: hidden; }
.receipt-modal.active .receipt-card { animation: tmModalIn .2s ease both; }




/* ====================================================================
   MINING POWER MARKETPLACE
   Scoped to mining-power views; global buttons and shared components
   remain unchanged.
   ==================================================================== */
.mining-current-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.mining-current-panel > div { min-width: 0; }
.eyebrow {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#mining-plans { min-width: 0; }
#mining-plans .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
}
#mining-plans .section-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.35px;
}
#mining-plans .section-head > .small {
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}

.power-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}
.marketplace-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(180deg, var(--surface) 0%, #121a24 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.marketplace-card.is-current {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft);
}
.marketplace-card.is-featured { border-color: rgba(38, 161, 123, .42); }
.marketplace-card.is-recommended {
  padding: 20px;
  border: 1.5px solid var(--primary);
  background: linear-gradient(155deg, rgba(38, 161, 123, .12) 0%, var(--surface) 48%, #121a24 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.marketplace-card.is-recommended::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  content: "";
  pointer-events: none;
}
.merch-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
}
.merch-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(38, 161, 123, .24);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.merch-badge.recommended {
  padding: 5px 10px;
  font-weight: 850;
}
.merch-badge.featured {
  border-color: var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}
.power-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.power-card-head > div { min-width: 0; }
.power-name {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.power-description {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.power-price {
  margin: 17px 0 18px;
  color: var(--primary);
  font-size: 29px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.7px;
  overflow-wrap: anywhere;
}
.marketplace-card.is-recommended .power-name { font-size: 22px; }
.marketplace-card.is-recommended .power-price { margin: 20px 0 21px; font-size: 33px; }
.marketplace-card:not(.is-recommended) .power-price { font-size: 26px; }
.power-specs {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.power-specs li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}
.power-specs li svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--primary);
}
.power-specs li span { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.marketplace-card.is-recommended .power-specs { gap: 12px; }
.marketplace-card.is-recommended .power-specs li { font-size: 14px; }
.power-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.marketplace-card.is-recommended .power-card-cta {
  min-height: 46px;
  box-shadow: 0 5px 14px rgba(38, 161, 123, .14);
}

/* Upgrade/recommendation panels */
.upgrade-highlight {
  min-width: 0;
  margin-bottom: 18px;
  padding: 19px;
  border: 1px solid rgba(38, 161, 123, .48);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(38, 161, 123, .13) 0%, var(--surface) 58%, #121a24 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}
.upgrade-highlight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.upgrade-highlight-head > div:first-child { min-width: 0; }
.upgrade-highlight h2 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.upgrade-price {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}
.purchase-upgrade-panel {
  border-color: rgba(38, 161, 123, .58);
  background: linear-gradient(145deg, rgba(38, 161, 123, .16) 0%, #17221f 28%, var(--surface) 100%);
}
.purchase-upgrade-panel .merch-badge.recommended {
  border-color: rgba(38, 161, 123, .38);
  background: rgba(38, 161, 123, .16);
  color: var(--primary);
}
.purchase-upgrade-panel .upgrade-deltas { margin: 15px 0; }
.upgrade-deltas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0;
}
.upgrade-deltas > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(11, 15, 20, .32);
}
.upgrade-deltas strong {
  display: block;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.upgrade-deltas span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.purchase-upgrade-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.purchase-upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 160px;
  min-width: 0;
  min-height: 43px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.purchase-form-panel { min-width: 0; }
.purchase-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  white-space: normal;
}

/* Comparison table: horizontal scrolling is contained within its own frame. */
.comparison-panel { min-width: 0; margin-top: 18px; overflow: hidden; }
.comparison-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.comparison-table {
  width: max-content;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.comparison-table th,
.comparison-table td {
  min-width: 108px;
  padding: 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.comparison-table tr:last-child th,
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th:last-child,
.comparison-table td:last-child { border-right: 0; }
.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 800;
}
.comparison-table thead th:first-child,
.comparison-table tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 132px;
  background: #111821;
}
.comparison-table thead th:first-child { z-index: 4; }
.comparison-table tbody th { color: var(--text-muted); font-weight: 700; }
.comparison-table .comparison-recommended { background: rgba(38, 161, 123, .10); }
.comparison-table thead .comparison-recommended {
  color: var(--primary);
  box-shadow: inset 0 2px 0 var(--primary);
}
.comparison-table tbody .comparison-recommended { color: var(--text); }
.comparison-star { margin-left: 4px; color: var(--primary); }

/* Purchase summary values can wrap instead of colliding on small screens. */
.buy-row { gap: 12px; }
.buy-row span { min-width: 0; }
.buy-row strong { min-width: 0; text-align: right; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .power-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .power-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .mining-current-panel { align-items: stretch; flex-direction: column; }
  .mining-current-panel .btn { width: 100%; }
  #mining-plans .section-title { font-size: 19px; }
  #mining-plans .section-head { align-items: flex-start; margin-bottom: 12px; }
  .marketplace-card,
  .marketplace-card.is-recommended { padding: 17px; border-radius: 16px; }
  .marketplace-card.is-recommended .power-name { font-size: 22px; }
  .marketplace-card.is-recommended .power-price { margin: 18px 0; font-size: 31px; }
  .marketplace-card.is-recommended .merch-badge.recommended { font-size: 11px; }
  .upgrade-highlight { padding: 16px; }
  .upgrade-highlight-head { gap: 8px; }
  .upgrade-highlight h2 { font-size: 17px; }
  .upgrade-price { font-size: 17px; }
  .upgrade-deltas { gap: 7px; }
  .upgrade-deltas > div { padding: 9px 8px; }
  .upgrade-deltas strong { font-size: 14px; }
  .upgrade-deltas span { font-size: 10px; }
  .purchase-upgrade-actions { flex-direction: column; }
  .purchase-upgrade-btn { width: 100%; flex-basis: auto; }
  .purchase-submit-btn { width: 100%; }
}
/* @media (max-width: 480px) {
  #mining-plans .section-head { flex-direction: column; gap: 5px; }
  .marketplace-card,
  .marketplace-card.is-recommended { padding: 15px; }
  .marketplace-card.is-recommended .power-price { font-size: 29px; }
  .upgrade-highlight-head { flex-direction: column; }
  .upgrade-price { white-space: normal; }
  .upgrade-deltas { grid-template-columns: 1fr; }
  .upgrade-deltas > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .upgrade-deltas span { margin-top: 0; text-align: right; }
} */


/* =====================================================================
   TetherMine dashboard refinement — scoped to the authenticated dashboard
   ===================================================================== */
.balance-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(19px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(128deg, #073f38 0%, #087f68 57%, #0b9878 100%);
  box-shadow: 0 16px 36px rgba(0, 94, 75, .19);
}
.balance-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  right: -105px;
  top: -115px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 45px rgba(255,255,255,.018);
  pointer-events: none;
}
.balance-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.balance-heading { display: flex; flex: 1 1 110px; flex-direction: column; gap: 4px; min-width: 0; }
.balance-label { font-size: 12px; font-weight: 750; letter-spacing: .105em; line-height: 1.35; text-transform: uppercase; opacity: .9; }
.balance-context { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.4; }
.balance-card-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
  margin-left: auto;
}
.currency-control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.currency-dropdown-card { flex: 0 0 auto; }
.balance-card .currency-select {
  height: 35px;
  min-width: 82px;
  padding: 0 29px 0 11px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  background: rgba(4, 48, 43, .42);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.balance-card .currency-select:hover { background: rgba(4, 48, 43, .62); border-color: rgba(255,255,255,.5); }
.balance-card .currency-dropdown::after { right: 10px; color: rgba(255,255,255,.85); font-size: 9px; }
.balance-card .currency-select option { background: #073f38; color: #fff; }
.balance-card .currency-select:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-color: #fff; }
.balance-card .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.balance-card .chip-off { background: rgba(17, 24, 39, .2); color: rgba(255,255,255,.9); }
.balance-amount {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  margin: 17px 0 12px;
  font-size: clamp(34px, 5.3vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  word-break: normal;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.balance-amount .money-value { max-width: 100%; overflow-wrap: anywhere; }
.balance-sub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1.45;
}
.balance-sub > span { display: inline-flex; min-width: 0; align-items: center; gap: 6px; }
.balance-sub > span > span { min-width: 0; overflow-wrap: anywhere; }
.balance-sub svg { flex: 0 0 auto; opacity: .95; }
.balance-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
}
.balance-actions .btn {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.balance-actions .btn-light { background: rgba(255,255,255,.95); color: #075e50; }
.balance-actions .btn-light:hover { background: #fff; border-color: #fff; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,.1); }
.balance-actions .btn-light:active { transform: translateY(0); }
.balance-actions .btn-light:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.balance-actions .btn svg { flex: 0 0 auto; }
.quick-grid { gap: 12px; margin-top: 18px; }
.quick-tile { min-width: 0; min-height: 108px; padding: 16px 8px; border-radius: 16px; }
.quick-icon { width: 44px; height: 44px; border-radius: 14px; }
.quick-label { color: var(--text); font-size: 12px; }
.stat-grid { gap: 12px; }
.stat-card { min-width: 0; min-height: 112px; padding: 17px; border-radius: 16px; transition: border-color .18s ease, transform .18s ease; }
.stat-card .stat-label { font-size: 11px; letter-spacing: .055em; line-height: 1.45; }
.stat-card .stat-value { font-size: clamp(18px, 2vw, 23px); line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.panel { padding: 20px; border-radius: 17px; }
.panel-head { margin-bottom: 10px; }
.tx-item { padding: 14px 2px; border-radius: 10px; }
.tx-amount { font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .balance-card { margin-bottom: 18px; }
}
@media (max-width: 640px) {
  .balance-card { padding: 20px; border-radius: 18px; }
  .balance-card-top { flex-direction: row; align-items: flex-start; gap: 12px; }
  .balance-heading { flex-basis: 92px; }
  .balance-card-tools { justify-content: flex-end; gap: 7px; margin-left: auto; }
  .balance-amount { margin: 17px 0 12px; font-size: clamp(32px, 8vw, 40px); }
  .balance-actions { gap: 8px; margin-top: 18px; }
  .balance-actions .btn { padding: 11px 8px; font-size: 12px; }
  .quick-grid { gap: 8px; }
  .quick-tile { min-height: 94px; padding: 12px 4px; gap: 7px; }
  .quick-icon { width: 38px; height: 38px; }
  .stat-card { padding: 13px; min-height: 100px; }
  .panel { padding: 15px; }
  .tx-item { gap: 9px; }
  .tx-icon { width: 34px; height: 34px; }
  .tx-amount { font-size: 13px; }
}
@media (max-width: 380px) {
  .balance-card { padding: 17px; }
  .balance-card-top { gap: 9px; }
  .balance-heading { flex-basis: 85px; }
  .balance-card-tools { gap: 6px; }
  .balance-card .currency-select { min-width: 76px; padding-left: 9px; }
  .balance-card .chip { padding: 5px 7px; font-size: 9px; }
  .balance-amount { font-size: clamp(29px, 8.3vw, 34px); }
  .balance-actions { gap: 7px; }
  .balance-actions .btn { padding: 10px 6px; gap: 6px; font-size: 11px; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-label { font-size: 11px; }
  .stat-grid { gap: 8px; }
  .stat-card .stat-label { font-size: 10px; }
  .stat-card .stat-value { font-size: 17px; }
}
@media (max-width: 330px) {
  .balance-card-top { flex-direction: column; align-items: stretch; }
  .balance-card-tools { justify-content: flex-start; margin-left: 0; }
  .balance-actions { flex-direction: column; }
  .balance-actions .btn { width: 100%; font-size: 13px; }
}


/* ------------------------------------------------------------------ Floating Help shortcut */
.floating-help {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2ab98a 0%, #16845f 100%);
  box-shadow: 0 8px 24px rgba(21, 161, 113, .32), 0 0 0 1px rgba(38,161,123,.14);
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: .01em;
  isolation: isolate;
  transform: translateZ(0);
  animation: floating-help-breathe 2.7s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.floating-help svg { display:block; flex: 0 0 auto; }
.floating-help::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(38, 207, 147, .62);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  animation: floating-help-ring 3.4s cubic-bezier(.2,.65,.35,1) infinite;
}
.floating-help:hover {
  color: #fff;
  background: linear-gradient(135deg, #35d69f 0%, #1b9b70 100%);
  box-shadow: 0 10px 28px rgba(21,161,113,.42);
  animation-play-state: paused;
}
.floating-help:hover::before { animation-play-state: paused; }
.floating-help:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.floating-help:active { transform: scale(.97); }
.floating-help--above-nav {
  bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom, 0px));
}
@keyframes floating-help-breathe {
  0%, 100% { box-shadow: 0 8px 24px rgba(21,161,113,.30), 0 0 0 1px rgba(38,161,123,.14); }
  50% { box-shadow: 0 9px 28px rgba(21,161,113,.43), 0 0 0 2px rgba(38,161,123,.18); }
}
@keyframes floating-help-ring {
  0% { transform: scale(.96); opacity: 0; }
  12% { opacity: .58; }
  68%, 100% { transform: scale(1.24); opacity: 0; }
}
.support-back-row { display:flex; justify-content:flex-start; margin: 0 0 16px; }
.support-back-link { display:inline-flex; align-items:center; gap:6px; color:var(--primary); font-size:13px; font-weight:650; }
.support-back-link svg { transform:rotate(180deg); }
@media (max-width: 640px) {
  .floating-help { right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); min-height: 46px; padding: 0 16px; }
  .floating-help--above-nav { bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-help, .floating-help::before { animation: none !important; transition: none !important; }
}


/* =====================================================================
   TetherMine light/dark theme system and theme-toggle controls
   The saved theme is applied to <html data-theme="dark|light">.
   ===================================================================== */
:root {
  color-scheme: dark;
  --theme-page: #0b0f14;
  --theme-overlay: rgba(11, 15, 20, .88);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7f6;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf3f1;
  --border: #d7e2de;
  --text: #172a25;
  --text-muted: #526961;
  --text-dim: #71827c;
  --primary: #16845f;
  --primary-600: #116f50;
  --primary-700: #0b5c43;
  --primary-soft: rgba(22, 132, 95, .12);
  --accent: #a87300;
  --danger: #c9343d;
  --warning: #956000;
  --success: #16794b;
  --info: #176fc0;
  --shadow: 0 8px 28px rgba(21, 53, 42, .10);
  --shadow-sm: 0 2px 8px rgba(21, 53, 42, .08);
  --theme-page: #f3f7f6;
  --theme-overlay: rgba(255, 255, 255, .92);
}

html, body, .app-shell, .admin-body {
  background-color: var(--bg);
  color: var(--text);
}

html[data-theme] body,
html[data-theme] .app-shell,
html[data-theme] .topbar,
html[data-theme] .bottom-nav,
html[data-theme] .admin-topbar,
html[data-theme] .admin-sidebar {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.topbar { background: var(--theme-overlay); }
.bottom-nav { background: color-mix(in srgb, var(--surface) 96%, transparent); }
.form-actions.sticky-actions { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.admin-topbar { background: var(--theme-overlay); }

/* Reusable sun/moon control. Header variant matches the notification circle. */
.theme-toggle {
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--primary); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.theme-toggle-icon { width: 100%; height: 100%; display: none; place-items: center; }
.theme-toggle-icon svg { display: block; transition: transform .22s ease; }
html[data-theme="dark"] .theme-toggle-icon--sun,
html:not([data-theme="light"]) .theme-toggle-icon--sun { display: grid; }
html[data-theme="light"] .theme-toggle-icon--moon { display: grid; }
html[data-theme="light"] .theme-toggle-icon--sun,
html[data-theme="dark"] .theme-toggle-icon--moon { display: none; }
.theme-toggle:hover .theme-toggle-icon svg { transform: rotate(-12deg); }
.theme-toggle--header { width: 40px; height: 40px; }
.theme-toggle--admin { width: 40px; height: 40px; }
.theme-toggle--floating {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 90;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Keep the dashboard's branded green balance card intentionally green in both themes. */
.balance-card .currency-select { color: #fff; }
.balance-actions .balance-action {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 98px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 7px;
  white-space: nowrap;
}
.balance-actions .balance-action-icon {
  display: grid;
  place-items: center;
  min-height: 25px;
  line-height: 0;
}
.balance-actions .balance-action-icon svg { width: 25px; height: 25px; }
.balance-actions .balance-action-label {
  display: block;
  max-width: 100%;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}
.balance-actions .balance-action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Native and Choices.js form controls follow the selected color scheme. */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { color-scheme: light; }
.choices__inner,
.choices__list--dropdown,
.choices__list[aria-expanded] { background-color: var(--bg-elevated); border-color: var(--border); color: var(--text); }
.choices__input { background-color: var(--bg-elevated); color: var(--text); }
.choices__list--dropdown .choices__item--selectable.is-highlighted { background-color: var(--surface-2); }
.choices__list--dropdown .choices__item { color: var(--text); }

/* The support page's original styling used fixed dark colors; make the surface legible in light mode. */
html[data-theme="light"] .support-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border-color: var(--border);
  box-shadow: 0 15px 40px rgba(21, 53, 42, .10);
}
html[data-theme="light"] .support-header h2 { color: var(--text); }
html[data-theme="light"] .support-header p { color: var(--text-muted); }
html[data-theme="light"] .support-item,
html[data-theme="light"] .support-footer { background: var(--surface-2); border-color: var(--border); color: var(--text); }
html[data-theme="light"] .support-item:hover { background: var(--primary-soft); border-color: var(--primary); }

/* Page-local mining styles declare their own dark palette; override their tokens on light pages. */
html[data-theme="light"] .mining-power-page,
html[data-theme="light"] .mining-purchase-page {
  --mp-card: #ffffff;
  --mp-card-2: #f4f8f6;
  --mp-line: rgba(26, 67, 52, .13);
  --mp-soft: rgba(22, 132, 95, .10);
  --mp-soft-2: rgba(22, 132, 95, .16);
  --mp-text: #172a25;
  --mp-muted: #526961;
  --mp-shadow: 0 14px 34px rgba(21, 53, 42, .08);
}
html[data-theme="light"] .mining-power-page .comparison-table thead th,
html[data-theme="light"] .mining-power-page .comparison-table tbody td,
html[data-theme="light"] .mining-power-page .comparison-table tbody th { background: #f3f7f6; color: var(--text); }
html[data-theme="light"] .mining-purchase-page .field-control,
html[data-theme="light"] .mining-purchase-page input,
html[data-theme="light"] .mining-purchase-page select,
html[data-theme="light"] .mining-purchase-page textarea { background-color: #fff; color: var(--text); border-color: var(--border); }
html[data-theme="light"] .mining-purchase-page .quote-row,
html[data-theme="light"] .mining-purchase-page .payment-instructions,
html[data-theme="light"] .mining-purchase-page .file-drop { background: #f3f7f6; color: var(--text); }

/* Admin stylesheet reuses the same tokens; these surfaces had fixed dark overlays. */
html[data-theme="light"] .admin-topbar { background: rgba(255, 255, 255, .94); }
html[data-theme="light"] .form-actions.sticky-actions { background: rgba(243, 247, 246, .94); }
html[data-theme="light"] .modal-overlay { background: rgba(21, 39, 32, .34); }

@media (max-width: 640px) {
  .theme-toggle--header, .theme-toggle--admin { width: 38px; height: 38px; }
  .topbar-actions { gap: 8px; }
  .balance-actions .balance-action { min-height: 92px; gap: 7px; padding: 10px 5px; }
  .balance-actions .balance-action-icon svg { width: 23px; height: 23px; }
  .balance-actions .balance-action-label { font-size: 12px; }
}
@media (max-width: 380px) {
  .balance-actions .balance-action { min-height: 88px; padding: 9px 3px; }
  .balance-actions .balance-action-label { font-size: 11px; }
}
@media (max-width: 330px) {
  .balance-actions { flex-direction: row; }
  .balance-actions .balance-action { width: auto; min-width: 0; }
  .balance-actions .balance-action-label { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] body,
  html[data-theme] .app-shell,
  html[data-theme] .topbar,
  html[data-theme] .bottom-nav,
  html[data-theme] .admin-topbar,
  .theme-toggle,
  .theme-toggle-icon svg { transition: none !important; }
}


/* Additional legacy components with previously hard-coded dark surfaces. */
html[data-theme="light"] .currency-select {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="light"] .currency-dropdown::after { color: var(--text-muted); }
html[data-theme="light"] .payment-block {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme="light"] .pay-to-label,
html[data-theme="light"] .payment-block-label,
html[data-theme="light"] .quote-row span,
html[data-theme="light"] .buy-row span,
html[data-theme="light"] .file-drop-text,
html[data-theme="light"] .form-hint { color: var(--text-muted); }
html[data-theme="light"] .payment-block-value span,
html[data-theme="light"] .quote-row strong,
html[data-theme="light"] .buy-row strong { color: var(--text); }
html[data-theme="light"] .copy-detail-btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
html[data-theme="light"] .copy-detail-btn:hover { background: #e3eee9; }
html[data-theme="light"] .quote-box {
  border-color: rgba(22, 132, 95, .20);
  box-shadow: 0 0 0 1px rgba(22, 132, 95, .05), 0 8px 24px rgba(21, 53, 42, .08);
}
html[data-theme="light"] .quote-row:not(:last-child),
html[data-theme="light"] .buy-row { border-color: var(--border); }
html[data-theme="light"] .file-drop { border-color: var(--border); background: #f8fbfa; }
html[data-theme="light"] #proofPreview { border-color: var(--border); }
html[data-theme="light"] .leaderboard-user { border-color: var(--border); }
html[data-theme="light"] .marketplace-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  box-shadow: 0 8px 22px rgba(21, 53, 42, .06);
}
html[data-theme="light"] .marketplace-card.is-recommended {
  background: linear-gradient(155deg, rgba(22, 132, 95, .08) 0%, var(--surface) 48%, var(--bg-elevated) 100%);
  box-shadow: 0 12px 28px rgba(21, 53, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
}
html[data-theme="light"] .upgrade-highlight {
  background: linear-gradient(145deg, rgba(22, 132, 95, .08) 0%, var(--surface) 58%, var(--bg-elevated) 100%);
  box-shadow: 0 10px 26px rgba(21, 53, 42, .07);
}
html[data-theme="light"] .purchase-upgrade-panel {
  background: linear-gradient(145deg, rgba(22, 132, 95, .09) 0%, #f4f8f6 28%, var(--surface) 100%);
}
html[data-theme="light"] .upgrade-deltas > div { background: #f5f9f7; }
html[data-theme="light"] .comparison-table thead th:first-child,
html[data-theme="light"] .comparison-table tbody th { background: #edf3f1; }
html[data-theme="light"] .comparison-table tbody th { color: var(--text-muted); }
html[data-theme="light"] .admin-content .table-wrap,
html[data-theme="light"] .admin-content table { color: var(--text); }

/* Inline mining-power page styles are intentionally dark by default; keep them readable in light mode. */
html[data-theme="light"] .mining-power-page .power-specs li {
  background: rgba(255, 255, 255, .72);
  color: var(--text);
}
html[data-theme="light"] .mining-power-page .comparison-table th,
html[data-theme="light"] .mining-power-page .comparison-table td,
html[data-theme="light"] .mining-power-page .comparison-table thead th,
html[data-theme="light"] .mining-power-page .comparison-table thead th:first-child,
html[data-theme="light"] .mining-power-page .comparison-table tbody th {
  background: #f3f7f6;
  color: var(--text);
}
html[data-theme="light"] .mining-purchase-page .buy-row strong,
html[data-theme="light"] .mining-purchase-page .upgrade-deltas strong,
html[data-theme="light"] .mining-purchase-page .quote-row strong,
html[data-theme="light"] .mining-purchase-page .payment-block-value span,
html[data-theme="light"] .mining-purchase-page .purchase-bank-notice-content strong,
html[data-theme="light"] .mining-purchase-page .purchase-pending-alert strong {
  color: var(--text);
}
html[data-theme="light"] .mining-purchase-page .form-label,
html[data-theme="light"] .mining-purchase-page .pay-to-label { color: var(--text); }
html[data-theme="light"] .mining-purchase-page .upgrade-deltas > div { background: #f5f9f7; }
html[data-theme="light"] .mining-purchase-page .seg-control { background: #edf3f1; }
html[data-theme="light"] .mining-purchase-page .method-select {
  background: #ffffff !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html[data-theme="light"] .mining-purchase-page .quote-box { background: #f9fcfa; }
html[data-theme="light"] .mining-purchase-page .payment-block { background: #ffffff; }
html[data-theme="light"] .mining-purchase-page .copy-detail-btn { background: #edf3f1; }
html[data-theme="light"] .mining-purchase-page .file-drop { background: #f8fbfa; border-color: var(--border); }
html[data-theme="light"] .mining-purchase-page #proofPreview { background: #f8fbfa; }

/* Light-themed bank and receipt dialogs; status colors remain semantic. */
html[data-theme="light"] .bank-modal-content,
html[data-theme="light"] .receipt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(21, 53, 42, .18);
}
html[data-theme="light"] .bank-modal-header { border-bottom-color: var(--border); }
html[data-theme="light"] .bank-item { color: var(--text); }
html[data-theme="light"] .bank-item:hover,
html[data-theme="light"] .bank-item:focus { background: var(--surface-2); }
html[data-theme="light"] .receipt-close { background: var(--surface-2); color: var(--text); }
html[data-theme="light"] .receipt-header h3,
html[data-theme="light"] .receipt-row strong { color: var(--text); }
html[data-theme="light"] .receipt-header p,
html[data-theme="light"] .receipt-amount-label,
html[data-theme="light"] .receipt-row span { color: var(--text-muted); }
html[data-theme="light"] .receipt-amount { border-color: var(--border); }
html[data-theme="light"] .receipt-row { border-color: var(--border); }
html[data-theme="light"] .withdrawal-item:hover { background: var(--surface-2); }


/* ========================================================================
   Dashboard currency picker + compact balance actions
   ======================================================================== */
.currency-dropdown-card { position: relative; display: inline-flex; }
.currency-dropdown-card::after { display: none; }
.currency-select-bridge {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.currency-picker-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 38px; min-width: 84px; padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.26); border-radius: 11px;
  background: rgba(7, 45, 31, .16); color: #fff;
  font: inherit; font-size: 13px; font-weight: 750; letter-spacing: .02em;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.currency-picker-trigger:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.currency-picker-trigger:active { transform: scale(.98); }
.currency-picker-trigger:focus-visible,
.currency-picker-close:focus-visible,
.currency-picker-option:focus-visible { outline: 3px solid rgba(34,197,94,.65); outline-offset: 3px; }
.currency-picker-chevron { display: inline-flex; align-items: center; opacity: .9; }
.currency-picker-chevron svg { width: 14px; height: 14px; transform: rotate(90deg); }

.currency-picker-backdrop[hidden] { display: none !important; }
.currency-picker-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(4, 12, 10, .62);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: currencyPickerFade .16s ease-out;
}
.currency-picker-dialog {
  width: min(100%, 420px); max-height: min(78dvh, 620px);
  overflow: auto; overscroll-behavior: contain;
  padding: 22px; border: 1px solid var(--border);
  border-radius: 22px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  animation: currencyPickerEnter .2s ease-out;
}
.currency-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.currency-picker-heading h2 { margin: 0; color: var(--text); font-size: 20px; line-height: 1.3; font-weight: 750; }
.currency-picker-heading p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.currency-picker-close {
  display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px;
  align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); background: var(--surface-2); cursor: pointer;
}
.currency-picker-close svg { width: 19px; height: 19px; }
.currency-picker-options { display: grid; gap: 9px; }
.currency-picker-option {
  display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface-2); color: var(--text); text-align: left;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.currency-picker-option:hover { border-color: var(--primary); }
.currency-picker-option:active { transform: scale(.99); }
.currency-option-check { display: inline-flex; color: var(--primary); opacity: 0; }
.currency-option-check svg { width: 18px; height: 18px; }
.currency-picker-option.is-selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface-2)); }
.currency-picker-option.is-selected .currency-option-check { opacity: 1; }
body.currency-picker-open { overflow: hidden; }

.balance-actions { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; }
.balance-actions .balance-action {
  flex: 1 1 0; min-width: 0; min-height: 58px; height: auto;
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 9px; padding: 12px 14px; line-height: 1.2; text-align: center;
  white-space: nowrap;
}
.balance-action .balance-action-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; line-height: 0; }
.balance-action .balance-action-icon svg { width: 20px; height: 20px; }
.balance-action .balance-action-label { display: inline-block; min-width: 0; line-height: 1.25; }

@keyframes currencyPickerFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes currencyPickerEnter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
  .currency-picker-backdrop { align-items: flex-end; padding: 0; }
  .currency-picker-dialog {
    width: 100%; max-width: none; max-height: min(82dvh, 680px);
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0; border-bottom: 0;
    animation: currencyPickerSheet .22s ease-out;
  }
  .balance-actions { gap: 8px; }
  .balance-actions .balance-action { min-height: 54px; gap: 7px; padding: 10px 8px; font-size: 13px; }
  .balance-action .balance-action-icon svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .currency-picker-backdrop, .currency-picker-dialog { animation: none !important; }
  .currency-picker-trigger, .currency-picker-option { transition: none !important; }
}
@keyframes currencyPickerSheet { from { transform: translateY(30px); opacity: .8; } to { transform: translateY(0); opacity: 1; } }


/* ==========================================================================
   Dashboard reference redesign — mobile-first, scoped to shared dashboard
   ========================================================================== */
.page > .balance-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 20px 0 18px;
  padding: clamp(22px, 5vw, 34px);
  border: 0;
  border-radius: clamp(22px, 5vw, 30px);
  background:
    radial-gradient(circle at 105% -10%, rgba(31, 190, 143, .34) 0 24%, transparent 24.2%),
    radial-gradient(circle at 108% -8%, transparent 0 32%, rgba(81, 218, 174, .16) 32.1% 32.4%, transparent 32.6%),
    linear-gradient(132deg, #005642 0%, #00765b 52%, #008466 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 79, 59, .14);
}
.page > .balance-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 54%;
  aspect-ratio: 1;
  top: -20%;
  right: -17%;
  border-radius: 50%;
  background: rgba(24, 177, 132, .12);
  pointer-events: none;
}
.page > .balance-card .balance-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}
.page > .balance-card .balance-heading {
  flex: 1 1 auto;
  min-width: 0;
}
.page > .balance-card .balance-label {
  display: block;
  color: #fff;
  font-size: clamp(13px, 3.4vw, 17px);
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
}
.page > .balance-card .balance-card-tools {
  flex: 0 0 auto;
  margin: 0;
  gap: 0;
}
.page > .balance-card .currency-picker-trigger {
  min-width: 104px;
  min-height: 44px;
  padding: 10px 14px;
  gap: 12px;
  border: 1.5px solid rgba(167, 243, 218, .52);
  border-radius: 999px;
  background: rgba(0, 58, 43, .12);
  font-size: 15px;
}
.page > .balance-card .currency-picker-chevron svg {
  transform: rotate(90deg);
}
.page > .balance-card .balance-amount {
  margin: clamp(26px, 7vw, 40px) 0 22px;
  color: #fff;
  font-size: clamp(36px, 9.3vw, 58px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.page > .balance-card .balance-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(245, 255, 251, .95);
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.45;
}
.page > .balance-card .balance-sub > span {
  gap: 9px;
}
.page > .balance-card .balance-sub > span + span {
  padding-left: 16px;
  border-left: 1px solid rgba(195, 255, 232, .35);
}
.page > .balance-card .balance-sub svg {
  width: 22px;
  height: 22px;
  color: #c7ffed;
}
.page > .balance-card .balance-status-row {
  margin-top: 22px;
}
.page > .balance-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.page > .balance-card .chip-on {
  background: #b9f5df;
  color: #005b45;
}
.page > .balance-card .chip-off {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
}
.balance-status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #0b9d76;
}
.chip-off .balance-status-dot { background: #ffd166; }
.page > .balance-card .balance-actions {
  gap: 12px;
  margin-top: 28px;
}
.page > .balance-card .balance-actions .balance-action {
  min-height: 74px;
  padding: 14px 12px;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #effbf7 100%);
  color: #004e3d;
  box-shadow: 0 4px 12px rgba(0, 49, 37, .06);
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 800;
  white-space: normal;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.page > .balance-card .balance-action .balance-action-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}
.page > .balance-card .balance-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 49, 37, .13);
  background: #fff;
}
.page > .balance-card .balance-action:active { transform: translateY(0) scale(.99); }
.page > .balance-card .balance-action:focus-visible {
  outline: 3px solid #b9f5df;
  outline-offset: 4px;
}
.page > .quick-grid { margin-top: 18px; }
.page > .stat-grid { margin-top: 0; }

html[data-theme="light"] .topbar {
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 26px);
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #e5f0ec;
  box-shadow: 0 5px 18px rgba(15, 65, 49, .06);
}
html[data-theme="light"] .topbar .brand {
  gap: 12px;
  color: #063f32;
  font-size: clamp(18px, 5vw, 27px);
  letter-spacing: -.045em;
}
html[data-theme="light"] .topbar .brand .logo {
  width: clamp(42px, 11vw, 56px);
  height: clamp(42px, 11vw, 56px);
  border-radius: 14px;
  background: linear-gradient(145deg, #169b76, #00765a);
  box-shadow: 0 5px 14px rgba(0, 105, 77, .13);
  font-size: clamp(22px, 5.5vw, 29px);
}
html[data-theme="light"] .topbar-actions { gap: clamp(8px, 3vw, 16px); }
html[data-theme="light"] .topbar-actions .icon-btn {
  width: clamp(42px, 11vw, 56px);
  height: clamp(42px, 11vw, 56px);
  border-color: #d9f3eb;
  background: #effbf7;
  color: #064638;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 105, .025);
}
html[data-theme="light"] .topbar-actions .icon-btn svg { width: 21px; height: 21px; }

@media (max-width: 380px) {
  .page > .balance-card { padding: 20px 17px; }
  .page > .balance-card .balance-card-top { gap: 8px; }
  .page > .balance-card .balance-label { font-size: 12px; letter-spacing: .065em; }
  .page > .balance-card .currency-picker-trigger { min-width: 88px; min-height: 40px; padding: 8px 10px; gap: 7px; font-size: 13px; }
  .page > .balance-card .balance-amount { font-size: clamp(32px, 8.7vw, 38px); margin-top: 27px; }
  .page > .balance-card .balance-sub { gap: 9px 10px; font-size: 12px; }
  .page > .balance-card .balance-sub > span + span { padding-left: 10px; }
  .page > .balance-card .balance-actions { gap: 8px; margin-top: 24px; }
  .page > .balance-card .balance-actions .balance-action { min-height: 66px; padding: 11px 7px; gap: 7px; border-radius: 16px; font-size: 12px; }
  .page > .balance-card .balance-action .balance-action-icon svg { width: 21px; height: 21px; }
  html[data-theme="light"] .topbar .brand { gap: 8px; font-size: 17px; }
}
@media (max-width: 330px) {
  .page > .balance-card .balance-card-top { align-items: flex-start; }
  .page > .balance-card .balance-actions { flex-direction: row; }
  .page > .balance-card .balance-actions .balance-action { min-width: 0; }
}
@media (min-width: 768px) {
  .page > .balance-card { margin-top: 24px; padding: 34px; }
  .page > .balance-card .balance-amount { font-size: clamp(48px, 5vw, 64px); }
  .page > .balance-card .balance-actions .balance-action { min-height: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .page > .balance-card .balance-action { transition: none; }
}

/* TetherMine dashboard balance-card refinements (compact mobile controls). */
.page > .balance-card .balance-card-tools {
  align-items: center;
  min-height: 0;
}
.page > .balance-card .currency-picker-trigger {
  min-height: 20px;
  min-width: 70px;
  padding: 4px 8px;
  gap: 7px;
  font-size: 10px;
  font-weight: 500;
}
.page > .balance-card .chip {
  min-height: 32px;
  padding: 7px 14px;
  border: 0;
  background: rgba(0, 58, 43, .20);
}
.page > .balance-card .chip-on {
  background: rgba(0, 58, 43, .20);
  color: #eafff7;
}
.page > .balance-card .chip-off {
  background: rgba(0, 58, 43, .20);
  color: #fff;
  border: 0;
}
.page > .balance-card .balance-actions {
  gap: 10px;
  margin-top: 20px;
}
.page > .balance-card .balance-actions .balance-action {
  min-height: 58px;
  padding: 9px 10px;
  gap: 8px;
  border: 1px solid rgba(190, 255, 231, .24);
  background: linear-gradient(145deg, #079873 0%, #00785d 100%);
  color: #f2fff9;
  box-shadow: 0 4px 12px rgba(0, 49, 37, .12);
}
.page > .balance-card .balance-actions .balance-action .balance-action-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.page > .balance-card .balance-actions .balance-action:hover {
  background: linear-gradient(145deg, #0aa47d 0%, #008568 100%);
  box-shadow: 0 6px 16px rgba(0, 49, 37, .2);
}
.page > .balance-card .balance-actions .balance-action:focus-visible {
  outline-color: #b9f5df;
}

@media (max-width: 640px) {
  .page > .balance-card .balance-card-tools .currency-picker-trigger {
    min-height: 36px;
    padding: 6px 11px;
  }
  .page > .balance-card .chip {
    min-height: 30px;
    padding: 6px 12px;
  }
  .page > .balance-card .balance-amount {
    font-size: clamp(40px, 10vw, 48px);
    font-weight: 900;
    letter-spacing: -.06em;
  }
  .page > .balance-card .balance-actions {
    gap: 8px;
    margin-top: 18px;
  }
  .page > .balance-card .balance-actions .balance-action {
    min-height: 56px;
    padding: 8px 7px;
    gap: 7px;
    border-radius: 15px;
    font-size: 12px;
  }
  .page > .balance-card .balance-actions .balance-action-label {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .page > .balance-card .balance-amount {
    font-size: clamp(38px, 10.4vw, 44px);
  }
  .page > .balance-card .balance-actions .balance-action {
    min-height: 52px;
    padding: 7px 5px;
    gap: 6px;
  }
  .page > .balance-card .balance-actions .balance-action .balance-action-icon svg {
    width: 20px;
    height: 20px;
  }
  .page > .balance-card .balance-actions .balance-action-label {
    font-size: 11px;
  }
}



/* Mining Power page: theme-aware current panel and CTA states.
   The view contains legacy dark gradients and .btn-light styles; these
   component-scoped rules override them only when light mode is active. */
html[data-theme="light"] .mining-power-page .mining-current-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(38, 161, 123, .09), transparent 42%),
    linear-gradient(145deg, #ffffff, #f2f8f5 65%);
  border-color: rgba(26, 116, 87, .22);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(21, 53, 42, .08);
}
html[data-theme="light"] .mining-power-page .mining-current-panel .panel-title,
html[data-theme="light"] .mining-power-page .mining-current-panel > div {
  color: var(--text);
}
html[data-theme="light"] .mining-power-page .mining-current-panel .muted {
  color: var(--text-muted);
}
html[data-theme="light"] .mining-power-page .mining-current-panel .eyebrow {
  color: var(--primary-700);
}
html[data-theme="light"] .mining-power-page .mining-current-panel:before {
  background: var(--primary);
}

/* Disabled mining-power actions remain visibly disabled and are not clickable. */
.mining-power-page .power-card-cta:disabled {
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.mining-power-page .power-card-cta:focus-visible,
.mining-power-page .mining-current-panel .btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
html[data-theme="light"] .mining-power-page .power-card-cta:disabled {
  background: #e8f1ed;
  color: #526961;
  border: 1px solid #c7d9d1;
}
html[data-theme="light"] .mining-power-page .power-card-cta:disabled:hover,
html[data-theme="light"] .mining-power-page .power-card-cta:disabled:active {
  background: #e8f1ed;
  transform: none;
}
html:not([data-theme="light"]) .mining-power-page .power-card-cta:disabled {
  background: #26332f;
  color: #b8c8c1;
  border: 1px solid rgba(255, 255, 255, .12);
}

.tx-row-link { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; width: 100%; }
.receipt-page { max-width: 820px; margin: 0 auto; }
.receipt-page-head { align-items: flex-start; }
.receipt-status { flex: 0 0 auto; }
.receipt-page-card { overflow: hidden; }
.receipt-page-intro { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.receipt-page-intro h2 { margin: 0 0 4px; }
.receipt-page-intro p { margin: 0; color: var(--text-muted); }
.receipt-page-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.receipt-total { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; text-align: center; }
.receipt-total strong { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.04em; }
.receipt-currency { color: var(--text-muted); font-weight: 600; }
.receipt-page-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; border-top: 1px solid var(--border); }
.receipt-page-details > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.receipt-page-details dt { color: var(--text-muted); font-size: .8rem; }
.receipt-page-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.receipt-page-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
@media (max-width: 600px) { .receipt-page-details { grid-template-columns: 1fr; } .receipt-page-head { flex-direction: column; gap: 12px; } .receipt-page-actions > * { flex: 1 1 100%; text-align: center; } }
@media print { .app-nav, .bottom-nav, .receipt-page-actions, .page-head .receipt-status { display: none !important; } .receipt-page { max-width: none; } .receipt-page-card { box-shadow: none; border: 1px solid #d1d5db; } }

.purchase-cancel-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.purchase-cancel-modal[hidden] { display: none; }
.purchase-cancel-backdrop { position: absolute; inset: 0; background: rgba(7, 15, 12, .62); backdrop-filter: blur(3px); }
.purchase-cancel-dialog { position: relative; width: min(100%, 430px); padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 80px rgba(0, 0, 0, .28); text-align: center; }
.purchase-cancel-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer; }
.purchase-cancel-close:hover { background: var(--surface-2); color: var(--text); }
.purchase-cancel-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 16px; color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, transparent); }
.purchase-cancel-dialog h2 { margin: 0 0 10px; font-size: 1.25rem; }
.purchase-cancel-dialog p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.purchase-cancel-actions { display: flex; gap: 12px; margin-top: 26px; }
.purchase-cancel-actions .btn { flex: 1; min-height: 44px; }
@media (max-width: 480px) { .purchase-cancel-dialog { padding: 28px 20px 22px; } .purchase-cancel-actions { gap: 10px; } }

/* Community page */
.community-page {
  --community-composer-h: 52px;
  --community-top-offset: 86px;
  --community-reserve: calc(var(--nav-h) + var(--community-composer-h) + 24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px;
  max-width: 980px; min-height: 0; margin: 0 auto;
  height: calc(var(--community-viewport-height, 100dvh) - var(--community-top-offset) - var(--community-reserve));
}
.community-page.is-keyboard-open { --community-reserve: calc(var(--community-composer-h) + 16px); height: max(260px, calc(var(--community-viewport-height, 100dvh) - var(--community-top-offset) - var(--community-reserve))); margin-bottom: 0; }
.community-page.is-keyboard-open .community-feed { flex: 1 1 0 !important; height: auto; min-height: 120px; }
@media (min-width: 768px) { .community-page { --community-top-offset: 110px; } }
@media (min-width: 1024px) { .community-page { --community-top-offset: 118px; } }
/* Short viewports: let the whole page scroll and keep the feed a usable height. */
@media (max-height: 680px) {
  .community-page { height: auto; margin-bottom: calc(var(--community-composer-h) + 8px); }
  .community-page .community-feed { flex: 0 0 auto !important; height: 300px; }
}
.community-page > * { flex: 0 0 auto; }
.community-eyebrow { margin: 0 0 2px; color: var(--success); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.community-welcome { padding: 11px 14px; border: 1px solid var(--border); border-radius: 14px; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--success) 10%, transparent), transparent 45%), var(--surface); }
.community-welcome h1 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; }
.community-welcome-text { max-width: 620px; margin: 3px 0 0; color: var(--text-muted); font-size: .78rem; line-height: 1.4; }
.community-security { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--warning) 9%, var(--surface)); color: var(--text); }
.community-security-icon { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; color: var(--warning); background: color-mix(in srgb, var(--warning) 16%, transparent); }
.community-security p { min-width: 0; margin: 0; font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.community-security p strong { margin-right: 4px; font-size: .72rem; }
.community-security p span { color: var(--text-muted); }
.community-online { display: flex; align-items: center; gap: 7px; padding: 0 2px; min-width: 0; }
.community-online strong { font-size: .8rem; letter-spacing: -.01em; line-height: 1; }
.community-online > span:last-child { min-width: 0; color: var(--text-muted); font-size: .72rem; }
.community-online-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 14%, transparent); }
.community-feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 2px 0 0; }
.community-feed-title { min-width: 0; }
.community-feed-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; line-height: 1.2; }
.community-disclosure { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 0; color: var(--text-muted); font-size: .68rem; line-height: 1.3; }
.community-disclosure svg { flex: 0 0 auto; }
.community-refresh-status { flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--text-muted); font-size: .7rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.community-feed { display: flex; flex: 1 1 0 !important; flex-direction: column; gap: 9px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 3px 6px 0; scroll-behavior: smooth; }
.community-feed > * { flex: 0 0 auto; }

.community-message { padding: 14px 15px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); animation: community-message-in .35s ease both; }
.community-message--sample { border-left: 3px solid color-mix(in srgb, var(--primary) 55%, var(--border)); }
.community-message--user { border-left: 3px solid var(--success); }
.community-message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.community-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent); font-size: .72rem; font-weight: 850; }
.community-message-meta strong { color: var(--text); font-size: .9rem; }
.community-message-type, .community-message-footer > span { padding: 3px 7px; border-radius: 999px; color: var(--text-muted); background: var(--surface-2, color-mix(in srgb, var(--text) 6%, transparent)); font-size: .68rem; font-weight: 750; }
.community-message-meta time { margin-left: auto; color: var(--text-muted); font-size: .74rem; }
.community-message > p { margin: 0; color: var(--text); line-height: 1.58; overflow-wrap: anywhere; }
.community-message-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.community-like { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 0; border-radius: 999px; color: var(--text-muted); background: transparent; cursor: pointer; font-size: .78rem; transition: color .18s ease, background .18s ease, transform .18s ease; }
.community-like:hover, .community-like:focus-visible { color: #ef5274; background: color-mix(in srgb, #ef5274 12%, transparent); }
.community-like:active { transform: scale(.94); }
.community-like.is-liked { color: #ef5274; }
.community-amount { display: inline-flex; margin-top: 13px; padding: 7px 10px; border-radius: 9px; color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); font-size: .74rem; font-weight: 750; }
.community-typing { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 16px 16px 16px 5px; color: var(--text-muted); background: var(--surface); font-size: .82rem; animation: community-message-in .25s ease both; }
.community-typing[hidden] { display: none; }
.community-typing strong { color: var(--text); }
.community-typing-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.community-typing-dots { display: inline-flex; gap: 3px; margin-left: 3px; vertical-align: middle; }
.community-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: community-dot 1.1s infinite ease-in-out; }
.community-typing-dots i:nth-child(2) { animation-delay: .14s; } .community-typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes community-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes community-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.community-composer { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px)); width: min(calc(100vw - 32px), calc(var(--maxw) - 32px)); height: var(--community-composer-h); transform: translateX(-50%); }
.community-page.is-keyboard-open .community-composer { bottom: calc(var(--community-keyboard-inset, 0px) + 8px); }
.community-composer form { height: 100%; }
.community-composer-row { display: flex; align-items: center; gap: 8px; height: 100%; padding: 5px 6px 5px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: 0 8px 28px rgba(0, 0, 0, .22); transition: border-color .18s ease, box-shadow .18s ease; }
.community-composer-row:focus-within { border-color: var(--primary); box-shadow: 0 8px 28px rgba(0, 0, 0, .22), 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.community-composer textarea { display: block; flex: 1 1 auto; min-width: 0; height: 40px; max-height: 40px; padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 22px; resize: none; outline: none; overflow-y: auto; }
.community-composer textarea::placeholder { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.community-composer-row .btn { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border-radius: 50%; transition: transform .18s ease, filter .18s ease, opacity .18s ease, box-shadow .18s ease; }
.community-composer-row .btn:hover { filter: brightness(1.08); box-shadow: 0 5px 16px color-mix(in srgb, var(--primary) 24%, transparent); }
.community-composer-row .btn:active { transform: scale(.94); }
.community-composer-row .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.community-composer-row .btn:disabled { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; }
@media (max-width: 700px) { .community-message-meta time { margin-left: 0; } }
@media (max-height: 480px) and (orientation: landscape) { .community-welcome-text { display: none; } }

/* Authenticated support page */
.support-page { max-width: 980px; margin: 0 auto; padding: 8px 0 96px; }
.support-hero { display: flex; align-items: center; gap: 24px; padding: 32px; margin-bottom: 32px; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(circle at 10% 0%, rgba(38, 210, 136, .16), transparent 38%), var(--surface); box-shadow: var(--shadow-sm); }
.support-hero-icon { display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 22px; color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); font-size: 30px; }
.support-hero h1 { margin: 4px 0 10px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; line-height: 1.05; }
.support-hero-copy { max-width: 680px; margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.eyebrow { margin: 0; color: var(--success); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.support-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.support-section-heading h2 { margin: 5px 0 0; font-size: 1.25rem; }
.support-availability { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .85rem; white-space: nowrap; }
.support-response { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--success) 35%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.support-response-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--success); background: color-mix(in srgb, var(--success) 15%, transparent); }
.support-response span:last-child { display: flex; flex-direction: column; gap: 2px; }
.support-response strong { font-size: .82rem; }
.support-response small { color: var(--text-muted); font-size: .82rem; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.support-item { display: flex; align-items: flex-start; gap: 16px; min-height: 178px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.support-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--success) 55%, var(--border)); box-shadow: var(--shadow-sm); }
.support-item--telegram { border-color: color-mix(in srgb, #229ed9 45%, var(--border)); }
.support-item--primary { grid-column: span 2; min-height: 190px; background: radial-gradient(circle at 100% 0%, rgba(34, 158, 217, .13), transparent 42%), var(--surface); }
.support-item-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); font-size: 22px; }
.support-item--telegram .support-item-icon { color: #229ed9; background: rgba(34, 158, 217, .14); }
.support-item-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.support-item-copy strong { font-size: 1rem; }
.support-item-copy small { color: var(--text-muted); font-size: .86rem; line-height: 1.55; }
.support-item-action { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: var(--success); font-size: .78rem; font-weight: 800; }
.support-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; color: var(--text-muted); background: color-mix(in srgb, var(--surface-2) 75%, transparent); font-size: .82rem; line-height: 1.5; }
.support-note i { flex: 0 0 auto; margin-top: 2px; color: var(--success); }
.support-note p { margin: 0; }
.support-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 20px; border: 1px dashed var(--border); border-radius: 16px; color: var(--text-muted); }
.support-empty p { margin: 0; }
@media (max-width: 700px) { .support-page { padding: 0 0 92px; } .support-hero { align-items: flex-start; gap: 16px; padding: 22px; } .support-hero-icon { flex-basis: 54px; width: 54px; height: 54px; border-radius: 16px; font-size: 22px; } .support-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; } .support-grid { grid-template-columns: 1fr; } .support-item--primary { grid-column: auto; min-height: 0; } .support-item { min-height: 0; } .support-response { align-items: flex-start; } }


/* Profile & Account Settings */
.profile-page { max-width: 760px; margin: 0 auto; }
.profile-page .page-head { margin-bottom: 14px; }
.profile-page .profile-identity { gap: 14px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.profile-page .profile-identity .avatar-lg { flex: 0 0 auto; width: 56px; height: 56px; font-size: 22px; }
.profile-identity-info { min-width: 0; }
.profile-page .profile-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.profile-page .profile-handle { margin: 2px 0 0; color: var(--primary); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.profile-email { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--text-muted); font-size: 13px; min-width: 0; }
.profile-email svg { flex: 0 0 auto; }
.profile-email span { min-width: 0; overflow-wrap: anywhere; }

.profile-page .profile-section { margin-bottom: 14px; padding: 18px 20px; }
.profile-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.profile-section-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent); }
.profile-section-head .panel-title { margin: 0; font-size: 16px; }
.profile-section-desc { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.profile-page .form-group:last-child { margin-bottom: 0; }
.profile-page .form-row { gap: 14px; }
.profile-hint { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.profile-hint--tight { margin: -6px 0 0; }
.profile-actions { display: flex; justify-content: center; margin-top: 18px; }
.profile-actions .btn { min-width: 160px; min-height: 44px; width: 100%;}
.profile-page .btn:focus-visible,
.profile-page input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.profile-btn-secure { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); color: var(--primary); font-weight: 600; }
.profile-btn-secure:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.profile-status { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 11px 13px; border: 1px solid transparent; border-radius: var(--radius-sm); }
.profile-status p { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 13px; line-height: 1.45; }
.profile-status strong { font-size: 13px; }
.profile-status span:not(.profile-status-icon) { color: var(--text-muted); }
.profile-status-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; }
.profile-status--ok { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: color-mix(in srgb, var(--success) 9%, transparent); }
.profile-status--ok strong, .profile-status--ok .profile-status-icon { color: var(--success); }
.profile-status--ok .profile-status-icon { background: color-mix(in srgb, var(--success) 16%, transparent); }
.profile-status--warn { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); background: color-mix(in srgb, var(--warning) 9%, transparent); }
.profile-status--warn strong, .profile-status--warn .profile-status-icon { color: var(--warning); }
.profile-status--warn .profile-status-icon { background: color-mix(in srgb, var(--warning) 16%, transparent); }

.profile-logout { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 12px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.profile-logout p { margin: 0; color: var(--text-muted); font-size: 13px; }
.profile-logout .btn { flex: 0 0 auto; min-height: 44px; }

@media (max-width: 350px) {
  .profile-page .profile-section { padding: 16px 14px; }
  .profile-page .form-row { flex-direction: column; gap: 0; }
  .profile-actions .btn { width: 100%; }
  .profile-page .profile-identity { padding: 12px 14px; }
  .profile-logout { flex-direction: column; align-items: center; text-align: center; }
  .profile-logout .btn { width: 100%; }
}


/* =====================================================================
   Authentication experience (login / register)
   Scoped to .auth-* and .country-* so authenticated pages are untouched.
   ===================================================================== */
body.auth-body { padding: 0; background: var(--bg); }

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: var(--bg);
  color: var(--text);
}

/* ---- Brand column ---- */
.auth-brand { padding: 18px 72px 0 20px; }
.auth-brand-inner { display: flex; align-items: center; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--radius-sm); }
.auth-logo:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.auth-logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  font-size: 22px; font-weight: 800; line-height: 1;
}
.auth-logo-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.auth-brand-copy, .auth-brand-points { display: none; }

/* ---- Form column ---- */
.auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom, 0px));
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.auth-card--wide { max-width: 640px; container-type: inline-size; }
.auth-card-head { margin-bottom: 22px; }
.auth-title { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.auth-subtitle { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 16px; align-items: start; }
.auth-field { min-width: 0; }
.auth-label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.auth-optional { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.auth-hint { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.auth-hint.is-ok { color: var(--success); }
.auth-hint.is-error { color: var(--danger); }
.auth-field--secondary .auth-label { color: var(--text-muted); font-weight: 500; }

.auth-card .form-control { background: var(--bg-elevated); }
.auth-card .form-control:focus-visible,
.auth-card .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-card .tm-input-wrap .form-control:focus-visible { outline: none; }

/* ---- Password strength (informational) ---- */
.auth-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.auth-strength[hidden] { display: none; }
.auth-strength-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.auth-strength-bars i { display: block; height: 4px; border-radius: 999px; background: var(--border); transition: background-color .2s ease; }
.auth-strength-label { min-width: 58px; font-size: 12px; font-weight: 600; text-align: right; color: var(--text-muted); }
.auth-strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.auth-strength[data-level="2"] i:nth-child(-n+2) { background: var(--warning); }
.auth-strength[data-level="3"] i:nth-child(-n+3) { background: var(--primary); }
.auth-strength[data-level="4"] i { background: var(--success); }
.auth-strength[data-level="1"] .auth-strength-label { color: var(--danger); }
.auth-strength[data-level="2"] .auth-strength-label { color: var(--warning); }
.auth-strength[data-level="3"] .auth-strength-label,
.auth-strength[data-level="4"] .auth-strength-label { color: var(--success); }

/* ---- Terms agreement ---- */
.auth-terms { margin-top: 2px; }
.auth-check { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.auth-check input {
  position: absolute; top: 8px; left: 0;
  width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer;
}
.auth-check-box {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-elevated); color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.auth-check:hover .auth-check-box { border-color: var(--primary); }
.auth-check input:checked + .auth-check-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.auth-check input:focus-visible + .auth-check-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-check-text { font-size: 13px; line-height: 1.5; color: var(--text-muted); padding-top: 1px; }
.auth-check-text strong, .auth-check-text a { color: var(--text); font-weight: 600; }
.auth-check-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.auth-field-error { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--danger); }
.auth-field-error[hidden] { display: none; }

/* ---- Buttons and switch link ---- */
.auth-submit { min-height: 50px; margin-top: 2px; font-weight: 700; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 22%, transparent); }
.auth-submit.is-loading { opacity: .75; cursor: progress; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 700; padding: 4px 2px; border-radius: 4px; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-switch a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Country picker ---- */
.country-picker { position: relative; }
.country-picker-trigger {
  width: 100%; min-height: 48px; padding: 0 14px;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.country-picker-trigger:hover { border-color: var(--text-dim); }
.country-picker-trigger:focus-visible,
.country-picker-trigger[aria-expanded="true"] { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.country-picker-icon { display: inline-flex; flex: 0 0 auto; color: var(--text-dim); }
.country-picker-trigger:focus-visible .country-picker-icon { color: var(--primary); }
.country-picker-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-picker-trigger.is-empty .country-picker-value { color: var(--text-dim); }
.country-picker-chevron { flex: 0 0 auto; color: var(--text-muted); transition: transform .18s ease; }
.country-picker-trigger[aria-expanded="true"] .country-picker-chevron { transform: rotate(180deg); }

.country-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.country-modal:not([hidden]) { display: flex; }
.country-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.country-modal-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px; max-height: min(620px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
  animation: countryModalIn .18s ease;
}
.country-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 20px; }
.country-modal-header h3 { font-size: 16px; font-weight: 700; }
.country-modal-close {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-muted);
}
.country-modal-close:hover { background: var(--surface-2); color: var(--text); }
.country-modal-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.country-search-wrap { position: relative; padding: 8px 16px 12px; }
.country-search-icon { position: absolute; top: 50%; left: 30px; transform: translateY(-58%); color: var(--text-dim); pointer-events: none; }
.country-search-input {
  width: 100%; height: 48px; padding: 0 14px 0 42px;
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
}
.country-search-input::placeholder { color: var(--text-dim); }
.country-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.country-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.country-list { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 8px; border-top: 1px solid var(--border); }
.country-list[hidden] { display: none; }
.country-item {
  width: 100%; min-height: 46px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: transparent; color: var(--text);
  border: 0; border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; text-align: left;
}
.country-item[hidden] { display: none; }
.country-item:hover, .country-item:focus-visible { background: var(--surface-2); outline: none; }
.country-item:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.country-item.is-selected { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.country-item-check { display: none; flex: 0 0 auto; }
.country-item.is-selected .country-item-check { display: inline-flex; }
.country-empty { padding: 28px 20px; text-align: center; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border); }
.country-empty[hidden] { display: none; }
.country-modal-footer { padding: 0 16px; }
.country-modal-footer:has(.country-clear:not([hidden])) { padding: 8px 16px 12px; border-top: 1px solid var(--border); }
.country-clear { min-height: 40px; padding: 0 8px; background: transparent; border: 0; border-radius: 8px; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; }
.country-clear[hidden] { display: none; }
.country-clear:hover { color: var(--text); }
.country-clear:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

@keyframes countryModalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Wide card: two-column field grid ---- */
@container (min-width: 520px) {
  .auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@supports not (container-type: inline-size) {
  @media (min-width: 720px) { .auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
}

/* ---- Tablet / small desktop ---- */
@media (min-width: 640px) {
  .auth-brand { padding: 24px 80px 0 32px; }
  .auth-main { padding: 28px 24px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .auth-card { padding: 32px; }
  .auth-title { font-size: 24px; }
}

/* ---- Desktop two-column composition ---- */
@media (min-width: 960px) {
  .auth-shell { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); grid-template-rows: 1fr; }
  .auth-brand {
    position: sticky; top: 0; align-self: start;
    height: 100vh; height: 100dvh;
    padding: 0;
    background:
      radial-gradient(120% 80% at 0% 0%, var(--primary-soft) 0%, transparent 60%),
      var(--surface);
    border-right: 1px solid var(--border);
  }
  .auth-brand-inner { height: 100%; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 40px; }
  .auth-brand-copy { display: block; }
  .auth-brand-title { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
  .auth-brand-text { margin-top: 14px; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
  .auth-brand-points { display: flex; flex-direction: column; gap: 14px; list-style: none; }
  .auth-brand-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
  .auth-brand-points li span {
    flex: 0 0 34px; width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px; color: var(--primary); background: var(--primary-soft);
  }
  .auth-main { align-items: center; padding: 48px 40px calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Reserve room for the floating Help pill so it never sits on the form. */
@media (min-width: 1180px) {
  .auth-main { padding-right: 144px; }
}

/* ---- Mobile: bottom-sheet country selector, compact spacing ---- */
@media (max-width: 639px) {
  .country-modal { align-items: flex-end; padding: 0; }
  .country-modal-content { max-width: none; max-height: 86vh; max-height: 86dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation-name: countrySheetIn; }
  .auth-submit { min-height: 52px; }
}
@keyframes countrySheetIn { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .country-modal-content { animation: none; }
  .country-picker-chevron, .auth-strength-bars i, .auth-check-box { transition: none; }
}
/* Compact header icon buttons */
.topbar-actions .icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
}

/* Reduce the actual icons inside the buttons */
.topbar-actions .icon-btn svg,
.topbar-actions .icon-btn i {
    width: 17px;
    height: 17px;
    font-size: 15px;
}

/* Keep the theme toggle consistent */
.topbar-actions .theme-toggle--header {
    width: 34px;
    height: 34px;
}

/* Prevent the light theme from enlarging the buttons */
html[data-theme="light"] .topbar-actions .icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
}

/* Smaller screens */
@media (max-width: 520px) {
    .topbar-actions .icon-btn {
        width: 31px;
        height: 31px;
        min-width: 31px;
        min-height: 31px;
    }

    .topbar-actions .icon-btn svg,
    .topbar-actions .icon-btn i {
        width: 15px;
        height: 15px;
        font-size: 14px;
    }
}