@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:          #070809;
  --bg2:         #0b0d10;
  --surface:     #101216;
  --surface2:    #16191e;
  --surface3:    #22262d;
  --glass:       rgba(18,20,24,0.68);
  --glass2:      rgba(255,255,255,0.065);
  --border:      rgba(255,255,255,0.085);
  --border2:     rgba(255,255,255,0.14);
  --border-gold: rgba(255,106,0,0.30);
  --gold:        #ff6a00;
  --gold2:       #ff8533;
  --gold3:       #ffa052;
  --gold-dim:    rgba(255,106,0,0.12);
  --gold-glow:   rgba(255,106,0,0.20);
  --accent:      #ff6a00;
  --text:        #f5f7fa;
  --text2:       #a0a7b2;
  --text3:       #667080;
  --success:     #22c55e;
  --danger:      #ef4444;
  --r:           13px;
  --r-sm:        9px;
  --r-lg:        18px;
  --t:           all 0.18s cubic-bezier(0.4,0,0.2,1);
  --t-slow:      all 0.32s cubic-bezier(0.4,0,0.2,1);
  --shadow-sm:   0 5px 18px rgba(0,0,0,0.28);
  --shadow:      0 12px 38px rgba(0,0,0,0.38);
  --shadow-lg:   0 24px 70px rgba(0,0,0,0.52);
  --glow:        0 0 28px rgba(255,106,0,0.18);
  --glow-lg:     0 0 52px rgba(255,106,0,0.14);
  --glow-btn:    0 4px 20px rgba(255,106,0,0.35);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  background-image: linear-gradient(
    125deg,
    #070809 0%,
    #140918 28%,
    #071722 55%,
    #151006 78%,
    #070809 100%
  );
  background-size: cover;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}
body::before {
  width: 620px; height: 620px;
  top: -180px; left: -130px;
  background:
    radial-gradient(circle at 38% 38%, rgba(255,106,0,0.14), transparent 58%),
    radial-gradient(circle at 64% 60%, rgba(180,70,255,0.09), transparent 62%);
  animation: ambientColorOne 28s ease-in-out infinite alternate;
}
body::after {
  width: 460px; height: 460px;
  bottom: -90px; right: -90px;
  background:
    radial-gradient(circle at 42% 42%, rgba(36,160,255,0.11), transparent 60%),
    radial-gradient(circle at 65% 62%, rgba(255,90,160,0.07), transparent 64%);
  animation: ambientColorTwo 32s ease-in-out infinite alternate;
}

@keyframes ambientColorOne {
  0%   { transform: translate3d(-3%, -2%, 0) scale(0.96); opacity: .72; }
  100% { transform: translate3d(18%, 14%, 0) scale(1.1); opacity: 1; }
}

@keyframes ambientColorTwo {
  0%   { transform: translate3d(3%, 5%, 0) scale(1); opacity: .68; }
  100% { transform: translate3d(-20%, -16%, 0) scale(1.14); opacity: .96; }
}

.container, .top-nav, .auth-wrapper, footer {
  position: relative; z-index: 1;
}

a { color: var(--gold); text-decoration: none; transition: var(--t); }
a:hover { text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══════════════════════════════════════════════
   ICON STANDARDISATION (Lucide → SVG after createIcons)
═══════════════════════════════════════════════ */
[data-lucide] {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

/* Nav icons */
.top-nav .nav-links a [data-lucide]      { width: 14px; height: 14px; stroke-width: 1.9; }
.top-nav .logo [data-lucide]             { width: 20px; height: 20px; stroke-width: 2.2; }
.top-nav .coin-badge [data-lucide]       { width: 13px; height: 13px; stroke-width: 2; vertical-align: -2px; }
.top-nav .nav-toggle [data-lucide]       { width: 18px; height: 18px; stroke-width: 1.8; vertical-align: -4px; }

/* Card icons */
.card-icon [data-lucide],
.icon-wrap [data-lucide]                 { width: 24px; height: 24px; stroke-width: 1.7; }
.banner-icon [data-lucide]               { width: 26px; height: 26px; stroke-width: 1.6; }
.logo-icon [data-lucide]                 { width: 24px; height: 24px; stroke-width: 2; }

/* Button icons */
.btn [data-lucide]                       { width: 14px; height: 14px; stroke-width: 2; vertical-align: -2px; }
.tab-btn [data-lucide]                   { width: 13px; height: 13px; stroke-width: 1.9; vertical-align: -2px; }

/* Admin / add-form icons */
.add-form h3 [data-lucide]              { width: 15px; height: 15px; stroke-width: 2; vertical-align: -3px; }
.history-wrap h2 [data-lucide]          { width: 17px; height: 17px; stroke-width: 1.8; vertical-align: -4px; }
.modal-box h3 [data-lucide]             { width: 15px; height: 15px; stroke-width: 2; vertical-align: -3px; }

/* Notice box */
.notice-box [data-lucide]               { width: 15px; height: 15px; stroke-width: 1.9; vertical-align: -2px; }

/* Inline small icons */
.reward-badge [data-lucide],
.timer-badge [data-lucide]              { width: 11px; height: 11px; stroke-width: 2.2; vertical-align: -1px; }

/* ═══════════════════════════════════════════════
   NAV — GLASSMORPHISM
═══════════════════════════════════════════════ */
.top-nav {
  position: sticky; top: 0; z-index: 200;
  /* Glass effect */
  background: rgba(6,6,6,0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  /* Fallback for no backdrop-filter support */
  @supports not (backdrop-filter: blur(1px)) {
    background: rgba(8,8,8,0.95);
  }
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 24px;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}

.top-nav .logo {
  font-size: 1.18rem; font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.4px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; text-decoration: none;
}
.top-nav .logo svg { width: 20px; height: 20px; stroke: var(--gold); stroke-width: 2.4; }

.top-nav .nav-links {
  display: flex; align-items: center; gap: 1px;
}

.top-nav .nav-links a {
  padding: 6px 11px; border-radius: 8px;
  color: var(--text2); font-size: 0.83rem; font-weight: 500;
  transition: var(--t);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; position: relative;
}
.top-nav .nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.top-nav .nav-links a.active {
  color: var(--gold);
  background: rgba(255,106,0,0.12);
  font-weight: 600;
}
.top-nav .nav-links a.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--gold);
  border-radius: 99px;
}

.coin-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #fff;
  padding: 5px 13px; border-radius: 99px;
  font-weight: 700; font-size: 0.8rem;
  white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 12px rgba(255,106,0,0.28);
  letter-spacing: 0.1px;
}

