/* ============================================================
   CurbClue - Delivery Address Rating Platform
   Main Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens / Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Light mode (default) */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0F0F0;
  --text-primary: #111111;
  --text-secondary: #71717A;
  --text-tertiary: #A1A1AA;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-light: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --star-filled: #F59E0B;
  --star-empty: #E4E4E7;
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.12);
  --error: #EF4444;
  --error-light: rgba(239, 68, 68, 0.12);
  --warning: #F59E0B;
  --warning-light: rgba(245, 158, 11, 0.12);
  --border: #E4E4E7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.3);
  --overlay: rgba(0, 0, 0, 0.5);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 64px;
}

/* Dark mode */
[data-theme="dark"] {
  --bg-primary: #09090B;
  --bg-secondary: #18181B;
  --bg-tertiary: #27272A;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --accent: #818CF8;
  --accent-hover: #6366F1;
  --accent-light: rgba(129, 140, 248, 0.15);
  --accent-glow: rgba(129, 140, 248, 0.3);
  --star-filled: #FBBF24;
  --star-empty: #3F3F46;
  --border: #27272A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(24, 24, 27, 0.72);
  --glass-border: rgba(39, 39, 42, 0.5);
  --overlay: rgba(0, 0, 0, 0.7);
  --success-light: rgba(16, 185, 129, 0.15);
  --error-light: rgba(239, 68, 68, 0.15);
  --warning-light: rgba(245, 158, 11, 0.15);
}

/* ------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background: var(--accent-light);
  color: var(--accent);
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* ------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
  padding-top: var(--nav-height);
}

/* Page transition */
.page-content {
  animation: fadeInUp var(--duration-slow) var(--ease-out);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   5. Navbar - Glassmorphism
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #EC4899, var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.navbar-nav a,
.navbar-nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar-nav a:hover,
.navbar-nav button:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.navbar-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: var(--radius-full) !important;
  font-size: 1.1rem;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

/* ------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: var(--font-semibold);
  line-height: 1.4;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

/* Danger */
.btn-danger {
  background: var(--error);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
  color: #FFFFFF;
}

/* Success */
.btn-success {
  background: var(--success);
  color: #FFFFFF;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
  color: #FFFFFF;
}

/* Small */
.btn-sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
}

/* Large */
.btn-lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
}

/* Icon only */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ------------------------------------------------------------
   7. Home / Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 0 80px;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-extrabold);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientTitle 6s var(--ease-in-out) infinite;
  background-size: 200% auto;
}

@keyframes gradientTitle {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: var(--font-light);
}

/* Search */
.search-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  font-size: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-light);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1.1rem;
  pointer-events: none;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.autocomplete-dropdown.open {
  max-height: 360px;
  opacity: 1;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--bg-tertiary);
}

.autocomplete-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.autocomplete-item-text {
  flex: 1;
  min-width: 0;
}

.autocomplete-item-main {
  font-weight: var(--font-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item-sub {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-powered {
  padding: 8px 20px;
  text-align: right;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
}

/* Recent / trending section */
.home-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
}

/* Address preview cards (home page) */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.address-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--duration-normal) var(--ease-out);
}

.address-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ------------------------------------------------------------
   8. Address Page
   ------------------------------------------------------------ */
.address-map {
  width: 100%;
  height: 300px;
  border: none;
  border-bottom: 3px solid var(--accent);
  border-radius: 0;
  background: var(--bg-tertiary);
}

.addr-header {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: -40px 0 32px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.addr-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.addr-title {
  font-size: 1.75rem;
  font-weight: var(--font-bold);
}

.addr-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.addr-stats {
  display: flex;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.addr-stat {
  text-align: center;
}

.addr-stat-value {
  font-size: 1.75rem;
  font-weight: var(--font-bold);
  color: var(--accent);
}

.addr-stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #8B5CF6);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  color: #FFFFFF;
}

.cta-banner h3 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.cta-banner .btn {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.cta-banner .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

/* Rating Box */
.rating-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.rating-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.rating-box-header:hover {
  background: var(--bg-tertiary);
}

.rating-box-header h3 {
  font-size: 1.125rem;
}

.rating-box-toggle {
  font-size: 1.25rem;
  color: var(--text-tertiary);
  transition: transform var(--duration-normal) var(--ease-out);
}

.rating-box.collapsed .rating-box-toggle {
  transform: rotate(-90deg);
}

.rating-box-body {
  padding: 0 24px 24px;
  max-height: 600px;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              padding var(--duration-slow) var(--ease-out);
}

.rating-box.collapsed .rating-box-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Rating bars */
.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-bar-label {
  flex-shrink: 0;
  width: 140px;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.rating-bar-track {
  flex: 1;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--star-filled), #F97316);
  transition: width var(--duration-slow) var(--ease-out);
}

.rating-bar-value {
  flex-shrink: 0;
  width: 36px;
  text-align: right;
  font-size: 0.875rem;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* Unit filter tabs */
.unit-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.unit-filter-btn {
  padding: 6px 18px;
  font-size: 0.8125rem;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.unit-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border);
}

.unit-filter-btn.active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent);
}

/* Review cards */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all var(--duration-normal) var(--ease-out);
}

