/* ============================================================
   VICEGUIDE — Design System & Styles
   ============================================================ */

/* === 1. Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* === 2. CSS Variables / Design Tokens === */
:root {
  /* Backgrounds */
  --bg-deep:      #080610;
  --bg-base:      #100b18;
  --bg-surface:   #161024;
  --bg-elevated:  #1d1530;
  --bg-hover:     #261c3a;
  /* Borders */
  --border:       #382944;
  --border-subtle:#251a35;
  --border-accent:#ff4fbf40;
  /* Accent — hot pink from logo */
  --accent:       #ff4fbf;
  --accent-dim:   #e0359e;
  --accent-glow:  rgba(255,79,191,0.10);
  --accent-text:  #fff5fb;
  /* Text */
  --text-primary:   #ededf0;
  --text-secondary: #8b8b99;
  --text-muted:     #50505a;
  /* Status */
  --danger:  #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --info:    #3b82f6;
  /* Sidebar */
  --sidebar-width: 256px;
  --topbar-height: 60px;
  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 24px rgba(255,79,191,0.18);
  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --t-slow: 320ms ease;
  /* Clip category colors */
  --cat-stunts:    #f59e0b;
  --cat-funny:     #ec4899;
  --cat-secrets:   #8b5cf6;
  --cat-gameplay:  #3b82f6;
  --cat-tutorials: #10b981;
  --cat-highlights:#53e7f2;
}

/* === 3. App Shell Layout === */
#app {
  display: flex;
  min-height: 100vh;
  background: var(--bg-base);
}
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === 4. Sidebar === */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--t-slow);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img { width: 30px; height: 30px; flex-shrink: 0; }
.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
}
.logo-vice   { color: #53e7f2; }
.logo-accent { color: var(--accent); }
.sidebar-close {
  display: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.sidebar-close:hover { color: var(--text-primary); background: var(--bg-hover); }
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 8px 6px;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-item:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-item.active {
  color: var(--accent);
  background: var(--accent-glow);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  padding: 1px 6px;
  border-radius: 99px;
  line-height: 1.5;
}
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.disclaimer {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* === 5. Topbar === */
.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: color var(--t-fast), background var(--t-fast);
}
.menu-toggle:hover { color: var(--text-primary); background: var(--bg-hover); }
.topbar-search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-icon-topbar {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.topbar-search {
  width: 100%;
  height: 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 14px;
  padding: 0 12px 0 38px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.topbar-search::placeholder { color: var(--text-muted); }
.topbar-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-icon-btn {
  position: relative;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.topbar-icon-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--bg-surface);
}
.avatar-btn {
  border-radius: 50%;
  transition: opacity var(--t-fast);
}
.avatar-btn:hover { opacity: 0.85; }
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-sm { width: 34px; height: 34px; }
.avatar-md { width: 48px; height: 48px; font-size: 18px; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.avatar-xl { width: 96px; height: 96px; font-size: 36px; }

/* === 6. Content Area === */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}
.page { padding: 28px 28px 60px; max-width: 1280px; margin: 0 auto; }
.page-sm { max-width: 800px; }
.page-header {
  margin-bottom: 28px;
}
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text-primary);
}
.page-subtitle { color: var(--text-secondary); font-size: 15px; margin-top: 6px; }

/* === 7. Typography === */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
.display-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title-lg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* === 8. Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:active { transform: scale(0.97); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-accent:hover { background: #ff73cb; }
.btn-primary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-primary:hover { background: var(--bg-hover); border-color: var(--border-accent); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-danger {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.18); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast);
}
.btn-icon:hover { color: var(--text-primary); background: var(--bg-hover); }
.btn-icon.active { color: var(--accent); background: var(--accent-glow); border-color: var(--border-accent); }
.btn-icon svg { pointer-events: none; }
.upload-btn { display: none; }

/* === 9. Cards === */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.card-interactive { cursor: pointer; }
.card-interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-body { padding: 16px; }
.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === 10. Badges & Tags === */
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 99px;
}
.badge-accent { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border-accent); }
.badge-muted { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-success { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.badge-info { background: rgba(59,130,246,0.1); color: var(--info); border: 1px solid rgba(59,130,246,0.2); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  cursor: default;
}
.tag:hover, .tag.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--border-accent);
}
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* === 11. Forms & Inputs === */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-label-required::after { content: ' *'; color: var(--accent); }
.input, .select, .textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 14px;
  padding: 0 12px;
  height: 40px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; line-height: 1.5; }