.nav-toggle {
  display: none;
  background: var(--glass2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--text2);
  transition: var(--t);
}
.nav-toggle:hover { background: var(--surface2); color: var(--text); }

/* ═══════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════ */
.container { max-width: 970px; margin: 0 auto; padding: 32px 18px 56px; }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 88px 18px 64px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,106,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,106,0,0.10);
  border: 1px solid rgba(255,106,0,0.25);
  padding: 6px 18px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold); margin-bottom: 28px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
}
.hero-badge [data-lucide] { width: 12px; height: 12px; stroke-width: 2.2; vertical-align: -1px; }
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.9rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 18px; color: #ffffff;
  letter-spacing: -1.2px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1rem; color: var(--text2); max-width: 460px; margin: 0 auto 36px; line-height: 1.7; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 21px; border-radius: var(--r);
  font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; border: none; outline: none;
  transition: var(--t);
  text-decoration: none !important;
  letter-spacing: 0.15px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #ffffff;
  box-shadow: var(--glow-btn);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold2), var(--gold3));
  box-shadow: 0 6px 28px rgba(255,106,0,0.45);
  color: #fff; transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255,106,0,0.08);
  border: 1px solid rgba(255,106,0,0.35);
  color: var(--gold);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,106,0,0.15); color: var(--gold); border-color: var(--gold); }

.btn-ghost {
  background: var(--glass2); color: var(--text2);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,0.25); }
.btn-danger:hover { opacity: 0.88; }

.btn-success { background: var(--success); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(34,197,94,0.2); }
.btn-success:hover { opacity: 0.9; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════
   FEATURE CARDS (landing)
═══════════════════════════════════════════════ */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 16px; margin-top: 50px;
}
.feature-card {
  padding: 28px 21px; border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  text-align: center; transition: var(--t-slow);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--glow);
  background: rgba(255,255,255,0.05);
}
.feature-card .icon-wrap {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(255,106,0,0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 20px rgba(255,106,0,0.10);
}
.feature-card .icon-wrap svg,
.feature-card .icon-wrap [data-lucide] { width: 24px; height: 24px; stroke: var(--gold); stroke-width: 1.7; }
.feature-card h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text2); font-size: 0.83rem; line-height: 1.65; }

/* ═══════════════════════════════════════════════
   AUTH — GLASSMORPHISM CARD
═══════════════════════════════════════════════ */
.auth-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.auth-card {
  width: 100%; max-width: 400px;
  /* Glassmorphism */
  background: rgba(14,14,14,0.80);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg); padding: 36px 32px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,106,0,0.04);
  animation: fadeUp 0.38s ease;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,0.4), transparent);
}
.auth-logo { text-align: center; margin-bottom: 27px; }
.auth-logo .logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(145deg, rgba(255,106,0,0.18), rgba(255,106,0,0.06));
  border: 1px solid rgba(255,106,0,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(255,106,0,0.15);
}
.auth-logo .logo-icon svg,
.auth-logo .logo-icon [data-lucide] { width: 24px; height: 24px; stroke: var(--gold); stroke-width: 2.1; }
.auth-logo span { font-size: 1.45rem; font-weight: 800; color: var(--gold); letter-spacing: -0.3px; }
.auth-logo p { color: var(--text2); font-size: 0.84rem; margin-top: 5px; }

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text2); margin-bottom: 7px;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  color: var(--text); font-size: 0.91rem; font-family: 'Inter', sans-serif;
  outline: none; transition: var(--t);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,106,0,0.5);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.10);
  background: rgba(255,255,255,0.06);
}
.form-group input::placeholder { color: var(--text3); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface); }

.remember-row { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.remember-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.remember-row label { font-size: 0.84rem; color: var(--text2); cursor: pointer; margin: 0; font-weight: 400; text-transform: none; letter-spacing: 0; }

.switch-link { text-align: center; margin-top: 20px; font-size: 0.84rem; color: var(--text2); }
.msg { text-align: center; min-height: 20px; font-size: 0.84rem; margin-top: 10px; }
.msg.success { color: var(--success); }
.msg.error { color: var(--danger); }

.divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* ═══════════════════════════════════════════════
   PAGE TITLE
═══════════════════════════════════════════════ */
.page-title { margin-bottom: 25px; }
.page-title h1 {
  font-size: 1.6rem; font-weight: 800;
  color: #ffffff; letter-spacing: -0.4px;
}
.page-title p { color: var(--text2); font-size: 0.87rem; margin-top: 5px; }

/* ═══════════════════════════════════════════════
   DASHBOARD TILES — GLASS CARDS
═══════════════════════════════════════════════ */
.dashboard-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 700px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px 23px;
  display: flex; flex-direction: column; gap: 12px;
  transition: var(--t-slow); text-decoration: none;
  position: relative; overflow: hidden;
}
.dash-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.dash-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  opacity: 0; transition: var(--t);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.dash-card:hover {
  border-color: rgba(255,106,0,0.28);
  transform: translateY(-7px);
  box-shadow: var(--glow), var(--shadow);
  text-decoration: none;
  background: rgba(255,255,255,0.05);
}
.dash-card:hover::after { opacity: 1; }