.review-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: 0.875rem;
}

.review-card-name {
  font-weight: var(--font-semibold);
  font-size: 0.9375rem;
}

.review-card-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.review-card-platform {
  font-size: 0.75rem;
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.review-card-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.review-card-stars .star {
  font-size: 1rem;
  color: var(--star-empty);
}

.review-card-stars .star.filled {
  color: var(--star-filled);
}

.review-card-comment {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Expandable detail */
.review-detail-toggle {
  font-size: 0.8125rem;
  font-weight: var(--font-medium);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  padding: 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.review-detail-toggle:hover {
  color: var(--accent-hover);
}

.review-detail-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.review-detail-panel.open {
  max-height: 500px;
}

.review-detail-content {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.review-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.review-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.review-detail-item span:first-child {
  color: var(--text-tertiary);
}

.review-detail-item span:last-child {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* Screenshot thumbnails */
.review-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.review-screenshot {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: all var(--duration-fast) var(--ease-out);
}

.review-screenshot:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.pagination .active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ------------------------------------------------------------
   9. Review Wizard
   ------------------------------------------------------------ */
.wizard {
  max-width: 640px;
  margin: 40px auto;
}

/* Progress bar */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
}

.wizard-progress-step {
  flex: 1;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.wizard-progress-step.completed {
  background: var(--accent);
}

.wizard-progress-step.active {
  background: var(--bg-tertiary);
}

.wizard-progress-step.active::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  border-radius: var(--radius-full);
  animation: shimmer 2s var(--ease-in-out) infinite;
}

@keyframes shimmer {
  0% { width: 20%; opacity: 0.6; }
  50% { width: 60%; opacity: 1; }
  100% { width: 20%; opacity: 0.6; }
}

.wizard-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wizard-progress-label {
  font-size: 0.75rem;
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
}

.wizard-progress-label.active {
  color: var(--accent);
}

.wizard-progress-label.completed {
  color: var(--success);
}

/* Step panels */
.wizard-step {
  display: none;
  animation: stepSlideIn var(--duration-normal) var(--ease-out);
}

.wizard-step.active {
  display: block;
}

@keyframes stepSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-step-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 8px;
}

.wizard-step-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Platform cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.platform-card:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-tertiary);
}

.platform-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.platform-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.platform-card span {
  font-size: 0.8125rem;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* Star rating interactive */
.star-rating-input {
  display: flex;
  gap: 6px;
}

.star-rating-input .star-btn {
  font-size: 1.75rem;
  color: var(--star-empty);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  background: none;
  border: none;
  padding: 2px;
  line-height: 1;
}

.star-rating-input .star-btn:hover,
.star-rating-input .star-btn.hover {
  color: var(--star-filled);
  transform: scale(1.15);
}

.star-rating-input .star-btn.active {
  color: var(--star-filled);
}

/* Rating group rows */
.rating-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.rating-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rating-group-label {
  font-weight: var(--font-medium);
  font-size: 0.9375rem;
}

/* Wizard steps */
.ws { display: none; }
.ws.active { display: block; }
.wizard-step__title { font-size: 1.25rem; font-weight: var(--font-semibold); margin-bottom: 4px; }

/* Unit choice buttons */
.ucb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: var(--font-medium);
  transition: all var(--duration-fast) var(--ease-out);
}
.ucb:hover { border-color: var(--text-tertiary); background: var(--bg-tertiary); }
.ucb.selected { border-color: var(--accent); background: var(--accent-light); }

/* Rating grid */
.rating-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .rating-grid { grid-template-columns: repeat(2, 1fr); }
  .rating-grid .rating-card:last-child { grid-column: 1 / -1; }
}
.rating-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: border-color .2s;
}
.rating-card.rated { border-color: var(--accent); }
.rating-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.rating-card__icon { color: var(--text-tertiary); display: flex; }
.rating-card__label { font-weight: 600; font-size: 0.8125rem; }

/* Interactive stars */
.star-row { display: flex; gap: 2px; justify-content: center; }
.istar {
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color .15s, transform .15s;
}
.istar:hover { transform: scale(1.15); }
.istar.filled { color: var(--star-filled); }
.istar.filled svg { fill: currentColor; }

/* File upload area */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.file-upload-area-icon {
  font-size: 2rem;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.file-upload-area p {
  font-size: 0.875rem;
}

.file-upload-area .browse-link {
  color: var(--accent);
  font-weight: var(--font-semibold);
  cursor: pointer;
}

.file-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.file-preview-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}

.file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--error);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  cursor: pointer;
}

/* Summary */
.wizard-summary {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 20px;
}

.wizard-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.wizard-summary-row:last-child {
  border-bottom: none;
}

.wizard-summary-row .label {
  color: var(--text-tertiary);
}

