﻿:root {
  --bg: #070d19;
  --bg-card: #15151d;
  --border: rgba(34, 211, 238, 0.25);
  --border-glow: #22d3ee;
  --text: #f2f2f5;
  --text-muted: #9a9aa5;
  --accent: #2dd6e0;
  --danger: #ef4444;
  --radius: 14px;
  --input-bg: #0e0e14;
}

/* Light theme - scoped to the admin panel only (toggled via admin-theme.js) */
html[data-admin-theme="light"] {
  --bg: #f2f3f7;
  --bg-card: #ffffff;
  --border: rgba(15, 23, 42, 0.14);
  --text: #16171c;
  --text-muted: #5c6070;
  --input-bg: #eef0f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

html { scrollbar-color: var(--accent) var(--bg-card); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; border: 2px solid var(--bg-card); }
::-webkit-scrollbar-thumb:hover { background: #8b5cf6; }
::-webkit-scrollbar-corner { background: var(--bg-card); }

.topnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.topnav .brand { grid-column: 1; justify-self: start; }

.brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand span { color: var(--accent); }
.brand-logo { height: 60px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 10px; justify-content: center; grid-column: 2; justify-self: center; }
.nav-links.nav-links-guest { justify-content: center; gap: 14px; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.05);
  color: var(--text) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.nav-pill:hover {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}
.nav-pill { animation: navPillGlow 2.4s ease-in-out infinite alternate; }
.nav-pill:nth-child(2n) { animation-delay: -1.2s; }
@keyframes navPillGlow {
  0%   { box-shadow: 0 0 3px rgba(45,214,224,0.15); border-color: rgba(45,214,224,0.25); }
  100% { box-shadow: 0 0 10px rgba(45,214,224,0.5); border-color: rgba(45,214,224,0.6); }
}
.nav-pill-icon, .nav-pill-icon-cart, .nav-pill-icon-img { display: none; }
.nav-pill-accent { border-color: rgba(34, 211, 238, 0.55); background: rgba(34, 211, 238, 0.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.05);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .topnav { position: relative; flex-wrap: nowrap; padding: 10px 14px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    gap: 6px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px 16px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.4);
    z-index: 40;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-pill {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .nav-links .lang-dropdown { width: 100%; }
  .nav-links .lang-dropdown-toggle { width: 100%; justify-content: flex-start; }
}

.nav-shop-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-vip-tag {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1a1400;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.4;
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
}
.btn-accent:hover { opacity: 0.88; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 8px; }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-danger:hover { background: rgba(239,68,68,0.12); }

.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
  padding: 10px 20px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }

.btn-sm { padding: 6px 14px !important; font-size: 0.8rem !important; }

.back-home-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 14px 0 0; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-muted) !important; text-decoration: none !important;
  font-size: 0.82rem; font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.back-home-btn:hover { border-color: var(--accent); color: var(--accent) !important; }

.ripple-host { position: relative; overflow: hidden; }
.click-ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,0.45); transform: scale(0);
  animation: clickRippleAnim 0.55s ease-out;
}
@keyframes clickRippleAnim {
  to { transform: scale(2.2); opacity: 0; }
}

.admin-user-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.admin-user-card {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.admin-stat-card {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; min-width: 150px; flex: 1;
}
.admin-user-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-user-id { font-weight: 700; color: var(--text-muted); font-size: 0.85rem; }
.admin-user-name { font-weight: 600; color: var(--accent) !important; text-decoration: none !important; }
.admin-user-name:hover { text-decoration: underline !important; }
.admin-user-email, .admin-user-views { color: var(--text-muted); font-size: 0.85rem; }
.admin-badge { font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.admin-badge-vip { background: rgba(250,204,21,0.15); color: #facc15; }
.admin-badge-rank { background: rgba(45,214,224,0.18); color: #c4b5fd; }

.antifraud-header { margin-bottom: 16px; }
.antifraud-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.antifraud-stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.antifraud-stat-label { font-size: 0.68rem; letter-spacing: 0.05em; color: var(--text-muted); }
.antifraud-stat-value { font-size: 1.6rem; font-weight: 800; margin-top: 6px; }
.antifraud-suggestions { margin-bottom: 18px; }
.antifraud-suggestions-header {
  font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.antifraud-suggestion-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--input-bg); border: 1px solid rgba(250,204,21,0.3); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 8px;
}
.antifraud-scope-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 18px;
}
.antifraud-scope-header { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; }
.antifraud-scope-group-label { font-size: 0.65rem; letter-spacing: 0.06em; color: var(--text-muted); margin: 12px 0 4px; }
.antifraud-scope-group-label:first-of-type { margin-top: 0; }
.antifraud-scope-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--border);
}
.antifraud-scope-row:first-of-type { border-top: none; }
.antifraud-scope-badge {
  font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
}
.antifraud-scope-badge-on { background: rgba(45,214,224,0.15); color: var(--accent); }
.admin-badge-danger { background: rgba(248,113,113,0.15); color: #f87171; }
.admin-user-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.admin-user-actions form { margin: 0; display: flex; align-items: center; gap: 8px; }
.admin-rank-select { max-width: 170px; padding: 6px 10px; font-size: 0.82rem; }

.blacklist-modal {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; width: min(520px, 92vw);
  position: relative;
}
.blacklist-modal::backdrop { background: rgba(0,0,0,0.6); }
.blacklist-modal h3 { margin: 0 0 14px; padding-right: 28px; font-size: 1.05rem; }
.blacklist-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: 4px;
}
.blacklist-modal-close:hover { color: var(--text); }
.blacklist-modal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.blacklist-modal-row:first-of-type { border-top: none; }
.blacklist-modal-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blacklist-modal-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.blacklist-modal-value { font-size: 0.9rem; word-break: break-word; }
.blacklist-modal-row form { margin: 0; flex-shrink: 0; }

main { max-width: 880px; margin: 0 auto; padding: 40px 24px 40px; }
main.wide { max-width: 1060px; }
main.admin-page { max-width: none; padding: 24px 20px 40px 8px; }
main.admin-page .account-page.dashboard { max-width: none; }

.dashboard-layout { display: flex; gap: 24px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.dashboard-layout .dashboard { flex: 1 1 480px; }

.phone-preview-wrapper { position: sticky; top: 20px; flex-shrink: 0; }
.phone-frame-glow {
  display: inline-block;
  position: relative;
  padding: 6px;
  border-radius: 42px;
}
.phone-frame-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background: linear-gradient(135deg, #7c3aed, #22d3ee, #f472b6, #facc15);
  z-index: 0;
}
.phone-frame-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 42px;
  box-shadow: 0 0 16px 1px rgba(45,214,224,0.5);
  animation: phoneFramePulse 2.4s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes phoneFramePulse { from { opacity: 0.5; } to { opacity: 1; } }
.phone-mockup {
  position: relative;
  z-index: 1;
  width: 320px; height: 660px;
  border: 10px solid var(--input-bg);
  border-radius: 36px;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  overflow: hidden;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 125px; height: 22px;
  background: var(--input-bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-mockup iframe { width: 100%; height: 100%; border: none; display: block; background: #0b0b10; }
.phone-preview-caption {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 10px;
}
.phone-preview-caption span { font-size: 0.78rem; color: var(--text-muted); }
.phone-refresh-btn {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 0.75rem;
}
.phone-refresh-btn:hover { border-color: var(--accent); }

.site-footer {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); text-decoration: underline; }
.site-footer a:hover { color: var(--text); }

.site-footer-full {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px 24px 24px;
}
.section-divider { border: none; border-top: 1px solid var(--border); margin: 40px 0 0; }

.home-section-wrap:not(:first-child) { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 40px; }
.home-section-wrap:first-child { margin-top: 0; }
#home-sections.admin-sortable .home-section-wrap {
  position: relative;
  outline: 1px dashed transparent;
  transition: outline-color 0.15s;
}
#home-sections.admin-sortable .home-section-wrap:hover { outline-color: rgba(45,214,224,0.4); }
#home-sections.admin-sortable .home-section-wrap.dragging { opacity: 0.4; }
#home-sections.admin-sortable .home-section-wrap.drag-over { outline-color: var(--accent); outline-style: solid; }
.admin-drag-handle-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; position: relative; z-index: 5; }
.admin-drag-handle-row-breakout {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  justify-content: center;
}
.admin-drag-handle {
  display: inline-flex; align-items: center;
  cursor: grab; user-select: none;
  background: rgba(45,214,224,0.15); border: 1px solid rgba(45,214,224,0.4);
  color: var(--text-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
}
.admin-drag-handle:active { cursor: grabbing; }
.admin-drag-handle em { color: var(--text-muted); font-style: normal; opacity: 0.7; }
.admin-hide-toggle {
  border: none; background: rgba(0,0,0,0.25); color: var(--text);
  width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-hide-toggle:hover { background: rgba(45,214,224,0.35); }
.admin-move-btn {
  border: none; background: rgba(0,0,0,0.25); color: var(--text);
  width: 26px; height: 26px; border-radius: 50%; font-size: 0.75rem;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-move-btn:hover { background: rgba(45,214,224,0.35); }
.admin-move-btn:disabled { opacity: 0.3; cursor: default; }
.home-section-wrap.home-section-hidden { opacity: 0.35; }
#home-sections.admin-sortable .home-section-wrap.home-section-hidden { outline: 1px dashed rgba(255,255,255,0.25); }
#nav-menu-items { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.nav-menu-item-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px 12px;
  outline: 1px dashed transparent; transition: outline-color 0.15s, opacity 0.15s;
}
.nav-menu-item-row:hover { outline-color: rgba(45,214,224,0.4); }
.nav-menu-item-row.dragging { opacity: 0.4; }
.nav-menu-item-row.drag-over { outline-color: var(--accent); outline-style: solid; }
.nav-menu-item-row.home-section-hidden { opacity: 0.35; }
.nav-menu-item-label { flex: 1; font-weight: 600; font-size: 0.85rem; }
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
}
.site-footer-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer-col-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px;
}
.site-footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.site-footer-col a:hover { color: var(--text); text-decoration: underline; }
.site-footer-bottom {
  text-align: center; margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
  max-width: 1060px; margin-left: auto; margin-right: auto;
}

.hero { text-align: center; padding: 44px 0 30px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 10px; }
.accent-text { color: var(--accent); }
.hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }

.hero-eyebrow {
  display: inline-block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 18px; margin-bottom: 16px; font-size: 0.85rem; font-weight: 600;
}
.hero-search-form {
  display: flex; align-items: center; gap: 12px;
  max-width: 460px; margin: 0 auto 22px;
  background: var(--bg-card); border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius); padding: 14px 18px;
  color: var(--text-muted);
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.hero-search-form:focus-within { border-color: var(--accent); animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-search-form { animation: none; }
}
.hero-search-form input[type="text"] {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 0.95rem;
  animation: none; width: auto;
}
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; font-size: 0.78rem; color: var(--text-muted);
}
.hero.hero-split {
  display: flex; align-items: center; gap: 36px; text-align: left; flex-wrap: wrap;
}
.hero.hero-bg {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -40px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}
.page-bg-image {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -2;
}
.page-bg-gradient {
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 720px 420px at center, rgba(11,11,16,0.82) 0%, rgba(11,11,16,0.5) 45%, transparent 75%),
              linear-gradient(180deg, transparent 0%, transparent 55%, rgba(11,11,16,0.55) 80%, var(--bg) 100%);
}
.hero.hero-bg .hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  margin: 0;
  padding: 36px 24px;
  box-sizing: border-box;
  text-align: center;
}
.hero.hero-bg .hero-text { max-width: 560px; margin: 0 auto; }
.hero.hero-bg .hero-badges { justify-content: center; }
.hero.hero-bg p { margin-left: auto; margin-right: auto; }
@media (max-width: 780px) {
  .hero.hero-bg { min-height: 0; }
  .page-bg-gradient { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 38%, rgba(11,11,16,0.8) 60%, rgba(11,11,16,0.35) 80%); }
  .hero.hero-bg .hero-text { max-width: 100%; }
}

.vip-promo { margin-top: 40px; }
@keyframes vipCardGlow {
  0%   { box-shadow: 0 0 8px rgba(56,189,248,0.25), 0 0 0 1px rgba(56,189,248,0.25) inset; }
  100% { box-shadow: 0 0 28px rgba(56,189,248,0.6), 0 0 0 1px rgba(56,189,248,0.5) inset; }
}
.roulette-card {
  position: relative;
  overflow: hidden;
  animation: vipCardGlow 2.4s ease-in-out infinite alternate;
  max-width: 260px;
  padding: 12px;
  font-size: 0.8rem;
}
.roulette-card h3 { font-size: 0.95rem; }
.roulette-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(45,214,224,0.28), rgba(34,211,238,0.22), rgba(250,204,21,0.20), rgba(45,214,224,0.28));
  animation: rouletteBgSpin 14s linear infinite;
  z-index: 0;
  filter: blur(46px);
}
.roulette-card > * { position: relative; z-index: 1; }
@keyframes rouletteBgSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .leaderboard-list li, .nav-pill,
  .roulette-card, .roulette-card::before,
  .auth-card, .dashboard, .settings-section, .nav-row,
  .online-card, .online-legend-card,
  form input[type="text"], form input[type="password"], form input[type="url"],
  form input[type="email"], form input[type="number"], form input[type="tel"],
  form input[type="search"], form input[type="date"],
  form textarea, form select,
  .trust-about-card,
  .review-card, .discord-join-card, .shop-product-card,
  .checkout-card, .checkout-method-card, .shop-detail-card,
  .socials-card, .product-detail-price-card, .product-detail-form-card,
  .status-row { animation: none; }
}

.shop-section { margin-top: 40px; }
.shop-section h2 { margin-bottom: 16px; }
.shop-master-title { margin: 0 0 16px; }
.shop-sub-title { margin: 28px 0 14px; }
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 6px 0 14px; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 2.2rem; color: var(--border); cursor: pointer; transition: color 0.1s; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: #facc15; }
.star-rating-display { font-size: 1.3rem; letter-spacing: 2px; }

.review-section { margin-top: 40px; }
.review-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.review-summary-score { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 18px; }
.review-summary-score .score-number { font-size: 1.6rem; font-weight: 700; color: #facc15; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.review-carousel-viewport { overflow: hidden; }
.review-carousel-track.review-grid { grid-template-columns: repeat(4, 1fr); transition: opacity 0.25s ease; }
.review-carousel-track.review-carousel-fade { opacity: 0; }
@media (max-width: 900px) {
  .review-carousel-track.review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .review-carousel-track.review-grid { grid-template-columns: 1fr; }
}
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.review-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.review-card-name { font-weight: 600; }
.review-card-stars { color: #facc15; font-size: 0.9rem; }
.review-card-comment { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin: 8px 0 12px; }
.review-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-card-date { font-size: 0.78rem; color: var(--text-muted); }
.review-card-item {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px;
  font-size: 0.82rem; color: var(--text-muted);
}
.review-card-item-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  background: rgba(45,214,224,0.18); border: 1px solid rgba(45,214,224,0.4);
  font-size: 0.75rem; flex-shrink: 0;
}
.review-see-all-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.review-see-all-link:hover { text-decoration: underline; }

.reviews-page-header { text-align: center; max-width: 620px; margin: 0 auto 24px; }
.reviews-sort-form {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-bottom: 18px; font-size: 0.85rem; color: var(--text-muted);
}
.reviews-sort-form select {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 0.85rem;
}

.trust-about-card {
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius);
  padding: 32px;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.trust-about-glow {
  position: absolute; top: -30%; left: -10%; z-index: 0;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(45,214,224,0.35); filter: blur(80px);
}

/* Same glowing frame on every other card-style block across the site */
.review-card, .discord-join-card, .shop-product-card,
.checkout-card, .checkout-method-card, .shop-detail-card,
.socials-card, .product-detail-price-card, .product-detail-form-card {
  border-color: rgba(34, 211, 238, 0.3);
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.shop-product-card:hover { animation: none; }
.trust-about-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}
.trust-about-left {
  padding-right: 32px;
  border-right: 1px solid var(--border);
}
.trust-about-left h2 { margin: 0 0 12px; font-size: 1.8rem; }
.trust-about-left p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.trust-about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.trust-about-feature { display: flex; align-items: flex-start; gap: 14px; }
.trust-about-feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45,214,224,0.18); border: 1px solid rgba(45,214,224,0.5);
  color: var(--accent);
  border-radius: 12px; font-size: 1.1rem;
}
.trust-about-feature h4 { margin: 0 0 4px; font-size: 1rem; }
.trust-about-feature p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 900px) {
  .trust-about-grid { grid-template-columns: 1fr; }
  .trust-about-left { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 24px; }
}
@media (max-width: 560px) {
  .trust-about-features { grid-template-columns: 1fr; }
}