.select { appearance: none; cursor: pointer; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.input-error { border-color: var(--danger) !important; }
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.toggle-wrap:last-child { border-bottom: none; }
.toggle-info {}
.toggle-label { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.toggle-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: background var(--t-base), border-color var(--t-base);
  cursor: pointer;
}
.toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--t-base), background var(--t-base);
  pointer-events: none;
}
.toggle input:checked ~ .toggle-track { background: var(--accent-glow); border-color: var(--accent); }
.toggle input:checked ~ .toggle-thumb { transform: translateX(20px); background: var(--accent); }

/* === 12. Modal === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  width: 100%;
}
.modal-panel-lg { max-width: 640px; }
.modal-panel-xl { max-width: 960px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close-btn {
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.modal-close-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.modal-close-float {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  z-index: 10;
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* === 13. Toast Notifications === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 340px;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
  animation: toastIn 0.25s ease forwards;
}
.toast-success { border-color: rgba(34,197,94,0.3); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-color: rgba(239,68,68,0.3); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info .toast-icon { color: var(--info); }
.toast-out { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.9); }
}

/* === 14. Filter Bars === */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 99px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.filter-btn:hover { color: var(--text-primary); }
.filter-btn.active { color: var(--accent); background: var(--accent-glow); border-color: var(--border-accent); }

