/* ============================================================
   TixGD — Global Design System v2
   Dark mode only. Mobile-first. Optimised for 3G.
   ============================================================ */

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

:root {
  --bg:        #0a0a18;
  --surface:   #11112a;
  --surface2:  #191933;
  --surface3:  #1f1f40;
  --border:    #252548;
  --border2:   #2e2e58;
  --cyan:      #00e5ff;
  --cyan-dim:  #00b3cc;
  --gold:      #f5c518;
  --gold-dim:  #c9a010;
  --purple:    #7c5af0;
  --green:     #00e096;
  --red:       #ff4d6a;
  --orange:    #ff944d;
  --text:      #eaeaf4;
  --text-dim:  #7878a0;
  --text-muted:#4a4a70;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --transition: 0.18s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--font); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ============================================================
   NAV — sticky top bar
   ============================================================ */
/* ── NAV: [☰ Logo] ··· [🔍 👤] ── */
.tgd-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 56px;
  background: rgba(10,10,24,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Left group — hamburger and logo close together */
.tgd-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right group — search and profile close together */
.tgd-nav-right-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Hamburger — always visible on all screen sizes */
.tgd-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.tgd-hamburger:hover { color: var(--text); }
.tgd-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Icon buttons (search, profile for guests) */
.tgd-nav-icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 50%;
  color: var(--text-dim); cursor: pointer;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.tgd-nav-icon-btn:hover { color: var(--cyan); background: rgba(0,229,255,0.08); }

/* ── PROFILE DROPDOWN ── */
.tgd-profile-wrap { position: relative; }

.tgd-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.2);
  z-index: 500;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tgd-profile-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tgd-profile-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
}
.tgd-profile-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.tgd-profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tgd-profile-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 2px;
}
.tgd-profile-badge.free     { background: rgba(136,136,170,0.15); color: var(--text-dim); }
.tgd-profile-badge.standard { background: rgba(0,229,255,0.12);   color: var(--cyan);     }
.tgd-profile-badge.premium  { background: rgba(245,197,24,0.15);  color: var(--gold);     }

.tgd-profile-sep { height: 1px; background: var(--border); }

.tgd-profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.84rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.tgd-profile-link:hover { background: var(--surface2); color: var(--text); }
.tgd-profile-out         { color: #ff4d6a; }
.tgd-profile-out:hover   { background: rgba(255,77,106,0.08); color: #ff4d6a; }

/* Light mode nav + dropdown */
html.tgd-light .tgd-nav          { background: rgba(255,255,255,0.97); }
html.tgd-light .tgd-profile-menu { background: #fff; border-color: var(--border); }

/* ── SEARCH ── */
.tgd-search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 400;
  backdrop-filter: blur(3px);
}
.tgd-search-overlay.open { display: block; }

.tgd-search-panel {
  position: fixed; top: 0;
  left: 50%; transform: translateX(-50%) translateY(-100%);
  width: min(600px, 100vw); max-height: 80vh;
  background: var(--surface);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border-bottom: 1px solid var(--border);
  z-index: 401; box-shadow: var(--shadow-lg);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.tgd-search-panel.open { transform: translateX(-50%) translateY(0); }

.tgd-search-header { padding: 12px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }

.tgd-search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
}
.tgd-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 0.92rem; font-family: var(--font);
}
.tgd-search-input::placeholder { color: var(--text-muted); }
.tgd-search-close {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 1rem; padding: 2px 4px;
  border-radius: 4px; transition: color var(--transition);
}
.tgd-search-close:hover { color: var(--text); }
.tgd-search-results { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.tgd-search-hint { padding: 18px 16px; }
.tgd-search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tgd-search-tags span {
  font-size: 0.78rem; padding: 5px 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-dim); cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.tgd-search-tags span:hover { border-color: var(--cyan); color: var(--cyan); }
.tgd-search-group { padding: 6px 0; }
.tgd-search-group-label {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); padding: 6px 16px 4px;
}
.tgd-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; text-decoration: none; color: var(--text);
  font-size: 0.87rem; transition: background var(--transition);
}
.tgd-search-item:hover { background: var(--surface2); }
.tgd-search-item-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }

.tgd-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.tgd-logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
}

.tgd-logo-text span { color: var(--gold); }

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

.tgd-nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.tgd-nav-link:hover { color: var(--cyan); background: rgba(0,229,255,0.06); }

.tgd-nav-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.tgd-nav-icon:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============================================================
   DRAWER — slide-in sidebar navigation
   ============================================================ */
.tgd-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  backdrop-filter: blur(2px);
}

.tgd-drawer-overlay.open { display: block; }

.tgd-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 301;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.tgd-drawer.open { transform: translateX(0); }

.tgd-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tgd-drawer-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tgd-drawer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tgd-drawer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.tgd-drawer-plan {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--gold);
  color: #000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
  display: inline-block;
}