.wizard-summary-row .value {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* Nav buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

/* ------------------------------------------------------------
   10. Forms
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--error);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 4px;
}

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ------------------------------------------------------------
   11. Auth Pages
   ------------------------------------------------------------ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 80px);
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: 4px;
}

.auth-card-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  font-weight: var(--font-semibold);
}

/* ------------------------------------------------------------
   12. Profile
   ------------------------------------------------------------ */
.profile-header {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 0.875rem;
}

.profile-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.profile-section h3 {
  font-size: 1.125rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ------------------------------------------------------------
   13. Badges
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-error,
.badge-danger {
  background: var(--error-light);
  color: var(--error);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-gray {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

/* ------------------------------------------------------------
   14. Toast Notifications
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  pointer-events: all;
  animation: toastIn var(--duration-normal) var(--ease-spring);
  max-width: 380px;
}

.toast.removing {
  animation: toastOut var(--duration-fast) var(--ease-out) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--error);
}

.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-message {
  flex: 1;
  color: var(--text-primary);
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 0.875rem;
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   16. TOS / Privacy - Prose
   ------------------------------------------------------------ */
.prose {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px;
}

.prose h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.prose p {
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .last-updated {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

/* ------------------------------------------------------------
   Latest Reviews Page
   ------------------------------------------------------------ */
.reviews-page { padding: 40px 0 60px; }
.reviews-page__header { text-align: center; margin-bottom: 40px; }
.reviews-page__title { font-size: 2.25rem; font-weight: var(--font-bold); margin-bottom: 8px; }
.reviews-page__subtitle { color: var(--text-secondary); font-size: 1rem; }
.reviews-page__empty { text-align: center; padding: 60px 20px; color: var(--text-tertiary); }
.reviews-page__empty svg { margin-bottom: 16px; opacity: 0.4; }
.reviews-page__empty p { margin-bottom: 20px; font-size: 1.0625rem; }
.reviews-page__list { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.reviews-page__item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px 4px; }
.reviews-page__address-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--accent); text-decoration: none; margin-bottom: 12px; font-weight: 500; }
.reviews-page__address-link:hover { text-decoration: underline; }
.reviews-page__address-link svg { flex-shrink: 0; }
.reviews-page .review-card { border: none; padding: 0; background: none; }
.reviews-page .pagination { margin-top: 40px; }
.pagination__dots { display: flex; align-items: center; padding: 0 4px; color: var(--text-tertiary); font-size: 0.875rem; }

/* ============================================================
   Legal Pages (Terms & Privacy)
   ------------------------------------------------------------ */
.legal-page { padding: 40px 0 60px; }
.legal-header { text-align: center; margin-bottom: 40px; }
.legal-title { font-size: 2.25rem; font-weight: var(--font-bold); margin-bottom: 8px; }
.legal-updated { font-size: 0.875rem; color: var(--text-tertiary); }

.legal-alert {
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.legal-alert--danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.legal-alert--info {
  background: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.legal-alert__icon { flex-shrink: 0; margin-top: 2px; }
.legal-alert--danger .legal-alert__icon { color: var(--error); }
.legal-alert--info .legal-alert__icon { color: var(--accent); }
.legal-alert__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.legal-alert--danger .legal-alert__title { color: var(--error); }
.legal-alert--info .legal-alert__title { color: var(--accent); }
.legal-alert__content p { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.legal-alert__content ul { list-style: disc; padding-left: 20px; margin: 0; }
.legal-alert__content li { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 4px; }

.legal-grid { display: flex; flex-direction: column; gap: 16px; }
.legal-card {
  display: flex;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.legal-card:hover { border-color: var(--accent); }
.legal-card__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
}
.legal-card__body { flex: 1; min-width: 0; }
.legal-card__body h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.legal-card__body h3 { font-size: 1.0625rem; font-weight: 600; margin-top: 16px; margin-bottom: 8px; color: var(--text-secondary); }
.legal-card__body p { font-size: 0.9375rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 12px; }
.legal-card__body ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.legal-card__body li { font-size: 0.9375rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 4px; }
.legal-card__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-card__body a:hover { color: var(--accent-hover); }

.legal-highlight {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 12px;
}

@media (max-width: 640px) {
  .legal-title { font-size: 1.75rem; }
  .legal-alert { flex-direction: column; gap: 12px; padding: 18px; }
  .legal-card { flex-direction: column; gap: 12px; padding: 20px; }
  .legal-card__number { width: 32px; height: 32px; font-size: 0.8125rem; }
}

/* ------------------------------------------------------------
   17. Contact Form
   ------------------------------------------------------------ */
.contact-page {
  display: flex;
  justify-content: center;
  padding: 40px 24px;
}

.contact-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

.contact-card h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.contact-card > p {
  margin-bottom: 28px;
}

/* ------------------------------------------------------------
   18. 404 Page
   ------------------------------------------------------------ */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: 40px 24px;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: var(--font-extrabold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.page-404 h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.page-404 p {
  margin-bottom: 28px;
  max-width: 400px;
}

/* ------------------------------------------------------------
   19. Flash Messages
   ------------------------------------------------------------ */
.flash-message {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.flash-error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid var(--error);
}

.flash-warning {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}

/* ------------------------------------------------------------
   20. Responsive
   ------------------------------------------------------------ */

/* Tablet and below: <1024px */
@media (max-width: 1024px) {
  .addr-header-top {
    flex-direction: column;
  }

  .addr-stats {
    gap: 24px;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .review-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile: <640px */
@media (max-width: 640px) {
  :root {
    --nav-height: 56px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 16px;
  }

  /* Navbar mobile */
  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 16px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
  }

  .navbar-nav.open {
    transform: translateX(0);
  }

  .navbar-nav a,
  .navbar-nav button {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    justify-content: flex-start;
  }

  /* Hero */
  .hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .search-input {
    padding: 14px 20px 14px 46px;
  }

  /* Address */
  .address-map {
    height: 200px;
  }

  .addr-header {
    margin: -24px 16px 24px;
    padding: 20px;
  }

  .addr-stats {
    flex-direction: column;
    gap: 16px;
    text-align: left;
  }

  .addr-stat {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .addr-stat-value {
    font-size: 1.25rem;
  }

  /* Review cards */
  .review-card {
    padding: 16px;
  }

  .review-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .review-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Wizard */
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rating-group-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Auth */
  .auth-card {
    padding: 28px 20px;
  }

  /* Profile */
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  /* Address grid */
  .address-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  /* Unit filter scroll */
  .unit-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .unit-filter-btn {
    flex-shrink: 0;
  }

  /* Pagination */
  .pagination {
    gap: 4px;
  }

  /* Toast */
  .toast-container {
    left: 16px;
    right: 16px;
  }

  .toast {
    max-width: none;
  }
}

/* Desktop: >1024px */
@media (min-width: 1025px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* ============================================================
   BEM ALIAS & MISSING COMPONENT STYLES
   Maps BEM class names used in HTML to existing design tokens
   ============================================================ */

/* --- Buttons BEM --- */
.btn--primary { background: var(--accent); color: #FFFFFF; box-shadow: 0 4px 16px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 6px 24px var(--accent-glow); transform: translateY(-1px); color: #FFFFFF; }
.btn--primary:active { transform: translateY(0); box-shadow: 0 2px 8px var(--accent-glow); }
.btn--ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--bg-tertiary); border-color: var(--text-tertiary); color: var(--text-primary); }
.btn--danger { background: var(--error); color: #FFFFFF; }
.btn--danger:hover { background: #DC2626; transform: translateY(-1px); color: #FFFFFF; }
.btn--sm { padding: 6px 16px; font-size: 0.8125rem; }
.btn--lg { padding: 14px 32px; font-size: 1.0625rem; }
.btn--xs { padding: 4px 12px; font-size: 0.75rem; }
.btn--full { width: 100%; }
.btn--disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-full { width: 100%; }

/* --- Alerts --- */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert--error, .alert-error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid var(--error);
}
.alert--success, .alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}
.alert--warning, .alert-warning {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}
.alert__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Card --- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}
.card--form {
  max-width: 560px;
  margin: 40px auto;
  padding: 40px 32px;
}
.card--centered {
  text-align: center;
  max-width: 480px;
  margin: 60px auto;
  padding: 48px 32px;
}
.card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
}
.card__icon--warning {
  background: var(--warning-light);
  color: var(--warning);
}

/* --- Navbar BEM --- */
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.navbar__logo-text {
  font-size: 1.5rem;
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #EC4899, var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
.navbar__search {
  flex: 1;
  max-width: 400px;
  margin: 0 24px;
  position: relative;
}
.navbar__search-form {
  display: flex;
  align-items: center;
  position: relative;
}
.navbar__search-input {
  width: 100%;
  padding: 8px 40px 8px 16px;
  font-size: 0.875rem;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}
.navbar__search-input:focus {
  outline: none;
  background: var(--bg-secondary);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.navbar__search-input::placeholder { color: var(--text-tertiary); }
.navbar__search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.navbar__search-btn:hover { color: var(--accent); }
.navbar__search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow-y: auto;
  max-height: 320px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar__nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: color 0.15s, background 0.15s;
}
.navbar__nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.navbar__theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.navbar__theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
[data-theme="light"] .navbar__theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .navbar__theme-toggle .icon-sun { display: none; }

/* User menu */
.navbar__user-menu { position: relative; }
.navbar__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text-primary);
}
.navbar__user-btn:hover { border-color: var(--text-tertiary); }
.navbar__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: 0.75rem;
}
.navbar__user-name { color: var(--text-primary); }
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
}
.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
  text-decoration: none;
}
.navbar__dropdown-item:hover { background: var(--bg-tertiary); }
.navbar__dropdown-item--danger { color: var(--error); }
.navbar__dropdown-item--danger:hover { background: var(--error-light); }
.navbar__dropdown-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Mobile toggle */
.navbar__mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.navbar__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

/* Mobile menu */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 16px;
  z-index: 9998;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.navbar__mobile-menu:not([hidden]) { display: block; }
.navbar__mobile-search { margin-bottom: 16px; position: relative; }
.navbar__mobile-search form { display: block; }
.navbar__mobile-search input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-sizing: border-box;
}
.navbar__mobile-search .navbar__search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 50vh;
  z-index: 9999;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.navbar__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.navbar__mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.navbar__mobile-link:hover { background: var(--bg-tertiary); }
.navbar__mobile-link--danger { color: var(--error); }

/* --- Hero BEM --- */
.hero__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; }
.hero__title {
  font-size: 3.5rem;
  font-weight: var(--font-extrabold);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero__title-gradient {
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientTitle 6s var(--ease-in-out) infinite;
  background-size: 200% auto;
}
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: var(--font-light);
}
.hero__search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.hero__search-form { position: relative; }
.hero__search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.hero__search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}
.hero__search-input {
  width: 100%;
  padding: 16px 120px 16px 52px;
  font-size: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
}
.hero__search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-light);
}
.hero__search-input::placeholder { color: var(--text-tertiary); }
.hero__search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 20px;
  font-size: 0.875rem;
}
.hero__search-btn:hover {
  transform: translateY(-50%);
}
.hero__search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow-y: auto;
  max-height: 320px;
}
.hero__location-btn { margin-top: 12px; }

