:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f242d;
  --border: #2a2f3a;
  --text: #e6e8ee;
  --muted: #8a93a6;
  --accent: #7c5cff;
  --accent-2: #5e44d6;
  --danger: #e5484d;
  --success: #30a46c;
  --radius: 12px;
}

* { box-sizing: border-box; }

/* Latin (English/digits) uses Google Sans; Arabic/Sorani stays on Noto Kufi */
@font-face {
  font-family: 'Latin UI';
  font-weight: 400 700;
  font-style: normal;
  src: local('Google Sans'), local('GoogleSans'), local('Product Sans'), local('Roboto');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0300-036F, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F,
                 U+2190-21FF, U+2200-22FF;
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: 'Latin UI', "Google Sans", "Noto Kufi Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}
html[dir="rtl"] body { text-align: right; }
input, textarea, button { font-family: inherit; }
code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center;
  gap: 10px;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.topbar .brand { margin-inline-end: auto; }
.topbar nav { display: flex; align-items: center; }

/* Hamburger toggle — hidden on desktop */
.menu-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 10px; cursor: pointer; color: var(--text);
  font-size: 22px;
  transition: background .15s, border-color .15s;
}
.menu-btn:hover { border-color: var(--accent); }
.menu-btn .close { display: none; }
.menu-toggle-input:checked + .menu-btn .open { display: none; }
.menu-toggle-input:checked + .menu-btn .close { display: inline-block; }
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Latin UI', "Google Sans", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: .2px;
  padding: 2px 0;
  text-decoration: none;
  transition: filter .2s ease;
}
.brand span {
  background: linear-gradient(90deg, var(--accent), #ff7ab6);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand .brand-icon {
  font-size: 24px;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-icon { transform: rotate(-12deg) scale(1.08); }
.brand::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ff7ab6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s;
  opacity: .9;
}
.brand:hover { text-decoration: none; filter: drop-shadow(0 0 10px rgba(124,92,255,.45)); }
.brand:hover::after { transform: scaleX(1); }
.topbar nav a { margin-inline-start: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.topbar nav a i { font-size: 18px; line-height: 1; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
.topbar nav a.btn { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }

button, .btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
button i, .btn i { font-size: 18px; line-height: 1; }

/* Flip directional icons in RTL so they point the natural way */
html[dir="rtl"] .rtl-flip { transform: scaleX(-1); display: inline-block; }

.container { max-width: 760px; margin: 32px auto; padding: 0 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

h1 { margin: 0 0 8px; font-size: 28px; }
h2 { margin: 0 0 10px; font-size: 20px; }
p.muted, .muted { color: var(--muted); }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], textarea {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }

button, .btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
button:hover, .btn:hover { background: var(--accent-2); text-decoration: none; }
button.secondary { background: var(--surface-2); border: 1px solid var(--border); }
button.danger { background: var(--danger); }

.flash {
  background: rgba(48,163,108,.12);
  border: 1px solid rgba(48,163,108,.4);
  color: #c6f6d5;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
}
.error {
  background: rgba(229,72,77,.12);
  border: 1px solid rgba(229,72,77,.4);
  color: #ffd4d6;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
}

.profile-head {
  text-align: center; padding: 32px 20px;
}
.avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7ab6);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.handle { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.link-copy {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; line-height: 1;
  transition: color .15s, border-color .15s, background .15s;
}
.link-copy i { font-size: 14px; }
.link-copy:hover { color: var(--accent); border-color: var(--accent); background: rgba(124,92,255,.08); }

.share-bar {
  display: inline-flex; gap: 8px; align-items: center;
  margin-top: 16px;
  flex-wrap: wrap; justify-content: center;
}
.share-bar button, .share-bar .btn { padding: 8px 14px; font-size: 14px; }

.message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.message .meta { color: var(--muted); font-size: 12px; margin-top: 8px; display: flex; justify-content: space-between; }
.message .reply { margin-top: 12px; padding: 12px 14px; border-inline-start: 3px solid var(--accent); background: var(--surface-2); border-radius: 8px; }
.message form { margin-top: 10px; }

.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

.footer { text-align: center; padding: 30px; color: var(--muted); }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; }

.hero { text-align: center; padding: 40px 10px; }
.hero h1 { font-size: 36px; background: linear-gradient(90deg, var(--accent), #ff7ab6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 10px auto 20px; }

/* Verified badge */
.verified-badge {
  color: #1d9bf0;
  font-size: 18px;
  vertical-align: middle;
  margin-inline-start: 3px;
  filter: drop-shadow(0 0 6px rgba(29,155,240,.35));
}
h1 .verified-badge { font-size: 22px; margin-inline-start: 3px; }

/* Glowing name for verified users */
.verified-name {
  background: linear-gradient(90deg, #bce0ff, #ffffff 50%, #bce0ff);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 10px rgba(29,155,240,.55),
    0 0 22px rgba(29,155,240,.30);
  animation: verified-glow 2.6s ease-in-out infinite alternate;
}
@keyframes verified-glow {
  from { text-shadow: 0 0 6px rgba(29,155,240,.35), 0 0 14px rgba(29,155,240,.20); }
  to   { text-shadow: 0 0 16px rgba(29,155,240,.70), 0 0 32px rgba(29,155,240,.35); }
}
@media (prefers-reduced-motion: reduce) {
  .verified-name { animation: none; }
}

/* Notifications bell */
.topbar a.bell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.topbar a.bell:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.topbar a.bell i { font-size: 18px; }
.bell-badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  min-width: 18px; text-align: center;
  border: 2px solid var(--surface);
}

/* Wallet chip in topbar */
.topbar a.wallet-chip {
  background: linear-gradient(135deg, rgba(255,181,71,.10), rgba(255,122,182,.08));
  border: 1px solid rgba(255,181,71,.28);
  color: var(--text);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, background .15s, transform .15s;
}
.topbar a.wallet-chip:hover {
  border-color: rgba(255,181,71,.55);
  background: linear-gradient(135deg, rgba(255,181,71,.16), rgba(255,122,182,.12));
  transform: translateY(-1px);
  text-decoration: none;
}
.topbar a.wallet-chip i { color: #ffb547; font-size: 15px; }
.topbar a.wallet-chip span { color: var(--text); font-weight: 600; }
.topbar a.wallet-chip::after {
  content: "پۆینت";
  color: var(--muted);
  font-size: 11px;
  margin-inline-start: 2px;
}

/* Stats row on dashboard/profile */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.stat {
  flex: 1; min-width: 120px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat .label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 20px; font-weight: 700; }
.stat .value.accent { color: var(--accent); }
.stat .value.gold   { color: #ffb547; }
.stat .value.blue   { color: #1d9bf0; }

/* Gifts grid */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.gift-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
  position: relative;
}
.gift-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.gift-card input { position: absolute; opacity: 0; pointer-events: none; }
.gift-card input:checked ~ .gift-inner { color: var(--accent); }
.gift-card:has(input:checked) { border-color: var(--accent); background: rgba(124,92,255,.08); }
.gift-card .icon { font-size: 34px; display: block; line-height: 1; }
.gift-card .gift-emoji.icon { font-size: 36px; line-height: 1; display: block; filter: saturate(1.1); }
.gift-card .name { font-size: 14px; margin-top: 4px; }
.gift-card .cost { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Received-gift ribbon */
.gift-ribbon {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.gift-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 13px;
}
.gift-pill i { font-size: 16px; color: #ff7ab6; }
.gift-pill .gift-emoji { font-size: 15px; line-height: 1; }

/* Status chips */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.chip-pending  { background: rgba(255,181,71,.12); color: #ffb547; border: 1px solid rgba(255,181,71,.35); }
.chip-approved { background: rgba(48,163,108,.14); color: #4ade80; border: 1px solid rgba(48,163,108,.4); }
.chip-rejected { background: rgba(229,72,77,.12); color: #ffb1b3; border: 1px solid rgba(229,72,77,.4); }

/* Simple data table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: middle; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table tr:last-child td { border-bottom: 0; }

/* Table wrapper for horizontal scroll on narrow screens */
.card .table { display: table; }
.card > .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }

/* ------ Mobile breakpoint ------ */
@media (max-width: 720px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .brand { font-size: 18px; }
  .brand .brand-icon { font-size: 20px; }

  .topbar a.wallet-chip { font-size: 12px; padding: 4px 10px 4px 8px; }
  .topbar a.wallet-chip::after { font-size: 10px; }

  /* Show hamburger */
  .menu-btn { display: inline-flex; }

  /* Nav becomes an absolute drawer, slides down from the bar */
  .topbar nav {
    position: absolute;
    top: 100%; inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 0 14px;
    max-height: 0; overflow: hidden;
    z-index: 50;
    transition: max-height .25s ease, padding .25s ease, box-shadow .25s ease;
  }
  .topbar nav a {
    margin: 0 !important;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px; color: var(--text);
  }
  .topbar nav a:last-child { border-bottom: 0; }
  .topbar nav a.btn {
    margin: 10px 0 !important;
    justify-content: center;
    border-bottom: 0;
    padding: 12px 16px;
  }

  .menu-toggle-input:checked ~ nav {
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px 14px 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,.35);
  }

  /* Layout tighten */
  .container { margin: 18px auto; padding: 0 14px; }
  .card { padding: 16px; border-radius: 10px; }
  h1 { font-size: 22px; line-height: 1.3; }
  h2 { font-size: 17px; }
  .profile-head { padding: 22px 14px; }
  .profile-head .avatar { width: 72px; height: 72px; font-size: 30px; }

  /* Forms */
  input[type=text], input[type=email], input[type=password], textarea, select {
    font-size: 16px; /* prevent iOS zoom-on-focus */
  }

  /* Share bar wraps */
  .share-bar { flex-wrap: wrap; }
  .share-bar code { flex: 1 1 100%; order: -1; }

  /* Dashboard filter row: buttons wrap naturally */
  .row { gap: 8px; }
  .row > * { flex: 1 1 calc(50% - 4px); }

  /* Gift grid: slightly smaller cells on phone */
  .gift-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
  .gift-card { padding: 12px 8px; }
  .gift-card .icon { font-size: 30px; }
  .gift-card .gift-emoji.icon { font-size: 32px; }

  /* Tables: allow horizontal scroll inside a card */
  .card { overflow-x: auto; }
  .table th, .table td { padding: 8px 6px; font-size: 13px; }

  /* Hero */
  .hero h1 { font-size: 26px; }
  .hero p  { font-size: 15px; }

  /* Messages */
  .message { padding: 14px; }
  .message .meta { flex-wrap: wrap; gap: 4px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .topbar { padding: 10px 10px; }
  .brand span { display: none; }       /* keep just the icon to save space */
  .topbar a.wallet-chip::after { content: ""; margin: 0; }
  .row > * { flex: 1 1 100%; }         /* stack buttons */
}

/* ----------------- Follow row on profile ----------------- */
.follow-row {
  display: flex; justify-content: center; align-items: baseline;
  gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
  font-size: 15px;
}
.count-inline {
  color: inherit;
  display: inline-flex; align-items: baseline; gap: 5px;
}
.count-inline:hover { text-decoration: none; }
.count-inline:hover strong { color: var(--accent); }
.count-inline strong { font-weight: 700; }
.count-sep { color: var(--muted); }
.follow-form button { padding: 9px 18px; }

/* ----------------- Notifications list ----------------- */
.notif-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: rgba(124,92,255,.05); }
.notif-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex: 0 0 auto;
}
.notif-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; }
.notif-msg a { color: var(--accent); font-weight: 600; }
.notif-msg bdi.actor { display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline; }
.notif-msg bdi.actor .verified-badge { margin-inline-start: 0; font-size: 15px; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.notif-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 8px var(--accent);
}
.notif-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 16px; flex: 0 0 auto;
  transition: border-color .15s, color .15s, transform .15s;
}
.notif-arrow:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-1px); }

/* ----------------- Feed items ----------------- */
.feed-item { padding: 16px; }
.feed-who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7ab6);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 18px;
  flex: 0 0 auto;
}
.feed-avatar:hover { text-decoration: none; }
.feed-meta { min-width: 0; flex: 1; }
.feed-name { color: var(--text); font-weight: 600; }
.feed-meta .handle { font-size: 12px; }
.feed-question { padding: 10px 12px; background: var(--surface-2); border-radius: 8px; margin-bottom: 8px; }
.feed-question i { color: var(--muted); margin-inline-end: 4px; }

/* ----------------- People list ----------------- */
.people-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-bottom: 1px solid var(--border);
}
.people-row:last-child { border-bottom: 0; }
.people-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7ab6);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 18px;
  flex: 0 0 auto;
}
.people-avatar:hover { text-decoration: none; }
.people-info { flex: 1; min-width: 0; }
.people-name { color: var(--text); font-weight: 600; }
.people-info .handle { font-size: 12px; }
.people-action button { padding: 8px 14px; font-size: 13px; }