.discord-join { margin-top: 40px; }
.discord-join-top {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.discord-widget-wrap { margin-top: 28px; }
.discord-widget-embed {
  margin-top: 8px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); line-height: 0;
}
.discord-widget-embed widgetbot { display: block; }
.discord-join-text { flex: 1.3 1 320px; }
.discord-perk-list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.discord-join-card {
  flex: 1 1 320px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.discord-join-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.discord-join-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: #5865F2;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.discord-join-btn { background: #5865F2 !important; }
.discord-join-btn:hover { background: #4752c4 !important; }
.discord-join-card-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); display: block; }
.discord-join-card-name { font-weight: 700; }
.discord-join-stats { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.discord-join-stat {
  flex: 1 1 120px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px;
}
.discord-join-stat-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); display: block; margin-bottom: 4px; }
.discord-join-stat-value { font-size: 1.4rem; font-weight: 700; }
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.shop-product-card {
  display: block; width: 100%; text-align: left; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; padding: 0; font: inherit; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.shop-product-card:hover { border-color: var(--accent); background: rgba(45,214,224,0.06); }
.shop-product-card-disabled { cursor: default; opacity: 0.7; }
.shop-product-card-disabled:hover { border-color: var(--border); background: var(--bg-card); }
.shop-product-card-media {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; background: rgba(45,214,224,0.07);
}
.card-status-dot {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.card-status-dot-online { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.card-status-dot-warning { background: #facc15; box-shadow: 0 0 6px #facc15; }
.card-status-dot-offline { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.product-badge-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; padding: 3px 9px; border-radius: 999px; vertical-align: middle;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.card-badge-pill { position: absolute; top: 10px; left: 10px; z-index: 1; }
.product-live-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted); margin: -8px 0 14px;
}
.shop-product-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-product-card-icon { color: var(--accent); opacity: 0.75; display: inline-flex; }
.shop-product-card-body { padding: 16px; }
.shop-product-card-body h3 { font-size: 1.05rem; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-product-card-stock { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 14px; }
.shop-product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-product-card-footer .muted { font-size: 0.78rem; display: block; }
.shop-product-card-footer strong { color: var(--accent); font-size: 1.05rem; }
.shop-product-card-arrow { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.product-form-with-preview { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.product-form-with-preview form { flex: 1.4 1 360px; }
.product-preview-wrap { flex: 1 1 240px; max-width: 280px; position: sticky; top: 20px; }
.product-preview-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }

.cart-page-v2 { max-width: 1040px; margin: 0 auto; }
.cart-header-panel {
  background: rgba(10,10,16,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px 4px; margin-bottom: 20px;
}
.cart-header-panel .cart-page-divider:last-child { margin-bottom: 0; }
.cart-secure-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cart-secure-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.3);
  border-radius: 999px; padding: 4px 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
}
.cart-secure-row .hint { font-size: 0.76rem; }
.cart-page-header { margin: 0 0 10px; }
.cart-page-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cart-page-header h1 { font-size: 1.5rem; margin: 4px 0 6px; }
.cart-eyebrow-accent { color: var(--accent); }
.cart-digital-note { font-size: 0.78rem; white-space: nowrap; margin-top: 8px; }
.cart-page-header p { font-size: 0.85rem; margin: 0; }
.cart-page-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0 18px; }
.cart-balance-pay {
  background: rgba(45,214,224,0.08); border: 1px solid rgba(45,214,224,0.3);
  border-radius: var(--radius); padding: 10px 12px; margin-bottom: 4px;
}
.cart-balance-pay-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.82rem; }
.cart-balance-pay-amount { font-weight: 700; color: var(--accent); font-size: 0.95rem; }
.cart-layout { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.cart-items { flex: 1.6 1 380px; display: flex; flex-direction: column; gap: 10px; }
.cart-summary-v2 {
  flex: 1 1 300px; position: sticky; top: 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.cart-summary-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cart-summary-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: rgba(45,214,224,0.12); border: 1px solid rgba(45,214,224,0.3);
}
.cart-summary-title { font-weight: 700; }
.cart-summary-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.cart-summary-label-caps { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); }
.cart-summary-total-v2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-total-hint { font-size: 0.72rem; margin-top: 3px; }
.cart-total-amount { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.cart-next-step-label {
  display: block; text-align: center; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px;
}
.cart-trust-list-v2 {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--text-muted);
}
.cart-discount-toggle { margin-bottom: 4px; }
.cart-discount-toggle summary {
  cursor: pointer; font-size: 0.8rem; color: var(--text-muted); list-style: none;
}
.cart-discount-toggle summary::-webkit-details-marker { display: none; }
.cart-discount-toggle .cart-discount-form { margin-top: 8px; }

.cart-item-list {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 14px;
}
.cart-empty-box { padding: 18px 14px; }
.cart-item-card-v2 { padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-card-v2:last-child { border-bottom: none; }
.cart-item-top { display: flex; align-items: flex-start; gap: 12px; }
.cart-item-image { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-item-image-placeholder { display: flex; align-items: center; justify-content: center; background: rgba(45,214,224,0.08); border: 1px solid var(--border); color: var(--accent); opacity: 0.75; }
.cart-item-image-placeholder svg { width: 28px; height: 28px; }
.cart-item-info { flex: 1 1 140px; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item-price-col { text-align: right; flex-shrink: 0; }
.cart-item-total { font-weight: 700; font-size: 0.95rem; }
.cart-item-unit-price { font-size: 0.72rem; margin-top: 2px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cart-item-remove-btn-v2 {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 8px; padding: 5px 10px; font-size: 0.78rem; cursor: pointer;
}
.cart-item-remove-btn-v2:hover { border-color: var(--danger); color: var(--danger); }
.cart-qty-form { display: inline-flex; align-items: center; gap: 6px; }
.cart-qty-btn {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text); cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.cart-qty-btn:disabled { opacity: 0.4; cursor: default; }
.cart-qty-value { min-width: 16px; text-align: center; font-weight: 600; font-size: 0.85rem; }

.cart-discount-form { display: flex; gap: 8px; margin-bottom: 4px; }
.cart-discount-form input[type="text"] {
  flex: 1; background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; color: var(--text); font-size: 0.85rem; text-transform: uppercase;
}
.cart-discount-applied {
  display: flex; align-items: center; gap: 8px; flex: 1;
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80; border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; font-weight: 600;
}
.cart-summary-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: var(--text-muted); padding: 4px 0;
}
.cart-summary-discount { color: #4ade80; }

.vip-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vip-perks li { color: var(--text-muted); font-size: 0.92rem; }
.vip-price { font-size: 1.4rem; font-weight: 700; margin: 12px 0 10px; }

.sys-console {
  background: #08080b;
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 6px 0 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.66rem;
  box-shadow: 0 0 20px rgba(74,222,128,0.08);
  max-width: 380px;
}
.sys-console-header {
  display: flex; align-items: center; justify-content: space-between;
  color: #6b7280;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sys-console-live { display: inline-flex; align-items: center; gap: 5px; color: #4ade80; }
.sys-console-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  animation: sysConsolePulse 1.4s ease-in-out infinite;
}
@keyframes sysConsolePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Live "N online" badge — sits inside .nav-links so it centers together with the rest */
.online-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 8px;
  background: rgba(34, 211, 238, 0.05);
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.online-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px #4ade80;
  animation: sysConsolePulse 1.4s ease-in-out infinite;
}
@media (max-width: 768px) {
  .online-badge { display: none; }
}
.sys-console-body { color: #86efac; line-height: 1.35; text-align: left; }
.sys-console-body div { opacity: 0.75; }
.sys-console-highlight { opacity: 1 !important; color: #4ade80; font-weight: 600; }

.online-section { margin-top: 40px; }
.online-card, .online-legend-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  animation: vipCardGlow 2.4s ease-in-out infinite alternate;
}
.online-legend-card { animation-delay: -1.2s; }
.online-name-offline { opacity: 0.45; font-weight: 500; }
.online-card h3 { font-size: 1rem; margin: 0 0 10px; }
.online-card h3 strong { color: var(--accent); }
.online-names { margin: 0; line-height: 1.9; font-size: 0.9rem; }
.online-names-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}
.online-names-scroll::-webkit-scrollbar { width: 6px; }
.online-names-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.online-names-scroll::-webkit-scrollbar-track { background: transparent; }
.online-sep { color: var(--text-muted); }
.online-name { text-decoration: none; font-weight: 600; }
.online-name:hover { text-decoration: underline; }
.online-name-owner { color: #ef4444; }
.online-name-admin { color: #f97316; }
.online-name-mod { color: #22c55e; }
.online-name-user { color: #38bdf8; }
.online-name-none { color: var(--text-muted); font-weight: 500; }
.online-legend-card {
  margin-top: 12px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem;
}
.online-legend-title { color: var(--text-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.online-legend-card .online-name:hover { text-decoration: none; }

.leaderboard { margin-top: 40px; }
.leaderboard h2 { margin-bottom: 16px; }
.leaderboard-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.leaderboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  animation: vipCardGlow 2.4s ease-in-out infinite alternate;
}
.leaderboard-list li:nth-child(2n) { animation-delay: -1.2s; }
.leaderboard-list a { display: flex; align-items: center; gap: 12px; color: var(--text); }
.leaderboard-list a:hover { text-decoration: none; color: var(--accent); }
.rank { color: var(--accent); font-weight: 700; width: 32px; }
.lb-user { color: var(--text-muted); }
.lb-views { color: var(--text-muted); font-size: 0.9rem; }
.lb-rank { color: #ef4444; font-size: 0.78rem; font-weight: 600; }
.muted { color: var(--text-muted); }

.auth-card, .dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 460px;
  margin: 0 auto;
  animation: vipCardGlow 2.4s ease-in-out infinite alternate;
}
.dashboard { max-width: 640px; }
.account-page.dashboard { max-width: 920px; }

.checkout-page { max-width: 920px; margin: 0 auto; }
.checkout-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.checkout-summary {
  flex: 0 0 280px;
  background: var(--bg-card); border: 1px solid var(--checkout-accent); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 20px;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.checkout-summary-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 22px; }
.checkout-summary-brand img { border-radius: 6px; }
.checkout-summary-total-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); }
.checkout-summary-total { font-size: 1.9rem; font-weight: 800; margin: 2px 0 18px; }
.checkout-summary-items { display: flex; flex-direction: column; }
.checkout-summary-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.checkout-summary-item:first-child { border-top: none; padding-top: 0; }
.checkout-summary-item-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: rgba(45,214,224,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.checkout-summary-item-name { font-size: 0.85rem; font-weight: 600; }
.checkout-summary-divider { border-top: 1px solid var(--border); margin: 16px 0; }
.checkout-summary-row { display: flex; justify-content: space-between; font-weight: 700; }
.checkout-summary-support-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 18px; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text); font-size: 0.82rem; font-weight: 600;
  text-decoration: none;
}
.checkout-summary-support-btn:hover { border-color: var(--border-glow); text-decoration: none; }

.checkout-main { flex: 1 1 380px; min-width: 280px; }
.checkout-stepper {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; font-size: 0.82rem; color: var(--text-muted);
}
.checkout-step { display: flex; align-items: center; gap: 8px; }
.checkout-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700;
}
.checkout-step-active { color: var(--text); font-weight: 700; }
.checkout-step-active .checkout-step-num { background: var(--accent); color: #04211f; }
.checkout-step-line { flex: 1; height: 1px; background: var(--border); min-width: 16px; }

.payment-steps {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 14px;
  counter-reset: payment-step;
}
.payment-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  line-height: 1.6;
}
.payment-steps li > div { flex: 1; min-width: 0; }
.payment-steps li::before {
  content: counter(payment-step);
  counter-increment: payment-step;
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(45,214,224,0.15); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; margin-top: 1px;
}

.checkout-card {
  background: var(--bg-card); border: 1px solid var(--checkout-accent); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.checkout-alt-divider {
  text-align: center; font-size: 0.75rem; color: var(--text-muted);
  margin: 18px 0 10px;
}
.checkout-method-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 8px;
}
.checkout-method-row form { display: contents; }
.checkout-method-card {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 60%);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px;
  color: var(--text); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.checkout-method-card:hover {
  border-color: rgba(var(--coin-rgb, 45,214,224), 0.55);
  background: rgba(var(--coin-rgb, 45,214,224), 0.08);
  transform: translateY(-1px);
}
.checkout-method-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(var(--coin-rgb, 45,214,224), 0.15);
  font-size: 1.05rem; line-height: 1;
}

.pay-with-select { position: relative; margin-top: 8px; }
.pay-with-trigger {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--input-bg); border: 1px solid var(--border-glow); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; text-align: left; color: var(--text);
}
.pay-with-trigger-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(var(--coin-rgb, 45,214,224), 0.15); font-size: 1.1rem;
}
.pay-with-trigger-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-with-trigger-label { font-size: 0.66rem; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.pay-with-trigger-name { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-with-trigger-arrow { color: var(--text-muted); transition: transform .15s ease; flex-shrink: 0; }
.pay-with-select.open .pay-with-trigger-arrow { transform: rotate(180deg); }

.pay-with-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: #0e0e14; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); overflow: hidden;
}
.pay-with-search-wrap { padding: 10px; border-bottom: 1px solid var(--border); }
.pay-with-search {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; color: var(--text); font-size: 0.85rem;
}
.pay-with-list-label { padding: 10px 14px 4px; font-size: 0.64rem; letter-spacing: 0.06em; color: var(--text-muted); }
.pay-with-list { max-height: 280px; overflow-y: auto; padding: 4px 6px 8px; }
.pay-with-option {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; border-radius: 8px; padding: 9px 8px; color: var(--text);
  cursor: pointer; font-size: 0.85rem;
}
.pay-with-option:hover { background: rgba(var(--coin-rgb, 45,214,224), 0.08); }
.pay-with-option-active { background: rgba(var(--coin-rgb, 45,214,224), 0.14); }
.pay-with-option-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(var(--coin-rgb, 45,214,224), 0.15); font-size: 0.95rem;
}
.pay-with-option-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.pay-with-option-name { font-weight: 600; }
.pay-with-option-ticker { font-size: 0.72rem; color: var(--text-muted); }
.pay-with-option-check { color: var(--checkout-accent); font-weight: 700; flex-shrink: 0; }

.checkout-v2 {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  --checkout-accent: var(--accent); --checkout-accent-rgb: 45,214,224;
}
.checkout-v2-header {
  background: var(--bg-card); border: 1px solid var(--checkout-accent); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 14px;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.checkout-v2-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.checkout-v2-title { margin: 0; font-size: 1.9rem; letter-spacing: -0.02em; color: var(--checkout-accent); }
.checkout-v2-subtitle { margin: 6px 0 0; color: var(--text-muted); font-size: 0.85rem; }
.checkout-v2-method-badge {
  font-size: 0.65rem; letter-spacing: 0.05em; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; white-space: nowrap;
}
.checkout-v2-method-badge strong { color: var(--checkout-accent); margin-left: 4px; }
.checkout-v2 .checkout-stepper { margin-top: 20px; }

.checkout-status-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(var(--checkout-accent-rgb),0.07), rgba(var(--checkout-accent-rgb),0));
  border: 1px solid var(--checkout-accent); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 16px;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.checkout-status-eyebrow { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--checkout-accent); }
.checkout-status-title { font-weight: 700; font-size: 1.05rem; margin-top: 4px; color: var(--checkout-accent); }
.checkout-status-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.checkout-status-pill {
  font-size: 0.68rem; letter-spacing: 0.03em; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 10px; white-space: nowrap;
}
.checkout-status-pill-accent { color: #facc15; background: rgba(250,204,21,0.1); border-color: rgba(250,204,21,0.3); }
.checkout-status-amount { font-weight: 700; font-size: 1.1rem; }

.checkout-summary-order-id {
  font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.02em;
  margin: -6px 0 10px; word-break: break-word;
}

.checkout-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.checkout-card-header-label { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--checkout-accent); }
.checkout-card-divider { height: 1px; background: var(--border); margin: 18px 0; }

.pay-method-list { display: flex; flex-direction: column; gap: 10px; }
.pay-method-card, .pay-method-card-inner {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 0.85rem;
  cursor: pointer;
}
.pay-method-card { position: relative; }
.pay-method-card.pay-with-select { padding: 0; background: none; border: none; }
.pay-method-card.pay-with-select .pay-method-card-inner { border-radius: 12px; }
.pay-method-card-active > .pay-method-card-inner,
button.pay-method-card.pay-method-card-active,
.pay-method-card.pay-method-card-active > .pay-method-card-inner {
  border-color: var(--border); background: rgba(255,255,255,0.04);
}
.pay-method-radio {
  width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 2px;
}
.pay-method-card-active .pay-method-radio,
.pay-method-card-active > .pay-method-card-inner .pay-method-radio {
  border-color: var(--text-muted); background: var(--text);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}
.pay-method-body { flex: 1; min-width: 0; }
.pay-method-name-row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pay-method-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(var(--coin-rgb, 45,214,224), 0.15); font-size: 0.8rem; flex-shrink: 0;
}
.pay-method-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.pay-method-arrow { color: var(--text-muted); flex-shrink: 0; align-self: center; transition: transform .15s ease; }
.pay-with-select.open .pay-method-arrow { transform: rotate(180deg); }

.checkout-stepper-v2 { display: flex; align-items: flex-start; margin-top: 20px; }
.checkout-stepper-v2-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.checkout-stepper-v2-box {
  width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem;
  color: var(--text-muted); background: var(--input-bg);
}
.checkout-stepper-v2-step.done .checkout-stepper-v2-box {
  border-color: var(--checkout-accent); color: var(--checkout-accent); background: rgba(var(--checkout-accent-rgb),0.12);
}
.checkout-stepper-v2-step.active .checkout-stepper-v2-box {
  border-color: var(--checkout-accent); color: var(--checkout-accent); background: rgba(var(--checkout-accent-rgb),0.12);
  box-shadow: 0 0 0 4px rgba(var(--checkout-accent-rgb),0.12);
}
.checkout-stepper-v2-labels { text-align: center; min-width: 74px; }
.checkout-stepper-v2-phase { font-size: 0.6rem; letter-spacing: 0.06em; color: var(--text-muted); }
.checkout-stepper-v2-name { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.checkout-stepper-v2-step.done .checkout-stepper-v2-name,
.checkout-stepper-v2-step.active .checkout-stepper-v2-name { color: var(--text); }
.checkout-stepper-v2-step.done .checkout-stepper-v2-phase,
.checkout-stepper-v2-step.active .checkout-stepper-v2-phase { color: var(--checkout-accent); }
.checkout-stepper-v2-line { flex: 1; height: 2px; background: var(--border); margin-top: 18px; min-width: 16px; }
.checkout-stepper-v2-line.done { background: var(--checkout-accent); }
@media (max-width: 560px) {
  .checkout-stepper-v2-labels { min-width: 0; }
  .checkout-stepper-v2-phase { display: none; }
}

.checkout-summary-section-label { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-muted); margin: 4px 0 10px; }
.checkout-summary-product-list { display: flex; flex-direction: column; gap: 8px; }
.checkout-summary-product-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px;
}
.checkout-summary-product-media {
  position: relative; width: 42px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center;
}
.checkout-summary-product-icon { font-size: 1.1rem; }
.checkout-summary-product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.checkout-summary-product-body { flex: 1; min-width: 0; }
.checkout-summary-product-name { font-weight: 700; font-size: 0.85rem; }
.checkout-summary-product-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.checkout-summary-tag {
  font-size: 0.62rem; letter-spacing: 0.03em; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 5px; padding: 3px 7px;
}
.checkout-summary-tag-accent { color: var(--checkout-accent); border-color: rgba(var(--checkout-accent-rgb),0.4); background: rgba(var(--checkout-accent-rgb),0.08); }
.checkout-summary-delivery-hint { font-size: 0.75rem; color: var(--text-muted); margin: 10px 0 0; }

