.nav-login-btn {
  padding:8px 18px; background:rgba(139,92,246,0.1);
  border:1px solid rgba(139,92,246,0.3); border-radius:8px;
  color:#a78bfa; font-family:'Space Grotesk',sans-serif;
  font-size:0.85rem; font-weight:600; cursor:pointer; transition:all 0.2s;
}
.nav-login-btn:hover { background:rgba(139,92,246,0.2); }
.nav-user-btn {
  display:flex; align-items:center; gap:8px; padding:8px 16px;
  background:rgba(139,92,246,0.1); border:1px solid rgba(139,92,246,0.25);
  border-radius:8px; color:#a78bfa; font-family:'Space Grotesk',sans-serif;
  font-size:0.85rem; font-weight:600; cursor:pointer; transition:all 0.2s;
}
.nav-user-btn:hover { background:rgba(139,92,246,0.2); }

.auth-modal { text-align:left; }
.auth-title {
  font-family:'Orbitron',sans-serif; font-size:1.3rem; font-weight:700;
  margin-bottom:24px; text-align:center;
  background:linear-gradient(135deg,#a78bfa,#63b3ed);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.auth-hint { font-size:0.82rem; color:var(--muted); text-align:center; margin-top:12px; line-height:1.6; }
.auth-error {
  color:var(--danger); font-size:0.82rem; padding:8px 14px;
  background:rgba(252,129,129,0.08); border:1px solid rgba(252,129,129,0.2); border-radius:8px;
}
.code-inputs { display:flex; gap:8px; justify-content:center; margin:8px 0 16px; }
.code-digit {
  width:48px; height:58px; text-align:center; font-size:1.5rem; font-weight:700;
  font-family:'JetBrains Mono',monospace; background:rgba(255,255,255,0.04);
  border:2px solid var(--border); border-radius:12px; color:var(--text);
  outline:none; transition:border-color 0.2s;
}
.code-digit:focus { border-color:#a78bfa; }
@keyframes shake {
  0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)}
}
.shake { animation:shake 0.4s ease; }

#user-dashboard { display:none; }
#user-dashboard.open { display:block; }

.dash-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.55);
  z-index:200; backdrop-filter:blur(3px);
  animation:dashFadeIn 0.2s ease;
}
@keyframes dashFadeIn { from{opacity:0} to{opacity:1} }

.dash-panel {
  position:fixed; top:0; right:0; bottom:0;
  width:min(680px, 100vw);
  background:#0a0a16;
  border-left:1px solid rgba(139,92,246,0.15);
  z-index:201;
  display:flex; flex-direction:column;
  box-shadow:-24px 0 60px rgba(0,0,0,0.6);
  animation:dashSlideIn 0.28s cubic-bezier(0.16,1,0.3,1);
  overflow:hidden;
}
@keyframes dashSlideIn {
  from { transform:translateX(100%); opacity:0; }
  to   { transform:translateX(0);    opacity:1; }
}