.tgd-drawer-plan.free { background: var(--surface3); color: var(--text-dim); }
.tgd-drawer-plan.standard { background: var(--cyan); color: #000; }

.tgd-drawer-close {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 6px;
  font-size: 1.2rem;
  line-height: 1;
  transition: color var(--transition);
}

.tgd-drawer-close:hover { color: var(--text); }

.tgd-drawer-nav {
  flex: 1;
  padding: 12px 0;
}

.tgd-drawer-section {
  padding: 8px 20px 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tgd-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.tgd-drawer-item:hover,
.tgd-drawer-item.active {
  background: rgba(0,229,255,0.06);
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.tgd-drawer-item svg { flex-shrink: 0; opacity: 0.8; }
.tgd-drawer-item.active svg,
.tgd-drawer-item:hover svg { opacity: 1; }

.tgd-drawer-item.danger { color: var(--red); }
.tgd-drawer-item.danger:hover { background: rgba(255,77,106,0.08); border-left-color: var(--red); }

.tgd-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 4px 18px rgba(0,229,255,0.28);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 6px 24px rgba(0,229,255,0.38); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 18px rgba(245,197,24,0.28);
}
.btn-gold:hover { opacity: 0.9; }

.btn-danger {
  background: rgba(255,77,106,0.12);
  color: var(--red);
  border: 1px solid rgba(255,77,106,0.3);
}
.btn-danger:hover { background: rgba(255,77,106,0.2); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-full { width: 100%; }

.btn-sm { padding: 7px 14px; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; border-radius: var(--radius-lg); }

/* Nav button override — slightly smaller on all screens */
.tgd-nav .btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

@media (max-width: 380px) {
  .tgd-nav .btn-sm {
    padding: 5px 9px;
    font-size: 0.7rem;
  }
  .tgd-nav-link {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-body { padding: 20px; }
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-label .required { color: var(--red); font-size: 0.65rem; }
.form-label .optional { color: var(--text-muted); font-size: 0.65rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-label .char-count { color: var(--text-muted); font-size: 0.65rem; font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled { opacity: 0.5; cursor: not-allowed; }

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237878a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-input-wrap { position: relative; }
.form-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  transition: color var(--transition);
}
.form-input-icon:hover { color: var(--cyan); }

/* ============================================================
   ALERTS & BADGES
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-success { background: rgba(0,224,150,0.1); border: 1px solid rgba(0,224,150,0.3); color: var(--green); }
.alert-error   { background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.3); color: var(--red); }
.alert-info    { background: rgba(0,229,255,0.1);  border: 1px solid rgba(0,229,255,0.25); color: var(--cyan); }
.alert-warning { background: rgba(255,148,77,0.1); border: 1px solid rgba(255,148,77,0.3); color: var(--orange); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.badge-premium { background: var(--gold); color: #000; }
.badge-standard { background: var(--cyan); color: #000; }
.badge-free { background: var(--surface3); color: var(--text-dim); border: 1px solid var(--border2); }
.badge-active { background: rgba(0,224,150,0.15); color: var(--green); }
.badge-suspended { background: rgba(255,148,77,0.15); color: var(--orange); }
.badge-banned { background: rgba(255,77,106,0.15); color: var(--red); }

/* ============================================================
   TIER BADGE OVERLAYS (on tickets)
   ============================================================ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tier-REGULAR  { background: #2a2a50; color: #aaa; }
.tier-VIP      { background: var(--gold); color: #000; }
.tier-BRONZE   { background: #8b5e3c; color: #fff; }
.tier-GOLD     { background: linear-gradient(90deg,#f5c518,#c9a010); color: #000; }
.tier-PLATINUM { background: linear-gradient(90deg,#e0e0f0,#b8b8d0); color: #111; }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.tgd-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 5vw 60px;
}

.tgd-page-sm { max-width: 520px; margin: 0 auto; padding: 32px 5vw 60px; }
.tgd-page-md { max-width: 700px; margin: 0 auto; padding: 28px 5vw 60px; }

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.tgd-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 5vw;
}

.tgd-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tgd-footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tgd-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.78rem;
}

.tgd-footer-links a {
  color: var(--text-dim);
  transition: color var(--transition);
}

.tgd-footer-links a:hover { color: var(--cyan); }

.tgd-footer-social {
  display: flex;
  gap: 10px;
}

.tgd-footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color var(--transition), color var(--transition);
}

.tgd-footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-cyan   { color: var(--cyan); }
.text-gold   { color: var(--gold); }
.text-dim    { color: var(--text-dim); }
.text-muted  { color: var(--text-muted); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-center { text-align: center; }
.text-sm     { font-size: 0.82rem; }
.text-xs     { font-size: 0.72rem; }
.fw-700      { font-weight: 700; }
.fw-900      { font-weight: 900; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .tgd-hamburger { display: flex; }
  .tgd-nav-desktop { display: none; }
  .tgd-page { padding: 20px 4vw 48px; }
  .tgd-page-sm { padding: 24px 4vw 48px; }
}

@media (min-width: 641px) {
  .tgd-hamburger { display: flex; } /* always show — drawer is the only nav */
  .tgd-nav-desktop { display: flex; align-items: center; gap: 8px; }
}

/* ============================================================
   LIGHT MODE — overrides CSS variables only.
   Applied by adding class "tgd-light" to <html>.
   Dark mode is the default — no class needed.
   ============================================================ */
html.tgd-light {
  --bg:        #f2f2f8;
  --surface:   #ffffff;
  --surface2:  #eaeaf4;
  --surface3:  #e0e0ee;
  --border:    #d0d0e4;
  --border2:   #c0c0d8;
  --text:      #0e0e24;
  --text-dim:  #5a5a80;
  --text-muted:#9090b0;
}

/* Nav and drawer need explicit backgrounds in light mode */
html.tgd-light .tgd-nav {
  background: rgba(242,242,248,0.97);
}

html.tgd-light .tgd-drawer {
  background: var(--surface);
}

/* Cards stay white, not surface-tinted */
html.tgd-light .card,
html.tgd-light .stat-card,
html.tgd-light .hero-ticket-wrap,
html.tgd-light .ticket-card,
html.tgd-light .plan-card,
html.tgd-light .faq-item,
html.tgd-light .result-card,
html.tgd-light .delete-zone,
html.tgd-light .profile-hero {
  background: var(--surface);
}

/* Inputs need visible background in light mode */
html.tgd-light .form-input {
  background: #f8f8fc;
  color: var(--text);
}

html.tgd-light .form-input:focus {
  background: #ffffff;
}

/* Category cards */
html.tgd-light .cat-card {
  background: var(--surface);
}

html.tgd-light .cat-card:hover {
  background: var(--surface2);
}

/* Ticket cards in dashboard */
html.tgd-light .ticket-card-thumb {
  background: var(--surface2);
}

/* Footer */
html.tgd-light .tgd-footer {
  background: var(--surface);
}

/* Empty state */
html.tgd-light .empty-state {
  background: var(--surface);
}

/* Usage bar track */
html.tgd-light .usage-bar-wrap {
  background: var(--surface);
}

html.tgd-light .usage-bar-track {
  background: var(--surface3);
}

/* Legal pages */
html.tgd-light .legal-page p,
html.tgd-light .legal-page ul,
html.tgd-light .legal-page li {
  color: var(--text-dim);
}

/* Step cards */
html.tgd-light .step {
  background: var(--surface);
}

/* Ticket scroll section */
html.tgd-light .ticket-section {
  background: var(--surface2);
}

/* Ticket preview cards */
html.tgd-light .ticket-preview {
  background: var(--surface);
}

/* Plan card backgrounds */
html.tgd-light .plan-card {
  background: var(--surface);
}

/* Drawer item hover in light mode */
html.tgd-light .tgd-drawer-item:hover,
html.tgd-light .tgd-drawer-item.active {
  background: rgba(0,229,255,0.08);
}

/* Result details in verify */
html.tgd-light .result-details {
  background: var(--surface2);
}

/* CTA strip */
html.tgd-light .cta-strip {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}


/* ============================================================
   FOOTER V2 — Premium redesign
   ============================================================ */
.tgd-footer-v2 {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.tgd-footer-inner-v2 {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 5vw 16px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .tgd-footer-inner-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px 5vw 12px;
  }
  .tgd-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .tgd-footer-inner-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 4vw 10px;
  }
  .tgd-footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Brand */
.tgd-footer-brand { display: flex; flex-direction: column; gap: 8px; }

.tgd-footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}

.tgd-footer-logo-text {
  font-size: 1.1rem; font-weight: 900; color: var(--text);
}
.tgd-footer-logo-text span { color: var(--gold); }

.tgd-footer-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Social icons */
.tgd-footer-social-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.tgd-footer-social-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  text-decoration: none;
}
.tgd-footer-social-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,0.06);
}

/* Columns */
.tgd-footer-col { display: flex; flex-direction: column; gap: 8px; }

.tgd-footer-col-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}

.tgd-footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tgd-footer-col-links li a {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.tgd-footer-col-links li a:hover { color: var(--cyan); }

/* Bottom bar */
.tgd-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 10px 5vw;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.tgd-footer-bottom-links {
  display: flex; gap: 16px;
}
.tgd-footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.tgd-footer-bottom-links a:hover { color: var(--cyan); }

/* Light mode footer */
html.tgd-light .tgd-footer-v2 { background: var(--surface); }