.checkout-instr-card {
  background: var(--bg-card); border: 1px solid var(--checkout-accent, var(--border-glow)); border-radius: var(--radius);
  padding: 20px; font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.checkout-instr-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.checkout-instr-eyebrow { font-size: 0.62rem; letter-spacing: 0.06em; color: var(--text-muted); }
.checkout-instr-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.65rem; letter-spacing: 0.04em;
  color: var(--accent); background: rgba(45,214,224,0.1); border: 1px solid rgba(45,214,224,0.35);
  border-radius: 999px; padding: 5px 12px;
}
.checkout-instr-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--checkout-accent); }
.checkout-instr-title { margin: 10px 0 4px; font-size: 1.3rem; }
.checkout-instr-subtitle { margin: 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
.checkout-instr-divider { height: 1px; background: var(--border); margin: 16px 0; }
.checkout-instr-steps { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.checkout-instr-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.85rem; }
.checkout-instr-step-num {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 7px; background: rgba(45,214,224,0.12); color: var(--accent);
  font-weight: 700; font-size: 0.75rem;
}

.checkout-amount-box {
  position: relative; background: #0e0e14; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin-top: 20px;
}
.checkout-amount-label { position: absolute; top: 14px; right: 18px; font-size: 0.6rem; letter-spacing: 0.06em; color: var(--text-muted); }
.checkout-amount-value { font-size: 1.7rem; font-weight: 700; }
.checkout-amount-unit { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.checkout-amount-hint { font-size: 0.6rem; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 6px; }

.checkout-address-card {
  background: #0e0e14; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-top: 16px;
}
.checkout-address-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.65rem; letter-spacing: 0.05em; color: var(--text-muted); }
.checkout-copy-btn {
  display: inline-flex; align-items: center; gap: 5px; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px; color: var(--text); font-size: 0.62rem; letter-spacing: 0.04em;
  cursor: pointer; font-family: inherit;
}
.checkout-copy-btn:hover { border-color: var(--checkout-accent, var(--border-glow)); }
.checkout-qr-wrap { text-align: center; margin: 16px 0; }
.checkout-qr-wrap img { background: #fff; padding: 10px; border-radius: 12px; }
.checkout-qr-hint { font-size: 0.62rem; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 8px; }
.checkout-address-value {
  font-size: 0.8rem; word-break: break-all; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; margin-top: 4px;
}
.checkout-address-warning { font-size: 0.72rem; color: #facc15; margin: 10px 0 0; }

@media (max-width: 680px) {
  .checkout-v2-header-top { flex-direction: column; }
  .checkout-status-banner { flex-direction: column; align-items: flex-start; }
  .checkout-summary { position: static; flex-basis: 100%; }
}

.account-layout { display: flex; gap: 24px; align-items: flex-start; margin-top: 20px; flex-wrap: wrap; }
.account-sidebar {
  flex: 0 0 230px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 20px;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 14px;
}
.account-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 16px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.account-sidebar-brand > div:nth-child(2) { flex: 1; }

.theme-switcher { position: relative; flex-shrink: 0; }
.theme-switcher-btn {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.theme-switcher-btn:hover { border-color: var(--border-glow); }
.theme-switcher-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; min-width: 150px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.theme-switcher-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; background: none; border: none; border-radius: 7px;
  padding: 8px 10px; font-size: 0.82rem; color: var(--text);
  cursor: pointer; text-align: left; white-space: nowrap;
}
.theme-switcher-option:hover { background: rgba(45,214,224,0.12); }
.theme-switcher-check { opacity: 0; color: var(--accent); font-weight: 700; }
.theme-switcher-option.active .theme-switcher-check { opacity: 1; }
.account-sidebar-logo {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #ec4899, #2dd6e0);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(45,214,224,0.4);
}
img.account-sidebar-logo {
  width: 44px; height: 44px; object-fit: contain;
  background: none; box-shadow: none; border-radius: 0;
}
.account-sidebar-brand-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.account-sidebar-brand-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.07em; margin-top: 1px; }
.account-sidebar-group-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0.65;
  padding: 14px 14px 4px;
}
.account-sidebar-group-label:first-of-type { padding-top: 4px; }
.account-nav-btn {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: none; border: none; border-radius: 14px;
  color: var(--text-muted); font-size: 0.86rem; font-weight: 600;
  padding: 11px 14px; cursor: pointer; width: 100%;
  position: relative;
}
.account-nav-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.account-nav-btn-active {
  background: linear-gradient(135deg, rgba(236,72,153,0.28), rgba(45,214,224,0.38));
  color: #fff;
}
.account-nav-btn-active::before {
  content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, #ec4899, #2dd6e0);
}
.account-sidebar-user {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
}
.account-sidebar-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, #ec4899, #2dd6e0);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.85rem;
}
.account-sidebar-user-avatar::after {
  content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px;
  border-radius: 50%; background: #22c55e; border: 2px solid var(--input-bg);
}
.account-sidebar-user-name { font-weight: 600; font-size: 0.8rem; color: var(--text); }
.account-sidebar-user-role { font-size: 0.68rem; color: var(--text-muted); }
.account-sidebar-user-logout {
  margin-left: auto; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.account-sidebar-user-logout:hover {
  background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4);
  text-decoration: none;
}
.account-content { flex: 1 1 400px; min-width: 0; }

/* Flatter, solid green/teal "wallet dashboard" look for the customer-facing
   account settings page only (scoped by .account-page-customer — admin.html
   also carries the shared .account-page class, so that alone isn't unique). */
.account-page-customer .account-sidebar {
  background: #0a1613;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(45,214,224,0.16);
  border-radius: 14px;
}
.account-page-customer .account-sidebar-brand { border-bottom-color: rgba(45,214,224,0.14); }
.account-page-customer .account-nav-btn { border-radius: 9px; font-weight: 500; }
.account-page-customer .account-nav-btn:hover { background: rgba(45,214,224,0.08); }
.account-page-customer .account-nav-btn-active {
  background: var(--accent); color: #04211f; font-weight: 700;
}
.account-page-customer .account-nav-btn-active::before { content: none; }
.account-page-customer .account-topup-btn {
  justify-content: center; margin: 4px 0 14px;
  background: var(--accent); color: #04211f; font-weight: 700;
  border-radius: 9px;
}
.account-page-customer .account-topup-btn:hover { background: var(--accent); filter: brightness(1.08); }
.account-page-customer .account-sidebar-user { background: rgba(45,214,224,0.05); border-color: rgba(45,214,224,0.14); }
.account-page-customer .settings-section {
  background: #0a1613;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(45,214,224,0.14);
  border-radius: 10px;
}
.account-page-customer .settings-section summary:hover { background: rgba(45,214,224,0.05); }
.account-page-customer .settings-section[open] summary { border-bottom: 1px solid rgba(45,214,224,0.12); }

@media (max-width: 720px) {
  .account-sidebar { flex-direction: row; flex-wrap: wrap; position: static; flex-basis: 100%; }
  .account-sidebar-brand { flex-basis: 100%; }
  .account-nav-btn { width: auto; }
  .account-sidebar-user { flex-basis: 100%; }
}

.shop-detail-image {
  width: 100%; max-height: 260px; object-fit: cover;
  border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--border);
}
.shop-detail-card {
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; margin-top: 16px;
}
.shop-detail-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.shop-detail-price { font-size: 1.8rem; font-weight: 700; margin: 4px 0 8px; color: var(--accent); }
.shop-detail-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-muted); font-size: 0.92rem; }
.shop-detail-line { margin: 8px 0; font-size: 0.92rem; }

.auth-card h1, .dashboard h1 { margin-top: 0; }

form label { display: block; margin: 16px 0 6px; font-size: 0.9rem; color: var(--text-muted); }
form input[type="text"],
form input[type="password"],
form input[type="url"],
form input[type="email"],
form input[type="number"],
form input[type="tel"],
form input[type="search"],
form input[type="date"],
form textarea,
form select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form input[type="tel"]:focus,
form input[type="search"]:focus,
form input[type="date"]:focus,
form input[type="url"]:focus,
form textarea:focus,
form select:focus {
  animation: none;
  border-color: var(--accent);
  outline: none;
}
form input[type="color"] {
  width: 60px; height: 40px; border: 1px solid var(--border);
  border-radius: 8px; background: transparent; cursor: pointer;
}
form textarea { resize: vertical; }
.hint { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 0; }

