/* Imports: Google Fonts - Assistant (Hebrew) and Outfit (Numbers/Latin) */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design System */
:root {
  /* Color Palette - Styled after the custom filmatter neon sign */
  --bg-primary: #07070b;      /* Very dark night brick shade */
  --bg-secondary: #0c0d14;    /* Sleek deep background */
  --bg-surface: rgba(16, 17, 26, 0.75); /* Translucent surface */
  --bg-surface-hover: rgba(24, 26, 38, 0.9);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(6, 182, 212, 0.25);
  
  --primary: #06b6d4;         /* Neon Cyan/Turquoise */
  --primary-hover: #22d3ee;
  --primary-glow: rgba(6, 182, 212, 0.35);
  
  --secondary: #d946ef;       /* Neon Violet/Magenta */
  --secondary-glow: rgba(217, 70, 239, 0.35);
  
  --text-main: #f8fafc;       /* Bright off-white */
  --text-muted: #94a3b8;      /* Slate steel */
  --text-dark: #020617;
  
  --danger: #ff2a5f;          /* Neon Red/Pink */
  --danger-hover: #ff0040;
  --success: #10b981;         /* Neon Green */
  --success-hover: #34d399;
  
  /* Glassmorphism Settings */
  --glass-blur: blur(16px);
  --glass-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.65);
  
  /* Border Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Assistant', 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(217, 70, 239, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(7, 7, 11, 1) 0%, rgba(3, 3, 5, 1) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Selection Style */
::selection {
  background-color: var(--primary);
  color: var(--text-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse-glow 3s infinite alternate;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to left, var(--text-main), #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-section span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.5rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  color: var(--text-main);
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #34d399 100%);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 5px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.25);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-icon {
  padding: 0.75rem;
  border-radius: 50%;
}

.admin-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(245, 197, 24, 0.1) 100%);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: glow-pulse 2s infinite alternate;
}

/* Dashboard / Stats Section */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 1350px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    padding-bottom: 2rem;
  }
  .logo-section {
    flex-direction: column;
    gap: 0.25rem;
  }
  .logo-section span {
    margin-top: 0;
  }
  .nav-controls {
    width: 100%;
    justify-content: center;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Disable expensive backdrop-filter on mobile for smooth scrolling performance */
  .stat-card, .toolbar, .movie-card, .empty-state, .btn-secondary, .modal-window {
    backdrop-filter: none !important;
    background-color: var(--bg-secondary) !important;
  }
}

@media (max-width: 600px) {
  .dashboard-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 2rem !important;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .dashboard-stats::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .stat-card {
    flex: 0 0 160px !important;
    max-width: 160px !important;
    padding: 1rem 0.75rem !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
    border-radius: var(--radius-sm) !important;
  }
  .stat-card::before {
    width: 100% !important;
    height: 3px !important;
    top: 0 !important;
    right: 0 !important;
  }
  .stat-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.5rem !important;
    border-radius: 8px !important;
    margin: 0 !important;
  }
  .stat-info {
    width: 100% !important;
  }
  .stat-value {
    font-size: 1.1rem !important;
    margin-bottom: 0.15rem !important;
  }
  .stat-label {
    font-size: 0.75rem !important;
  }

  .movies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }
  .movie-card {
    border-radius: var(--radius-sm) !important;
  }
  .card-poster {
    height: 240px !important;
  }
  .card-content {
    padding: 0.85rem !important;
  }
  .movie-title-he {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
  }
  .movie-title-en {
    font-size: 0.8rem !important;
  }
  .card-genres {
    display: none !important; /* Hide genres on mobile card list for compact look */
  }
  .card-meta-info {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }
  .rating-badge {
    padding: 0.15rem 0.45rem !important;
    font-size: 0.72rem !important;
  }
  .rating-badge svg {
    width: 10px !important;
    height: 10px !important;
  }
  .poster-fallback {
    padding: 1rem !important;
    gap: 0.5rem !important;
  }
  .poster-fallback-icon {
    font-size: 1.8rem !important;
  }
  .poster-fallback div {
    font-size: 0.85rem !important;
  }
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0.5;
}
.stat-card:nth-child(2)::before { background: var(--secondary); }
.stat-card:nth-child(3)::before { background: var(--success); }
.stat-card:nth-child(4)::before { background: #eab308; }

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 15px rgba(6, 182, 212, 0.05);
}

.stat-icon {
  font-size: 2.2rem;
  color: var(--primary);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}
.stat-card:nth-child(2) .stat-icon { color: var(--secondary); }
.stat-card:nth-child(3) .stat-icon { color: var(--success); }
.stat-card:nth-child(4) .stat-icon { color: #3b82f6; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Toolbar & Filters */
.toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .search-filter-row {
    grid-template-columns: 1fr;
  }
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background-color: rgba(10, 11, 16, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  backdrop-filter: blur(4px);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
  background-color: rgba(10, 11, 16, 0.75);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1em;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

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

.genre-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.genre-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}
.genre-tag.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--text-main);
  font-weight: 700;
  box-shadow: 0 0 12px var(--primary-glow), inset 0 0 5px rgba(255,255,255,0.1);
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