.dash-card .card-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,106,0,0.18), rgba(255,106,0,0.06));
  border: 1px solid rgba(255,106,0,0.20);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(255,106,0,0.14);
}
.dash-card .card-icon svg,
.dash-card .card-icon [data-lucide] { width: 23px; height: 23px; stroke: var(--gold); stroke-width: 1.8; }
.dash-card h3 { color: #ffffff; font-size: 1.05rem; font-weight: 700; }
.dash-card p { color: var(--text2); font-size: 0.82rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   COIN BANNER
═══════════════════════════════════════════════ */
.coin-banner {
  background: linear-gradient(135deg, rgba(255,106,0,0.12), rgba(255,133,51,0.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,106,0,0.25);
  border-radius: var(--r); padding: 20px 23px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 27px;
  box-shadow: var(--glow), var(--shadow-sm);
  position: relative; overflow: hidden;
}
.coin-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,0.5), transparent);
}
.coin-banner .banner-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(255,106,0,0.14); border: 1px solid rgba(255,106,0,0.22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.coin-banner .banner-icon svg,
.coin-banner .banner-icon [data-lucide] { width: 26px; height: 26px; stroke: var(--gold); stroke-width: 1.7; }
.coin-banner h2 { font-size: 1.85rem; font-weight: 900; color: var(--gold); letter-spacing: -0.6px; }
.coin-banner p { color: var(--text2); font-size: 0.87rem; margin-top: 4px; }
.coin-banner strong { color: var(--text); }

/* ═══════════════════════════════════════════════
   TASK CARDS (earn page)
═══════════════════════════════════════════════ */
.tasks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px,1fr)); gap: 16px; }
.task-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: var(--t-slow); position: relative; overflow: hidden;
}
.task-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: var(--t);
}
.task-card:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--glow); }
.task-card:hover::before { opacity: 1; }
.task-card.done { opacity: 0.38; pointer-events: none; }
.task-card h3 { font-size: 0.94rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.reward-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,106,0,0.12); border: 1px solid rgba(255,106,0,0.28);
  color: var(--gold); padding: 3px 10px; border-radius: 99px;
  font-size: 0.76rem; font-weight: 700;
}
.timer-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  color: var(--text2); padding: 3px 10px; border-radius: 99px;
  font-size: 0.76rem; font-weight: 600;
}

/* ═══════════════════════════════════════════════
   WITHDRAW BOX
═══════════════════════════════════════════════ */
.withdraw-box {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px;
}
.balance-text { color: var(--text2); font-size: 0.88rem; margin-bottom: 22px; }
.balance-text span { color: var(--gold); font-weight: 700; }

/* ═══════════════════════════════════════════════
   LEADERBOARD
═══════════════════════════════════════════════ */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
  text-align: left; padding: 11px 16px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text3);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.lb-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tr:hover td { background: rgba(255,255,255,0.03); }
.lb-rank { font-weight: 700; }
.lb-rank.r1 { color: #f5c518; }
.lb-rank.r2 { color: #aaaaaa; }
.lb-rank.r3 { color: #cd7f32; }
.lb-coins { color: var(--gold); font-weight: 700; }
.lb-me td { background: rgba(255,106,0,0.05) !important; }
.lb-me td:first-child { border-left: 2px solid var(--gold); }

/* ═══════════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════════ */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 16px; border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  color: var(--text2);
  font-family: 'Inter', sans-serif; font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: var(--t);
  display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { border-color: var(--border-gold); color: var(--gold); background: rgba(255,106,0,0.06); }
.tab-btn.active {
  background: rgba(255,106,0,0.12);
  border-color: rgba(255,106,0,0.30);
  color: var(--gold);
}
.tab-panel { display: none; animation: fadeUp 0.2s ease; }
.tab-panel.active { display: block; }

.admin-user-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.admin-user-search {
  width: min(100%, 520px); min-height: 42px; padding: 0 13px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.admin-user-search:focus-within {
  border-color: rgba(255,106,0,.55); background: rgba(255,106,0,.035);
  box-shadow: 0 0 0 3px rgba(255,106,0,.08);
}
.admin-user-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--text3); }
.admin-user-search input {
  width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: .84rem;
}
.admin-user-search input::placeholder { color: var(--text3); }
.admin-user-result-count { color: var(--text3); font-size: .77rem; white-space: nowrap; }
.admin-discord-name { color: #aeb7ff; font-weight: 700; white-space: nowrap; }
.admin-discord-id { color: var(--text3); font-family: monospace; font-size: .68rem; margin-top: 3px; }
.admin-discord-empty { color: var(--text3); font-size: .76rem; white-space: nowrap; }
@media (max-width: 600px) {
  .admin-user-tools { align-items: stretch; flex-direction: column; gap: 7px; }
  .admin-user-search { width: 100%; }
  .admin-user-result-count { padding-left: 2px; }
}

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px,1fr)); gap: 12px; margin-bottom: 20px; }
.a-stat {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 17px 16px;
  transition: var(--t);
}
.a-stat:hover { border-color: var(--border-gold); }
.a-stat .label { font-size: 0.7rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.9px; }
.a-stat .value { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin-top: 5px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--text3);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 0.85rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.025); }

.task-order-help {
  display: flex; align-items: center; gap: 8px;
  margin: 0 2px 10px; color: var(--text3); font-size: .76rem;
}
.task-order-help-icon {
  display: inline-grid; place-items: center; flex: 0 0 23px; height: 23px;
  border: 1px solid rgba(255,106,0,.24); border-radius: 7px;
  color: var(--gold); background: rgba(255,106,0,.08); font-size: .9rem;
}
.task-order-column, .task-order-cell { width: 54px; min-width: 54px; text-align: center !important; }
.task-order-cell { padding-left: 8px !important; padding-right: 8px !important; }
.task-drag-handle {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  padding: 0; border: 1px solid var(--border); border-radius: 9px;
  color: var(--text3); background: rgba(255,255,255,.025);
  cursor: grab; touch-action: none; transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}