/* ----------------- Theme swatch picker (mini profile preview) ----------------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.theme-swatch {
  position: relative;
  cursor: pointer;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s;
}
.theme-swatch:hover { transform: translateY(-2px); }
.theme-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch:has(input:checked) .swatch-preview {
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgba(124,92,255,.28);
}
.theme-swatch:has(input:checked) .swatch-label {
  color: var(--accent);
}
.theme-swatch:has(input:checked) .swatch-preview::after {
  content: "\EB7B"; /* ri-check-line */
  font-family: "remixicon";
  position: absolute; top: 8px; inset-inline-end: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  z-index: 3;
}

/* Mini profile-head inside the swatch */
.swatch-preview {
  padding: 18px 10px 18px;
  text-align: center;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  border: 2px solid transparent;
  transition: box-shadow .15s, border-color .15s;
}
/* Blurry emoji background — sits behind everything */
.swatch-bg {
  position: absolute; inset: -20px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: 4px;
  color: rgba(255,255,255,.45);
  filter: blur(8px) saturate(1.3);
  opacity: .55;
  overflow: hidden;
  word-break: break-all;
  text-align: center;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-6deg);
}
.swatch-content { position: relative; z-index: 1; }
.swatch-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, #7c5cff, #ff7ab6);
}
.swatch-name {
  font-weight: 600; font-size: 13px; line-height: 1.3;
  display: flex; justify-content: center;
}
.swatch-name bdi { display: inline-flex; align-items: center; gap: 4px; }
.swatch-name-text {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.swatch-name i { font-size: 13px; color: #1d9bf0; filter: drop-shadow(0 0 5px rgba(29,155,240,.45)); }
.swatch-ribbon {
  font-size: 13px; margin-top: 6px; letter-spacing: 2px; opacity: .9;
}
.swatch-label {
  padding: 2px 4px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  text-align: center;
  transition: color .15s;
}
.theme-swatch:hover .swatch-label { color: var(--text); }

/* ---------- Per-theme preview looks ---------- */

/* default — dark site palette with accent glow */
.sw-default .swatch-preview {
  background: radial-gradient(circle at 70% 30%, rgba(124,92,255,.18), transparent 60%), #1f242d;
  color: var(--text);
}
.sw-default .swatch-name-text { text-shadow: 0 0 10px rgba(124,92,255,.45); color: #cbb6ff; }

/* hellokitty — pink paradise */
.sw-hellokitty .swatch-preview {
  background: linear-gradient(135deg, #ff8cc0, #ff5599);
  color: #fff;
}
.sw-hellokitty .swatch-avatar { background: linear-gradient(135deg, #fff, #ffc8dc); color: #ff4488; }
.sw-hellokitty .swatch-name-text { color: #fff; text-shadow: 0 1px 2px rgba(120,0,40,.55), 0 0 10px rgba(255,77,148,.7); }
.sw-hellokitty .swatch-name i { color: #fff; filter: drop-shadow(0 0 6px rgba(255,77,148,.9)) drop-shadow(0 1px 1px rgba(120,0,40,.5)); }
.sw-hellokitty .swatch-ribbon { opacity: 1; }

/* hearts — romantic red */
.sw-hearts .swatch-preview {
  background: linear-gradient(135deg, #7a0026, #e5004c);
  color: #ffe0ea;
}
.sw-hearts .swatch-avatar { background: linear-gradient(135deg, #ff2d6a, #ffb0c5); }
.sw-hearts .swatch-name-text { color: #ffd4e0; text-shadow: 0 0 12px rgba(255,45,106,.85); }
.sw-hearts .swatch-name i { color: #ff6a9c; filter: drop-shadow(0 0 5px rgba(255,106,156,.7)); }

/* skulls — gothic */
.sw-skulls .swatch-preview {
  background: radial-gradient(circle at 50% 0%, rgba(139,0,0,.35), transparent 65%), #0a0a0a;
  color: #d4d4d4;
}
.sw-skulls .swatch-avatar { background: linear-gradient(135deg, #2a0000, #6a0000); color: #e8d4d4; border: 1px solid #5a0000; }
.sw-skulls .swatch-name-text { color: #ff8080; text-shadow: 0 0 12px rgba(198,40,40,.85); }
.sw-skulls .swatch-name i { color: #ff4444; filter: drop-shadow(0 0 5px rgba(198,40,40,.6)); }
.sw-skulls .swatch-ribbon { opacity: .85; }

/* girlish — pastel dreams */
.sw-girlish .swatch-preview {
  background: linear-gradient(135deg, #c9a0ff, #ff7ab6);
  color: #fff;
}
.sw-girlish .swatch-avatar { background: linear-gradient(135deg, #fff, #e8c8ff); color: #9a4fd5; }
.sw-girlish .swatch-name-text { color: #fff; text-shadow: 0 1px 2px rgba(80,30,130,.55), 0 0 10px rgba(183,112,240,.7); }
.sw-girlish .swatch-name i { color: #fff; filter: drop-shadow(0 0 6px rgba(183,112,240,.95)) drop-shadow(0 1px 1px rgba(80,30,130,.5)); }

/* men — steel masculine */
.sw-men .swatch-preview {
  background: linear-gradient(135deg, #1a2a3a, #0a1520);
  color: #d4e8ff;
}
.sw-men .swatch-avatar { background: linear-gradient(135deg, #1d9bf0, #0a1520); }
.sw-men .swatch-name-text { color: #9cd0ff; text-shadow: 0 0 10px rgba(29,155,240,.7); }
.sw-men .swatch-name i { color: #1d9bf0; filter: drop-shadow(0 0 5px rgba(29,155,240,.6)); }

/* sport — green pitch */
.sw-sport .swatch-preview {
  background: linear-gradient(135deg, #0f7a3c, #1b5e20 60%, #103a15);
  color: #eaffe8;
}
.sw-sport .swatch-avatar { background: linear-gradient(135deg, #ffd24a, #ff8a00); color: #14321b; }
.sw-sport .swatch-name-text { color: #ffe98b; text-shadow: 0 0 10px rgba(255,210,74,.7); }
.sw-sport .swatch-name i { color: #ffd24a; filter: drop-shadow(0 0 5px rgba(255,210,74,.7)); }

/* Per-theme tweaks for the blurred-emoji background layer */
.sw-default    .swatch-bg { opacity: .25; color: rgba(255,255,255,.35); }
.sw-hellokitty .swatch-bg { opacity: .55; color: rgba(255,255,255,.65); }
.sw-hearts     .swatch-bg { opacity: .40; color: rgba(255,255,255,.4); }
.sw-skulls     .swatch-bg { opacity: .38; color: rgba(255,255,255,.28); }
.sw-girlish    .swatch-bg { opacity: .55; color: rgba(255,255,255,.6); }
.sw-men        .swatch-bg { opacity: .35; color: rgba(255,255,255,.3); }
.sw-sport      .swatch-bg { opacity: .45; color: rgba(255,255,255,.45); }

/* ----------------- Profile themes (applied via body class) ----------------- */

/* Fixed blurry emoji wallpaper behind everything on themed pages. */
body[class*="theme-"]::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  font-size: 90px;
  line-height: 1.35;
  letter-spacing: 10px;
  word-break: break-all;
  text-align: center;
  filter: blur(7px) saturate(1.35);
  opacity: .45;
  transform: rotate(-6deg);
  color: rgba(255,255,255,.55);
}
/* Make sure chrome sits above the wallpaper. */
body[class*="theme-"] > header.topbar,
body[class*="theme-"] > main.container,
body[class*="theme-"] > footer.footer { position: relative; z-index: 1; }

/* Per-theme emoji content */
body.theme-hellokitty::before { content: "🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗  🎀  🐱  💗"; }
body.theme-hearts::before     { content: "💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️  💖  💕  ❤️"; }
body.theme-skulls::before     { content: "💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️  💀  🖤  ⚰️"; }
body.theme-girlish::before    { content: "🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷  🌸  🦄  🌷"; }
body.theme-men::before        { content: "⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅  ⚡  🔥  🦅"; }
body.theme-sport::before      { content: "⚽  🏆  🏀  🥇  ⚽  🏆  🏀  🥇  ⚽  🏆  🏀  🥇  ⚽  🏆  🏀  🥇  ⚽  🏆  🏀  🥇  ⚽  🏆  🏀  🥇  ⚽  🏆  🏀  🥇"; }

/* Per-theme wallpaper opacity (tuned so text stays readable on each palette) */
body.theme-hellokitty::before { opacity: .50; color: rgba(255,255,255,.75); }
body.theme-hearts::before     { opacity: .30; color: rgba(255,200,215,.45); }
body.theme-skulls::before     { opacity: .22; color: rgba(255,255,255,.25); }
body.theme-girlish::before    { opacity: .50; color: rgba(255,255,255,.70); }
body.theme-men::before        { opacity: .25; color: rgba(170,210,255,.30); }
body.theme-sport::before      { opacity: .30; color: rgba(255,230,150,.50); }

/* hellokitty — pink paradise */
body.theme-hellokitty {
  --bg:        #ffeaf3;
  --surface:   #fff5fa;
  --surface-2: #ffdeed;
  --border:    #ffc0d9;
  --text:      #4a1a2d;
  --muted:     #9a5a76;
  --accent:    #ff4d94;
  --accent-2:  #e0347a;
  background:
    radial-gradient(circle at 12% 20%, #ffd1e1 0, transparent 40%),
    radial-gradient(circle at 88% 80%, #ffb6cf 0, transparent 45%),
    var(--bg);
}
body.theme-hellokitty .profile-head {
  background: linear-gradient(135deg, #ff8cc0, #ff5599);
  border-color: #ff4488;
  color: #fff;
}
body.theme-hellokitty .profile-head .handle,
body.theme-hellokitty .profile-head h1 { color: #fff; }
body.theme-hellokitty .profile-head::after {
  content: "🎀  🐱  💗  🎀  🐱  💗";
  display: block;
  margin-top: 14px;
  font-size: 18px;
  letter-spacing: 6px;
  opacity: .85;
}
body.theme-hellokitty .avatar { background: linear-gradient(135deg, #fff, #ffc8dc); color: #ff4488; }
body.theme-hellokitty .gift-pill { background: #fff; border-color: #ffb6cf; color: #4a1a2d; }
body.theme-hellokitty .verified-name {
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: #fff;
  color: #fff;
  animation-name: glow-pink;
  text-shadow: 0 1px 2px rgba(120,0,40,.55), 0 0 12px rgba(255,77,148,.8);
}
body.theme-hellokitty .verified-badge {
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255,77,148,.9)) drop-shadow(0 1px 1px rgba(120,0,40,.5));
}
@keyframes glow-pink {
  from { text-shadow: 0 1px 2px rgba(120,0,40,.55), 0 0 8px rgba(255,77,148,.5); }
  to   { text-shadow: 0 1px 2px rgba(120,0,40,.55), 0 0 20px rgba(255,77,148,1); }
}

/* hearts — romantic red */
body.theme-hearts {
  --bg:        #1a0008;
  --surface:   #2a0010;
  --surface-2: #3a0018;
  --border:    #5a0022;
  --text:      #ffe0ea;
  --muted:     #c088a0;
  --accent:    #ff2d6a;
  --accent-2:  #e5004c;
  background:
    radial-gradient(circle at 20% 10%, rgba(229,0,76,.25) 0, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(255,45,106,.2) 0, transparent 50%),
    var(--bg);
}
body.theme-hearts .profile-head {
  background: linear-gradient(135deg, #7a0026, #e5004c);
  border-color: #ff2d6a;
}
body.theme-hearts .profile-head::after {
  content: "💖  💕  ❤️  💖  💕  ❤️";
  display: block;
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 6px;
}
body.theme-hearts .avatar { background: linear-gradient(135deg, #ff2d6a, #ffb0c5); }
body.theme-hearts .verified-name {
  background: linear-gradient(90deg, #ffc8d8, #ffffff 50%, #ffc8d8);
  -webkit-background-clip: text; background-clip: text;
  animation-name: glow-red;
}
body.theme-hearts .verified-badge {
  color: #ffd0dc;
  filter: drop-shadow(0 0 8px rgba(255,45,106,.9));
}
@keyframes glow-red {
  from { text-shadow: 0 0 6px rgba(255,45,106,.4),  0 0 14px rgba(229,0,76,.2); }
  to   { text-shadow: 0 0 18px rgba(255,45,106,.9), 0 0 34px rgba(229,0,76,.5); }
}

/* skulls — gothic */
body.theme-skulls {
  --bg:        #08080a;
  --surface:   #121214;
  --surface-2: #1d1d20;
  --border:    #333;
  --text:      #d4d4d4;
  --muted:     #7a7a82;
  --accent:    #c62828;
  --accent-2:  #8b0000;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,0,0,.18) 0, transparent 55%),
    var(--bg);
}
body.theme-skulls .profile-head {
  background: linear-gradient(135deg, #0a0a0a, #2a0000);
  border: 1px solid #5a0000;
}
body.theme-skulls .profile-head h1 { color: #e8d4d4; text-shadow: 0 0 12px rgba(198,40,40,.4); }
body.theme-skulls .profile-head::after {
  content: "💀  🖤  ⚰️  💀  🖤  ⚰️";
  display: block;
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 6px;
  opacity: .85;
}
body.theme-skulls .avatar { background: linear-gradient(135deg, #2a0000, #6a0000); color: #e8d4d4; }
body.theme-skulls a { color: #ff4444; }
body.theme-skulls .verified-name {
  background: linear-gradient(90deg, #ff8080, #ffd4d4 50%, #ff8080);
  -webkit-background-clip: text; background-clip: text;
  animation-name: glow-blood;
}
body.theme-skulls .verified-badge {
  color: #ff6a6a;
  filter: drop-shadow(0 0 9px rgba(198,40,40,.85));
}
@keyframes glow-blood {
  from { text-shadow: 0 0 6px rgba(198,40,40,.5),  0 0 14px rgba(139,0,0,.35); }
  to   { text-shadow: 0 0 20px rgba(198,40,40,1),  0 0 38px rgba(139,0,0,.7); }
}

/* girlish — pastel dreams */
body.theme-girlish {
  --bg:        #f8eefc;
  --surface:   #ffffff;
  --surface-2: #f2e4ff;
  --border:    #e0c8f5;
  --text:      #3a1a5a;
  --muted:     #7a5a9a;
  --accent:    #b770f0;
  --accent-2:  #9a4fd5;
  background:
    radial-gradient(circle at 15% 25%, #ead0ff 0, transparent 45%),
    radial-gradient(circle at 85% 75%, #ffd4e8 0, transparent 45%),
    var(--bg);
}
body.theme-girlish .profile-head {
  background: linear-gradient(135deg, #e8c8ff, #ff9ecf);
  border-color: #d4a0f0;
  color: #3a1a5a;
}
body.theme-girlish .profile-head .handle,
body.theme-girlish .profile-head h1 { color: #3a1a5a; }
body.theme-girlish .profile-head::after {
  content: "🌸  🦄  🌷  🌸  🦄  🌷";
  display: block;
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 6px;
}
body.theme-girlish .avatar { background: linear-gradient(135deg, #fff, #e8c8ff); color: #9a4fd5; }
body.theme-girlish .verified-name {
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: #fff;
  color: #fff;
  animation-name: glow-lavender;
  text-shadow: 0 1px 2px rgba(80,30,130,.55), 0 0 12px rgba(183,112,240,.7);
}
body.theme-girlish .verified-badge {
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(183,112,240,.95)) drop-shadow(0 1px 1px rgba(80,30,130,.5));
}
@keyframes glow-lavender {
  from { text-shadow: 0 1px 2px rgba(80,30,130,.55), 0 0 8px rgba(183,112,240,.55); }
  to   { text-shadow: 0 1px 2px rgba(80,30,130,.55), 0 0 20px rgba(183,112,240,1); }
}

/* men — steel masculine */
body.theme-men {
  --bg:        #0a1016;
  --surface:   #141d26;
  --surface-2: #1c2836;
  --border:    #2a3c4e;
  --text:      #e0eaf5;
  --muted:     #7a8da0;
  --accent:    #1d9bf0;
  --accent-2:  #1377c0;
  background:
    linear-gradient(180deg, #0a1016 0%, #0f1820 100%),
    var(--bg);
}
body.theme-men .profile-head {
  background: linear-gradient(135deg, #1a2a3a, #0a1520);
  border: 1px solid #2a4a6a;
}
body.theme-men .profile-head::after {
  content: "⚡  🔥  🦅  ⚡  🔥  🦅";
  display: block;
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 6px;
  opacity: .9;
}
body.theme-men .avatar { background: linear-gradient(135deg, #1d9bf0, #0a1520); }
body.theme-men .verified-name {
  background: linear-gradient(90deg, #9cd0ff, #ffffff 50%, #9cd0ff);
  -webkit-background-clip: text; background-clip: text;
  animation-name: glow-steel;
}
body.theme-men .verified-badge {
  color: #bfe3ff;
  filter: drop-shadow(0 0 8px rgba(29,155,240,.9));
}
@keyframes glow-steel {
  from { text-shadow: 0 0 6px rgba(29,155,240,.45), 0 0 14px rgba(19,119,192,.25); }
  to   { text-shadow: 0 0 18px rgba(29,155,240,.85), 0 0 34px rgba(19,119,192,.5); }
}

/* sport — green pitch with gold */
body.theme-sport {
  --bg:        #0b1a10;
  --surface:   #0f2a1a;
  --surface-2: #153a24;
  --border:    #225a38;
  --text:      #eaffe8;
  --muted:     #9cc9a8;
  --accent:    #ffd24a;
  --accent-2:  #f2a900;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,210,74,.12) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(15,122,60,.5)  0, transparent 55%),
    var(--bg);
}
body.theme-sport .profile-head {
  background: linear-gradient(135deg, #0f7a3c, #1b5e20 60%, #103a15);
  border: 1px solid #2d7a3d;
}
body.theme-sport .profile-head::after {
  content: "⚽  🏆  🏀  🥇  ⚾  ⛹️  🏅  🏐";
  display: block;
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 6px;
}
body.theme-sport .avatar { background: linear-gradient(135deg, #ffd24a, #ff8a00); color: #14321b; }
body.theme-sport .verified-name {
  background: linear-gradient(90deg, #ffe98b, #ffffff 50%, #ffe98b);
  -webkit-background-clip: text; background-clip: text;
  animation-name: glow-gold;
}
body.theme-sport .verified-badge {
  color: #ffd24a;
  filter: drop-shadow(0 0 9px rgba(255,210,74,.9));
}
@keyframes glow-gold {
  from { text-shadow: 0 0 6px rgba(255,210,74,.5), 0 0 14px rgba(242,169,0,.3); }
  to   { text-shadow: 0 0 18px rgba(255,210,74,.9), 0 0 34px rgba(242,169,0,.55); }
}

/* ========================= Admin area ========================= */
body.admin-body { background: #0a0c10; }
body.admin-body .topbar { background: #12141a; border-bottom-color: #2a2f3a; }
.admin-topbar .brand { color: #ffb547; }
.admin-topbar .brand span {
  background: linear-gradient(90deg, #ffb547, #ff7ab6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-topbar .brand .brand-icon { color: #ffb547; -webkit-text-fill-color: #ffb547; }
.admin-topbar .brand::after { background: linear-gradient(90deg, #ffb547, #ff7ab6); }
.admin-who {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px;
}
.admin-container { max-width: 960px; }

/* Login card */
.admin-login { max-width: 380px; margin: 60px auto; }
.admin-login h1 { text-align: center; margin-bottom: 18px; }

/* ========================= Admin users page ========================= */
.admin-toolbar { padding: 14px; }
.admin-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px 12px;
}
.admin-search:focus-within { border-color: var(--accent); }
.admin-search > i { color: var(--muted); font-size: 18px; }
.admin-search input[type=text] {
  border: 0; background: transparent; padding: 10px 0; flex: 1; outline: none;
}
.admin-search-clear {
  color: var(--muted); width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-search-clear:hover { background: var(--border); color: var(--text); text-decoration: none; }
.admin-search button {
  padding: 8px 16px; font-size: 14px;
}

.admin-filters { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.admin-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.admin-filter:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.admin-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.admin-filter.is-active .admin-filter-count { background: rgba(255,255,255,.22); color: #fff; }
.admin-filter-count {
  background: var(--border); color: var(--text);
  padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  margin-inline-start: 4px;
}

.admin-user-list { padding: 4px; }
.admin-user-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-row:hover { background: var(--surface-2); }
.admin-user-row.is-me { background: rgba(124,92,255,.05); }

.admin-user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7ab6);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 18px; flex: 0 0 auto;
}
.admin-user-avatar:hover { text-decoration: none; }

.admin-user-info { min-width: 0; }
.admin-user-name {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-weight: 600; color: var(--text);
}
.admin-user-name a { color: inherit; }
.admin-user-sub {
  color: var(--muted); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.tag-admin { background: rgba(255,181,71,.15); color: #ffb547; border: 1px solid rgba(255,181,71,.35); }
.tag-me    { background: rgba(124,92,255,.15); color: var(--accent); border: 1px solid rgba(124,92,255,.35); }

.admin-user-metrics { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.metric {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.metric i { font-size: 14px; color: var(--muted); }

.admin-user-actions { display: flex; gap: 4px; }
.inline-form { display: inline; margin: 0; }
.icon-btn {
  background: transparent; border: 1px solid var(--border);
  width: 34px; height: 34px; border-radius: 8px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.icon-btn i { font-size: 16px; }
.icon-btn.is-on { color: #1d9bf0; border-color: #1d9bf0; background: rgba(29,155,240,.08); }
.icon-btn.is-on-admin { color: #ffb547; border-color: #ffb547; background: rgba(255,181,71,.08); }

/* Mobile: stack metrics below info, hide email */
@media (max-width: 720px) {
  .admin-user-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "avatar info actions"
      "avatar metrics metrics";
    row-gap: 8px;
  }
  .admin-user-avatar   { grid-area: avatar; }
  .admin-user-info     { grid-area: info; }
  .admin-user-actions  { grid-area: actions; }
  .admin-user-metrics  { grid-area: metrics; justify-content: flex-start; }
  .admin-user-sub      { display: none; }
  .admin-filters       { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .admin-filter        { flex: 0 0 auto; }
}