/* === 15. Search Results === */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 300;
  max-height: 400px;
  overflow-y: auto;
}
.search-group-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--t-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.search-result-item:hover { background: var(--bg-hover); }
.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-result-name { font-size: 14px; font-weight: 500; }
.search-result-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.search-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* === 16. Empty States === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 12px;
}
.empty-state-icon { color: var(--text-muted); opacity: 0.4; margin-bottom: 4px; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.empty-state-desc { font-size: 14px; color: var(--text-muted); max-width: 300px; line-height: 1.6; }

/* === 17. Home Page === */
.hero-section {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--bg-deep);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,9,0.95) 0%, rgba(8,8,9,0.5) 40%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 40px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 14px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 24px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.hero-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.hero-search .input {
  height: 48px;
  font-size: 15px;
  background: rgba(22,22,25,0.85);
  backdrop-filter: blur(8px);
  padding-left: 46px;
}
.hero-search-wrap {
  position: relative;
  flex: 1;
}
.hero-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.hero-search .btn { height: 48px; padding: 0 22px; font-size: 15px; }
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.quick-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.quick-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.quick-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.quick-card:hover::after { opacity: 1; }
.quick-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.quick-card-name { font-size: 14px; font-weight: 600; position: relative; z-index: 1; }
.quick-card-desc { font-size: 12px; color: var(--text-secondary); position: relative; z-index: 1; }
.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.home-main {}
.home-sidebar {}
.section-block { margin-bottom: 32px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.clip-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
  cursor: pointer;
}
.clip-thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clip-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background var(--t-fast);
}
.clip-play-btn:hover { background: rgba(0,0,0,0.5); }
.clip-play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.clip-meta { padding: 10px 0 0; }
.clip-title { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.clip-creator { font-size: 12px; color: var(--text-muted); }
.progress-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.progress-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.progress-bar-wrap { background: var(--bg-elevated); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); transition: width 0.6s ease; }
.progress-stats { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.stat-number { font-size: 22px; font-weight: 700; color: var(--text-primary); font-family: 'Barlow Condensed', sans-serif; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { background: var(--bg-elevated); border-radius: var(--r-md); padding: 14px; text-align: center; }
.news-mini-list { display: flex; flex-direction: column; gap: 12px; }
.news-mini-item { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-md); cursor: pointer; transition: background var(--t-fast); }
.news-mini-item:hover { background: var(--bg-hover); }
.news-mini-thumb { width: 56px; height: 42px; border-radius: var(--r-sm); background: var(--bg-elevated); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-mini-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.news-mini-date { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* === 18. Map Page === */
.map-page { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-height)); overflow: hidden; }
.map-topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; flex-wrap: wrap; }
.map-search { flex: 1; min-width: 160px; max-width: 280px; }
.map-body { display: flex; flex: 1; overflow: hidden; }
.map-container { flex: 1; position: relative; overflow: hidden; background: #080810; }
.map-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; user-select: none; }
.map-markers { position: absolute; inset: 0; }
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  border: 2px solid rgba(255,255,255,0.2);
  font-size: 12px;
}
.map-marker:hover { transform: translate(-50%,-50%) scale(1.2); z-index: 10; }
.map-marker.discovered { opacity: 0.55; }
.map-marker.discovered::after { content: '✓'; position: absolute; top: -4px; right: -4px; background: var(--success); color: white; width: 14px; height: 14px; border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.marker-collectible { background: rgba(245,158,11,0.25); border-color: rgba(245,158,11,0.6); color: #f59e0b; }
.marker-mission    { background: rgba(59,130,246,0.25); border-color: rgba(59,130,246,0.6); color: #3b82f6; }
.marker-activity   { background: rgba(163,230,53,0.2); border-color: rgba(163,230,53,0.5); color: var(--accent); }
.marker-poi        { background: rgba(139,92,246,0.25); border-color: rgba(139,92,246,0.6); color: #8b5cf6; }
.marker-secret     { background: rgba(236,72,153,0.25); border-color: rgba(236,72,153,0.6); color: #ec4899; }
.map-marker[data-hidden="true"] { display: none !important; }
.map-detail-panel {
  width: 300px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
  transition: width var(--t-slow);
}
.map-detail-panel.empty { width: 280px; }
.map-detail-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.map-detail-header { padding: 16px; border-bottom: 1px solid var(--border-subtle); }
.map-detail-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.map-detail-body { padding: 16px; flex: 1; }
.map-detail-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.map-detail-notes { font-size: 13px; color: var(--text-muted); font-style: italic; padding: 10px; background: var(--bg-elevated); border-radius: var(--r-sm); margin-bottom: 16px; }
.map-progress-bar { height: 6px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; }
.map-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 99px; }

/* === 19. Money Page === */
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.money-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 22px; }
.money-card-title { font-size: 16px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.money-card-title svg { color: var(--accent); }
.activity-row { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; }
.activity-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.activity-name-input { flex: 1; height: 30px; font-size: 13px; font-weight: 500; border: none; background: transparent; color: var(--text-primary); }
.activity-name-input:focus { outline: none; }
.calc-result-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-result-cell { background: var(--bg-surface); border-radius: var(--r-sm); padding: 8px 10px; border: 1px solid var(--border-subtle); }
.calc-result-val { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--accent); }
.calc-result-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.goal-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.goal-remaining { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.goal-runs { background: var(--bg-elevated); border-radius: var(--r-md); padding: 12px; text-align: center; }
.goal-runs-num { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 800; color: var(--accent); }
.goal-runs-label { font-size: 12px; color: var(--text-muted); }
.purchase-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.purchase-row:last-child { border-bottom: none; }
.purchase-name { flex: 1; font-size: 14px; }
.purchase-name.done { text-decoration: line-through; color: var(--text-muted); }
.purchase-cost { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.purchase-cost.done { color: var(--text-muted); }
.strategy-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; margin-bottom: 10px; }
.strategy-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.strategy-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.money-full-width { grid-column: 1 / -1; }

/* === 20. Missions/Guides Page === */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
}
.guide-card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-card.completed { opacity: 0.65; }
.guide-card-accent { height: 4px; }
.guide-card-body { padding: 16px; }
.guide-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.guide-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.guide-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.guide-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border-subtle); }
.guide-steps-count { font-size: 12px; color: var(--text-muted); }
.difficulty-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-easy { background: var(--success); }
.dot-medium { background: var(--warning); }
.dot-hard { background: var(--danger); }
/* Guide detail */
.guide-detail-header { margin-bottom: 24px; }
.guide-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.guide-step { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--bg-elevated); border: 1px solid var(--border-subtle); }
.guide-step.done { opacity: 0.6; }
.guide-step.done .guide-step-text { text-decoration: line-through; }
.step-checkbox { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 1px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t-fast), border-color var(--t-fast); }
.step-checkbox.checked { background: var(--accent); border-color: var(--accent); }
.step-checkbox.checked::after { content: '✓'; color: var(--accent-text); font-size: 11px; font-weight: 700; }
.guide-step-num { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.guide-step-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.spoiler-block { background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; }
.spoiler-reveal { display: none; }
.spoiler-warning { font-size: 12px; color: var(--text-muted); font-style: italic; }
.spoiler-visible .spoiler-reveal { display: block; }
.spoiler-visible .spoiler-warning { display: none; }

/* === 21. Clips Page === */
.clips-page {}
.clips-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.clips-toolbar .filter-bar { margin: 0; flex: 1; }
.clips-feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.clip-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base); }
.clip-card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.clip-thumbnail { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--bg-deep); }
.clip-thumbnail video { width: 100%; height: 100%; object-fit: cover; }
.clip-thumbnail-color { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.clip-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); transition: background var(--t-fast); }
.clip-card:hover .clip-play-overlay { background: rgba(0,0,0,0.45); }
.clip-play-btn2 { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1.5px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; color: white; transition: transform var(--t-fast); }
.clip-card:hover .clip-play-btn2 { transform: scale(1.1); }
.clip-category-badge { position: absolute; top: 10px; right: 10px; }
.clip-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: white; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-sm); }
.clip-user-badge { position: absolute; bottom: 8px; left: 8px; }
.clip-card-body { padding: 12px 14px; }
.clip-card-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-card-meta { display: flex; align-items: center; justify-content: space-between; }
.clip-creator-info { display: flex; align-items: center; gap: 8px; }
.clip-creator-avatar { width: 24px; height: 24px; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--accent-text); background: linear-gradient(135deg, var(--accent-dim), var(--accent)); }
.clip-creator-name { font-size: 12px; color: var(--text-secondary); }
.clip-stats { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); }
.clip-stat { display: flex; align-items: center; gap: 3px; }
.clip-card-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--border-subtle); }
.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  border: none;
  background: none;
  cursor: pointer;
}
.action-btn:hover { color: var(--text-secondary); background: var(--bg-hover); }
.action-btn.liked { color: #ec4899; }
.action-btn.saved { color: var(--accent); }
/* Upload form */
.upload-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-base), background var(--t-base);
  margin-bottom: 20px;
}
.upload-drop-zone:hover, .upload-drop-zone.drag-over { border-color: var(--accent); background: var(--accent-glow); }
.upload-drop-icon { color: var(--text-muted); margin: 0 auto 12px; }
.upload-drop-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.upload-drop-desc { font-size: 13px; color: var(--text-muted); }
.upload-preview { margin-bottom: 20px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-deep); aspect-ratio: 16/9; position: relative; }
.upload-preview video { width: 100%; height: 100%; object-fit: contain; }
.upload-preview-overlay { position: absolute; top: 10px; right: 10px; }
.upload-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-form-grid .form-group.full { grid-column: 1 / -1; }
.upload-local-notice { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); border-radius: var(--r-md); padding: 12px 14px; font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-top: 16px; }
.upload-progress { height: 4px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.upload-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); width: 0%; transition: width 0.1s linear; }
/* Clip detail view */
.clip-detail-grid { display: grid; grid-template-columns: 1fr 360px; min-height: 500px; }
.clip-detail-main { padding: 0; }
.clip-detail-video { background: var(--bg-deep); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; }
.clip-detail-video video { width: 100%; height: 100%; object-fit: contain; }
.clip-detail-color { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.clip-detail-info { padding: 20px 24px; border-right: 1px solid var(--border-subtle); }
.clip-detail-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.clip-detail-creator { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.clip-detail-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.clip-comments-panel { display: flex; flex-direction: column; overflow: hidden; }
.clip-comments-header { padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); font-weight: 600; font-size: 15px; }
.clip-comments-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent-text); }
.comment-body { flex: 1; }
.comment-author { font-size: 12px; font-weight: 600; }
.comment-text { font-size: 13px; color: var(--text-secondary); margin-top: 2px; line-height: 1.5; }
.comment-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.clip-comment-form { padding: 14px; border-top: 1px solid var(--border-subtle); display: flex; gap: 8px; }
.clip-comment-form .input { flex: 1; height: 36px; font-size: 13px; }