.url-preview { margin: 6px 0 0; }
.url-preview-media {
  max-width: 160px; max-height: 90px;
  border-radius: 8px; border: 1px solid var(--border);
  display: block; object-fit: cover;
}
.url-preview-error { font-size: 0.8rem; color: #fca5a5; }
.url-preview-ok { color: #86efac; }

fieldset { border: none; padding: 0; margin: 0 0 20px; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 400; font-size: 0.9rem; color: var(--text);
  margin: 10px 0; cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.toggle-switch {
  display: flex; align-items: center; gap: 12px;
  font-weight: 400; font-size: 0.9rem; color: var(--text);
  margin: 12px 0; cursor: pointer; user-select: none;
}
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: relative; flex-shrink: 0;
  width: 40px; height: 22px;
  background: rgba(255,255,255,0.14);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.toggle-slider::before {
  content: "";
  position: absolute; top: 1px; left: 1px;
  width: 18px; height: 18px;
  background: #f2f2f5;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-switch input:focus-visible + .toggle-slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text { line-height: 1.3; }
fieldset legend { font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--border); width: 100%; }

.settings-section {
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; margin-bottom: 14px; overflow: hidden;
}
.settings-section summary {
  cursor: pointer; list-style: none; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 600; user-select: none;
}
.settings-section summary::-webkit-details-marker { display: none; }
.settings-section summary::after {
  content: "▼"; color: var(--text-muted); font-size: 0.8rem; transition: transform 0.15s;
}
.settings-section[open] summary::after { transform: rotate(180deg); }
.settings-section summary:hover { background: rgba(255,255,255,0.03); }
.settings-section .settings-section-body { padding: 0 16px 18px; }
.settings-section-title { display: flex; align-items: center; gap: 8px; }

.embed-preview-section { margin-top: 28px; }
.embed-preview-section h2 { font-size: 1rem; }
.discord-embed-mock {
  background: #2b2d31; border-left: 4px solid var(--accent);
  border-radius: 4px; padding: 12px 14px; max-width: 430px;
  font-family: "gg sans", Poppins, sans-serif;
}
.discord-embed-sitename { color: #949ba4; font-size: 0.72rem; font-weight: 500; margin-bottom: 2px; }
.discord-embed-title { color: #00a8fc; font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; word-break: break-word; }
.discord-embed-desc { color: #dbdee1; font-size: 0.82rem; line-height: 1.4; word-break: break-word; }
.discord-embed-image {
  display: block; margin-top: 10px; max-width: 100%; max-height: 220px;
  border-radius: 5px; object-fit: cover;
}

.links-manager { margin-top: 40px; }
.link-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.link-list li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
}
.link-platform { font-weight: 600; min-width: 100px; }
.link-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-list form { margin: 0; }

.invite-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.invite-item {
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.invite-item-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-code {
  font-family: monospace; font-size: 0.95rem; font-weight: 600;
  background: rgba(45,214,224,0.15); color: var(--accent);
  border-radius: 6px; padding: 3px 8px; letter-spacing: 0.5px;
}
.invite-code-inactive { color: #6b6b76; background: rgba(107,107,118,0.12); text-decoration: line-through; }
.invite-status { font-size: 0.82rem; font-weight: 600; }
.invite-status-available { color: #22c55e; }
.invite-status-used { color: #9a9aa5; }
.invite-status-expired { color: #ef4444; }
.invite-sub { font-size: 0.78rem; margin-top: 4px; }
.invite-item-expired .invite-item-row { opacity: 0.75; }

.badge-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-picker-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px;
  cursor: pointer; font-size: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
}
.badge-picker-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.badge-picker-item.checked { border-color: var(--accent); background: rgba(45,214,224,0.15); }
.badge-picker-item input:disabled + .badge-picker-icon { opacity: 0.4; }
.badge-picker-icon { font-size: 1rem; }

.custom-badge-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid; border-radius: 999px;
  padding: 4px 12px; font-size: 0.82rem; font-weight: 600;
  flex: 1;
}
.tag-list .custom-badge-chip { flex: none; }

.add-link-form { display: flex; gap: 8px; }
.add-link-form input { flex: 1; }

.case-opener { margin-top: 10px; }
.case-track-window {
  position: relative;
  height: 42px;
  overflow: hidden;
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: 7px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.case-track { display: flex; align-items: center; height: 100%; width: max-content; }
.case-item {
  width: 34px; height: 34px; flex-shrink: 0; margin: 0 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; border-radius: 6px;
  background: #15151d; border: 2px solid var(--border);
}
.case-item-common { border-color: rgba(255,255,255,0.15); filter: grayscale(0.4) opacity(0.8); }
.case-item-balance { border-color: #4ade80; box-shadow: 0 0 12px rgba(74,222,128,0.35) inset; }
.case-item-key { border-color: #22d3ee; box-shadow: 0 0 12px rgba(34,211,238,0.35) inset; }
.case-item-vip { border-color: #facc15; box-shadow: 0 0 16px rgba(250,204,21,0.5) inset; }
.case-pointer {
  position: absolute; top: 0; left: 50%; width: 2px; height: 100%;
  background: var(--accent); transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent);
  pointer-events: none;
}
.case-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; opacity: 0.25; pointer-events: none;
}

.chat-page { max-width: 720px; }
.chat-messages {
  height: 520px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.chat-empty { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: auto; }

.chat-msg { display: flex; gap: 10px; }
.chat-msg-compact { gap: 10px; margin-top: -6px; }
.chat-msg-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1a1a24; }
.chat-msg-compact .chat-msg-avatar { visibility: hidden; }
.chat-msg-body { display: flex; flex-direction: column; gap: 2px; max-width: 72%; min-width: 0; }
.chat-msg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-msg-name { font-weight: 600; font-size: 0.85rem; text-decoration: none !important; }
.chat-msg-name:hover { text-decoration: underline !important; }
.chat-msg-time { font-size: 0.66rem; color: var(--text-muted); margin-left: auto; }
.chat-msg-text {
  display: inline-block; align-self: flex-start;
  font-size: 0.88rem; color: var(--text); white-space: pre-wrap; word-wrap: break-word;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 14px;
}
.chat-msg-delete {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 0.75rem; padding: 0 2px;
}
.chat-msg-delete:hover { color: var(--danger); }

.chat-msg-own { flex-direction: row-reverse; }
.chat-msg-own .chat-msg-body { align-items: flex-end; margin-left: auto; }
.chat-msg-own .chat-msg-head { flex-direction: row-reverse; }
.chat-msg-own .chat-msg-time { margin-left: 0; margin-right: auto; }
.chat-msg-own .chat-msg-text {
  align-self: flex-end;
  background: rgba(45,214,224,0.22); border-color: rgba(45,214,224,0.4);
}

.rank-badge-inline { font-size: 0.66rem; font-weight: 600; color: #ef4444; }
.rank-badge-inline.rank-user, .rank-badge.rank-user, .lb-rank.lb-rank-user { color: #38bdf8; }
.vip-badge-inline {
  font-size: 0.6rem; font-weight: 700; background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1a1400; padding: 1px 6px; border-radius: 999px;
}

.chat-msg-bot .chat-msg-text { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.35); }
.chat-msg-bot .chat-msg-name { color: #22d3ee !important; }

.chat-form { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.chat-form input { flex: 1; }
.chat-char-count { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

.ticket-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ticket-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.ticket-msg-admin { align-self: flex-start; border-color: var(--accent); }
.ticket-msg-user { align-self: flex-end; background: #1a1428; }
.ticket-msg-meta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.ticket-msg-body { font-size: 0.92rem; white-space: pre-wrap; word-wrap: break-word; }

.home-bg {
  position: fixed;
  inset: -40px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.home-bg.home-bg-photo { background: none; }
.home-bg::before { display: none; }
.home-bg::after { display: none; }
@keyframes homeGridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(46px, 46px); }
}
@keyframes homeGlowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes homeGlowColorShift {
  0%   { background: radial-gradient(ellipse 650px 450px at 50% 0%, rgba(167,139,250,0.35), transparent 70%); }
  33%  { background: radial-gradient(ellipse 650px 450px at 50% 0%, rgba(34,211,238,0.32), transparent 70%); }
  66%  { background: radial-gradient(ellipse 650px 450px at 50% 0%, rgba(244,114,182,0.28), transparent 70%); }
  100% { background: radial-gradient(ellipse 650px 450px at 50% 0%, rgba(167,139,250,0.35), transparent 70%); }
}
.home-bg-spark { display: none; }
.home-bg-spark--unused {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(216,203,255,0.95);
  box-shadow: 0 0 6px 1px rgba(196,181,253,0.75);
  animation: homeSparkRise linear infinite;
}
.home-bg-spark:nth-child(1) { left: 4%; animation-duration: 12s; animation-delay: 0s; }
.home-bg-spark:nth-child(2) { left: 14%; animation-duration: 9s; animation-delay: -3s; }
.home-bg-spark:nth-child(3) { left: 24%; animation-duration: 14s; animation-delay: -7s; }
.home-bg-spark:nth-child(4) { left: 35%; animation-duration: 10s; animation-delay: -1s; }
.home-bg-spark:nth-child(5) { left: 47%; animation-duration: 13s; animation-delay: -5s; }
.home-bg-spark:nth-child(6) { left: 58%; animation-duration: 11s; animation-delay: -9s; }
.home-bg-spark:nth-child(7) { left: 68%; animation-duration: 15s; animation-delay: -2s; }
.home-bg-spark:nth-child(8) { left: 78%; animation-duration: 9.5s; animation-delay: -6s; }
.home-bg-spark:nth-child(9) { left: 88%; animation-duration: 12.5s; animation-delay: -10s; }
.home-bg-spark:nth-child(10) { left: 95%; animation-duration: 10.5s; animation-delay: -4s; }
@keyframes homeSparkRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.5; }
  100% { transform: translateY(-640px) scale(0.4); opacity: 0; }
}
.home-bg-shooting-star { display: none; }
.home-bg-shooting-star--unused {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.9);
  opacity: 0;
  animation: homeShootingStar 9s ease-in infinite;
}
.home-bg-shooting-star::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), transparent);
  transform: translateY(-50%);
}
.home-bg-shooting-star:nth-child(11) { top: 12%; left: 78%; animation-delay: 1s; }
.home-bg-shooting-star:nth-child(12) { top: 32%; left: 45%; animation-delay: 5.5s; }
@keyframes homeShootingStar {
  0% { transform: translate(0, 0); opacity: 0; }
  2% { opacity: 1; }
  12% { transform: translate(-280px, 170px); opacity: 0; }
  100% { transform: translate(-280px, 170px); opacity: 0; }
}
.home-bg-bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  border: 1px solid rgba(196,181,253,0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.20), rgba(167,139,250,0.05) 60%, transparent 75%);
  animation: homeBubbleRise linear infinite;
}
.home-bg-bubble:nth-child(13) { left: 8%;  width: 14px; height: 14px; animation-duration: 16s; animation-delay: -2s; }
.home-bg-bubble:nth-child(14) { left: 20%; width: 9px;  height: 9px;  animation-duration: 13s; animation-delay: -8s; }
.home-bg-bubble:nth-child(15) { left: 33%; width: 20px; height: 20px; animation-duration: 20s; animation-delay: -4s; }
.home-bg-bubble:nth-child(16) { left: 46%; width: 11px; height: 11px; animation-duration: 15s; animation-delay: -11s; }
.home-bg-bubble:nth-child(17) { left: 59%; width: 26px; height: 26px; animation-duration: 22s; animation-delay: -6s; }
.home-bg-bubble:nth-child(18) { left: 71%; width: 8px;  height: 8px;  animation-duration: 12s; animation-delay: -1s; }
.home-bg-bubble:nth-child(19) { left: 84%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: -9s; }
.home-bg-bubble:nth-child(20) { left: 93%; width: 12px; height: 12px; animation-duration: 14s; animation-delay: -13s; }
@keyframes homeBubbleRise {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 0.8; }
  25%  { transform: translate(14px, -180px); }
  50%  { transform: translate(-10px, -360px); }
  75%  { transform: translate(12px, -540px); }
  92%  { opacity: 0.4; }
  100% { transform: translate(0, -720px); opacity: 0; }
}

/* Falling decorative particles (snow / leaves / santa) - admin-selectable
   alternative to the rising bubbles, sharing the same staggered timing slots. */
.home-bg-particle {
  position: absolute;
  top: -40px;
  line-height: 1;
  animation: homeParticleFall linear infinite;
  will-change: transform;
}
.home-bg-particle:nth-child(13) { left: 4%;  font-size: 18px; animation-duration: 13s; animation-delay: -2s; }
.home-bg-particle:nth-child(14) { left: 16%; font-size: 24px; animation-duration: 17s; animation-delay: -8s; }
.home-bg-particle:nth-child(15) { left: 27%; font-size: 15px; animation-duration: 11s; animation-delay: -4s; }
.home-bg-particle:nth-child(16) { left: 39%; font-size: 21px; animation-duration: 15s; animation-delay: -11s; }
.home-bg-particle:nth-child(17) { left: 51%; font-size: 17px; animation-duration: 12s; animation-delay: -6s; }
.home-bg-particle:nth-child(18) { left: 62%; font-size: 26px; animation-duration: 19s; animation-delay: -1s; }
.home-bg-particle:nth-child(19) { left: 73%; font-size: 16px; animation-duration: 14s; animation-delay: -9s; }
.home-bg-particle:nth-child(20) { left: 84%; font-size: 22px; animation-duration: 18s; animation-delay: -13s; }
.home-bg-particle:nth-child(21) { left: 92%; font-size: 15px; animation-duration: 13s; animation-delay: -5s; }
.home-bg-particle:nth-child(22) { left: 8%;  font-size: 19px; animation-duration: 16s; animation-delay: -10s; }
@keyframes homeParticleFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.85; }
  50%  { transform: translate(30px, 380px) rotate(160deg); }
  92%  { opacity: 0.6; }
  100% { transform: translate(-16px, 780px) rotate(320deg); opacity: 0; }
}
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.holiday-lampki-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

.smoke-fire-fx { position: absolute; inset: 0; overflow: hidden; }
.ff-flame {
  position: absolute; bottom: -6%; width: 140px; height: 200px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #fff3b0 0%, #fbbf24 22%, #f97316 45%, #dc2626 68%, rgba(220,38,38,0) 78%);
  filter: blur(6px);
  opacity: 0.85;
  animation: ffFlicker 2.6s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.ff-flame-1 { left: 6%;  width: 160px; height: 230px; animation-duration: 2.2s; }
.ff-flame-2 { left: 32%; width: 120px; height: 190px; animation-duration: 2.8s; animation-delay: -0.6s; }
.ff-flame-3 { left: 60%; width: 150px; height: 210px; animation-duration: 2.4s; animation-delay: -1.2s; }
.ff-flame-4 { left: 84%; width: 130px; height: 195px; animation-duration: 3s;   animation-delay: -1.8s; }
@keyframes ffFlicker {
  0%   { transform: scaleY(1) scaleX(1) translateX(0); opacity: 0.75; }
  30%  { transform: scaleY(1.08) scaleX(0.96) translateX(-3px); opacity: 0.9; }
  60%  { transform: scaleY(0.94) scaleX(1.05) translateX(4px); opacity: 0.8; }
  100% { transform: scaleY(1.05) scaleX(0.98) translateX(-2px); opacity: 0.95; }
}
.ff-smoke {
  position: absolute; bottom: 10%; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,230,235,0.55) 0%, rgba(200,200,210,0.25) 45%, rgba(200,200,210,0) 75%);
  filter: blur(4px);
  animation: ffSmokeRise linear infinite;
  opacity: 0;
}
.ff-smoke-1 { left: 10%; width: 70px;  height: 70px;  animation-duration: 9s;   animation-delay: 0s; }
.ff-smoke-2 { left: 30%; width: 100px; height: 100px; animation-duration: 11s;  animation-delay: -3s; }
.ff-smoke-3 { left: 52%; width: 80px;  height: 80px;  animation-duration: 10s;  animation-delay: -6s; }
.ff-smoke-4 { left: 74%; width: 110px; height: 110px; animation-duration: 12s;  animation-delay: -2s; }
.ff-smoke-5 { left: 90%; width: 75px;  height: 75px;  animation-duration: 9.5s; animation-delay: -5s; }
@keyframes ffSmokeRise {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  15%  { opacity: 0.55; }
  70%  { opacity: 0.3; }
  100% { transform: translateY(-70vh) scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-bg::before, .home-bg::after, .home-bg-spark,
  .home-bg-shooting-star, .home-bg-bubble, .home-bg-particle { animation: none; }
  .home-bg { transition: none; }
  .ff-flame, .ff-smoke { animation: none; opacity: 0; }
}

.flashes { max-width: 640px; margin: 0 auto 20px; }
.flash { padding: 10px 16px; border-radius: 8px; margin-bottom: 8px; font-size: 0.9rem; }
.flash-error { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.flash-success { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  color: var(--text) !important; text-decoration: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
  animation: vipCardGlow 2.4s ease-in-out infinite alternate;
}
.nav-row:hover { border-color: var(--border-glow); box-shadow: 0 0 12px rgba(34, 211, 238, 0.2); }
.nav-row + .nav-row { margin-top: 8px; }
.nav-row-text { display: flex; flex-direction: column; gap: 2px; }
.nav-row-title { font-weight: 600; }
.nav-row-subtitle { font-size: 0.8rem; color: var(--text-muted); }
.nav-row-arrow { color: var(--text-muted); font-size: 1.1rem; }
.nav-row.disabled { opacity: 0.45; pointer-events: none; }

.lang-dropdown { position: relative; }
.lang-dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--text); font-size: 0.85rem; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.lang-dropdown-toggle:hover {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

.settings-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--text) !important; font-size: 0.85rem; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.settings-pill:hover {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}
.settings-pill .settings-pill-icon, .settings-pill .settings-pill-icon-img { display: none; }
.settings-pill .settings-pill-badge {
  background: #ef4444; color: #fff; font-size: 0.62rem; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; line-height: 1.4;
}
.lang-dropdown-toggle img { border-radius: 2px; display: block; }
.lang-dropdown-arrow { color: var(--text-muted); font-size: 0.7rem; }

.lang-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 160px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: 100;
}
.lang-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  color: var(--text) !important; font-size: 0.85rem;
  text-decoration: none !important;
}
.lang-dropdown-item:hover { background: rgba(255,255,255,0.06); }
.lang-dropdown-item.active { color: var(--accent) !important; }
.lang-dropdown-item img { border-radius: 2px; display: block; flex-shrink: 0; }
.lang-dropdown-check { margin-left: auto; color: var(--accent); }

/* Scroll-to-top button (stacked above the chat bubble, bottom-right) */
.scroll-top-btn {
  position: fixed; right: 20px; bottom: 84px; z-index: 199;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(21,21,29,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.scroll-top-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.scroll-top-btn[hidden] { display: none; }
@media (max-width: 480px) {
  .scroll-top-btn { right: 14px; bottom: 78px; width: 36px; height: 36px; font-size: 1rem; }
}

/* Chat widget (bottom-right FAQ bot) */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 200; }
.chat-widget-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--bg), var(--accent));
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(45,214,224,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.chat-widget-toggle:hover { transform: scale(1.06); }
.chat-widget-toggle-open { transform: rotate(90deg); }
.chat-widget-panel[hidden] { display: none; }
.chat-widget-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: 320px; max-width: calc(100vw - 40px); max-height: 440px;
  background: rgba(21,21,29,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.chat-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-weight: 700; font-size: 0.9rem;
  background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(45,214,224,0.3));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-widget-close { background: none; border: none; color: var(--text); font-size: 1rem; cursor: pointer; opacity: 0.7; }
.chat-widget-close:hover { opacity: 1; }
.chat-widget-messages { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 0.85rem; line-height: 1.4; }
.chat-msg-bot { align-self: flex-start; background: rgba(255,255,255,0.06); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: linear-gradient(135deg, #ec4899, #2dd6e0); color: #fff; border-bottom-right-radius: 4px; }
.chat-topics { display: flex; flex-direction: column; gap: 6px; }
.chat-topic-btn {
  text-align: left; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text); font-size: 0.8rem; padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.chat-topic-btn:hover { background: rgba(45,214,224,0.18); border-color: rgba(45,214,224,0.4); }
.chat-footer { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 4px; }
.chat-footer span { font-size: 0.76rem; color: var(--text-muted); }
.chat-ticket-btn {
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-widget-panel { right: -6px; width: calc(100vw - 28px); }
}

/* Holiday decorations (admin-toggled) - snow caps on the logo/nav pills */
.holiday-decor-on .brand,
.holiday-decor-on .nav-pill { position: relative; }
.holiday-decor-on .brand::before,
.holiday-decor-on .nav-pill::before {
  content: "";
  position: absolute;
  top: -6px; left: 6px;
  width: 16px; height: 7px;
  background: #f8fafc;
  border-radius: 0 0 12px 12px / 0 0 10px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  opacity: 0.94;
  pointer-events: none;
}
.holiday-decor-on .nav-pill::before { width: 11px; height: 5px; top: -4px; left: 10px; }

/* Holiday decorations - floating 3D Christmas tree + gifts, stacked above the chat bubble */
.xmas-corner-decor {
  position: fixed; right: 14px; bottom: 92px; z-index: 195;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none;
}
.xmas-tree-3d-wrap { width: 68px; height: 92px; perspective: 420px; }
.xmas-tree-3d {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: xmasTreeSpin 9s linear infinite;
}
.xmas-tree-layer {
  position: absolute; left: 50%; top: 0;
  width: 0; height: 0;
  transform: translateX(-50%);
  filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.35));
}
.xmas-tree-layer-1 { top: 0;  border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 24px solid #22a855; }
.xmas-tree-layer-2 { top: 18px; border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 28px solid #1d9748; }
.xmas-tree-layer-3 { top: 39px; border-left: 32px solid transparent; border-right: 32px solid transparent; border-bottom: 34px solid #17803c; }
.xmas-tree-trunk {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 10px; height: 14px; background: #6b4226; border-radius: 2px;
}
.xmas-tree-star {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 15px; filter: drop-shadow(0 0 4px #fde68a);
  animation: xmasStarGlow 1.8s ease-in-out infinite alternate;
}
@keyframes xmasStarGlow {
  from { filter: drop-shadow(0 0 3px #fde68a); transform: translateX(-50%) scale(0.92); }
  to   { filter: drop-shadow(0 0 10px #fef08a) drop-shadow(0 0 16px #fde68a); transform: translateX(-50%) scale(1.12); }
}
.xmas-ornament {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 4px currentColor;
  animation: xmasOrnamentTwinkle 1.4s ease-in-out infinite alternate;
}
.xmas-ornament-1 { top: 12px; left: 42%; background: #ef4444; color: #ef4444; animation-delay: 0s; }
.xmas-ornament-2 { top: 27px; left: 62%; background: #facc15; color: #facc15; animation-delay: -0.35s; }
.xmas-ornament-3 { top: 45px; left: 36%; background: #38bdf8; color: #38bdf8; animation-delay: -0.7s; }
.xmas-ornament-4 { top: 58px; left: 60%; background: #f472b6; color: #f472b6; animation-delay: -1.05s; }
@keyframes xmasOrnamentTwinkle {
  from { opacity: 0.45; box-shadow: 0 0 2px currentColor; }
  to   { opacity: 1; box-shadow: 0 0 9px currentColor, 0 0 14px currentColor; }
}
@keyframes xmasTreeSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
.xmas-snowflake {
  position: absolute; top: -10px; color: rgba(255,255,255,0.85); font-size: 10px;
  animation: xmasSnowfall linear infinite;
  text-shadow: 0 0 4px rgba(255,255,255,0.6);
}
.xmas-snowflake-1 { left: 4px;  font-size: 9px;  animation-duration: 5.5s; animation-delay: 0s; }
.xmas-snowflake-2 { left: 24px; font-size: 12px; animation-duration: 6.5s; animation-delay: -1.5s; }
.xmas-snowflake-3 { left: 48px; font-size: 8px;  animation-duration: 5s;   animation-delay: -3s; }
.xmas-snowflake-4 { left: 68px; font-size: 11px; animation-duration: 7s;   animation-delay: -0.8s; }
.xmas-snowflake-5 { left: 86px; font-size: 9px;  animation-duration: 6s;   animation-delay: -2.2s; }
@keyframes xmasSnowfall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translate(-10px, 150px) rotate(200deg); opacity: 0; }
}
.xmas-gifts { display: flex; gap: 2px; }
.xmas-gift {
  font-size: 20px; filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.35));
  animation: xmasGiftWobble 2.4s ease-in-out infinite;
  transform-origin: bottom center;
}
.xmas-gift-1 { animation-delay: 0s; }
.xmas-gift-2 { animation-delay: -0.8s; }
.xmas-gift-3 { animation-delay: -1.6s; }
@keyframes xmasGiftWobble {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25%      { transform: rotate(-6deg) translateY(-1px); }
  75%      { transform: rotate(6deg) translateY(-1px); }
}
@media (max-width: 480px) {
  .xmas-corner-decor { right: 10px; bottom: 82px; transform: scale(0.78); transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-tree-3d, .xmas-tree-star, .xmas-ornament, .xmas-snowflake, .xmas-gift { animation: none; }
}

/* Recent-purchase social-proof toast (bottom-left) */
.purchase-toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 190;
  display: flex; align-items: center; gap: 12px;
  background: rgba(21,21,29,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 12px 36px 12px 12px; max-width: 320px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.purchase-toast-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.purchase-toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.purchase-toast-image {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.purchase-toast-body { min-width: 0; }
.purchase-toast-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 3px;
}
.purchase-toast-live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #4ade80; box-shadow: 0 0 6px #4ade80;
  animation: sysConsolePulse 1.4s ease-in-out infinite;
}
.purchase-toast-line1 { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
.purchase-toast-line1 strong { color: var(--text); }
.purchase-toast-line2 {
  font-size: 0.85rem; font-weight: 700; color: var(--accent); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.purchase-toast-time { font-size: 0.7rem; color: var(--text-muted); opacity: 0.7; margin-top: 2px; }
.purchase-toast-close {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: none; border: none; color: var(--text-muted);
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.purchase-toast-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
@media (max-width: 480px) {
  .purchase-toast { left: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
}

/* Admin new-activity toasts (top-right) */
.admin-notification-stack {
  position: fixed; top: 76px; right: 20px; z-index: 210;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.admin-notification-toast {
  display: block; text-decoration: none;
  background: rgba(21,21,29,0.95);
  border: 1px solid rgba(45,214,224,0.4);
  color: var(--text); font-size: 0.82rem; font-weight: 600;
  padding: 10px 14px; border-radius: 12px; max-width: 320px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  opacity: 0; transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.admin-notification-toast-in { opacity: 1; transform: translateX(0); }

/* Homepage "recent updates" section */
.updates-section { max-width: 640px; }
.updates-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.updates-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.updates-item:first-child { border-top: none; }
.updates-item-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.updates-item-text { flex: 1; color: var(--text); }
.updates-item-date { color: var(--text-muted); font-size: 0.78rem; flex-shrink: 0; }

/* Homepage "follow us" social links section */
.socials-heading { text-align: center; max-width: 560px; margin: 0 auto 24px; }
.socials-eyebrow {
  display: inline-block; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 18px; margin-bottom: 6px;
}
.socials-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 24px;
}
.socials-glow {
  position: absolute; top: -30%; left: -10%; z-index: 0;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(45,214,224,0.35); filter: blur(70px);
}
.socials-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px; text-align: center;
}
.socials-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.socials-item:hover { color: var(--accent); }
.socials-item-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(45,214,224,0.18); border: 1px solid rgba(45,214,224,0.5);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.socials-item-name { font-weight: 600; }

.stats-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; text-align: center;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
}
.stats-item-value { font-size: 2.4rem; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.stats-item-label { margin: 0; }

.status-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-card); border: 1px solid rgba(34, 211, 238, 0.3); border-radius: var(--radius);
  padding: 18px 22px; text-decoration: none; color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
  animation: navPillGlow 2.4s ease-in-out infinite alternate;
}
.status-row:hover { border-color: var(--accent); background: rgba(45,214,224,0.06); animation: none; }
.status-row-name { font-weight: 700; font-size: 1.05rem; }
.status-row-indicator { display: flex; align-items: center; gap: 10px; }
.status-label { font-weight: 700; font-size: 0.9rem; }
.status-dot { position: relative; display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.status-dot-pulse { position: absolute; inset: 0; border-radius: 50%; animation: statusDotPulse 1.6s ease-out infinite; }
@keyframes statusDotPulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 0.55; }
  100% { box-shadow: 0 0 0 9px currentColor; opacity: 0; }
}
.status-online .status-dot, .status-online .status-dot-pulse { background: #22c55e; color: #22c55e; }
.status-online .status-label { color: #22c55e; }
.status-offline .status-dot, .status-offline .status-dot-pulse { background: #ef4444; color: #ef4444; }
.status-offline .status-label { color: #ef4444; }
.status-warning .status-dot, .status-warning .status-dot-pulse { background: #facc15; color: #facc15; }
.status-warning .status-label { color: #facc15; }
@media (prefers-reduced-motion: reduce) {
  .status-dot-pulse { animation: none; }
}

.product-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.product-detail-header h1 { margin: 0; }
.product-detail-layout { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.product-detail-media-col { flex: 1.6 1 420px; min-width: 0; }
.product-detail-buy-col { flex: 1 1 300px; min-width: 0; }
.product-detail-media {
  display: flex; align-items: center; justify-content: center;
  min-height: 340px; background: rgba(45,214,224,0.06);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.product-detail-media img { width: 100%; height: 100%; max-height: 400px; object-fit: cover; }
.product-detail-icon { color: var(--accent); opacity: 0.7; display: inline-flex; }
.product-detail-icon svg { width: 120px; height: 120px; }
.product-detail-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.product-detail-tab {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 8px 18px; font-weight: 600; font-size: 0.9rem; cursor: pointer; opacity: 0.55;
}
.product-detail-tab.active { opacity: 1; border-color: var(--accent); }
.product-detail-price-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px;
}
.product-detail-total-price { font-size: 1.7rem; font-weight: 700; }
.product-detail-unit-price { display: block; font-size: 0.8rem; }
.product-detail-form-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.product-detail-form-card label { display: block; margin: 12px 0 6px; font-size: 0.85rem; color: var(--text-muted); }
.product-detail-form-card label:first-of-type { margin-top: 0; }
.product-detail-form-card select {
  width: 100%; background: var(--input-bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.variant-picker { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.product-detail-form-card .variant-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin: 0; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.variant-option input[type="radio"] { display: none; }
.variant-option-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); position: relative;
}
.product-detail-form-card .variant-option-selected { border-color: var(--accent); background: rgba(45,214,224,0.08); }
.variant-option-selected .variant-option-dot { border-color: var(--accent); }
.variant-option-selected .variant-option-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
.variant-option-name { flex: 1; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.variant-option-price { font-weight: 700; color: var(--accent); font-size: 0.9rem; white-space: nowrap; }
.variant-option-oos { font-size: 0.72rem; color: #ef4444; }
.variant-option-disabled { opacity: 0.5; cursor: not-allowed; }
.variant-option-disabled .variant-option-price { color: var(--text-muted); }
.product-qty-stepper { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.product-qty-stepper button {
  background: var(--input-bg); color: var(--text); border: none; width: 42px; flex-shrink: 0; cursor: pointer; font-size: 1.1rem;
}
.product-qty-stepper button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.product-qty-stepper button:disabled { opacity: 0.4; cursor: default; }
.product-qty-stepper input {
  flex: 1; min-width: 0; text-align: center; background: var(--input-bg); border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--text); font-weight: 600;
}
.product-detail-buttons { margin-top: 16px; }
@media (max-width: 780px) {
  .product-detail-media { min-height: 240px; }
}

.chatbox {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.chatbox-messages {
  height: 420px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chatbox-empty { text-align: center; margin: auto; }
.chatbox-row { display: flex; gap: 10px; align-items: flex-start; }
.chatbox-row-own .chatbox-body { background: rgba(45, 214, 224, 0.08); border-radius: 10px; padding: 6px 10px; margin: -6px -10px; }
.chatbox-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.chatbox-body { flex: 1; min-width: 0; }
.chatbox-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.chatbox-name { font-weight: 700; color: var(--text); }
.chatbox-time { font-size: 0.72rem; color: var(--text-muted); margin-left: auto; }
.chatbox-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(45, 214, 224, 0.15); color: var(--accent);
  padding: 2px 7px; border-radius: 999px;
}
.chatbox-badge-vip { background: rgba(250, 204, 21, 0.18); color: #facc15; }
.chatbox-text { color: var(--text); font-size: 0.92rem; line-height: 1.45; word-break: break-word; margin-top: 2px; }
.chatbox-form {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--border);
  position: relative;
}
.chatbox-input {
  flex: 1; background: var(--input-bg); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); padding: 10px 16px; font-size: 0.9rem;
}
.chatbox-input:focus { outline: none; border-color: var(--accent); }
.chatbox-counter { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }
.chatbox-send-btn { padding: 9px 18px; flex-shrink: 0; }
.chatbox-error {
  position: absolute; bottom: 100%; left: 14px;
  color: var(--danger); font-size: 0.78rem; padding: 4px 0;
}
.chatbox-attach-btn {
  font-size: 1.2rem; cursor: pointer; flex-shrink: 0; line-height: 1;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--input-bg); border: 1px solid var(--border);
}
.chatbox-attach-btn:hover { border-color: var(--accent); }
.chatbox-preview {
  position: relative; margin: 0 14px 10px; display: inline-block;
}
.chatbox-preview img {
  max-height: 90px; border-radius: 10px; border: 1px solid var(--border); display: block;
}
.chatbox-preview-remove {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--danger); color: #fff; border: none; cursor: pointer;
  font-size: 0.7rem; line-height: 1;
}
.chatbox-image {
  display: block; max-width: 260px; max-height: 260px; border-radius: 10px; margin-top: 6px;
  border: 1px solid var(--border);
}
.chatbox-edit-btn {
  background: none; border: none; color: var(--text-muted); font-size: 0.7rem;
  cursor: pointer; text-decoration: underline; padding: 0;
}
.chatbox-edit-btn:hover { color: var(--accent); }
.chatbox-edit-wrap { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.chatbox-edit-input {
  flex: 1; background: var(--input-bg); border: 1px solid var(--accent); border-radius: 8px;
  color: var(--text); padding: 6px 10px; font-size: 0.85rem;
}
.chatbox-edit-save, .chatbox-edit-cancel {
  font-size: 0.72rem; border: none; border-radius: 6px; padding: 5px 10px; cursor: pointer;
}
.chatbox-edit-save { background: var(--accent); color: #fff; }
.chatbox-edit-cancel { background: var(--input-bg); color: var(--text-muted); }
@media (max-width: 640px) {
  .chatbox-messages { height: 320px; }
}

#currency-dropdown-menu { min-width: 90px; max-height: 320px; overflow-y: auto; }


/* ===== Account page redesign (customer settings) ===== */
.account-tab-panel[hidden] { display: none !important; }

.acc-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 14px;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(45,214,224,0.22), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(236,72,153,0.16), transparent 60%),
    #0a1613;
  border: 1px solid rgba(45,214,224,0.22);
}
.acc-hero-avatar {
  width: 64px; height: 64px; border-radius: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ec4899, #2dd6e0);
  font-weight: 800; font-size: 1.6rem; color: #fff;
  box-shadow: 0 8px 28px rgba(45,214,224,0.35);
}
.acc-hero-body { flex: 1 1 200px; min-width: 0; }
.acc-hero-hello { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; }
.acc-hero-name { margin: 2px 0 8px; font-size: 1.55rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-tag {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted);
}
.acc-tag-role { color: var(--accent); border-color: rgba(45,214,224,0.35); background: rgba(45,214,224,0.1); }
.acc-tag-vip  { color: #facc15; border-color: rgba(250,204,21,0.4); background: rgba(250,204,21,0.1); }
.acc-tag-ok   { color: #22c55e; border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.1); }

.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.acc-stat {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 14px; background: #0a1613; border: 1px solid rgba(45,214,224,0.14);
  color: var(--text) !important; text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s;
}
a.acc-stat:hover { border-color: rgba(45,214,224,0.5); transform: translateY(-2px); }
.acc-stat-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: rgba(45,214,224,0.12);
}
.acc-stat-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.acc-stat-value { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.acc-stat-value-vip { color: #facc15; }

.acc-vip-banner {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 0.86rem;
  color: #facc15; background: rgba(250,204,21,0.08); border: 1px solid rgba(250,204,21,0.25);
}

.acc-section-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted); margin: 4px 2px 10px;
}
.acc-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.acc-quick a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(45,214,224,0.06); border: 1px solid rgba(45,214,224,0.14);
  color: var(--text) !important; font-size: 0.86rem; font-weight: 600; text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
}
.acc-quick a:hover { background: rgba(45,214,224,0.14); border-color: rgba(45,214,224,0.4); }

.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.acc-card { background: #0a1613; border: 1px solid rgba(45,214,224,0.14); border-radius: 14px; padding: 18px; }
.acc-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.acc-card-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: rgba(45,214,224,0.12);
}
.acc-card-title { font-size: 1rem; font-weight: 700; margin: 0; }
.acc-subtitle { margin: 20px 0 10px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.acc-balance { font-size: 2rem; font-weight: 800; color: var(--accent); margin: 0 0 14px; line-height: 1.1; }
.acc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.account-preset-btn {
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(45,214,224,0.08); border: 1px solid rgba(45,214,224,0.25);
  color: var(--text); font-weight: 600; font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}
.account-preset-btn:hover, .account-preset-btn-active { background: var(--accent); color: #04211f; border-color: var(--accent); }
.acc-badge {
  background: #ef4444; color: #fff; font-size: 0.66rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; line-height: 1.4;
}

.acc-tab-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; grid-column: 1 / -1; }
.acc-tab-title { font-size: 1.3rem; margin: 0; }
.acc-count-pill {
  font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  color: var(--accent); background: rgba(45,214,224,0.12); border: 1px solid rgba(45,214,224,0.3);
}

/* profile + security: settings cards side by side */
.account-page-customer .account-tab-panel[data-tab-panel="profil"]:not([hidden]),
.account-page-customer .account-tab-panel[data-tab-panel="bezpieczenstwo"]:not([hidden]) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start;
}
.account-page-customer .account-tab-panel[data-tab-panel="profil"] .settings-section,
.account-page-customer .account-tab-panel[data-tab-panel="bezpieczenstwo"] .settings-section { margin-bottom: 0; }
.account-page-customer .settings-section { border-radius: 14px; }
.account-page-customer .settings-section summary { padding: 15px 18px; font-size: 0.98rem; }
.account-page-customer .settings-section .settings-section-body { padding: 16px 18px 20px; }
.settings-section-wide { grid-column: 1 / -1; }

@media (max-width: 720px) {
  .account-page-customer .account-sidebar {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px;
    position: static; flex-basis: 100%; scrollbar-width: none;
  }
  .account-page-customer .account-sidebar::-webkit-scrollbar { display: none; }
  .account-page-customer .account-sidebar-brand,
  .account-page-customer .account-sidebar-group-label,
  .account-page-customer .account-sidebar-user { display: none; }
  .account-page-customer .account-nav-btn { white-space: nowrap; width: auto; flex-shrink: 0; }
  .account-page-customer .account-topup-btn { margin: 0; }
  .acc-hero { padding: 16px; }
  .acc-grid, .account-page-customer .account-tab-panel[data-tab-panel="profil"]:not([hidden]),
  .account-page-customer .account-tab-panel[data-tab-panel="bezpieczenstwo"]:not([hidden]) { grid-template-columns: 1fr; }
}

/* account page: roomier desktop layout so cards/sections sit side by side */
.account-page-customer.dashboard { max-width: 1120px; }
.acc-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.acc-stat > div { min-width: 0; }
.acc-stat-value { white-space: nowrap; }
.acc-quick { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

main.account-wide { max-width: 1180px; }


/* ===== Account page: full-width layout, tabs on top ===== */
main.account-wide { max-width: 1600px; padding-left: 32px; padding-right: 32px; }
.account-page-customer.dashboard {
  max-width: none; padding: 0; background: none; border: none; border-radius: 0;
  box-shadow: none; animation: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.account-page-customer > h1 { font-size: 1.9rem; margin-bottom: 4px; }
.account-page-customer > p.muted { margin: 4px 0 18px; }

.acc-hero { padding: 18px 24px; margin-bottom: 14px; }
.acc-hero-side { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.account-page-customer .acc-hero .account-topup-btn { width: auto; margin: 0; padding: 12px 22px; }
.acc-hero-logout {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none !important; transition: background 0.15s, border-color 0.15s;
}
.acc-hero-logout:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); }

.account-page-customer .account-layout { display: block; margin-top: 0; }
.account-page-customer .account-sidebar {
  position: static; flex: none; width: 100%;
  flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  padding: 6px; margin: 0 0 18px; border-radius: 14px;
}
.account-page-customer .account-sidebar::-webkit-scrollbar { display: none; }
.account-page-customer .account-sidebar-brand,
.account-page-customer .account-sidebar-group-label,
.account-page-customer .account-sidebar-user { display: none; }
.account-page-customer .account-sidebar .account-nav-btn {
  width: auto; flex-shrink: 0; white-space: nowrap; padding: 10px 18px; border-radius: 10px;
}
.account-page-customer .account-content { width: 100%; }

.acc-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-card .acc-quick { grid-template-columns: 1fr; margin: 0; }

.account-page-customer .account-tab-panel[data-tab-panel="profil"]:not([hidden]),
.account-page-customer .account-tab-panel[data-tab-panel="bezpieczenstwo"]:not([hidden]) {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.account-page-customer .admin-user-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }

@media (max-width: 1100px) {
  .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  main.account-wide { padding-left: 14px; padding-right: 14px; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-hero-side { flex-basis: 100%; margin-left: 0; }
  .account-page-customer .acc-hero .account-topup-btn { flex: 1; }
  .account-page-customer .admin-user-list { grid-template-columns: 1fr; }
  .account-page-customer .account-tab-panel[data-tab-panel="profil"]:not([hidden]),
  .account-page-customer .account-tab-panel[data-tab-panel="bezpieczenstwo"]:not([hidden]) { grid-template-columns: 1fr; }
}


/* ===== Account page: visual polish (same layout, nicer look) ===== */
@keyframes accFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes accShine { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(330%); } }
@keyframes accPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }

.account-page-customer > h1 {
  width: fit-content; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff 35%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* --- hero --- */
.acc-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid transparent;
  background:
    radial-gradient(60% 150% at 0% 0%, rgba(45,214,224,0.30), transparent 60%) padding-box,
    radial-gradient(50% 130% at 100% 100%, rgba(236,72,153,0.24), transparent 62%) padding-box,
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px) padding-box,
    linear-gradient(#0a1613, #0a1613) padding-box,
    linear-gradient(120deg, rgba(45,214,224,0.75), rgba(236,72,153,0.5) 55%, rgba(45,214,224,0.18)) border-box;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35), 0 0 46px rgba(45,214,224,0.09);
}
.acc-hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-130%); animation: accShine 7s ease-in-out infinite;
}
.acc-hero > * { position: relative; z-index: 1; }
.acc-hero-avatar {
  width: 78px; height: 78px; border-radius: 26px; font-size: 2rem; position: relative;
  box-shadow: 0 0 0 3px #0a1613, 0 0 0 5px rgba(45,214,224,0.6), 0 14px 44px rgba(45,214,224,0.45);
}
.acc-hero-avatar::after {
  content: ""; position: absolute; right: -6px; bottom: -6px; width: 17px; height: 17px;
  border-radius: 50%; background: #22c55e; border: 3px solid #0a1613; animation: accPulse 2.4s ease-in-out infinite;
}
.acc-hero-hello { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; color: var(--accent); opacity: 0.85; }
.acc-hero-name {
  font-size: 2rem; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.account-page-customer .acc-hero .account-topup-btn {
  background: linear-gradient(135deg, #2dd6e0, #5eead4); color: #04211f; font-weight: 700;
  box-shadow: 0 8px 26px rgba(45,214,224,0.4); transition: transform 0.18s, box-shadow 0.18s;
}
.account-page-customer .acc-hero .account-topup-btn:hover {
  transform: translateY(-2px); box-shadow: 0 12px 34px rgba(45,214,224,0.6); filter: none;
}

/* --- tab bar --- */
.account-page-customer .account-sidebar {
  position: sticky; top: 10px; z-index: 30;
  background: rgba(10,22,19,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(45,214,224,0.22); box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.account-page-customer .account-sidebar .account-nav-btn {
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.account-page-customer .account-sidebar .account-nav-btn:hover { transform: translateY(-1px); }
.account-page-customer .account-sidebar .account-nav-btn-active {
  background: linear-gradient(135deg, #2dd6e0, #22b8d8); color: #04211f;
  box-shadow: 0 6px 22px rgba(45,214,224,0.42);
}

/* --- stat tiles: one accent colour each --- */
.acc-stat {
  --tile: 45,214,224; position: relative; overflow: hidden; padding: 16px 18px;
  background: radial-gradient(90% 150% at 0% 0%, rgba(var(--tile),0.17), transparent 62%), #0a1613;
  border: 1px solid rgba(var(--tile),0.26);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.acc-stat:nth-child(2) { --tile: 251,146,60; }
.acc-stat:nth-child(3) { --tile: 167,139,250; }
.acc-stat:nth-child(4) { --tile: 250,204,21; }
.acc-stat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0.75;
  background: linear-gradient(90deg, transparent, rgba(var(--tile),0.95), transparent);
}
.acc-stat:hover { transform: translateY(-3px); border-color: rgba(var(--tile),0.6); box-shadow: 0 12px 32px rgba(var(--tile),0.2); }
.acc-stat-icon {
  width: 44px; height: 44px; border-radius: 14px; background: rgba(var(--tile),0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--tile),0.38), 0 0 24px rgba(var(--tile),0.28);
}
.acc-stat-value { font-size: 1.5rem; }

/* --- cards --- */
.acc-card {
  --c: 45,214,224; position: relative; border-radius: 16px; padding: 20px;
  background: linear-gradient(180deg, rgba(var(--c),0.08), transparent 40%), #0a1613;
  border: 1px solid rgba(var(--c),0.22); box-shadow: 0 10px 34px rgba(0,0,0,0.28);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acc-card:nth-child(2) { --c: 236,72,153; }
.acc-card:nth-child(3) { --c: 251,191,36; }
.acc-card:hover { border-color: rgba(var(--c),0.5); box-shadow: 0 16px 42px rgba(var(--c),0.16); }
.acc-card-icon { width: 38px; height: 38px; border-radius: 12px; background: rgba(var(--c),0.16); box-shadow: inset 0 0 0 1px rgba(var(--c),0.4), 0 0 20px rgba(var(--c),0.22); }
.acc-balance {
  font-size: 2.6rem; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #2dd6e0, #a7f3d0);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(45,214,224,0.35));
}
.acc-card .btn-accent {
  background: linear-gradient(135deg, #2dd6e0, #5eead4); color: #04211f; font-weight: 700; border: none;
  box-shadow: 0 8px 22px rgba(45,214,224,0.3); transition: transform 0.18s, box-shadow 0.18s;
}
.acc-card .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45,214,224,0.5); }
.acc-card input:focus, .acc-card textarea:focus,
.account-page-customer .settings-section input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,214,224,0.2);
}
.account-preset-btn { transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s; }
.account-preset-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(45,214,224,0.35); }

/* --- quick links --- */
.acc-quick a { position: relative; padding: 13px 40px 13px 14px; transition: transform 0.18s, background 0.18s, border-color 0.18s; }
.acc-quick a::after { content: "\2192"; position: absolute; right: 14px; opacity: 0.45; transition: transform 0.18s, opacity 0.18s, color 0.18s; }
.acc-quick a:hover { transform: translateX(3px); }
.acc-quick a:hover::after { transform: translateX(4px); opacity: 1; color: var(--accent); }

/* --- profile / security sections and order cards --- */
.account-page-customer .settings-section {
  background: linear-gradient(180deg, rgba(45,214,224,0.07), transparent 32%), #0a1613;
  border-color: rgba(45,214,224,0.22); box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.account-page-customer .settings-section:hover { border-color: rgba(45,214,224,0.5); box-shadow: 0 16px 40px rgba(45,214,224,0.11); }
.account-page-customer .admin-user-card {
  border-radius: 14px; border-color: rgba(167,139,250,0.22);
  background: linear-gradient(180deg, rgba(167,139,250,0.08), transparent 45%), #0d1214;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.account-page-customer .admin-user-card:hover { border-color: rgba(167,139,250,0.55); box-shadow: 0 12px 32px rgba(167,139,250,0.14); transform: translateY(-2px); }
.acc-tab-title { letter-spacing: -0.01em; }

/* --- entrance animation (also replays when switching tabs) --- */
.acc-hero, .acc-stat, .acc-card,
.account-tab-panel:not([hidden]) > .settings-section,
.account-tab-panel:not([hidden]) .admin-user-card {
  animation: accFadeUp 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.acc-stat:nth-child(2) { animation-delay: 0.05s; }
.acc-stat:nth-child(3) { animation-delay: 0.1s; }
.acc-stat:nth-child(4) { animation-delay: 0.15s; }
.acc-card:nth-child(1) { animation-delay: 0.12s; }
.acc-card:nth-child(2) { animation-delay: 0.2s; }
.acc-card:nth-child(3) { animation-delay: 0.28s; }
.account-tab-panel:not([hidden]) > .settings-section:nth-child(3) { animation-delay: 0.08s; }
.account-tab-panel:not([hidden]) > .settings-section:nth-child(4) { animation-delay: 0.16s; }
.account-tab-panel:not([hidden]) > .settings-section:nth-child(5) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .acc-hero::after, .acc-hero-avatar::after { animation: none; }
  .acc-hero, .acc-stat, .acc-card,
  .account-tab-panel:not([hidden]) > .settings-section,
  .account-tab-panel:not([hidden]) .admin-user-card { animation: none; }
}
@media (max-width: 720px) {
  .account-page-customer .account-sidebar { top: 6px; }
  .acc-hero-name { font-size: 1.6rem; }
  .acc-balance { font-size: 2.1rem; }
}

/* readable tab headings over the animated background */
.acc-tab-title { text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.8); }
.acc-count-pill { background: rgba(4,33,31,0.85); }


/* collapsible cards (Balance, Ticket) */
.acc-collapsible > summary.acc-card-head { list-style: none; cursor: pointer; user-select: none; margin-bottom: 0; border-radius: 10px; }
.acc-collapsible > summary.acc-card-head::-webkit-details-marker { display: none; }
.acc-collapsible[open] > summary.acc-card-head { margin-bottom: 14px; }
.acc-collapsible > summary.acc-card-head:hover .acc-card-title { color: var(--accent); }
.acc-collapsible > summary.acc-card-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.acc-chevron {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
  color: var(--text-muted); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.acc-collapsible > summary.acc-card-head:hover .acc-chevron { background: rgba(45,214,224,0.15); color: var(--accent); }
.acc-collapsible:not([open]) .acc-chevron { transform: rotate(-90deg); }
.acc-collapsed-hint { display: none; margin-left: auto; font-weight: 700; color: var(--accent); font-size: 0.95rem; }
.acc-collapsible:not([open]) .acc-collapsed-hint { display: inline; }
.acc-collapsed-hint + .acc-chevron { margin-left: 10px; }

/* chevron stays on the right when the hint is hidden (card open) */
.acc-collapsible[open] .acc-collapsed-hint + .acc-chevron { margin-left: auto; }


/* header now only holds the logout button */
@media (max-width: 720px) {
  .acc-hero-side { position: absolute; top: 12px; right: 12px; flex-basis: auto; margin-left: 0; }
  .acc-hero-body { padding-right: 52px; }
}


/* ===== status indicators ===== */
@keyframes accPing { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.acc-dot {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: 4px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 800; line-height: 1; color: #fff;
}
.acc-dot-red { background: #ef4444; animation: accPing 1.8s ease-in-out infinite; }
.acc-dot-warn { background: #f59e0b; color: #1f1300; }
.acc-dot-green, .acc-dot-gray { min-width: 9px; width: 9px; height: 9px; padding: 0; }
.acc-dot-green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.8); }
.acc-dot-gray { background: #6b7280; }
.acc-tag-uid { cursor: pointer; font-family: inherit; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.acc-tag-uid:hover { color: var(--accent); border-color: rgba(45,214,224,0.5); background: rgba(45,214,224,0.1); }
.acc-tag-warn { color: #fbbf24; border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.12); }
.acc-badge { animation: accPing 1.8s ease-in-out infinite; }
.acc-meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); margin-top: 8px; overflow: hidden; min-width: 90px; }
.acc-meter > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #facc15, #fb923c); box-shadow: 0 0 10px rgba(250,204,21,0.6); }
.acc-meter-low > span { background: linear-gradient(90deg, #ef4444, #f97316); box-shadow: 0 0 10px rgba(239,68,68,0.6); }
.acc-meter-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .acc-dot-red, .acc-badge { animation: none; } }

.acc-meter-label { font-size: 0.8rem; font-weight: 600; }


/* orders: customer "remove from list" buttons */
.acc-orders-reset { margin-left: auto; }
.acc-danger-btn {
  padding: 7px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.82rem;
  color: #fca5a5; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.acc-danger-btn:hover { background: rgba(239,68,68,0.24); color: #fff; border-color: #ef4444; }
.acc-order-remove { margin: 8px 0 0; }
.acc-order-remove .acc-danger-btn { padding: 4px 10px; font-size: 0.74rem; }


/* Dashboard / "Your page" links live at the right end of the account tab bar */
.acc-nav-links {
  margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding-left: 12px; border-left: 1px solid rgba(45,214,224,0.25);
}
.acc-nav-links a.account-nav-btn { text-decoration: none !important; width: auto; flex-shrink: 0; white-space: nowrap; }
.acc-nav-links a.account-nav-btn::after { content: "\2197"; font-size: 0.8em; opacity: 0.5; margin-left: 2px; transition: opacity 0.15s, transform 0.15s; }
.acc-nav-links a.account-nav-btn:hover::after { opacity: 1; transform: translate(2px, -2px); }

/* Dashboard / Your page sit right next to the other tabs (no gap, no divider) */
.acc-nav-links { margin-left: 0; padding-left: 0; border-left: none; }


/* ===== warning window before removing orders ===== */
@keyframes accFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes accPop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.acc-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(2,8,10,0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: accFade 0.2s ease-out;
}
.acc-modal[hidden] { display: none; }
.acc-modal-card {
  width: min(480px, 100%); max-height: 92vh; overflow-y: auto; padding: 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(239,68,68,0.14), transparent 42%), #0a1613;
  border: 1px solid rgba(239,68,68,0.5);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(239,68,68,0.16);
  animation: accPop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.acc-modal-icon {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 14px; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,0.16); border: 1px solid rgba(239,68,68,0.45);
}
.acc-modal-card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.acc-modal-order {
  font-family: monospace; font-size: 0.8rem; margin-bottom: 14px; padding: 8px 10px; overflow-wrap: anywhere;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
}
.acc-modal-list { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.acc-modal-list li { position: relative; padding-left: 28px; }
.acc-modal-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #22c55e; font-weight: 800; }
.acc-modal-list li:last-child { color: var(--text); font-weight: 600; }
.acc-modal-list li:last-child::before { content: "!"; color: #fbbf24; width: 18px; height: 18px; border-radius: 50%; text-align: center; line-height: 18px; background: rgba(245,158,11,0.18); font-size: 0.8rem; }
.acc-modal-ack { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.acc-modal-ack input { width: 18px; height: 18px; accent-color: #ef4444; cursor: pointer; }
.acc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.acc-modal-actions .btn-outline, .acc-modal-actions .acc-danger-btn { padding: 10px 18px; font-size: 0.9rem; }
.acc-modal-actions .acc-danger-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.acc-modal-actions .acc-danger-btn:not(:disabled) { background: #ef4444; color: #fff; border-color: #ef4444; box-shadow: 0 8px 24px rgba(239,68,68,0.4); }
@media (prefers-reduced-motion: reduce) { .acc-modal, .acc-modal-card { animation: none; } }


/* ===== panel: recent orders + optional 2FA banner ===== */
.acc-grid > .acc-card-quick { grid-column: 3; grid-row: 1 / span 2; }
.acc-grid > .acc-card-recent { grid-column: 1 / span 2; --c: 167,139,250; }
.acc-card:nth-child(4) { animation-delay: 0.36s; }
.acc-card-link { margin-left: auto; font-size: 0.82rem; font-weight: 600; text-decoration: none !important; }
.acc-card-link:hover { text-decoration: underline !important; }
.acc-recent-list { display: flex; flex-direction: column; gap: 8px; }
.acc-recent-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.15s, background 0.15s;
}
.acc-recent-item:hover { border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.06); }
.acc-recent-main { flex: 1; min-width: 0; }
.acc-recent-title { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-recent-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.acc-banner-warn {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(245,158,11,0.14), rgba(245,158,11,0.04)); border: 1px solid rgba(245,158,11,0.4);
}
.acc-banner-ic {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #1f1300; background: #f59e0b;
}
.acc-banner-text { flex: 1 1 260px; min-width: 0; font-size: 0.86rem; color: var(--text-muted); }
.acc-banner-text strong { color: var(--text); display: block; margin-bottom: 2px; }
@media (max-width: 1100px) {
  .acc-grid > .acc-card-quick { grid-column: auto; grid-row: auto; }
  .acc-grid > .acc-card-recent { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .acc-grid > .acc-card-recent { grid-column: auto; }
  .acc-recent-item { flex-wrap: wrap; }
}


/* ===== account header: own photo / GIF and banner (separate from the public profile) ===== */
.acc-hero-avatar-img { background: #0a1613; }
.acc-hero-avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.acc-hero > .acc-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center; opacity: 0.6;
}
.acc-hero > .acc-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,22,19,0.94) 0%, rgba(10,22,19,0.62) 50%, rgba(10,22,19,0.2) 100%);
}
.acc-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.acc-media-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.acc-media-label { font-weight: 700; font-size: 0.9rem; }
.acc-media-preview {
  position: relative; overflow: hidden; background: rgba(0,0,0,0.3); border: 1px dashed rgba(45,214,224,0.35);
  display: flex; align-items: center; justify-content: center;
}
.acc-media-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-media-preview-avatar { width: 88px; height: 88px; border-radius: 26px; font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ec4899, #2dd6e0); border-style: solid; }
.acc-media-preview-banner { width: 100%; height: 96px; border-radius: 12px; }
.acc-media-box input[type=file] { font-size: 0.82rem; max-width: 100%; }
.acc-media-box .hint { margin: 0; }
.acc-media-actions { display: flex; gap: 8px; flex-wrap: wrap; }


.acc-media-or { margin-top: 4px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.acc-media-box input[type=url] { width: 100%; box-sizing: border-box; }


/* ===== public account profile (/profil/<nick>) ===== */
.pub-profile { max-width: 860px; margin: 0 auto; }
.pub-profile .acc-hero-side { position: static !important; flex-basis: auto; margin-left: auto; flex-direction: column; align-items: flex-end; gap: 8px; }
.pub-page-link { margin: 14px 0 0; }
.pub-follow .follow-count { font-size: 0.85rem; color: var(--text-muted); }
.pub-follow .follow-count strong { color: var(--text); font-size: 1.15rem; }
.pub-follow .follow-form { margin: 0; }
.pub-follow .follow-btn {
  display: inline-block; cursor: pointer; text-decoration: none !important; font: inherit; font-size: 0.88rem; font-weight: 700;
  padding: 9px 24px; border-radius: 999px; border: 1px solid var(--accent); color: #04211f; background: var(--accent);
  box-shadow: 0 8px 22px rgba(45,214,224,0.3); transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.pub-follow .follow-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(45,214,224,0.5); }
.pub-follow .follow-btn.following { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.35); box-shadow: none; }
.pub-follow .follow-btn.following:hover { border-color: #ef4444; color: #fca5a5; }
.acc-hero-view {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 12px; white-space: nowrap;
  font-size: 0.85rem; font-weight: 600; color: var(--text) !important; text-decoration: none !important;
  background: rgba(45,214,224,0.1); border: 1px solid rgba(45,214,224,0.35); transition: background 0.15s, border-color 0.15s;
}
.acc-hero-view:hover { background: rgba(45,214,224,0.2); border-color: var(--accent); }
@media (max-width: 720px) {
  .pub-profile .acc-hero-side { flex-basis: 100%; margin-left: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  /* Settings header on a phone: the buttons flow under the name instead of floating over it */
  .account-page-customer .acc-hero-side { position: static; flex-basis: 100%; margin-left: 0; flex-wrap: wrap; }
  .account-page-customer .acc-hero-body { padding-right: 0; }
}


/* ===== homepage: the owner's account with a Follow button ===== */
.online-owner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.online-owner-id { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--text) !important; min-width: 0; }
.online-owner-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ec4899, #2dd6e0); box-shadow: 0 0 0 2px rgba(45,214,224,0.45), 0 6px 18px rgba(45,214,224,0.25);
}
.online-owner-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.online-owner-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.online-owner-text strong { font-size: 1rem; }
.online-owner-text small { font-size: 0.78rem; color: var(--text-muted); }
.online-owner-id:hover .online-owner-text strong { color: var(--accent); }
.online-owner-follow { display: flex; align-items: center; }


/* ===== homepage Community box: a card with a Follow button for every member ===== */
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px;
  max-height: 460px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin;
}
.member-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.15s, background 0.15s;
}
.member-card:hover { border-color: rgba(45,214,224,0.45); background: rgba(45,214,224,0.05); }
.member-card-offline .member-id { opacity: 0.62; }
.member-id { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none !important; color: var(--text) !important; }
.member-avatar {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #ec4899, #2dd6e0); box-shadow: 0 0 0 2px rgba(45,214,224,0.35);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.member-text strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-text small { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-follow { flex-shrink: 0; }
.member-follow .follow-btn { padding: 6px 14px; font-size: 0.78rem; box-shadow: none; }
.member-admin-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border); font-size: 0.8rem;
}
.member-admin-bar label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
@media (max-width: 600px) { .member-grid { grid-template-columns: 1fr; } }


.member-text .member-uid { margin-top: 1px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); opacity: 0.85; }


/* ===== looping muted video as account photo / banner ===== */
.acc-hero-avatar-img video, .member-avatar video, .acc-media-preview video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.acc-hero > video.acc-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; pointer-events: none; }
.acc-hero > .acc-hero-shade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,22,19,0.94) 0%, rgba(10,22,19,0.62) 50%, rgba(10,22,19,0.2) 100%);
}


/* ===== replacement ("refund") account box in orders + support-bot extras ===== */
.acc-refund { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(251,191,36,0.4); background: rgba(251,191,36,0.07); }
.acc-refund-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 0.88rem; color: #fbbf24; margin-bottom: 6px; }
.acc-refund-date { margin-left: auto; font-weight: 400; font-size: 0.75rem; color: var(--text-muted); }
.acc-refund-hint { font-size: 0.75rem; margin-top: 6px; }
.chat-topic-btn-used { opacity: 0.55; }
.chat-topic-btn-back { text-align: center; border-style: dashed; }


/* ===== Cart page v3 ===== */
.cv3 { max-width: 1040px; margin: 0 auto; }

.cv3-head {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(45,214,224,0.10), rgba(10,10,16,0.62) 45%, rgba(124,58,237,0.10));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(45,214,224,0.22); border-radius: 18px;
  padding: 16px 22px 18px; margin-bottom: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.cv3-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.7;
}
.cv3-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cv3-back { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; transition: color .15s, transform .15s; }
.cv3-back:hover { color: var(--accent); transform: translateX(-2px); }
.cv3-chip {
  font-size: 0.72rem; color: var(--text-muted); padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
}
.cv3-title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cv3-title-icon {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(45,214,224,0.22), rgba(45,214,224,0.06));
  border: 1px solid rgba(45,214,224,0.4); box-shadow: 0 0 24px rgba(45,214,224,0.18);
}
.cv3-title-text { flex: 1 1 240px; min-width: 0; }
.cv3-eyebrow { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.cv3-title-text h1 { font-size: 1.65rem; margin: 2px 0 2px; line-height: 1.2; }
.cv3-title-text p { margin: 0; font-size: 0.85rem; }
.cv3-count {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: #04211f; background: var(--accent);
}
.cv3-secure {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.3);
  border-radius: 999px; padding: 5px 13px; font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}

.cv3-steps { list-style: none; display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 0; }
.cv3-step { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.cv3-step-num {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; border: 1px solid var(--border); background: rgba(255,255,255,0.04);
}
.cv3-step.is-active { color: var(--text); font-weight: 600; }
.cv3-step.is-active .cv3-step-num { background: var(--accent); color: #04211f; border-color: var(--accent); box-shadow: 0 0 14px rgba(45,214,224,0.5); }
.cv3-step-line { flex: 1; height: 1px; min-width: 14px; background: linear-gradient(90deg, var(--border), transparent); }

.cv3-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, 1fr); gap: 22px; align-items: start; }
.cv3-section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); margin: 2px 0 10px 4px; }

.cv3-items { display: flex; flex-direction: column; gap: 12px; }
.cv3-items .cv3-section-label { margin-bottom: 0; }
.cv3-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cv3-item:hover { border-color: rgba(45,214,224,0.4); box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(45,214,224,0.08); transform: translateY(-1px); }
.cv3-item-img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; display: block; }
.cv3-item-img-ph {
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  background: linear-gradient(135deg, rgba(45,214,224,0.14), rgba(45,214,224,0.03)); border: 1px solid rgba(45,214,224,0.25);
}
.cv3-item-img-ph svg { width: 34px; height: 34px; }
.cv3-item-main { min-width: 0; }
.cv3-item-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.cv3-item-detail { font-size: 0.8rem; color: var(--text-muted); margin-top: 1px; }
.cv3-item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cv3-qty {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 999px;
}
.cv3-qty-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; font-size: 1rem; line-height: 1;
  background: rgba(255,255,255,0.06); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.cv3-qty-btn:hover:not(:disabled) { background: var(--accent); color: #04211f; }
.cv3-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cv3-qty-value { min-width: 30px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cv3-remove {
  background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 8px;
  font-size: 0.76rem; color: var(--text-muted); font-family: inherit; transition: color .15s, background .15s;
}
.cv3-remove:hover { color: #fca5a5; background: rgba(239,68,68,0.1); }
.cv3-item-price { text-align: right; }
.cv3-item-total { font-size: 1.3rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.cv3-item-total small { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.cv3-item-unit { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }

.cv3-summary {
  position: sticky; top: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(45,214,224,0.06), transparent 160px), var(--bg-card);
  border: 1px solid rgba(45,214,224,0.25); border-radius: 18px; padding: 20px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.4);
}
.cv3-summary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6; }
.cv3-sum-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cv3-sum-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  background: rgba(45,214,224,0.12); border: 1px solid rgba(45,214,224,0.32);
}
.cv3-sum-title { font-weight: 700; font-size: 1.05rem; }

.cv3-discount summary {
  list-style: none; cursor: pointer; font-size: 0.8rem; color: var(--text-muted); text-align: center;
  padding: 9px 12px; border: 1px dashed rgba(255,255,255,0.18); border-radius: 12px; transition: color .15s, border-color .15s;
}
.cv3-discount summary::-webkit-details-marker { display: none; }
.cv3-discount summary:hover, .cv3-discount[open] summary { color: var(--accent); border-color: rgba(45,214,224,0.5); }
.cv3-discount-form { display: flex; gap: 8px; margin-top: 10px; }
.cv3-discount-form input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text); font-family: inherit; font-size: 0.85rem;
}
.cv3-discount-on {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.85rem;
  padding: 9px 12px; border-radius: 12px; background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.35); color: #86efac;
}
.cv3-discount-pct { opacity: 0.85; }
.cv3-link-btn { background: none; border: none; cursor: pointer; color: inherit; font-size: 0.95rem; padding: 2px 6px; border-radius: 6px; }
.cv3-link-btn:hover { background: rgba(255,255,255,0.1); }

.cv3-lines { margin: 16px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.cv3-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: var(--text-muted); }
.cv3-line > span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.cv3-line-discount, .cv3-line-discount > span:last-child { color: #86efac; }

.cv3-total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 16px;
  padding: 14px 16px; border-radius: 14px; background: rgba(45,214,224,0.08); border: 1px solid rgba(45,214,224,0.28);
}
.cv3-total-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }
.cv3-total-hint { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; max-width: 150px; line-height: 1.35; }
.cv3-total-amount { font-size: 1.85rem; font-weight: 800; color: var(--accent); line-height: 1; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv3-total-amount small { font-size: 0.85rem; font-weight: 700; }
.cv3-total-approx { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-top: 6px; }

.cv3-note { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.cv3-balance { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.cv3-balance.is-ok { border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.07); }
.cv3-balance.is-low { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.06); }
.cv3-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.85rem; margin-bottom: 10px; }
.cv3-balance-row strong { font-size: 1rem; color: #4ade80; }
.cv3-balance.is-low .cv3-balance-row strong { color: #fbbf24; }
.cv3-balance .cv3-hint { margin: 8px 0 0; }
.cv3-balance.is-low .cv3-balance-row { margin-bottom: 0; }
.cv3-balance.is-low .cv3-hint { margin-top: 8px; }

.cv3-checkout { display: flex; flex-direction: column; }
.cv3-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.cv3-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text); font-family: inherit; font-size: 0.92rem;
  transition: border-color .15s, box-shadow .15s;
}
.cv3-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,214,224,0.16); }
.cv3-hint { font-size: 0.72rem; color: var(--text-muted); line-height: 1.45; margin: 7px 0 14px; }
.cv3-checkout-btn { box-shadow: 0 8px 26px rgba(45,214,224,0.22); }

.cv3-trust {
  list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.cv3-trust li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 1.05rem; }
.cv3-trust li span { font-size: 0.66rem; color: var(--text-muted); line-height: 1.3; }

.cv3-emptybox {
  text-align: center; padding: 48px 20px; background: var(--bg-card); border: 1px dashed rgba(45,214,224,0.35); border-radius: 18px;
}
.cv3-empty-icon { font-size: 3rem; opacity: 0.8; margin-bottom: 6px; }
.cv3-emptybox p { color: var(--text-muted); margin: 0 0 18px; }

@media (max-width: 900px) {
  .cv3-layout { grid-template-columns: 1fr; }
  .cv3-summary { position: static; }
}
@media (max-width: 560px) {
  .cv3-head { padding: 14px 16px 16px; }
  .cv3-title-icon { display: none; }
  .cv3-secure { flex-basis: 100%; justify-content: center; }
  .cv3-title-text h1 { font-size: 1.4rem; }
  .cv3-item { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cv3-item-img { width: 60px; height: 60px; }
  .cv3-item-price { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; text-align: left; border-top: 1px solid var(--border); padding-top: 10px; }
  .cv3-step { font-size: 0.72rem; gap: 5px; }
  .cv3-total-amount { font-size: 1.6rem; }
}


/* cart summary: more compact */
.cv3-summary { padding: 16px 16px 18px; }
.cv3-sum-head { margin-bottom: 10px; }
.cv3-discount summary { padding: 7px 10px; }
.cv3-lines { margin: 12px 0 4px; gap: 5px; }
.cv3-total { margin: 8px 0 12px; padding: 10px 14px; align-items: center; }
.cv3-total-amount { font-size: 1.6rem; }
.cv3-balance { padding: 10px 12px; margin-bottom: 10px; }
.cv3-balance-row { margin-bottom: 8px; }
.cv3-balance.is-low .cv3-balance-row { margin-bottom: 0; }
.cv3-label { margin-bottom: 5px; }
.cv3-input { padding: 10px 12px; margin-bottom: 10px; }


/* ===== payment terminal: compact ===== */
.checkout-page { max-width: 860px; }
.checkout-v2-header { padding: 12px 16px; margin-bottom: 10px; }
.checkout-v2-header-top { gap: 8px 12px; align-items: center; }
.checkout-v2-title { font-size: 1.25rem; }
.checkout-v2-subtitle { margin: 2px 0 0; font-size: 0.72rem; }
.checkout-v2-method-badge { padding: 4px 10px; font-size: 0.6rem; }
.checkout-stepper-v2 { margin-top: 10px; align-items: center; }
.checkout-stepper-v2-step { flex-direction: row; gap: 8px; }
.checkout-stepper-v2-box { width: 26px; height: 26px; min-width: 26px; font-size: 0.68rem; border-radius: 8px; }
.checkout-stepper-v2-step.active .checkout-stepper-v2-box { box-shadow: 0 0 0 3px rgba(var(--checkout-accent-rgb),0.12); }
.checkout-stepper-v2-phase { display: none; }
.checkout-stepper-v2-labels { min-width: 0; text-align: left; }
.checkout-stepper-v2-name { font-size: 0.7rem; margin-top: 0; }
.checkout-stepper-v2-line { margin-top: 0; min-width: 10px; margin-left: 8px; margin-right: 8px; }

.checkout-status-banner { padding: 8px 14px; margin-bottom: 10px; gap: 6px 12px; }
.checkout-status-eyebrow { font-size: 0.58rem; }
.checkout-status-title { font-size: 0.85rem; margin-top: 1px; }
.checkout-status-pill { padding: 3px 8px; font-size: 0.58rem; }

.checkout-layout { gap: 12px; }
.checkout-summary { flex: 0 0 236px; padding: 14px; }
.checkout-summary-brand { margin-bottom: 8px; font-size: 0.85rem; gap: 8px; }
.checkout-summary-order-id { font-size: 0.58rem; margin-bottom: 6px; }
.checkout-summary-total-label { font-size: 0.6rem; }
.checkout-summary-total { font-size: 1.4rem; margin: 0 0 6px; }
.checkout-summary-divider { margin: 10px 0; }
.checkout-summary-section-label { font-size: 0.6rem; margin: 0 0 6px; }
.checkout-summary-product-card { padding: 7px; gap: 8px; }
.checkout-summary-product-media { width: 34px; height: 34px; }
.checkout-summary-product-name { font-size: 0.76rem; }
.checkout-summary-product-tags { margin-top: 4px; }
.checkout-summary-delivery-hint { font-size: 0.66rem; margin: 8px 0 0; }
.checkout-summary-support-btn { padding: 8px 10px; font-size: 0.72rem; margin-top: 10px; }

.checkout-card { padding: 14px; margin-bottom: 10px; }
.checkout-card-header { margin-bottom: 8px; }
.checkout-card-header-label { font-size: 0.62rem; }
.checkout-card-divider { margin: 12px 0; }
.pay-method-list { gap: 6px; }
.pay-method-card, .pay-method-card-inner { padding: 9px 12px; gap: 10px; font-size: 0.8rem; }
.pay-method-desc { font-size: 0.66rem; margin-top: 1px; }

.checkout-instr-card { padding: 14px; }
.checkout-instr-eyebrow { font-size: 0.56rem; }
.checkout-instr-title { font-size: 1.05rem; margin: 6px 0 0; }
.checkout-instr-divider { margin: 10px 0; }
.checkout-instr-steps { gap: 7px; }
.checkout-instr-steps li { font-size: 0.75rem; gap: 10px; line-height: 1.4; }
.checkout-instr-step-num { width: 22px; height: 22px; min-width: 22px; font-size: 0.66rem; }
.checkout-amount-box { padding: 10px 14px; margin-top: 10px; }
.checkout-amount-label { top: 10px; right: 14px; }
.checkout-amount-value { font-size: 1.3rem; }
.checkout-amount-hint { margin-top: 3px; }
.checkout-address-card { padding: 10px 12px; margin-top: 10px; }
.checkout-qr-wrap { margin: 8px 0; }
.checkout-qr-wrap img { width: 150px; height: 150px; padding: 8px; }
.checkout-address-value { font-size: 0.8rem; }
.checkout-address-warning { font-size: 0.68rem; }
.checkout-instr-card .btn-block, .checkout-instr-card a.btn-block { padding: 9px !important; font-size: 0.88rem !important; margin-top: 12px !important; }
.checkout-instr-card > p.muted { font-size: 0.72rem; margin-top: 10px !important; }

.pay-method-card-disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.5); }


/* ===== payment summary sidebar v3 ===== */
.checkout-summary {
  background: linear-gradient(180deg, rgba(var(--checkout-accent-rgb),0.07), transparent 200px), var(--bg-card);
  flex: 0 0 250px; padding: 16px;
}
.cs3-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.cs3-brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(var(--checkout-accent-rgb),0.35), 0 0 14px rgba(var(--checkout-accent-rgb),0.25); }
.cs3-order {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; margin-bottom: 12px;
  border-radius: 10px; border: 1px dashed rgba(255,255,255,0.14); background: rgba(255,255,255,0.025);
}
.cs3-order-label { font-size: 0.56rem; letter-spacing: 0.08em; color: var(--text-muted); }
.cs3-order-code { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
.cs3-order-mail { font-size: 0.66rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs3-total {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(var(--checkout-accent-rgb),0.09); border: 1px solid rgba(var(--checkout-accent-rgb),0.4);
  box-shadow: 0 0 22px rgba(var(--checkout-accent-rgb),0.1);
}
.cs3-total-label { font-size: 0.58rem; letter-spacing: 0.08em; color: var(--text-muted); }
.cs3-total-amount { font-size: 1.75rem; font-weight: 800; line-height: 1.15; margin-top: 2px; color: var(--checkout-accent); white-space: nowrap; }
.cs3-total-amount small { font-size: 0.8rem; font-weight: 700; margin-left: 2px; }
.cs3-total-approx { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }
.checkout-summary .checkout-summary-divider { margin: 12px 0; }
.checkout-summary-product-card { padding: 9px; gap: 10px; border-radius: 12px; }
.checkout-summary-product-media { width: 44px; height: 44px; border-radius: 10px; }
.checkout-summary-product-name { font-size: 0.8rem; line-height: 1.3; }
.checkout-summary-delivery-hint {
  display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px;
  font-size: 0.66rem; line-height: 1.45; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.cs3-hint-icon { color: var(--checkout-accent); flex-shrink: 0; }
.checkout-summary-support-btn { width: 100%; justify-content: center; text-align: center; margin-top: 12px; }
@media (max-width: 720px) { .checkout-summary { flex: 1 1 100%; position: static; } }


/* ===== stock alert form + notifications ===== */
.stock-alert-form { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(45,214,224,0.06); border: 1px solid rgba(45,214,224,0.28); }
.stock-alert-title { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.stock-alert-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-alert-row input { flex: 1 1 200px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-family: inherit; }
.acc-notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-notif { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 0.86rem; }
.acc-notif.is-new { border-color: rgba(45,214,224,0.5); background: rgba(45,214,224,0.07); }
.acc-notif small { color: var(--text-muted); font-size: 0.7rem; }


/* ===== referral card ===== */
.acc-ref-row { display: flex; gap: 8px; margin: 4px 0 12px; }
.acc-ref-row input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-size: 0.8rem; }
.acc-ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc-ref-stats div { text-align: center; padding: 9px 6px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.acc-ref-stats strong { display: block; font-size: 1.15rem; color: var(--accent); }
.acc-ref-stats span { font-size: 0.64rem; color: var(--text-muted); }


/* ===== order timeline, followers lists, public activity ===== */
.acc-timeline { margin-top: 8px; }
.acc-timeline summary { cursor: pointer; font-size: 0.82rem; color: var(--text-muted); }
.acc-tl { list-style: none; margin: 10px 0 0 6px; padding: 0 0 0 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.acc-tl li { position: relative; display: flex; }
.acc-tl-dot { position: absolute; left: -24px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); }
.acc-tl li.is-done .acc-tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(45,214,224,0.5); }
.acc-tl strong { display: block; font-size: 0.84rem; }
.acc-tl small { color: var(--text-muted); font-size: 0.72rem; }
.acc-tl li.is-pending strong { color: var(--text-muted); font-weight: 500; }
.acc-social { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acc-social h4 { margin: 0 0 8px; font-size: 0.9rem; }
.acc-social-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; margin-bottom: 6px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 0.84rem; }
.acc-social-row a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .acc-social { grid-template-columns: 1fr; } }
.pub-activity { margin: 14px 0; padding: 14px 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.pub-activity h3 { margin: 0 0 10px; font-size: 0.95rem; }
.pub-act-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pub-act-stats div { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.pub-act-stats strong { display: block; font-size: 1.05rem; color: var(--accent); }
.pub-act-stats small { font-size: 0.7rem; }
.pub-act-stats span { font-size: 0.66rem; color: var(--text-muted); }
.pub-act-list { margin-top: 12px; }
.pub-act-review { font-size: 0.82rem; padding: 7px 10px; margin-bottom: 5px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }


/* ===== login history ===== */
.acc-login-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-login-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 0.84rem; }
.acc-login-list li.is-fail { border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.06); }
.acc-login-main { font-weight: 600; }
.acc-login-flag { margin-left: auto; font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fbbf24; background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.4); }
.acc-login-flag-new { color: #93c5fd; background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.4); }


/* ===== chat v2: bubbles, grouped messages, hover actions ===== */
.chatbox {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(45,214,224,0.06), transparent 140px), var(--bg-card);
  border: 1px solid rgba(45,214,224,0.28); border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.4);
}
.chatbox-messages {
  height: 480px; padding: 18px 20px 12px; gap: 0; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(45,214,224,0.5) transparent;
}
.chatbox-messages::-webkit-scrollbar { width: 8px; }
.chatbox-messages::-webkit-scrollbar-thumb { background: rgba(45,214,224,0.45); border-radius: 999px; }
.chatbox-messages::-webkit-scrollbar-track { background: transparent; }
.chatbox-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px; }
.chatbox-empty::before { content: "💬"; font-size: 2.2rem; opacity: 0.7; }

.chatbox-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 16px; animation: chatIn .22s ease both; }
.chatbox-row:first-child { margin-top: 0; }
.chatbox-row-compact { margin-top: 3px; }
.chatbox-row-own { flex-direction: row-reverse; }
@keyframes chatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chatbox-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(45,214,224,0.35); background: #14141c; }
.chatbox-avatar-spacer { width: 40px; flex-shrink: 0; }

.chatbox-body, .chatbox-row-own .chatbox-body {
  flex: 0 1 auto; max-width: 78%; min-width: 0; display: flex; flex-direction: column;
  background: none; padding: 0; margin: 0; border-radius: 0;
}
.chatbox-row-own .chatbox-body { align-items: flex-end; }
.chatbox-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 4px 5px; }
.chatbox-row-own .chatbox-head { flex-direction: row-reverse; }
.chatbox-name { font-weight: 700; font-size: 0.88rem; }
.chatbox-time { margin-left: 0; font-size: 0.68rem; color: var(--text-muted); }
.chatbox-badge { font-size: 0.58rem; padding: 2px 8px; }
.chatbox-badge-vip { border: 1px solid rgba(250,204,21,0.35); }

.chatbox-text {
  position: relative; margin-top: 0; padding: 9px 14px; font-size: 0.92rem; line-height: 1.45; word-break: break-word;
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px 18px 18px 18px;
}
.chatbox-row-own .chatbox-text {
  background: linear-gradient(135deg, rgba(45,214,224,0.24), rgba(45,214,224,0.1));
  border-color: rgba(45,214,224,0.42); border-radius: 18px 6px 18px 18px;
}
.chatbox-row-compact .chatbox-text { border-radius: 18px 18px 18px 6px; }
.chatbox-row-own.chatbox-row-compact .chatbox-text { border-radius: 18px 18px 6px 18px; }
.chatbox-text-media { padding: 5px; }
.chatbox-edited-mark { margin-left: 6px; font-size: 0.66rem; color: var(--text-muted); white-space: nowrap; }
.chatbox-image { display: block; max-width: 300px; max-height: 300px; width: auto; border-radius: 13px; margin-top: 0; border: none; cursor: zoom-in; }
.chatbox-text > .chatbox-image-link + .chatbox-image-link, .chatbox-text-hasbody > .chatbox-image-link { margin-top: 8px; display: block; }

.chatbox-actions { opacity: 0; transition: opacity .15s; align-self: center; flex-shrink: 0; }
.chatbox-row:hover .chatbox-actions, .chatbox-actions:focus-within { opacity: 1; }
@media (hover: none) { .chatbox-actions { opacity: 0.8; } }
.chatbox-edit-btn {
  text-decoration: none; padding: 3px 10px; border-radius: 999px; font-size: 0.68rem; font-family: inherit;
  color: var(--text-muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border); cursor: pointer;
}
.chatbox-edit-btn:hover { color: var(--accent); border-color: rgba(45,214,224,0.5); }
.chatbox-edit-wrap { margin-top: 0; min-width: 240px; }

.chatbox-preview[hidden] { display: none; }
.chatbox-preview { margin: 10px 18px 0; padding: 8px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.chatbox-preview img { max-height: 84px; border: none; border-radius: 10px; }
.chatbox-preview-remove { top: -8px; right: -8px; width: 24px; height: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }

.chatbox-form { padding: 14px 18px; gap: 10px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(45,214,224,0.18); }
.chatbox-attach-btn { width: 42px; height: 42px; font-size: 1.15rem; transition: border-color .15s, transform .15s; }
.chatbox-attach-btn:hover { transform: scale(1.06); }
.chatbox-input { padding: 12px 18px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.chatbox-input:focus { box-shadow: 0 0 0 3px rgba(45,214,224,0.16); }
.chatbox-counter { opacity: 0.65; font-variant-numeric: tabular-nums; }
.chatbox-send-btn { padding: 12px 24px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 20px rgba(45,214,224,0.25); }

@media (max-width: 640px) {
  .chatbox-messages { height: 60vh; padding: 14px 12px 8px; }
  .chatbox-body, .chatbox-row-own .chatbox-body { max-width: 84%; }
  .chatbox-avatar, .chatbox-avatar-spacer { width: 32px; height: 32px; }
  .chatbox-avatar-spacer { height: 0; }
  .chatbox-row { gap: 8px; }
  .chatbox-image { max-width: 100%; }
  .chatbox-counter { display: none; }
  .chatbox-form { padding: 10px 12px; }
  .chatbox-send-btn { padding: 11px 16px; }
}


/* ===== shop: filters + ratings ===== */
.shop-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.shop-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--input-bg); }
.shop-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,214,224,0.14); }
.shop-search input { flex: 1; min-width: 0; padding: 10px 0; border: none; background: none; color: var(--text); font-family: inherit; outline: none; }
.shop-filter-bar select { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-family: inherit; }
.shop-filter-check { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--text-muted); cursor: pointer; }
.shop-results, .shop-no-results { margin: 0 0 14px; font-size: 0.86rem; }
.shop-card-rating { font-size: 0.8rem; color: #facc15; margin: 2px 0 4px; }
.shop-card-rating strong { color: var(--text); }
.shop-card-rating span { color: var(--text-muted); font-size: 0.72rem; }
.product-avg-rating { margin: 0 0 10px; font-size: 0.95rem; color: #facc15; }
.product-avg-rating strong { color: var(--text); }
.product-avg-rating span { color: var(--text-muted); font-size: 0.82rem; }


/* ===== promotions ===== */
.promo-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 4px; }
.promo-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 0 14px rgba(239,68,68,0.4); }
.promo-old { color: var(--text-muted); font-size: 0.8rem; }
.promo-countdown { display: inline-block; padding: 2px 9px; border-radius: 8px; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fca5a5; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); }
.promo-countdown:empty { display: none; }
.product-promo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.35); }
.product-promo-time { font-size: 0.84rem; color: var(--text-muted); }