.task-drag-handle:hover, .task-drag-handle:focus-visible {
  color: var(--gold); border-color: rgba(255,106,0,.42); background: rgba(255,106,0,.09); outline: none;
}
.task-drag-handle:active { cursor: grabbing; transform: scale(.95); }
.task-drag-handle svg { width: 18px; height: 18px; fill: currentColor; pointer-events: none; }
.admin-task-row td { transition: background .16s ease, opacity .16s ease, box-shadow .16s ease; }
.admin-task-row.task-dragging td {
  background: rgba(255,106,0,.12) !important; box-shadow: inset 0 1px rgba(255,132,38,.35), inset 0 -1px rgba(255,132,38,.35);
  opacity: .72;
}
#task-tbody.is-saving { pointer-events: none; opacity: .68; }
body.task-reordering { user-select: none; cursor: grabbing; }
@media (max-width: 600px) {
  .task-order-help { font-size: .72rem; line-height: 1.4; }
  .task-order-column, .task-order-cell { width: 50px; min-width: 50px; }
  .task-drag-handle { width: 38px; height: 38px; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }
.status-pending  { background: rgba(255,106,0,0.12); color: var(--gold);    border: 1px solid rgba(255,106,0,0.25); }
.status-approved { background: rgba(34,197,94,0.12);  color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.status-rejected { background: rgba(239,68,68,0.12);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.25); }
.admin-badge { background: rgba(255,106,0,0.1); color: var(--gold); border: 1px solid var(--border-gold); padding: 2px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }

.add-form {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.add-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.add-form h3 { color: #fff; font-size: 0.94rem; margin-bottom: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--r); padding: 20px 18px; transition: var(--t);
}
.stat-card:hover { border-color: var(--border-gold); box-shadow: var(--glow); }
.stat-card .label { font-size: 0.72rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.stat-card .value { font-size: 1.5rem; font-weight: 800; color: var(--gold); }

/* ═══════════════════════════════════════════════
   STEPS (HOW IT WORKS)
═══════════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-top: 44px; }
.step {
  text-align: center; padding: 28px 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: var(--t);
}
.step:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.step-num {
  width: 42px; height: 42px; border-radius: 99px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,106,0,0.30);
}
.step h3 { font-size: 0.93rem; font-weight: 700; color: #fff; margin-bottom: 7px; }
.step p { font-size: 0.81rem; color: var(--text2); line-height: 1.55; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  text-align: center; padding: 22px 20px;
  color: var(--text3); font-size: 0.8rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,0,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(255,106,0,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fadeup { animation: fadeUp 0.4s ease both; }
.pulse { animation: pulse 2s infinite; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .top-nav .nav-links {
    display: none;
    position: absolute; top: 54px; left: 0; right: 0;
    flex-direction: column;
    /* Glass on mobile menu */
    background: rgba(6,6,6,0.92);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0; z-index: 100;
    animation: fadeIn 0.2s ease;
  }
  .top-nav .nav-links.open { display: flex; }
  .top-nav .nav-links a { border-radius: 0; padding: 11px 24px; }
  .top-nav .nav-links a.active::after { display: none; }
  .top-nav .nav-links a.active { border-left: 3px solid var(--gold); padding-left: 21px; }
  .nav-toggle { display: block; }
  .coin-badge { font-size: 0.77rem; padding: 4px 11px; }
}
@media (max-width: 640px) {
  .top-nav { padding: 0 13px; }
  .coin-banner { flex-direction: column; text-align: center; }
  .auth-card { padding: 27px 18px; }
  .container { padding: 22px 13px 44px; }
  .withdraw-box { padding: 22px 18px; }
  .admin-tabs { gap: 4px; }
  .tab-btn { padding: 7px 11px; font-size: 0.79rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 58px 15px 47px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ═══════════════════════════════════════════════
   NEW NAV — HAMBURGER + SIDEBAR LAYOUT
═══════════════════════════════════════════════ */
.top-nav .hamburger {
  background: var(--glass2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 7px 9px; cursor: pointer;
  color: var(--text2); transition: var(--t); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.top-nav .hamburger:hover { background: var(--surface2); color: var(--text); }
.top-nav .hamburger svg { width: 16px; height: 16px; stroke-width: 1.9; display: block; }

.top-nav .nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.top-nav .profile-btn {
  width: 33px; height: 33px; border-radius: 9px;
  background: var(--glass2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); transition: var(--t); flex-shrink: 0;
  text-decoration: none;
}
.top-nav .profile-btn:hover { background: rgba(255,106,0,0.12); border-color: var(--border-gold); color: var(--gold); }
.top-nav .profile-btn svg { width: 15px; height: 15px; stroke-width: 1.9; }

.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 256px; z-index: 400;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border-right: 1px solid rgba(255,255,255,0.07);
  transform: translateX(-100%);
  transition: transform 1s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }

.sidebar-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-logo {
  font-size: 1.12rem; font-weight: 800; color: var(--gold);
  letter-spacing: -0.4px; display: flex; align-items: center; gap: 8px;
}
.sidebar-brand-copy { display: none; }
.sidebar-logo svg { width: 20px; height: 20px; stroke: var(--gold); stroke-width: 2.4; }
.sidebar-close {
  background: var(--glass2); border: 1px solid var(--border);
  border-radius: 8px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); transition: var(--t);
}
.sidebar-close:hover { color: var(--text); background: var(--surface2); }
.sidebar-close svg { width: 13px; height: 13px; stroke-width: 2.2; }

.sidebar-balance-box {
  margin: 14px 14px 6px;
  background: linear-gradient(135deg, rgba(255,106,0,0.13), rgba(255,133,51,0.04));
  border: 1px solid rgba(255,106,0,0.22);
  border-radius: var(--r); padding: 13px 15px;
  flex-shrink: 0;
}
.sidebar-balance-box .sb-label {
  font-size: 0.68rem; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 3px;
}
.sidebar-balance-box .sb-amount {
  font-size: 1.4rem; font-weight: 900; color: var(--gold); letter-spacing: -0.5px;
}

.sidebar-nav {
  display: flex; flex-direction: column;
  padding: 8px 10px 16px; gap: 2px; flex: 1;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 10px;
  color: var(--text2); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: var(--t);
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
.sidebar-link.active { color: var(--gold); background: rgba(255,106,0,0.10); font-weight: 600; }
.sidebar-link.logout-link { color: var(--danger); margin-top: 4px; }
.sidebar-link.logout-link:hover { background: rgba(239,68,68,0.08); }
.sidebar-link svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.8; }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 2px; }

/* ═══════════════════════════════════════════════
   LANDING PAGE — NEW SECTIONS
═══════════════════════════════════════════════ */
.hero-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px; margin-bottom: 44px;
}
.hero-stat { text-align: center; }
.hero-stat .hs-num {
  font-size: 2rem; font-weight: 900; color: var(--gold);
  letter-spacing: -1px; line-height: 1;
}
.hero-stat .hs-label { font-size: 0.75rem; color: var(--text2); margin-top: 3px; font-weight: 500; }

.trust-strip {
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
  padding: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 56px 0; color: var(--text2); font-size: 0.82rem;
}
.trust-item { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.trust-item svg { width: 16px; height: 16px; stroke: var(--gold); stroke-width: 2; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   DASHBOARD PLATFORM STATS
═══════════════════════════════════════════════ */
.platform-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 28px;
}
.pstat-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 18px;
  transition: var(--t); position: relative; overflow: hidden;
}
.pstat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  opacity: 0; transition: var(--t);
}
.pstat-card:hover { border-color: var(--border-gold); }
.pstat-card:hover::after { opacity: 1; }
.pstat-card .ps-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold-dim); border: 1px solid rgba(255,106,0,0.18);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.pstat-card .ps-icon svg { width: 19px; height: 19px; stroke: var(--gold); stroke-width: 1.8; }
.pstat-card .ps-label { font-size: 0.7rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 4px; }
.pstat-card .ps-value { font-size: 1.7rem; font-weight: 900; color: var(--gold); letter-spacing: -0.5px; }