/* === 22. Community Page === */
.community-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.post-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; }
.post-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.post-author-info { flex: 1; }
.post-author-name { font-size: 14px; font-weight: 600; }
.post-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.post-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.post-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.post-actions { display: flex; gap: 8px; }
.community-sidebar { }
.submit-form-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
.submit-form-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.submit-form-grid { display: flex; flex-direction: column; gap: 10px; }
.community-tips-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px; }

/* === 23. Crews & Players Page === */
.crews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.player-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px; }
.player-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.player-info { flex: 1; }
.player-name { font-size: 15px; font-weight: 600; }
.player-level { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.player-platform { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; }
.player-platform-ps { color: #003791; background: rgba(0,55,145,0.1); border-color: rgba(0,55,145,0.2); }
.player-platform-xbox { color: #107c10; background: rgba(16,124,16,0.1); border-color: rgba(16,124,16,0.2); }
.player-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.player-card-footer { display: flex; align-items: center; justify-content: space-between; }
.crew-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px; }
.crew-banner { height: 60px; border-radius: var(--r-md); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.crew-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: 2px; }
.crew-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.crew-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 12px; }
.crew-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }

/* === 24. News Page === */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base); }
.news-card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card-accent { height: 4px; }
.news-card-body { padding: 18px; }
.news-card-cat { margin-bottom: 10px; }
.news-card-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.news-card-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border-subtle); }
.news-date { font-size: 12px; color: var(--text-muted); }
.news-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.news-featured .news-card-accent { width: 4px; height: auto; }
.news-article { max-width: 720px; }
.article-content { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.article-content p { margin-bottom: 16px; }
.article-content h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin: 24px 0 10px; }