/* Movie Catalog Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.movie-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
}

.movie-card.high-rating {
  border-color: rgba(217, 70, 239, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 70, 239, 0.25);
}
.movie-card.high-rating:hover {
  border-color: var(--secondary);
}

.card-poster {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  cursor: pointer;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}
.movie-card:hover .card-poster img {
  transform: scale(1.05);
}

.poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(26,29,45,0.8) 100%);
  padding: 2rem;
  text-align: center;
}
.poster-fallback-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.card-rating-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  z-index: 5;
}

.rating-badge {
  background: rgba(10, 11, 16, 0.85);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  backdrop-filter: blur(4px);
}

.personal-rating-badge {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
  color: #020617 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.45) !important;
  padding: 0.25rem 0.65rem !important;
}

.personal-rating-badge .rating-label {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.95;
  letter-spacing: 0.5px;
}

.rating-badge.rating-perfect {
  background: linear-gradient(135deg, #f5c518 0%, #d2a60f 100%) !important;
  color: var(--text-dark) !important;
  border-color: #f5c518 !important;
  box-shadow: 0 0 15px rgba(245, 197, 24, 0.6) !important;
}

.imdb-badge {
  background: #f5c518 !important;
  color: #000 !important;
  border-color: #f5c518 !important;
  box-shadow: none !important;
}

.imdb-badge .imdb-text {
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.05rem 0.25rem;
  background: #000;
  color: #f5c518;
  border-radius: 3px;
  font-family: 'Outfit', sans-serif;
}

.card-actions-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition-normal);
  z-index: 2;
}
.movie-card:hover .card-actions-overlay {
  opacity: 1;
  transform: translateY(0);
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(10, 11, 16, 0.85);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-action:hover {
  background: var(--text-main);
  color: var(--text-dark);
}
.btn-action.btn-delete-action:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  cursor: pointer;
}

.card-header {
  margin-bottom: 0.75rem;
}

.movie-title-he {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-title-en {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.movie-year {
  font-family: 'Outfit', sans-serif;
}

.card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.mini-genre {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Modals & Popups */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: rgba(13, 14, 22, 0.78);
  border: 1.5px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.9), 0 0 30px rgba(6, 182, 212, 0.15);
  backdrop-filter: blur(25px);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}

.btn-close-modal {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(217, 70, 239, 0.05);
  border: 1.5px solid rgba(217, 70, 239, 0.25);
  color: var(--secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-normal);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.1);
}
.btn-close-modal:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #020617;
  transform: rotate(90deg);
  box-shadow: 0 0 15px var(--secondary);
}

/* Review Details View Specifics */
.review-view-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

@media (max-width: 650px) {
  .review-view-header {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .modal-window {
    max-height: 95vh;
  }
}

.review-poster {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}
.review-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-header-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-movie-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.review-movie-title-en {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
  margin-bottom: 1.5rem;
}

.review-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.meta-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.meta-item-value {
  font-size: 0.95rem;
  font-weight: 700;
}

.review-view-body {
  padding: 2.5rem;
}

.review-text-section {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e5e7eb;
  white-space: pre-line;
  margin-bottom: 2rem;
}

.review-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2.5rem;
  background-color: rgba(10, 11, 16, 0.4);
}

/* Review Edit/Add Form Specifics */
.form-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border-color);
}
.form-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

.form-body {
  padding: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Custom Interactive Rating Selector */
.rating-selector-container {
  display: flex;
  gap: 0.35rem;
  direction: ltr; /* To align rating numbers left-to-right */
  justify-content: space-between;
  margin-top: 0.25rem;
}

.rating-option {
  flex-grow: 1;
}
.rating-option input {
  display: none;
}
.rating-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.rating-option label:hover {
  background-color: rgba(255,255,255,0.08);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.rating-option input:checked + label {
  background-color: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Admin Login Window specific styling */
.login-window {
  max-width: 420px;
}

/* Feedback alert / notification Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-notification.success {
  border-color: var(--success);
}
.toast-notification.error {
  border-color: var(--danger);
}
.toast-icon {
  font-size: 1.2rem;
}
.toast-notification.success .toast-icon { color: var(--success); }
.toast-notification.error .toast-icon { color: var(--danger); }

/* Animation Keyframes */
@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 2px rgba(245, 197, 24, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 4px rgba(245, 197, 24, 0.1);
  }
  100% {
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.3);
  }
}

/* Empty State Styling */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
}
.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
}

@keyframes gridPulse {
  0% {
    opacity: 0.1;
    transform: scale(0.97) translate(0, 0);
  }
  100% {
    opacity: 0.22;
    transform: scale(1.03) translate(2px, 2px);
  }
}

/* Neon Flicker Boot Animations */
.bg-neon-watermark.neon-flicker-boot {
  animation: watermarkFlickerBoot 1.8s ease-in-out forwards;
}

@keyframes watermarkFlickerBoot {
  0% { opacity: 0.02; }
  3% { opacity: 0.12; }
  6% { opacity: 0.01; }
  9% { opacity: 0.18; }
  12% { opacity: 0.02; }
  15% { opacity: 0.20; }
  18% { opacity: 0.05; }
  22% { opacity: 0.15; }
  26% { opacity: 0.03; }
  30% { opacity: 0.20; }
  34% { opacity: 0.05; }
  38% { opacity: 0.18; }
  42% { opacity: 0.08; }
  46% { opacity: 0.20; }
  100% { opacity: 0.20; }
}

header h2.neon-flicker-boot {
  animation: logoFlickerBoot 1.8s ease-in-out forwards;
}

@keyframes logoFlickerBoot {
  0% { opacity: 0.1; filter: drop-shadow(0 0 0px transparent); }
  3% { opacity: 0.8; }
  6% { opacity: 0.15; }
  9% { opacity: 0.95; }
  12% { opacity: 0.2; }
  15% { opacity: 1; }
  18% { opacity: 0.3; }
  22% { opacity: 0.9; }
  26% { opacity: 0.25; }
  30% { opacity: 1; }
  34% { opacity: 0.4; }
  38% { opacity: 0.95; }
  42% { opacity: 0.5; }
  46% { opacity: 1; }
  100% { opacity: 1; }
}
