/* ============================================
   ROGNERUD FILM FESTIVAL - Modern Design System
   ============================================ */

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

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

:root {
  /* Primary Colors - Neon Green */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.1);

  /* Accent - Purple/Cyan */
  --accent: #8b5cf6;
  --accent-light: rgba(139, 92, 246, 0.15);
  --cyan: #06b6d4;

  /* Backgrounds */
  --bg-dark: #000000;
  --bg-card: #0a0a0a;
  --bg-elevated: #111111;
  --bg-glass: rgba(10, 10, 10, 0.9);

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Borders */
  --border: rgba(16, 185, 129, 0.15);
  --border-light: rgba(16, 185, 129, 0.25);
  --border-focus: rgba(16, 185, 129, 0.5);

  /* Status Colors */
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  --warning: #eab308;
  --warning-light: rgba(234, 179, 8, 0.15);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Base Styles */
html {
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background texture - Grid effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at top, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
}

.logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.user-info {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pending-badge {
  background: var(--warning-light);
  color: var(--warning);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md), 0 0 25px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-light);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  text-align: center;
  padding: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.8;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: cover;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ============================================
   MOVIES SECTION
   ============================================ */

.movies-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  opacity: 0;
  transition: var(--transition-base);
}

.movie-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.movie-card:hover::before {
  opacity: 1;
}

.movie-card .movie-poster {
  width: 100%;
  flex: 1;               /* fills available card space */
  height: auto;          /* not needed, but fine */
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: block;
}

.movie-card .movie-date {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.movie-card .movie-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.movie-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.movie-card .movie-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .dinner-badge {
  background: var(--warning-light);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--warning);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.movie-card .fully-booked-badge {
  background: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
}

.movie-card .seats-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.movie-card .private-event-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state p {
  margin-bottom: 1rem;
}

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-box {
  max-width: 400px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.auth-box h1 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
}

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

.user-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
}

.user-checkboxes .checkbox-label {
  font-size: 0.9rem;
}