/* === 25. Profile Page === */
.profile-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 24px;
}
.profile-cover { height: 120px; background: linear-gradient(135deg, #0d0520, #100b18, #1a0528); position: relative; }
.profile-cover-accent { position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%); }
.profile-header-body { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px 24px; margin-top: -36px; position: relative; z-index: 1; }
.profile-avatar-wrap { border: 4px solid var(--bg-surface); border-radius: 50%; }
.profile-info { flex: 1; padding-bottom: 4px; }
.profile-name { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 800; }
.profile-bio { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.profile-stats-row { display: flex; gap: 24px; margin-top: 12px; }
.profile-stat { }
.profile-stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; }
.profile-stat-label { font-size: 12px; color: var(--text-muted); }
.profile-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-subtle); margin-bottom: 24px; }
.profile-tab { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); cursor: pointer; }
.profile-tab.active { color: var(--accent); border-color: var(--accent); }
.profile-tab:hover { color: var(--text-primary); }

/* === 26. Settings Page === */
.settings-section { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.settings-section-title { font-size: 16px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.settings-section-title svg { color: var(--accent); }

/* === 27. Responsive === */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; }
  .clips-grid { grid-template-columns: repeat(2, 1fr); }
  .money-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
  .clips-feed-grid { grid-template-columns: repeat(2, 1fr); }
  .crews-grid { grid-template-columns: 1fr 1fr; }
  .clip-detail-grid { grid-template-columns: 1fr; }
  .clip-comments-panel { max-height: 400px; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity var(--t-slow); }
  .sidebar-overlay.active { opacity: 1; pointer-events: all; }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: flex; }
  .upload-btn span { display: none; }
  .upload-btn { width: 36px; padding: 0; }
  .page { padding: 20px 16px 60px; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 14px; }
  .hero-search { flex-direction: column; }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .clips-grid { grid-template-columns: 1fr 1fr; }
  .clips-feed-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .crews-grid { grid-template-columns: 1fr; }
  .map-detail-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 10; width: 280px !important; transform: translateX(100%); transition: transform var(--t-slow); }
  .map-detail-panel.open { transform: translateX(0); }
  .news-featured { grid-template-columns: 1fr; }
  .profile-header-body { flex-direction: column; align-items: flex-start; margin-top: -24px; }
  .topbar-search-wrap { max-width: 200px; }
  .upload-form-grid { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .map-topbar { flex-wrap: wrap; }
  .map-search { min-width: 100%; }
}
@media (max-width: 480px) {
  .clips-grid { grid-template-columns: 1fr; }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-search-wrap { display: none; }
}

/* === Utility === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === Sidebar logo subtitle === */
.logo-text-wrap { display: flex; flex-direction: column; gap: 1px; }
.logo-subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

/* === NEW badge on clips nav item === */
.nav-badge-new {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: #22c55e;
  padding: 2px 7px;
  border-radius: 99px;
}