/* --- Steps / How it works --- */
.how-it-works { padding: 60px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
}
.step-card__number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: var(--font-bold);
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card__title {
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
  margin-bottom: 8px;
}
.step-card__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Stars --- */
.stars { display: flex; gap: 3px; align-items: center; }
.stars--lg { gap: 4px; }
.star { color: var(--star-empty); display: inline-flex; }
.star--filled { color: var(--star-filled); }
.star--half { color: var(--star-filled); }
.star--empty { color: var(--star-empty); }

/* --- Progress bar --- */
.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--star-filled), #F97316);
  transition: width var(--duration-slow) var(--ease-out);
}

/* --- Pill tabs --- */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.pill-tab {
  padding: 6px 18px;
  font-size: 0.8125rem;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.pill-tab:hover { color: var(--text-primary); }
.pill-tab--active {
  color: var(--accent);
  background: var(--accent-light);
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}
.empty-state svg { color: var(--text-tertiary); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text-primary); }
.empty-state p { margin-bottom: 20px; }

/* --- Badge BEM variants --- */
.badge--platform { background: var(--bg-tertiary); color: var(--text-secondary); }
.badge--unit { background: var(--accent-light); color: var(--accent); }
.badge-yellow { background: var(--warning-light); color: var(--warning); }
.badge-red { background: var(--error-light); color: var(--error); }