/* ═══════════════════════════════════════════════
   EARN PAGE — STAT MINI CARDS + CHALLENGE
═══════════════════════════════════════════════ */
.earn-stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.earn-mini-stat {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(12px); transition: var(--t);
}
.earn-mini-stat:hover { border-color: var(--border-gold); }
.earn-mini-stat .ems-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--gold-dim); border: 1px solid rgba(255,106,0,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.earn-mini-stat .ems-icon svg { width: 17px; height: 17px; stroke: var(--gold); stroke-width: 2; }
.earn-mini-stat .ems-label { font-size: 0.68rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.7px; }
.earn-mini-stat .ems-value { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-top: 2px; }

.earn-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.earn-tab-btn {
  padding: 8px 16px; border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--glass); backdrop-filter: blur(8px);
  color: var(--text2); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: var(--t);
  display: flex; align-items: center; gap: 7px;
}
.earn-tab-btn:hover { border-color: var(--border-gold); color: var(--gold); }
.earn-tab-btn.active { background: rgba(255,106,0,0.12); border-color: rgba(255,106,0,0.30); color: var(--gold); }
.earn-tab-btn svg { width: 14px; height: 14px; stroke-width: 2; }

/* Offerwall */
.ow-shell { margin-bottom: 26px; }

.ow-wall-panel { min-width: 0; }
.ow-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 11px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
}
.ow-wall-state { font-size: 0.78rem; font-weight: 700; color: var(--text2); }
.ow-rate-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255,106,0,0.11); border: 1px solid rgba(255,106,0,0.28);
  color: var(--gold); font-size: 0.72rem; font-weight: 800; white-space: nowrap;
}
.ow-history-card { margin-top: 4px; }
.ow-total { text-align: right; }
.ow-total span { display: block; font-size: 0.68rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.7px; }
.ow-total strong { display: block; font-size: 1.05rem; font-weight: 900; color: var(--gold); margin-top: 2px; }
.ow-usd { font-size: 0.82rem; font-weight: 700; color: #4ade80; white-space: nowrap; }
/* The wallet card now leads the offerwall panel; .analytics-card already supplies
   its own vertical rhythm, so only the head alignment needs an override here. */
.ow-wallet-section .analytics-head { align-items: flex-start; }
/* Balance + manual refresh live on the right of the wallet head. */
.ow-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ow-balance-refresh { border-color: var(--border-gold); background: var(--gold-dim); color: var(--gold); }
.ow-balance-refresh:hover:not(:disabled) { background: rgba(255,106,0,0.18); }
.ow-balance-refresh:disabled { opacity: 0.65; cursor: wait; }
.ow-balance-refresh.is-loading svg { animation: spin 0.8s linear infinite; }
/* Wallet cards: USD accrued from the partner, its rate, and the conversion CTA. */
.ow-wallet-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.ow-wcard {
  position: relative; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}
.ow-wcard-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 900;
}
.ow-wcard-body { display: flex; flex-direction: column; min-width: 0; }
.ow-wcard-label { font-size: 0.76rem; font-weight: 600; color: var(--text3); }
.ow-wcard-value { font-size: 1.35rem; font-weight: 900; color: var(--text); letter-spacing: -0.4px; margin-top: 2px; word-break: break-word; }
.ow-wcard-note { flex: 1 0 100%; font-size: 0.72rem; color: var(--text3); line-height: 1.55; margin: 0; }
.ow-wcard-action { flex-direction: column; align-items: stretch; }
.ow-wcard-action .ow-wcard-body { margin-bottom: 12px; }
.ow-convert-btn {
  width: 100%; padding: 12px 16px; border: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #ffffff;
  box-shadow: var(--glow-btn);
  font-family: 'Inter', sans-serif; font-size: 0.86rem; font-weight: 800;
  cursor: pointer; transition: var(--t);
}
.ow-convert-btn:hover:not(:disabled) { background: linear-gradient(135deg, var(--gold2), var(--gold3)); box-shadow: 0 6px 28px rgba(255,106,0,0.45); }
.ow-convert-btn:disabled { background: var(--surface3); color: var(--text3); cursor: not-allowed; }
.ow-convert-msg { color: var(--gold); }
.ow-convert-msg:empty { display: none; }
@media (max-width: 900px) { .ow-wallet-cards { grid-template-columns: 1fr; } }
/* Admin "Nạp / Trừ VNĐ" modal: an explicit mode beats typing a minus sign. */
.addcoin-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addcoin-mode {
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface2);
  color: var(--text2); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 700; transition: var(--t);
}
.addcoin-mode:hover { border-color: var(--border-gold); color: var(--text); }
.addcoin-mode.active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }
#addcoin-mode-sub.active { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.12); color: #f87171; }

.ow-code-pill {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text3);
  background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 0;
}
.ow-code-label { font-weight: 600; }
.ow-code-label em { font-style: normal; color: var(--text3); opacity: 0.75; }
.ow-code-pill strong {
  font-family: monospace; font-size: 0.82rem; color: var(--gold);
  background: rgba(255,106,0,0.10); border: 1px solid rgba(255,106,0,0.24);
  border-radius: 7px; padding: 2px 8px; word-break: break-all;
}
.ow-toolbar-actions { display: flex; gap: 7px; }
.ow-tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text2); font-family: 'Inter', sans-serif;
  font-size: 0.76rem; font-weight: 700; cursor: pointer; transition: var(--t);
}
.ow-tool-btn:hover { border-color: var(--border-gold); color: var(--gold); }
.ow-tool-btn svg { width: 13px; height: 13px; stroke-width: 2.2; }
.ow-frame-shell {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,106,0,0.22);
  background: #0b0d12;
  box-shadow: 0 18px 46px rgba(0,0,0,0.32);
}
/* Compact, fixed frame height: the wall scrolls inside itself instead of
   stretching the page, so the wallet and history cards stay within reach. */