/* === Sidebar status bar === */
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.sidebar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}
.sidebar-status-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.sidebar-status-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-status-desc {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-status-ver {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* === Topbar breadcrumb === */
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.topbar-sep {
  font-size: 13px;
  color: var(--border);
}
.topbar-page-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* === Topbar user button === */
.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.topbar-user-btn:hover { background: var(--bg-hover); border-color: var(--border-accent); }
.topbar-avatar { background: #22c55e !important; color: #fff !important; font-size: 12px !important; }
.topbar-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.topbar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1;
}
.topbar-user-role {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 768px) {
  .topbar-breadcrumb { display: none; }
  .topbar-user-info { display: none; }
}

/* === Page eyebrow === */
.page-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* === Page title large === */
.page-title-lg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* === Filter + search row === */
.filter-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-search-row .filter-bar { margin: 0; flex-shrink: 0; }

/* === News entry grid === */
.news-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .news-entry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-entry-grid { grid-template-columns: 1fr; } }

/* === Card gradient backgrounds === */
.card-grad-1 { background: linear-gradient(145deg, #0e0820 0%, #2a1055 55%, #6b1888 95%); }
.card-grad-2 { background: linear-gradient(145deg, #08101e 0%, #102248 55%, #203870 95%); }
.card-grad-3 { background: linear-gradient(145deg, #120818 0%, #2e1040 55%, #6b1050 95%); }
.card-grad-4 { background: linear-gradient(145deg, #0a0e1a 0%, #151e3a 55%, #201565 95%); }
.card-grad-5 { background: linear-gradient(145deg, #0c1010 0%, #152028 55%, #183050 95%); }
.card-grad-6 { background: linear-gradient(145deg, #100a18 0%, #201235 55%, #50185a 95%); }

/* === News entry card === */
.news-entry-card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
}
.news-entry-card:hover {
  border-color: rgba(255,79,191,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(255,79,191,0.08);
}
.news-entry-top {
  padding: 16px 16px 0;
  flex-shrink: 0;
}
.news-entry-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news-entry-body {
  padding: 14px 16px;
  flex: 1;
}
.news-entry-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.news-entry-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-entry-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.news-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.news-read-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--t-fast);
}
.news-read-btn:hover { opacity: 0.8; }
.news-save-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.news-save-btn:hover { color: var(--text-secondary); background: rgba(255,255,255,0.06); }

/* === Home quick cards === */
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .home-quick-grid { grid-template-columns: repeat(2, 1fr); } }

/* === Community post card === */
.community-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  transition: border-color var(--t-base);
}
.community-post-card:hover { border-color: var(--border); }

/* === Crews grid === */
.crew-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* === Map placeholder === */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--topbar-height));
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
}
.map-placeholder-icon { opacity: 0.2; }
.map-placeholder-title { font-size: 20px; font-weight: 600; color: var(--text-secondary); }
.map-placeholder-desc { font-size: 14px; max-width: 340px; text-align: center; line-height: 1.6; }

/* Clip category color helpers */
.cat-stunts    { --cat-color: var(--cat-stunts);    }
.cat-funny     { --cat-color: var(--cat-funny);     }
.cat-secrets   { --cat-color: var(--cat-secrets);   }
.cat-gameplay  { --cat-color: var(--cat-gameplay);  }
.cat-tutorials { --cat-color: var(--cat-tutorials); }
.cat-highlights{ --cat-color: var(--cat-highlights);}
.guide-accent-missions   { background: linear-gradient(90deg,#3b82f6,#6366f1); }
.guide-accent-collectibles { background: linear-gradient(90deg,#f59e0b,#ef4444); }
.guide-accent-secrets    { background: linear-gradient(90deg,#8b5cf6,#ec4899); }
.guide-accent-activities { background: linear-gradient(90deg,#10b981,#3b82f6); }
.guide-accent-completion { background: linear-gradient(90deg,#ff4fbf,#53e7f2); }

/* ---- Map pins ---- */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}
.map-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 8px var(--pin-color, #ff4fbf);
  transition: transform 0.15s;
}
.map-pin:hover .map-pin-dot { transform: scale(1.4); }
.map-pin-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.map-pin:hover .map-pin-label { opacity: 1; }
.map-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.map-list-item:hover { background: var(--surface-3); }
.map-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Community post comments ---- */
.post-comment {
  display: flex;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.post-comment:last-child { border-bottom: none; }
.post-comment-author { font-weight: 600; color: var(--text-primary); flex-shrink: 0; }
.post-comment-time { color: var(--text-muted); margin-left: auto; flex-shrink: 0; }

/* ---- News save button active state ---- */
.news-save-btn.active { color: var(--accent); }

/* ---- Like button active state ---- */
.like-btn.active { color: var(--accent); }
.action-btn.active { color: var(--accent); }
