/* =============================================
   TOSG -  Design System
   ============================================= */

/* === CSS Custom Properties === */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #2563eb;
  --secondary-light: #60a5fa;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(37, 99, 235, 0.04);
  --bg-glass-hover: rgba(37, 99, 235, 0.08);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(0, 0, 0, 0.07);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 4px 24px rgba(37, 99, 235, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #1e40af 40%, #2563eb 100%);
  --gradient-card: linear-gradient(145deg, #ffffff, #f8fafc);
  --font-primary: 'Inter', 'Segoe UI', system-ui, 'EmojiFont', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  --font-display: 'Outfit', 'Inter', 'EmojiFont', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Force color emoji rendering on all platforms */
@font-face {
  font-family: 'EmojiFont';
  src: local('Apple Color Emoji'),
       local('Segoe UI Emoji'),
       local('Noto Color Emoji'),
       local('Android Emoji'),
       local('EmojiSymbols');
  unicode-range: U+1F000-1FFFF, U+2600-27FF, U+2300-23FF, U+2B50, U+2764, U+FE0F;
}

/* Reset gradient text effect for emoji unicode ranges — prevents solid block rendering */
@supports (-webkit-background-clip: text) {
  *::before, *::after, * {
    /* emoji characters bypass -webkit-text-fill-color via font fallback */
  }
}

/* Utility class to wrap emoji that sit inside gradient-text parents */
.ei {
  display: inline-block;
  -webkit-text-fill-color: initial !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ensure emoji render in color everywhere */
.emoji, [class*="icon"], h1, h2, h3, h4, h5, h6, button, a, td, th, p, span, div, label {
  font-family: inherit;
}

a {
  color: var(--secondary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(250, 249, 247, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1400px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.navbar-brand:hover {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.nav-links .dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-auth {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-auth .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Auth links in mobile menu — hidden on desktop */
.nav-auth-mobile {
  display: none;
}

/* Admin sidebar toggle button — hidden on desktop */
.sidebar-toggle-btn {
  display: none;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  font-weight: 700;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-danger {
  background: linear-gradient(135deg, #d32f2f, #f44336);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(211, 47, 47, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 100px 20px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(57, 73, 171, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 111, 0, 0.15) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  top: -200px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(30px) rotate(10deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #93b5f5;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero h1 span {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Section === */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg-glass);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-card);
}

/* === Cards === */
.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(26, 35, 126, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-body {
  padding: 28px;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-stf {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.badge-stpl {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.badge-general {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.badge-b2b {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.badge-b2c {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.badge-active {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.badge-inactive {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
}

.badge-paid {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.badge-unpaid {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.badge-upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-ongoing {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-completed {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === Grid === */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === Features === */
.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.feature-icon.primary {
  background: rgba(37, 99, 235, 0.08);
}

.feature-icon.secondary {
  background: rgba(37, 99, 235, 0.08);
}

.feature-icon.accent {
  background: rgba(37, 99, 235, 0.08);
}

/* === Forms === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  cursor: pointer;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  color: var(--text-primary);
}

select.form-control option {
  background: #ffffff;
  color: #1e293b;
  padding: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-radio {
  flex: 1;
  min-width: 150px;
  position: relative;
}

.form-radio input {
  position: absolute;
  opacity: 0;
}

.form-radio label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.form-radio input:checked+label {
  border-color: var(--secondary);
  background: rgba(255, 111, 0, 0.1);
}

.form-radio .radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-radio input:checked+label .radio-dot {
  border-color: var(--secondary);
}

.form-radio input:checked+label .radio-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
}

/* === Alerts === */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.alert-error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

.alert-info {
  background: rgba(33, 150, 243, 0.15);
  border: 1px solid rgba(33, 150, 243, 0.3);
  color: #64b5f6;
}

/* === Auth Pages === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
}

.auth-card.wide {
  max-width: 600px;
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-header h2 {
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
}

/* === Event Cards === */
.card.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.event-card .card-meta {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.event-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
}

.event-price.free {
  color: #81c784;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter button {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.gallery-filter button.active,
.gallery-filter button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* === Page Header === */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 40%, #1e40af 70%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(96, 165, 250, 0.1) 0%, transparent 40%);
  animation: headerPulse 8s ease-in-out infinite alternate;
}

@keyframes headerPulse {
  0% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
  }
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg-dark));
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  margin-bottom: 12px;
  font-weight: 800;
  color: #ffffff;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb span {
  color: var(--secondary);
}

/* === Footer === */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-social a svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* === Tables (Admin) === */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(37, 99, 235, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

tr {
  transition: var(--transition);
}

tr:hover td {
  background: rgba(37, 99, 235, 0.02);
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* === Admin Layout === */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Animated background mesh for admin */
.admin-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(26, 35, 126, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 111, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(0, 191, 165, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    background:
      radial-gradient(ellipse 80% 50% at 20% 40%, rgba(26, 35, 126, 0.2) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 111, 0, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 50% 60% at 60% 80%, rgba(0, 191, 165, 0.06) 0%, transparent 50%);
  }

  100% {
    background:
      radial-gradient(ellipse 70% 60% at 40% 30%, rgba(26, 35, 126, 0.15) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 70% 70%, rgba(255, 111, 0, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse 60% 40% at 30% 60%, rgba(0, 191, 165, 0.08) 0%, transparent 50%);
  }
}

.admin-sidebar {
  width: 270px;
  background: linear-gradient(180deg, rgba(19, 23, 56, 0.98), rgba(10, 14, 39, 0.99));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
  backdrop-filter: blur(20px);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling for sidebar */
.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-sidebar .brand {
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.admin-sidebar .brand::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  top: -40px;
  right: -30px;
  pointer-events: none;
}

.admin-sidebar .brand h3 {
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
  position: relative;
}

.admin-sidebar .brand small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.admin-sidebar nav {
  padding: 8px 14px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
}

.admin-sidebar nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transform: scaleY(0);
  transition: var(--transition);
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateX(4px);
}

.admin-sidebar nav a:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.admin-sidebar nav a.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(59, 130, 246, 0.25));
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  font-weight: 600;
}

.admin-sidebar nav a.active::before {
  opacity: 1;
  transform: scaleY(1);
  background: var(--secondary);
}

.admin-sidebar nav .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin: 12px 16px;
}

.admin-main {
  margin-left: 270px;
  flex: 1;
  padding: 36px 40px;
  position: relative;
  z-index: 1;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Prevent gradient text from breaking emoji rendering globally */
.stat-number,
.admin-header h1,
h1, h2, h3, h4, h5, h6 {
  /* emoji inside gradient-text elements need special handling */
}

/* Reset webkit-text-fill for any emoji span */
.emoji-icon {
  -webkit-text-fill-color: initial;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Admin Stats Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.admin-stat-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-stat-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-stat-card .icon.blue {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(33, 150, 243, 0.1));
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.admin-stat-card .icon.orange {
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.3), rgba(255, 111, 0, 0.1));
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.2);
}

.admin-stat-card .icon.green {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.1));
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.admin-stat-card .icon.purple {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.25), rgba(156, 39, 176, 0.1));
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.2);
}

.admin-stat-card .info h3 {
  font-size: 1.8rem;
  margin-bottom: 2px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.admin-stat-card .info p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
  letter-spacing: 0.3px;
}

/* === Empty State Enhancement === */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 16px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* === Album Cards === */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.album-card,
.album-card-public {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  color: inherit;
  text-decoration: none;
}

.album-card:hover,
.album-card-public:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.album-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.album-cover {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-glass);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.album-card:hover .album-cover img,
.album-card-public:hover .album-cover img {
  transform: scale(1.08);
}

.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}

.album-photo-count {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.album-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}

.album-info {
  padding: 16px 20px;
}

.album-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.album-actions {
  padding: 0 20px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

/* === Info Page Layout === */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.info-section.reverse {
  direction: rtl;
}

.info-section.reverse>* {
  direction: ltr;
}

.info-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 111, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* === Membership Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
  border-color: var(--secondary);
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-secondary);
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 20px 0;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* === Modal System === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
  border-radius: 20px 20px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.modal-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

.modal-body {
  padding: 24px 28px;
  flex: 1;
}

.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
}

@media (max-width: 600px) {
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 95vh; }
  .modal-header { padding: 20px 20px 16px; }
  .modal-body { padding: 16px 20px; }
  .modal-footer { padding: 12px 20px 20px; flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; justify-content: center; }
}

/* === Mobile Menu Overlay (outside navbar stacking context) === */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.open {
  display: block;
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list > li > a {
  display: block;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > a:active {
  background: var(--bg-glass);
  color: var(--primary);
}

.mobile-sub-list {
  list-style: none;
  padding: 0;
  background: #f8fafc;
}

.mobile-sub-list li a {
  display: block;
  padding: 12px 24px 12px 40px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}

.mobile-sub-list li a:hover {
  color: var(--primary);
}

.mobile-auth-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  border-top: 2px solid var(--border-color);
  margin-top: 8px;
}

.mobile-auth-section .btn {
  justify-content: center;
  text-align: center;
  padding: 14px 20px;
  font-size: 1rem;
  width: 100%;
}

/* Mobile menu top header bar */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}

.mobile-menu-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.mobile-menu-close {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100%;
    grid-column: 1 / -1;
  }

  .info-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    width: 220px;
  }

  .admin-main {
    margin-left: 220px;
  }
}

@media (max-width: 768px) {

  /* Keep desktop nav-links hidden on mobile */
  .nav-links {
    display: none !important;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-auth {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .page-header {
    padding: 110px 0 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer {
    padding: 48px 0 0;
  }

  .auth-card {
    padding: 32px 24px;
  }

  /* Admin sidebar — slide in from left on mobile */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: var(--transition);
    position: fixed;
    width: 270px;
    z-index: 200;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  /* Overlay when sidebar is open */
  .admin-sidebar.open::after {
    content: '';
    position: fixed;
    inset: 0;
    left: 270px;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }

  .admin-main {
    margin-left: 0;
    padding: 20px 16px;
  }

  .admin-header {
    margin-bottom: 20px;
  }

  .admin-header h1 {
    font-size: 1.5rem;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .admin-stat-card {
    padding: 16px;
    gap: 12px;
  }

  .admin-stat-card .icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .admin-stat-card .info h3 {
    font-size: 1.4rem;
  }

  /* Sidebar toggle button — visible on mobile */
  .sidebar-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 150;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Album and gallery grids */
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  /* Tables on mobile */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  /* Card body padding */
  .card-body {
    padding: 20px;
  }

  /* Stat card */
  .stat-card {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Feature card */
  .feature-card {
    padding: 28px 20px;
  }

  /* Contact info card */
  .contact-info-card {
    padding: 24px 20px;
  }

  /* Empty state */
  .empty-state {
    padding: 48px 20px;
  }
}

/* === Extra small phones (≤ 480px) === */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .navbar .container {
    padding: 0 16px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand img {
    height: 34px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 90px 16px 48px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .page-header {
    padding: 100px 0 48px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .auth-card {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
  }

  .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 13px 24px;
    font-size: 1rem;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .album-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-social a {
    width: 36px;
    height: 36px;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .form-radio-group {
    flex-direction: column;
  }

  .form-radio {
    min-width: unset;
  }
}

/* === Animations === */
.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Utilities === */
.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-accent {
  color: var(--accent-light) !important;
}

.text-success {
  color: #81c784 !important;
}

.text-danger {
  color: #ef5350 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 8px !important;
}

.mb-2 {
  margin-bottom: 16px !important;
}

.mb-3 {
  margin-bottom: 24px !important;
}

.mb-4 {
  margin-bottom: 32px !important;
}

.mt-2 {
  margin-top: 16px !important;
}

.mt-3 {
  margin-top: 24px !important;
}

.mt-4 {
  margin-top: 32px !important;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.w-100 {
  width: 100%;
}

/* === Album Grid (Public + Admin) === */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.album-card-public,
.album-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.album-card-public:hover,
.album-card-link:hover {
  transform: translateY(-6px);
  color: inherit;
}

.album-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.album-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.album-cover {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-card);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card-public:hover .album-cover img,
.album-card-link:hover .album-cover img {
  transform: scale(1.08);
}

.album-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  justify-content: flex-end;
}

.album-photo-count {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.album-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--bg-card), var(--primary-dark));
}

.album-info {
  padding: 16px 20px;
}

.album-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.album-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  justify-content: flex-end;
}

/* === Gallery Photo Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* === Gallery Filter === */
.gallery-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter button {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter button.active,
.gallery-filter button:hover {
  background: var(--gradient-secondary);
  color: white;
  border-color: transparent;
}