.private-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert.error {
  background: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert.success {
  background: var(--success-light);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.info-box {
  background: var(--warning-light);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--warning);
  font-size: 0.9rem;
}

.info-box a {
  color: var(--primary);
  font-weight: 500;
}

/* ============================================
   PENDING PAGE
   ============================================ */

.pending-box {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 450px;
  margin: 3rem auto;
}

.pending-box h1 {
  color: var(--warning);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.pending-box p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pending-box .btn {
  margin-top: 2rem;
}

/* ============================================
   MOVIE PAGE
   ============================================ */

.movie-page {
  max-width: 100%;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--primary);
}

.movie-header {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.movie-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.movie-header .fully-booked-badge-large {
  background: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
}

.movie-header .seats-status {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.movie-header .private-event-badge-large {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: inline-block;
}

.movie-header .movie-poster-large {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.movie-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.movie-meta .date {
  color: var(--primary);
  font-weight: 600;
  margin-right: 1rem;
}

.dinner-info {
  background: var(--warning-light);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--warning);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ============================================
   SEAT SELECTION
   ============================================ */

.seat-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.seat-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.screen {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.1));
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  max-width: 400px;
  width: 80%;
  position: relative;
  box-shadow: 0 2px 30px rgba(16, 185, 129, 0.3);
}

.screen span {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  font-weight: 600;
}

.seat-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.seat-demo {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  margin-right: 0.5rem;
}

.seat-demo.available {
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid var(--success);
}

.seat-demo.selected {
  background: var(--primary);
  border: 2px solid var(--primary);
}

.seat-demo.taken {
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
}

.seat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 80px;
  padding-right: 80px;
}

.row-label {
  position: absolute;
  left: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 75px;
  text-align: right;
  font-weight: 500;
}

.seats {
  display: flex;
  gap: 0.5rem;
}

.seat {
  width: 48px;
  height: 44px;
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.seat input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.seat span {
  font-weight: 600;
  font-size: 0.8rem;
  pointer-events: none;
}

.seat.available {
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--success);
  color: var(--success);
}

.seat.available:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.seat.selected {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.seat.taken {
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.seat-row.standing {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-light);
}

.standing-seat {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ============================================
   RESERVATIONS SECTION
   ============================================ */

.reservations-section {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.reservations-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
   TABLES
   ============================================ */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 500px;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr.past {
  opacity: 0.4;
}

.table a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.table a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================
   MY RESERVATIONS
   ============================================ */

.reservations-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.reservations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.reservation-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-base);
}

.reservation-card:hover {
  border-color: var(--border-light);
}

.reservation-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.reservation-card .date {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.reservation-card .time {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.reservation-card .seat {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  direction: ltr;
  unicode-bidi: bidi-override;
}

.reservation-card .seat strong {
  color: var(--text-primary);
  direction: ltr;
}

/* ============================================
   ADMIN PAGES
   ============================================ */

.admin-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.admin-page > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition-base);
}

.admin-card:hover {
  border-color: var(--border-light);
}

.admin-card h2 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-card .stat {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.admin-section {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-section > .table {
  width: 100%;
  align-self: stretch;
}

.admin-section h2 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.movie-form {
  width: 100%;
  max-width: 550px;
  text-align: left;
}

/* Inline forms for admin */
.inline-form {
  display: flex;
  gap: 0.5rem;
}

.inline-form input {
  padding: 0.375rem 0.75rem;
  width: 130px;
  font-size: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.inline-form input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============================================
   ACCOUNT PAGE
   ============================================ */

.account-page {
  max-width: 100%;
}

.account-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.account-page > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.account-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.password-form {
  width: 100%;
  max-width: 350px;
  text-align: left;
}

/* ============================================
   CODE/MONOSPACE
   ============================================ */

code {
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
    order: 1;
  }

  .logo {
    order: 0;
    flex: 1;
  }

  .nav-links {
    order: 2;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a:not(.btn) {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav-links .btn {
    width: 100%;
  }

  .user-info {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0;
  }

  .container {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .movies-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .movie-card {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .seat-section {
    padding: 1.25rem;
  }

  .seat {
    width: 38px;
    height: 34px;
  }

  .seats {
    gap: 0.35rem;
  }

  .seat-row {
    padding-left: 55px;
    padding-right: 10px;
  }

  .row-label {
    width: 50px;
    font-size: 0.7rem;
  }

  .seat-legend {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
  }

  .auth-box {
    margin: 1rem;
    padding: 1.5rem;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-section {
    padding: 1.25rem;
  }

  .table {
    font-size: 0.85rem;
    min-width: 450px;
  }

  .table th,
  .table td {
    padding: 0.625rem 0.5rem;
  }

  .movie-header {
    padding: 1.5rem;
  }

  .movie-header h1 {
    font-size: 1.5rem;
  }

  .reservations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .seat-row {
    padding-left: 50px;
    padding-right: 50px;
  }

  .row-label {
    width: 45px;
  }

  .seat {
    width: 34px;
    height: 30px;
  }

  .seat span {
    font-size: 0.65rem;
  }

  .standing-seat {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.movie-card,
.reservation-card,
.admin-card {
  animation: fadeIn 0.3s ease forwards;
}

/* Stagger animation for grid items */
.movies-grid .movie-card:nth-child(1) { animation-delay: 0.05s; }
.movies-grid .movie-card:nth-child(2) { animation-delay: 0.1s; }
.movies-grid .movie-card:nth-child(3) { animation-delay: 0.15s; }
.movies-grid .movie-card:nth-child(4) { animation-delay: 0.2s; }
.movies-grid .movie-card:nth-child(5) { animation-delay: 0.25s; }
.movies-grid .movie-card:nth-child(6) { animation-delay: 0.3s; }

/* Focus states for accessibility */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}