.ow-frame-shell iframe { display: block; width: 100%; height: 560px; min-height: 560px; background: #0b0d12; }
.ow-note { font-size: 0.74rem; color: var(--text3); line-height: 1.6; margin-top: 10px; }
.ow-setup {
  background: var(--surface2); border: 1px dashed rgba(255,106,0,0.34);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px;
}
.ow-setup h4 { color: #fff; font-size: 0.92rem; font-weight: 800; margin-bottom: 7px; }
.ow-setup p { color: var(--text2); font-size: 0.82rem; line-height: 1.65; }
.ow-setup code {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px; font-size: 0.76rem; color: var(--gold);
}
.ow-postback-box { margin-top: 14px; }
.ow-status {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.8rem; line-height: 1.6; color: var(--text2);
  background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.22);
  border-radius: 11px; padding: 11px 14px; margin-bottom: 18px;
}
.ow-status.ok { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.24); }
.ow-status b { color: var(--gold); }
.ow-status.ok b { color: var(--success); }
.ow-endpoint-check {
  display: none; margin-top: 8px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.55; color: var(--text2);
}
.ow-endpoint-check:not(:empty) { display: block; }
.ow-endpoint-check.ok { color: var(--success); }
.ow-endpoint-check.error { color: var(--danger, #f87171); }
.ow-postback-label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 7px; }
.ow-postback-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.ow-postback-row code {
  flex: 1; min-width: 0; color: var(--text); font-size: 0.75rem; line-height: 1.5;
  background: rgba(7,9,12,0.56); border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 11px; word-break: break-all;
}
.ow-copy {
  padding: 0 15px; border-radius: 9px; cursor: pointer;
  border: 1.5px solid var(--border-gold); background: var(--gold-dim); color: var(--gold);
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 800; transition: var(--t);
}
.ow-copy:hover { background: var(--gold); color: #fff; }

/* Challenge section */
.challenge-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 24px;
  text-align: center; position: relative; overflow: hidden;
  max-width: 520px; margin: 0 auto 20px;
  transition: var(--t);
}
.challenge-card:hover { border-color: var(--border-gold); box-shadow: var(--glow); }
.challenge-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.challenge-gift {
  width: 62px; height: 62px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(255,106,0,0.22), rgba(255,106,0,0.06));
  border: 1px solid rgba(255,106,0,0.34); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 26px rgba(255,106,0,0.14);
  animation: challengeGiftFloat 2.8s ease-in-out infinite;
}
.challenge-gift svg { width: 32px; height: 32px; color: currentColor; filter: drop-shadow(0 3px 8px rgba(255,106,0,0.28)); }
@keyframes challengeGiftFloat {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.challenge-ring-wrap { margin: 16px auto; display: inline-block; }
.challenge-ring-wrap svg { overflow: visible; }
.challenge-ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 9; }
.challenge-ring-progress {
  fill: none; stroke: var(--gold); stroke-width: 9;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.6s ease;
  filter: drop-shadow(0 0 6px rgba(255,106,0,0.5));
}
.challenge-ring-wrap text { font-family: 'Inter', sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.challenge-count-num { font-size: 26px; font-weight: 900; }
.challenge-count-goal { font-size: 11px; fill: var(--text2); font-weight: 600; }

.challenge-title { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.challenge-sub { font-size: 0.83rem; color: var(--text2); margin-bottom: 18px; }

.challenge-rules {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 18px; text-align: left; margin: 16px 0;
}
.challenge-rules h4 {
  font-size: 0.75rem; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px;
}
.challenge-rules li {
  font-size: 0.82rem; color: var(--text2); margin-bottom: 5px;
  padding-left: 16px; position: relative; list-style: none;
}
.challenge-rules li::before {
  content: '•'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

.challenge-claimed-box {
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.22);
  border-radius: var(--r); padding: 14px; margin: 14px 0;
  color: var(--success); font-weight: 700; font-size: 0.9rem;
}
.challenge-status-gift { width: 17px; height: 17px; flex: 0 0 17px; color: currentColor; }

/* Community shop */
.shop-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.shop-page-head .page-title { flex: 1; }
.shop-balance-pill {
  min-width: 168px; display: flex; flex-direction: column; align-items: flex-end;
  padding: 12px 15px; border: 1px solid rgba(255,106,0,.24); border-radius: 12px;
  background: linear-gradient(135deg,rgba(255,106,0,.12),rgba(255,106,0,.025));
}
.shop-balance-pill span { color: var(--text3); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.shop-balance-pill strong { color: var(--gold); font-size: 1.15rem; margin-top: 3px; }
.shop-tabs {
  display: flex; gap: 7px; overflow-x: auto; margin-bottom: 22px; padding-bottom: 2px;
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px; padding: 9px 16px;
  color: var(--text2); background: var(--glass); font: 700 .82rem 'Inter',sans-serif; cursor: pointer; transition: var(--t);
}
.shop-tab:hover { color: var(--gold); border-color: var(--border-gold); }
.shop-tab.active { color: #fff; border-color: rgba(255,106,0,.45); background: linear-gradient(135deg,#ff6a00,#ff8533); box-shadow: 0 6px 20px rgba(255,106,0,.2); }
.shop-panel { display: none; animation: fadeUp .22s ease; }
.shop-panel.active { display: block; }
.shop-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.shop-search {
  flex: 1; max-width: 580px; height: 42px; display: flex; align-items: center; gap: 10px;
  padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  transition: var(--t);
}
.shop-search:focus-within { border-color: var(--border-gold); box-shadow: 0 0 0 3px rgba(255,106,0,.07); }
.shop-search svg { width: 17px; height: 17px; color: var(--text3); flex: 0 0 17px; }
.shop-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font: 500 .86rem 'Inter',sans-serif; }
.shop-search input::placeholder { color: var(--text3); }
.shop-product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(235px,1fr)); gap: 15px; }
.shop-loading,.shop-empty { grid-column: 1/-1; padding: 54px 18px; text-align: center; color: var(--text3); border: 1px dashed var(--border); border-radius: var(--r); }
.shop-product-card {
  min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface);
  transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.shop-product-card:hover { transform: translateY(-3px); border-color: rgba(255,106,0,.25); box-shadow: 0 16px 38px rgba(0,0,0,.3); }
.shop-product-image { height: 155px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 30%,rgba(255,106,0,.14),rgba(255,255,255,.02)); }
.shop-product-image-placeholder { color: rgba(255,106,0,.58); }
.shop-product-image-placeholder svg { width: 46px; height: 46px; stroke-width: 1.25; }
.shop-product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-product-body { padding: 15px; }
.shop-product-shop { color: var(--gold); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .55px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-product-name { color: #fff; font-size: .96rem; font-weight: 800; margin: 5px 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-product-desc { min-height: 38px; color: var(--text2); font-size: .76rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-product-meta { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0; color: var(--text3); font-size: .7rem; }
.shop-product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 12px; border-top: 1px solid var(--border); }
.shop-product-price { color: var(--gold); font-size: 1.02rem; font-weight: 900; }
.shop-product-contact { margin-top: 9px; color: var(--text3); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-kicker { display: block; color: var(--gold); font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .85px; margin-bottom: 4px; }
.shop-register-card {
  display: grid; grid-template-columns: minmax(220px,.85fr) minmax(320px,1.15fr); gap: 30px;
  padding: 27px; border: 1px solid var(--border-gold); border-radius: var(--r-lg);
  background: linear-gradient(135deg,rgba(255,106,0,.09),rgba(16,18,22,.96) 48%);
}
.shop-register-copy h2,.shop-section-title h2,.shop-order-toolbar h2 { color: #fff; font-size: 1.05rem; }
.shop-register-copy p { color: var(--text2); font-size: .82rem; line-height: 1.7; margin-top: 10px; }
.shop-form-stack textarea,.shop-owner-card textarea {
  width: 100%; resize: vertical; padding: 10px 13px; color: var(--text); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 9px; font: 500 .84rem 'Inter',sans-serif; outline: 0;
}
.shop-form-stack textarea:focus,.shop-owner-card textarea:focus { border-color: var(--border-gold); }
.shop-owner-grid { display: grid; grid-template-columns: minmax(260px,.78fr) minmax(360px,1.22fr); gap: 15px; }
.shop-owner-card,.shop-manage-list,.shop-orders-list {
  padding: 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
}
.shop-section-title,.shop-order-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 18px; }
.shop-status-dot { color: var(--success); font-size: .69rem; font-weight: 800; padding: 5px 9px; border: 1px solid rgba(34,197,94,.25); background: rgba(34,197,94,.08); border-radius: 99px; }
.admin-shop-feature-card { display:flex; align-items:center; justify-content:space-between; gap:18px; border-color:rgba(255,106,0,.3); }
@media(max-width:620px){.admin-shop-feature-card{align-items:stretch;flex-direction:column}.admin-shop-feature-card .btn{width:100%;}}
.shop-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.shop-field-wide { grid-column: 1/-1; }
.shop-form-actions { display: flex; gap: 8px; align-items: center; }
.shop-manage-list { margin-top: 15px; }
.shop-manage-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.shop-manage-table th { padding: 9px 11px; text-align: left; color: var(--text3); font-size: .67rem; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--border); }
.shop-manage-table td { padding: 11px; color: var(--text2); font-size: .79rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.shop-manage-table tr:last-child td { border-bottom: 0; }
.shop-product-state { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: var(--success); background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); font-size: .67rem; font-weight: 750; }
.shop-product-state.hidden { color: var(--text3); border-color: var(--border); background: rgba(255,255,255,.03); }
.shop-table-actions { display: flex; gap: 6px; }
.shop-order-toolbar { margin-bottom: 15px; }
.shop-order-switch { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); }
.shop-order-switch button { border: 0; border-radius: 7px; padding: 7px 12px; color: var(--text3); background: transparent; cursor: pointer; font: 700 .75rem 'Inter',sans-serif; }
.shop-order-switch button.active { color: var(--gold); background: rgba(255,106,0,.12); }
.shop-order-card { display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.shop-order-card:last-child { border-bottom: 0; }
.shop-order-title { color: #fff; font-size: .86rem; font-weight: 750; }
.shop-order-detail { color: var(--text3); font-size: .72rem; line-height: 1.65; margin-top: 4px; }
.shop-order-amount { color: var(--gold); font-size: .9rem; font-weight: 850; text-align: right; }
.shop-order-paid { display: block; margin-top: 5px; color: var(--success); font-size: .66rem; text-transform: uppercase; }
@media (max-width: 760px) {
  .shop-page-head { align-items: stretch; flex-direction: column; gap: 0; }
  .shop-balance-pill { align-items: flex-start; margin: -12px 0 18px; }
  .shop-toolbar { align-items: stretch; }
  .shop-register-card,.shop-owner-grid { grid-template-columns: 1fr; }
  .shop-register-card { padding: 20px 16px; gap: 20px; }
  .shop-owner-card,.shop-manage-list,.shop-orders-list { padding: 16px 13px; }
}
@media (max-width: 480px) {
  .shop-product-grid { grid-template-columns: 1fr; }
  .shop-product-image { height: 185px; }
  .shop-editor-grid { grid-template-columns: 1fr; }
  .shop-field-wide { grid-column: auto; }
  .shop-order-toolbar { align-items: flex-start; flex-direction: column; }
  .shop-order-card { grid-template-columns: 1fr; gap: 8px; }
  .shop-order-amount { text-align: left; }
}
.seller-apply-layout { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(330px,1.2fr); gap: 16px; }
.seller-info-card,.seller-application-card,.seller-required-card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
}
.seller-info-card { background: linear-gradient(145deg,rgba(255,106,0,.1),rgba(16,18,22,.96) 52%); border-color: rgba(255,106,0,.22); }
.seller-info-card h2,.seller-required-card h2 { color: #fff; font-size: 1.1rem; }
.seller-info-card>p,.seller-required-card p { color: var(--text2); font-size: .81rem; line-height: 1.7; margin-top: 9px; }
.seller-rules { display: grid; gap: 10px; margin-top: 22px; }
.seller-rules>div { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: .78rem; }
.seller-rules strong { width: 26px; height: 26px; display: grid; place-items: center; color: var(--gold); background: rgba(255,106,0,.1); border: 1px solid rgba(255,106,0,.24); border-radius: 8px; }
.seller-application-card textarea {
  width: 100%; resize: vertical; padding: 10px 13px; color: var(--text); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 9px; font: 500 .84rem 'Inter',sans-serif; outline: 0;
}
.seller-application-card textarea:focus { border-color: var(--border-gold); }
.seller-status-box { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 17px; padding: 15px; border: 1px solid var(--border); border-radius: 11px; color: var(--text2); background: rgba(255,255,255,.025); }
.seller-status-box strong { color: #fff; font-size: .9rem; }
.seller-status-box span,.seller-status-box small { color: var(--text2); font-size: .76rem; line-height: 1.55; }
.seller-status-box.approved { border-color: rgba(34,197,94,.27); background: rgba(34,197,94,.07); }
.seller-status-box.approved strong { color: var(--success); }
.seller-status-box.pending { border-color: rgba(245,158,11,.28); background: rgba(245,158,11,.07); }
.seller-status-box.pending strong { color: #fbbf24; }
.seller-status-box.rejected { border-color: rgba(239,68,68,.27); background: rgba(239,68,68,.065); }
.seller-status-box.rejected strong { color: #f87171; }
.seller-required-card { align-items: center; justify-content: space-between; gap: 20px; border-color: rgba(245,158,11,.25); background: linear-gradient(135deg,rgba(245,158,11,.08),var(--surface)); }
.seller-admin-status { display: inline-flex; padding: 4px 9px; border-radius: 99px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.seller-admin-status.pending { color: #fbbf24; border: 1px solid rgba(245,158,11,.25); background: rgba(245,158,11,.08); }
.seller-admin-status.approved { color: var(--success); border: 1px solid rgba(34,197,94,.24); background: rgba(34,197,94,.08); }
.seller-admin-status.rejected { color: #f87171; border: 1px solid rgba(239,68,68,.25); background: rgba(239,68,68,.07); }
@media (max-width: 700px) {
  .seller-apply-layout { grid-template-columns: 1fr; }
  .seller-info-card,.seller-application-card,.seller-required-card { padding: 18px 15px; }
  .seller-required-card { align-items: flex-start; flex-direction: column; }
}
.shop-image-picker {
  width: 100%; min-height: 150px; padding: 0; overflow: hidden; position: relative;
  display: grid; place-items: center; color: var(--text2); background: rgba(255,255,255,.025);
  border: 1px dashed rgba(255,106,0,.28); border-radius: 11px; cursor: pointer; transition: var(--t);
}
.shop-image-picker:hover { border-color: var(--gold); background: rgba(255,106,0,.055); }
.shop-image-picker span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.shop-image-picker span svg { width: 28px; height: 28px; color: var(--gold); }
.shop-image-picker span strong { color: var(--text); font-size: .8rem; }
.shop-image-picker span small { color: var(--text3); font-size: .67rem; }
.shop-image-picker img { display: none; width: 100%; height: 185px; object-fit: contain; background: #090a0c; }
.shop-chat-box { width: min(720px,calc(100vw - 24px)); max-width: 720px; padding: 0; overflow: hidden; max-height: min(820px,calc(100vh - 24px)); display: flex; flex-direction: column; }
.shop-chat-head { display: flex; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--border); }
.shop-chat-head h3 { margin: 0; }
.shop-chat-close { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 9px; color: var(--text2); background: var(--surface2); cursor: pointer; font-size: 1.25rem; }
.shop-chat-order-status { color: var(--text3); font-size: .7rem; margin-top: 5px; }
.shop-chat-messages { min-height: 300px; flex: 1; overflow-y: auto; padding: 18px; background: rgba(5,6,7,.45); }
.shop-chat-row { display: flex; margin-bottom: 12px; }
.shop-chat-row.mine { justify-content: flex-end; }
.shop-chat-bubble { max-width: 78%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 12px 12px 12px 3px; background: var(--surface2); }
.shop-chat-row.mine .shop-chat-bubble { border-color: rgba(255,106,0,.24); border-radius: 12px 12px 3px 12px; background: rgba(255,106,0,.1); }
.shop-chat-sender { color: var(--gold); font-size: .65rem; font-weight: 800; margin-bottom: 4px; }
.shop-chat-text { color: var(--text); white-space: pre-wrap; word-break: break-word; font-size: .78rem; line-height: 1.55; }
.shop-chat-time { color: var(--text3); font-size: .61rem; text-align: right; margin-top: 4px; }
.shop-chat-bubble img { display: block; max-width: min(320px,100%); max-height: 340px; border-radius: 9px; margin-top: 7px; cursor: zoom-in; object-fit: contain; background: #050505; }
.shop-chat-compose { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.shop-chat-compose textarea { min-height: 42px; max-height: 110px; resize: vertical; padding: 10px 12px; color: var(--text); background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; outline: 0; font: 500 .8rem 'Inter',sans-serif; }
.shop-chat-compose textarea:focus { border-color: var(--border-gold); }
.shop-chat-image-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); cursor: pointer; }
.shop-chat-image-btn svg { width: 18px; height: 18px; }
.shop-chat-preview { position: relative; padding: 8px 13px 0; border-top: 1px solid var(--border); }
.shop-chat-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); }
.shop-chat-preview button { position: absolute; left: 76px; top: 2px; width: 23px; height: 23px; border-radius: 50%; border: 0; color: #fff; background: var(--danger); cursor: pointer; }
.shop-order-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.shop-order-state { display: inline-flex; margin-top: 5px; padding: 3px 7px; border-radius: 99px; font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.shop-order-state.pending_delivery { color: #fbbf24; background: rgba(245,158,11,.09); }
.shop-order-state.pending_seller { color: #fbbf24; background: rgba(245,158,11,.09); }
.shop-order-state.delivered { color: #60a5fa; background: rgba(59,130,246,.09); }
.shop-order-state.disputed { color: #f87171; background: rgba(239,68,68,.09); }
.shop-order-state.completed { color: var(--success); background: rgba(34,197,94,.09); }
.shop-order-state.refunded { color: #a78bfa; background: rgba(139,92,246,.09); }
.shop-pending-revenue { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; padding:18px 20px; border:1px solid rgba(255,106,0,.28); border-radius:var(--r); background:linear-gradient(135deg,rgba(255,106,0,.12),rgba(255,106,0,.035)); }
.shop-pending-revenue strong { display:block; color:var(--gold); font-size:1.55rem; font-weight:900; margin-top:4px; }
.shop-pending-revenue p { color:var(--text3); font-size:.76rem; margin:4px 0 0; line-height:1.5; }
.shop-pending-revenue > svg { width:42px; height:42px; color:var(--gold); flex:none; }
@media (max-width: 520px) {
  .shop-chat-box { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .shop-chat-messages { min-height: 0; }
  .shop-chat-bubble { max-width: 88%; }
  .shop-chat-compose { grid-template-columns: 1fr auto; }
  .shop-chat-compose .btn { grid-column: 1/-1; justify-content: center; }
  .shop-order-actions { justify-content: flex-start; }
}