/* --- Footer BEM --- */
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo {
  font-size: 1.25rem;
  font-weight: var(--font-extrabold);
  color: var(--accent);
  text-decoration: none;
}
.footer__tagline { font-size: 0.8125rem; color: var(--text-tertiary); }
.footer__nav { display: flex; gap: 20px; }
.footer__link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__link:hover { color: var(--text-primary); }
.footer__bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.footer__copyright { font-size: 0.75rem; color: var(--text-tertiary); }

/* --- Auth BEM --- */
.auth-card__header { text-align: center; margin-bottom: 28px; }
.auth-card__logo {
  font-size: 2rem;
  font-weight: var(--font-extrabold);
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}
.auth-card__title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 4px;
}
.auth-card__subtitle { color: var(--text-secondary); font-size: 0.9375rem; }
.auth-card__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.auth-card__footer a, .auth-footer a {
  color: var(--accent);
  font-weight: var(--font-semibold);
  text-decoration: none;
}
.auth-card__footer a:hover, .auth-footer a:hover { text-decoration: underline; }
.auth-form { margin: 0; }
.auth-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: 4px;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}
.link {
  color: var(--accent);
  font-weight: var(--font-semibold);
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* --- Form extras --- */
.form-input-wrapper { position: relative; }
.form-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.form-input-toggle:hover { color: var(--text-primary); }
.form-required { color: var(--error); }
.form-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}
.form-section-title {
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
  margin-bottom: 20px;
}
.section-sm { padding: 40px 0; }