.dash-topbar {
  display:flex; align-items:center; gap:10px;
  height:52px; flex-shrink:0; padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.dash-close {
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px; background:none; border:none;
  color:rgba(255,255,255,0.35); font-size:0.95rem; cursor:pointer;
  border-radius:7px; flex-shrink:0; transition:all 0.15s;
}
.dash-close:hover { color:var(--text); background:rgba(255,255,255,0.07); }
.dash-user-info {
  display:flex; align-items:center; gap:8px; flex:1;
}
.dash-user-avatar {
  width:26px; height:26px; border-radius:50%;
  background:rgba(139,92,246,0.2); border:1px solid rgba(139,92,246,0.35);
  display:flex; align-items:center; justify-content:center; font-size:0.75rem;
}
.dash-user-name { font-size:0.82rem; font-weight:600; color:rgba(255,255,255,0.7); }
.dash-signout-top {
  display:flex; align-items:center; gap:5px;
  padding:6px 12px; background:none;
  border:1px solid rgba(252,129,129,0.2); border-radius:7px;
  color:rgba(252,129,129,0.7); font-family:'Space Grotesk',sans-serif;
  font-size:0.75rem; cursor:pointer; transition:all 0.15s; flex-shrink:0;
}
.dash-signout-top:hover { color:var(--danger); background:rgba(252,129,129,0.08); }

.dash-body {
  flex:1; overflow-y:auto;
  scrollbar-width:thin; scrollbar-color:rgba(139,92,246,0.2) transparent;
}
.dash-section { display:none; }
.dash-section.active { display:block; animation:dashFadeIn 0.15s ease; }

.dash-sticky-header {
  position:sticky; top:0; z-index:10;
  background:#0a0a16;
  padding:20px 24px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.dash-page-title {
  font-size:1.2rem; font-weight:700; color:var(--text);
  margin:0 0 20px 0; display:flex; align-items:center; gap:10px;
}
.dash-page-title::after {
  content:''; flex:1; height:1px; background:rgba(255,255,255,0.07);
}

.dash-section-content { padding:20px 24px 32px; }

.dash-nav {
  display:flex; align-items:stretch; gap:0;
  overflow-x:auto; scrollbar-width:none;
  margin-bottom:-1px;
}
.dash-nav::-webkit-scrollbar { display:none; }
.dash-tab {
  padding:9px 14px; background:none; border:none;
  border-bottom:2px solid transparent;
  color:rgba(255,255,255,0.4); font-family:'Space Grotesk',sans-serif;
  font-size:0.82rem; font-weight:500; cursor:pointer;
  white-space:nowrap; transition:color 0.15s, border-color 0.15s;
  flex-shrink:0;
}
.dash-tab.active { color:#a78bfa; border-bottom-color:#a78bfa; }
.dash-tab:hover:not(.active) { color:rgba(255,255,255,0.72); }

.dash-section-content-pad { padding:20px 24px 32px; }
.dash-section-subtitle {
  font-size:0.73rem; color:var(--muted); font-weight:600;
  text-transform:uppercase; letter-spacing:0.07em; margin-bottom:12px;
}
.dash-loading { color:var(--muted); font-size:0.85rem; padding:20px 0; }
.dash-empty   { color:var(--muted); font-size:0.85rem; padding:40px 0; text-align:center; }

.dash-home-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
.dash-card {
  display:flex; align-items:center; gap:16px; padding:20px 18px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07);
  border-radius:14px; transition:border-color 0.2s;
}
.dash-card:hover { border-color:rgba(139,92,246,0.25); }
.dash-card-icon {
  width:40px; height:40px; border-radius:10px; flex-shrink:0;
  background:rgba(139,92,246,0.12); border:1px solid rgba(139,92,246,0.2);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
}
.dash-card-info { min-width:0; }
.dash-card-label {
  font-size:0.7rem; color:var(--muted); margin-bottom:5px;
  text-transform:uppercase; letter-spacing:0.06em; font-weight:500;
}
.dash-card-value { font-size:1rem; font-weight:700; }

.dash-table { border:1px solid rgba(255,255,255,0.07); border-radius:12px; overflow:hidden; }
.dash-table-head {
  display:grid; grid-template-columns:2fr 1fr 0.8fr 1fr 1fr;
  gap:0 10px; padding:9px 16px;
  background:rgba(139,92,246,0.06); border-bottom:1px solid rgba(255,255,255,0.07);
  font-size:0.68rem; font-weight:700; color:var(--muted);
  letter-spacing:0.07em; text-transform:uppercase;
}
.dash-table-row {
  display:grid; grid-template-columns:2fr 1fr 0.8fr 1fr 1fr;
  gap:0 10px; padding:12px 16px; align-items:center;
  border-bottom:1px solid rgba(255,255,255,0.05);
  cursor:pointer; transition:background 0.12s; font-size:0.82rem;
}
.dash-table-row:last-child { border-bottom:none; }
.dash-table-row:hover { background:rgba(139,92,246,0.05); }
.dash-id-cell {
  font-family:'JetBrains Mono',monospace; font-size:0.72rem;
  color:var(--neon); display:flex; align-items:center; gap:6px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.dash-copy-btn {
  background:none; border:none; color:var(--muted);
  cursor:pointer; font-size:0.8rem; padding:2px; flex-shrink:0;
}
.dash-copy-btn:hover { color:var(--neon); }
.dash-badge {
  display:inline-flex; align-items:center; gap:3px; padding:3px 9px;
  border-radius:100px; font-size:0.68rem; font-weight:700; white-space:nowrap;
}
.dash-badge.green { background:rgba(104,211,145,0.1); border:1px solid rgba(104,211,145,0.25); color:#68d391; }
.dash-badge.yellow { background:rgba(246,173,85,0.1); border:1px solid rgba(246,173,85,0.25); color:#f6ad55; }

#dash-tickets .dash-table .dash-table-head,
#dash-tickets .dash-table .dash-table-row { grid-template-columns:100px 1fr 90px 90px; }

.reward-tier-card {
  padding:22px; background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07); border-radius:14px; margin-bottom:18px;
}
.reward-tier-badge { font-size:1.15rem; font-weight:700; margin-bottom:6px; }
.reward-tier-perks { font-size:0.82rem; color:var(--muted); margin-bottom:14px; }
.reward-progress-bar { height:5px; background:rgba(255,255,255,0.07); border-radius:100px; overflow:hidden; }
.reward-progress-fill { height:100%; border-radius:100px; transition:width 0.5s ease; }
.reward-stats-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.reward-stat {
  text-align:center; padding:14px 12px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:10px;
}
.reward-stat-val { font-size:1rem; font-weight:700; color:#a78bfa; }
.reward-stat-lbl { font-size:0.7rem; color:var(--muted); margin-top:4px; }

.balance-card {
  padding:26px; background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07); border-radius:14px;
  text-align:center; margin-bottom:16px;
}
.balance-label { font-size:0.78rem; color:var(--muted); margin-bottom:8px; }
.balance-amount { font-family:'Orbitron',sans-serif; font-size:1.8rem; font-weight:700; color:#a78bfa; }
.balance-preset-btn {
  padding:7px 14px; background:rgba(139,92,246,0.08);
  border:1px solid rgba(139,92,246,0.2); border-radius:8px;
  color:#a78bfa; font-family:'Space Grotesk',sans-serif;
  font-size:0.82rem; font-weight:600; cursor:pointer; transition:all 0.2s;
}
.balance-preset-btn:hover { background:rgba(139,92,246,0.18); }

.ticket-chat-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,0.07);
}
.ticket-chat-messages {
  max-height:260px; overflow-y:auto; padding:12px;
  background:rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.07);
  border-radius:10px; margin-bottom:12px;
  scrollbar-width:thin; scrollbar-color:rgba(139,92,246,0.25) transparent;
}
.ticket-msg { display:flex; flex-direction:column; margin-bottom:10px; }
.ticket-msg.user { align-items:flex-end; }
.ticket-msg.support { align-items:flex-start; }
.ticket-msg-bubble {
  max-width:80%; padding:9px 13px; border-radius:12px; font-size:0.83rem; line-height:1.5;
}
.ticket-msg.user .ticket-msg-bubble {
  background:rgba(139,92,246,0.14); border:1px solid rgba(139,92,246,0.2); border-bottom-right-radius:3px;
}
.ticket-msg.support .ticket-msg-bubble {
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); border-bottom-left-radius:3px;
}
.ticket-msg-time { font-size:0.66rem; color:var(--muted); margin-top:3px; }
.ticket-reply-wrap { margin-top:10px; }

.pay-method-options { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.pay-method-opt {
  display:flex; align-items:center; gap:12px; padding:12px 16px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; cursor:pointer; transition:all 0.15s; font-size:0.88rem;
}
.pay-method-opt:has(input:checked) {
  border-color:rgba(139,92,246,0.4); background:rgba(139,92,246,0.07);
}
.pay-method-opt input { accent-color:#a78bfa; width:16px; height:16px; }

@media(max-width:700px) {
  .dash-panel { width:100vw; }
  .dash-body { padding:20px 18px 32px; }
  .dash-home-grid { grid-template-columns:1fr; gap:10px; }
  .dash-table-head, .dash-table-row { grid-template-columns:1.5fr 1fr 1fr; }
  .dash-table-head span:nth-child(4), .dash-table-row span:nth-child(4),
  .dash-table-head span:nth-child(5), .dash-table-row span:nth-child(5) { display:none; }
  .dash-user-name { display:none; }
  .dash-tab { padding:0 10px; font-size:0.76rem; }
  .reward-stats-grid { grid-template-columns:1fr 1fr; }
}

.ticket-img-btn {
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:8px; cursor:pointer;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  font-size:1.1rem; transition:all 0.15s; flex-shrink:0;
}
.ticket-img-btn:hover { background:rgba(139,92,246,0.15); border-color:rgba(139,92,246,0.3); }

.ticket-msg-bubble img {
  max-width:220px; max-height:200px; border-radius:8px;
  display:block; cursor:pointer;
}