/* ===== favourites ===== */
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1; cursor: pointer;
  color: rgba(255,255,255,0.7); background: rgba(10,12,18,0.65); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px); transition: transform .15s, color .15s, background .15s, border-color .15s;
}
.fav-btn:hover { transform: scale(1.12); color: #fff; border-color: rgba(239,68,68,0.6); }
.fav-btn.is-fav { color: #ef4444; background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.55); text-shadow: 0 0 10px rgba(239,68,68,0.6); }
.fav-btn-inline { position: static; width: auto; height: auto; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; gap: 6px; }
.fav-btn-mini { position: static; width: 28px; height: 28px; font-size: 0.85rem; margin-left: auto; flex-shrink: 0; }
.acc-fav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-fav-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 0.86rem; }
.acc-fav-list li a { font-weight: 600; min-width: 0; }
.acc-fav-oos { font-size: 0.68rem; color: #fbbf24; }


/* ===== chat moderation buttons ===== */
.chatbox-actions { display: flex; gap: 5px; align-items: center; }
.chatbox-act-btn { padding: 3px 9px; }
.chatbox-act-danger:hover { color: #fca5a5; border-color: rgba(239,68,68,0.6); }


/* ===== UI fixes: heart left of the status dot, panel left column ===== */
.shop-product-card-media .fav-btn { right: auto; left: 10px; }
.fav-btn + .card-badge-pill { left: 54px; }
.acc-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.acc-stack:not(:has(*)) { display: none; }

/* notification header link readable */
.acc-card-head button.acc-card-link { color: var(--accent); font-family: inherit; font-size: 0.82rem; font-weight: 600; padding: 0; }
.acc-card-head button.acc-card-link:hover { text-decoration: underline; }


/* ===== privacy tools ===== */
.acc-priv-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acc-priv-col { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.acc-priv-row input, .acc-priv-col input[type=password], .acc-priv-col input[type=text] { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-family: inherit; min-width: 220px; }
.acc-priv-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; color: var(--text-muted); }


/* ===== FAQ page ===== */
.faq-search { width: 100%; box-sizing: border-box; padding: 12px 14px; margin: 12px 0 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-family: inherit; font-size: 0.95rem; }
.faq-empty { display: none; text-align: center; margin: 18px 0; }
.faq-help { margin-top: 28px; padding: 20px 18px; border: 1px solid var(--border); border-radius: 14px; text-align: center; }
.faq-help h2 { margin: 0 0 6px; font-size: 1.1rem; }
.faq-help-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