/* --- Address page BEM --- */
.address-map { position: relative; }
.address-map__iframe { width: 100%; height: 300px; border: none; }
.address-map__actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.address-map__actions--top {
  bottom: auto;
  top: 12px;
}
.address-map__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.address-map__btn:hover { background: var(--bg-secondary); transform: translateY(-1px); }
.address-map__btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.address-map__btn--favorited { color: var(--error, #EF4444); border-color: var(--error, #EF4444); }
.address-map__btn--favorited svg { fill: var(--error, #EF4444); stroke: var(--error, #EF4444); }
.directions-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.directions-modal[hidden] { display: none; }
.directions-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.directions-modal__box {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 340px;
  box-shadow: var(--shadow-xl);
}
.directions-modal__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.directions-modal__desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px; }
.directions-modal__options { display: flex; flex-direction: column; gap: 8px; }
.directions-modal__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.directions-modal__option:hover { background: var(--bg-tertiary); }
.directions-modal__option svg { flex-shrink: 0; color: var(--accent); }
.address-cta { padding: 24px 0; }
.address-cta__banner {
  background: linear-gradient(135deg, var(--accent), #8B5CF6);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #FFFFFF;
}
.address-cta__banner h2 { color: #FFFFFF; font-size: 1.25rem; margin-bottom: 4px; }
.address-cta__banner p { color: rgba(255,255,255,0.85); font-size: 0.9375rem; }
.address-cta__banner .btn {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.address-cta__banner .btn:hover { background: rgba(255,255,255,0.3); color: #FFFFFF; }
.address-cta__banner ::selection { background: rgba(255,255,255,0.35); color: #FFFFFF; }
.address-header { padding: 32px 0; }
.address-header__card { margin-top: -40px; position: relative; z-index: 10; }
.address-header__title { font-size: 1.75rem; font-weight: var(--font-bold); margin-bottom: 16px; }
.address-header__stats { display: flex; align-items: center; gap: 16px; }
.address-header__rating { display: flex; align-items: center; gap: 8px; }
.address-header__score { font-size: 1.25rem; font-weight: var(--font-bold); color: var(--text-primary); }
.address-header__count { font-size: 0.875rem; color: var(--text-secondary); }

/* Address breakdown */
.address-breakdown { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.address-breakdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  cursor: pointer;
}
.address-breakdown__toggle svg { transition: transform var(--duration-fast) var(--ease-out); }
.address-breakdown__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.address-breakdown__content { flex-direction: column; gap: 12px; padding-top: 12px; }
.address-breakdown__content:not([hidden]) { display: flex; }
.address-breakdown__category-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.address-breakdown__category-label { font-size: 0.875rem; color: var(--text-secondary); }
.address-breakdown__category-value { font-size: 0.875rem; font-weight: var(--font-semibold); }
/* Address collapsible filters */
.address-filters { padding: 0 0 8px; }
.address-filters__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
}
.address-filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}
.address-filters__toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.address-filters__toggle-left svg { color: var(--text-secondary); }
.address-filters__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--accent, #6366F1);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.address-filters__chevron {
  color: var(--text-tertiary);
  transition: transform var(--duration-fast) var(--ease-out);
}
.address-filters__toggle[aria-expanded="true"] .address-filters__chevron {
  transform: rotate(180deg);
}
.address-filters__content {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.address-filters__content[hidden] { display: none; }
.address-filters__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.address-filters__label {
  font-size: 0.75rem;
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Unit filter card */
.address-units { padding: 0 0 8px; }
.address-units__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.address-units__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.address-units__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.address-units__pill {
  padding: 7px 18px;
  font-size: 0.8125rem;
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.address-units__pill:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}
.address-units__pill--active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.address-reviews { padding: 24px 0 60px; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }

/* --- Review card BEM --- */
.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.review-card__meta { display: flex; align-items: center; gap: 10px; }
.review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.review-card__info { display: flex; flex-direction: column; }
.review-card__username { font-weight: var(--font-semibold); font-size: 0.9375rem; }
.review-card__date { font-size: 0.75rem; color: var(--text-tertiary); }
.review-card__badges { display: flex; gap: 6px; }
.review-card__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.review-card__score { font-weight: var(--font-semibold); font-size: 0.875rem; color: var(--text-primary); }
.review-card__comment { font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 12px; }
.review-card__screenshots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.review-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  background: none;
  padding: 0;
}
.review-card__thumb:hover { border-color: var(--accent); transform: scale(1.05); }
.review-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-card__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--accent);
  cursor: pointer;
}
.review-card__details { padding-top: 16px; border-top: 1px solid var(--border); margin-top: 12px; }
.review-card__breakdown { margin-bottom: 16px; }
.review-card__breakdown-title { font-size: 0.875rem; font-weight: var(--font-semibold); margin-bottom: 12px; }
.review-card__category { margin-bottom: 8px; }
.review-card__category-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.review-card__category-label { font-size: 0.8125rem; color: var(--text-secondary); }
.review-card__category-value { font-size: 0.8125rem; font-weight: var(--font-semibold); }
.review-card__actions { display: flex; gap: 8px; }

/* --- Lightbox BEM --- */
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }
.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

/* --- Review form page --- */
.review-form-page { padding: 32px 0 60px; }
.review-form-header { margin-bottom: 32px; }
.review-form-header h1 { font-size: 1.75rem; margin-top: 16px; margin-bottom: 4px; }
.review-form-header__address { color: var(--text-secondary); font-size: 0.9375rem; }

/* --- Wizard BEM --- */
.wizard-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
.wizard-progress__step--active { color: var(--accent); }
.wizard-progress__step--completed { color: var(--success); }
.wizard-progress__number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: 0.75rem;
}
.wizard-progress__step--active .wizard-progress__number { background: var(--accent); color: #FFFFFF; }
.wizard-progress__step--completed .wizard-progress__number { background: var(--success); color: #FFFFFF; }
.wizard-progress__label { font-weight: var(--font-medium); }
.wizard-progress__connector { flex: 1; height: 2px; background: var(--bg-tertiary); min-width: 20px; }
.wizard-step--active { display: block; }
.wizard-step__title { font-size: 1.5rem; font-weight: var(--font-bold); margin-bottom: 8px; }
.wizard-step__subtitle { color: var(--text-secondary); margin-bottom: 24px; }

/* Platform card BEM */
.platform-card__input { position: absolute; opacity: 0; width: 0; height: 0; }
.platform-card__content { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.platform-card__logo { width: 40px; height: 40px; object-fit: contain; }
.platform-card__name { font-size: 0.8125rem; font-weight: var(--font-semibold); color: var(--text-primary); }

/* Rating input group */
.rating-input-group {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.rating-input-group__header { margin-bottom: 10px; }
.rating-input-group__label { font-weight: var(--font-semibold); font-size: 0.9375rem; display: block; margin-bottom: 2px; }
.rating-input-group__desc { font-size: 0.8125rem; color: var(--text-tertiary); }
.star-rating-input__star {
  cursor: pointer;
  display: inline-flex;
  padding: 2px;
  color: var(--star-empty);
  transition: all var(--duration-fast) var(--ease-out);
}
.star-rating-input__star:hover,
.star-rating-input__star.active { color: var(--star-filled); transform: scale(1.15); }
.star-rating-input__input { position: absolute; opacity: 0; width: 0; height: 0; }

/* File upload BEM */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}
.file-upload:hover, .file-upload.dragover { border-color: var(--accent); background: var(--accent-light); }
.file-upload__input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}
.file-upload__content { pointer-events: none; }
.file-upload__content svg { color: var(--text-tertiary); margin-bottom: 8px; }
.file-upload__content p { font-size: 0.875rem; color: var(--text-secondary); }
.file-upload__browse { color: var(--accent); font-weight: var(--font-semibold); }
.file-upload__hint { display: block; font-size: 0.75rem; color: var(--text-tertiary); margin-top: 4px; }
.file-upload__preview { position: relative; display: inline-block; }
.file-upload__preview img { max-width: 200px; max-height: 200px; border-radius: var(--radius-sm); object-fit: cover; }
.file-upload__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--error);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* Summary card BEM */
.summary-card { margin-bottom: 24px; }
.summary-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.summary-card__row:last-child { border-bottom: none; }
.summary-card__row--full { flex-direction: column; gap: 4px; }
.summary-card__label { color: var(--text-tertiary); font-weight: var(--font-medium); }
.summary-card__value { font-weight: var(--font-semibold); color: var(--text-primary); text-align: right; }
.summary-card__row--full .summary-card__value { text-align: left; }
.summary-card__thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.summary-card__ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; }

/* --- Verify page --- */
.verify-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: 40px 24px;
}
.verify-icon { font-size: 4rem; color: var(--success); margin-bottom: 16px; }
.verify-icon.verify-error { color: var(--error); }
.verify-title { font-size: 1.75rem; font-weight: var(--font-bold); margin-bottom: 8px; }
.verify-text { color: var(--text-secondary); margin-bottom: 28px; max-width: 400px; }

/* --- Error page --- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: 40px 24px;
}
.error-code { font-size: 6rem; font-weight: var(--font-extrabold); color: var(--accent); line-height: 1; margin-bottom: 8px; }
.error-title { font-size: 1.5rem; margin-bottom: 12px; }
.error-text { color: var(--text-secondary); margin-bottom: 28px; max-width: 400px; }

/* --- Profile page --- */
.profile-page { max-width: 720px; margin: 32px auto; padding: 0 24px; }
.profile-page .profile-header { flex-direction: column; align-items: flex-start; gap: 8px; }
.profile-name { font-size: 1.75rem; font-weight: var(--font-bold); }
.profile-username { font-size: 0.875rem; color: var(--text-secondary); }
.profile-tabs {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border-bottom: 2px solid var(--border);
  width: 100%;
}
.ptab {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast) var(--ease-out);
}
.ptab:hover { color: var(--text-primary); }
.ptab.active { color: var(--accent); border-bottom-color: var(--accent); }
.prc {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.pra { font-weight: var(--font-medium); color: var(--text-primary); text-decoration: none; font-size: 0.9375rem; }
.pra:hover { color: var(--accent); }
.pre { font-size: 0.8125rem; color: var(--accent); text-decoration: none; font-weight: var(--font-medium); }
.pre:hover { text-decoration: underline; }
.review-stars-score .star { color: var(--star-filled); }
.review-stars-score .star-empty { color: var(--star-empty); }
.review-platform, .review-unit {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}
.review-comment { font-size: 0.875rem; color: var(--text-secondary); font-style: italic; margin-top: 6px; }
.review-date { font-size: 0.75rem; color: var(--text-tertiary); }
.security-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.security-title {
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.current-email { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px; }

/* --- Contact page fix --- */
.contact-page .auth-card { width: 100%; max-width: 560px; margin: 0 auto; }

/* --- Auth page centering (login, register) --- */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: 40px 24px;
}
.auth-page .auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Password toggle icon fix --- */
.form-input-toggle .icon-eye,
.form-input-toggle .icon-eye-off {
  display: inline-flex;
}
.form-input-toggle .icon-eye-off[hidden],
.form-input-toggle .icon-eye[hidden] {
  display: none;
}

/* --- Autocomplete dropdown items --- */
.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--duration-fast) var(--ease-out);
  position: relative;
  z-index: 10;
}
.ac-item:hover { background: var(--bg-tertiary); }
.ac-item + .ac-item { border-top: 1px solid var(--border); }
.ac-pin { font-size: 1.125rem; flex-shrink: 0; }
.ac-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-main { font-size: 0.9375rem; font-weight: var(--font-medium); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sub { font-size: 0.8125rem; color: var(--text-secondary); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-rating { font-size: 0.8125rem; color: var(--text-tertiary); }
.ac-rating .star { color: var(--star-filled); }
.ac-google-item { }
.ac-google-item .ac-main { color: var(--accent); }

/* --- Report Modal --- */
.report-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.report-modal[hidden] { display: none; }
.report-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.report-modal__box {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}
.report-modal__title { font-size: 1.125rem; font-weight: var(--font-bold); margin-bottom: 4px; }
.report-modal__desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px; }
.report-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* --- Responsive BEM updates --- */

/* Tablet: <=768px */
@media (max-width: 768px) {
  .navbar__search { max-width: 240px; margin: 0 16px; }
  .navbar__user-name { display: none; }
  .hero__search-input { padding: 14px 110px 14px 46px; }
}

/* Mobile: <=640px */
@media (max-width: 640px) {
  .navbar__search { display: none; }
  .navbar__mobile-toggle { display: flex; }
  .navbar__user-name { display: none; }
  .navbar__actions .btn--ghost,
  .navbar__actions .btn--primary { display: none; }
  .navbar__actions { gap: 4px; flex-shrink: 0; }
  .navbar__nav-link { display: none; }
  .navbar__user-btn { padding: 4px 8px 4px 4px; }
  .navbar__theme-toggle { width: 32px; height: 32px; }
  .hero__title { font-size: 2.25rem; }
  .hero__subtitle { font-size: 1rem; margin-bottom: 28px; }
  .hero__search-input { padding: 14px 48px 14px 46px; }
  .hero__search-btn { padding: 8px 14px; right: 4px; font-size: 0.8125rem; }
  .hero__location-btn { width: 100%; justify-content: center; }
  .address-cta__banner { flex-direction: column; text-align: center; }
  .address-map__iframe { height: 200px; }
  .address-map__actions { bottom: 8px; right: 8px; gap: 6px; }
  .address-map__actions--top { top: auto; bottom: 8px; right: auto; left: 8px; }
  .address-map__btn { padding: 6px 10px; font-size: 0.75rem; }
  .address-map__btn span { display: none; }
  .address-header__card { margin-top: 0; }
  .address-cta { padding: 16px 0; }
  .address-cta__banner { padding: 20px 16px; }
  .review-card__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
  .summary-card__ratings { grid-template-columns: 1fr; }
  .auth-page { padding: 24px 16px; }
  .auth-page .auth-card { padding: 28px 20px; }
  .navbar__dropdown {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-width: unset;
  }
  .profile-page { padding: 0 16px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: 0.8125rem; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
  .mod-card { flex-direction: column; }
  .mod-screenshot { width: 100%; height: 120px; }
}

/* --- Admin Panel --- */
.admin-page { max-width: 1100px; margin: 32px auto; padding: 0 24px; }
.admin-title { font-size: 1.75rem; font-weight: var(--font-bold); margin-bottom: 24px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.stat-value { font-size: 1.5rem; font-weight: var(--font-bold); color: var(--text-primary); }
.stat-label { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.atab {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  line-height: 1.4;
  flex-shrink: 0;
}
.atab:hover { color: var(--text-primary); background: var(--bg-tertiary); border-color: var(--text-tertiary); }
.atab.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.admin-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-search .form-input { flex: 1; }
.admin-search-info { font-size: 0.75rem; color: var(--text-tertiary); white-space: nowrap; }
.mod-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.mod-card.mod-inactive { opacity: 0.5; }
.mod-screenshot {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  overflow: hidden;
}
.mod-content { flex: 1; min-width: 0; }
.mod-address { font-weight: var(--font-semibold); font-size: 0.9375rem; margin-bottom: 4px; }
.mod-comment { font-size: 0.8125rem; color: var(--text-secondary); font-style: italic; margin-bottom: 6px; }
.mod-meta { font-size: 0.75rem; color: var(--text-tertiary); margin-bottom: 8px; }
.mod-ip { font-family: monospace; font-size: 0.6875rem; background: var(--bg-tertiary); padding: 1px 6px; border-radius: var(--radius-sm); user-select: all; }
.mod-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: var(--font-medium);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.btn-success { background: var(--success-light); color: var(--success); }
.btn-success:hover { background: var(--success); color: #fff; }
.btn-danger { background: var(--error-light); color: var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }
.btn-neutral:hover { background: var(--border); color: var(--text-primary); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.admin-table tr:hover td { background: var(--bg-tertiary); }
.admin-role-select {
  padding: 4px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
}
.admin-role-select:disabled { opacity: 0.5; cursor: not-allowed; }
/* Settings Section */
.settings-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 16px;
  overflow: hidden;
}
.settings-section__title {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 16px;
  margin: 0;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.settings-section__body {
  padding: 16px;
}
.settings-row {
  margin-bottom: 14px;
}
.settings-row:last-child {
  margin-bottom: 0;
}
.settings-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.settings-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.platform-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.platform-row:last-child {
  margin-bottom: 0;
}

.badge-green { background: var(--success-light); color: var(--success); }
.badge-gray { background: var(--bg-tertiary); color: var(--text-tertiary); }
.badge {
  display: inline-flex;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
}
