/* ============================================================
   TEDxAl Kawthar — Official Visual Architecture
   Theme: Beyond the Familiar
   Identity: Al Kawthar, The Nile Reflections, Palms & Architectural Arches
   ============================================================ */

:root {
  --ted-red: #EB0028;
  --ted-red-hover: #c40021;
  --ted-red-glow: rgba(235, 0, 40, 0.45);
  --river-blue: rgba(45, 90, 135, 0.2);
  --bg-dark: #040507;
  --bg-card: rgba(14, 16, 22, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(235, 0, 40, 0.5);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
  background: radial-gradient(circle at 50% 0%, #110508 0%, #040507 60%);
}

::selection {
  background: var(--ted-red);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #040507;
}
::-webkit-scrollbar-thumb {
  background: #20222a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ted-red);
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: #fff;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

.text-red {
  color: var(--ted-red);
}

.glow-red {
  box-shadow: 0 0 35px -5px var(--ted-red-glow);
}

/* SVG Icon Helper */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header Announcement Ticker */
.ticker-banner {
  background: linear-gradient(90deg, #99001a 0%, #EB0028 50%, #99001a 100%);
  color: #fff;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-anim 1.8s infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(4, 5, 7, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-emblem {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(235, 0, 40, 0.4);
  box-shadow: 0 0 12px rgba(235, 0, 40, 0.3);
}

.nav-logo-text {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ted-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  background: transparent;
  border: 1px solid transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-primary {
  background: var(--ted-red);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(235, 0, 40, 0.35);
}

.btn-primary:hover {
  background: var(--ted-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(235, 0, 40, 0.55);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(6, 7, 10, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-direction: column;
  gap: 16px;
  z-index: 49;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Hero Section with Nile & Kawthar Identity */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(0.65) contrast(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(235, 0, 40, 0.18) 0%, rgba(4, 5, 7, 0.75) 60%, #040507 100%);
}

/* Water Ripple Bottom Fade */
.hero-water-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to top, #040507 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Identity Emblem Emblem Showcase in Hero */
.hero-emblem-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(235, 0, 40, 0.35);
  backdrop-filter: blur(14px);
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(235, 0, 40, 0.25);
}

.hero-emblem-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(235, 0, 40, 0.6);
}

.hero-emblem-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f3f4f6;
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 300;
  color: #cbd5e1;
  max-width: 660px;
  margin-bottom: 34px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  padding: 13px 30px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.hero-cta .btn-outline {
  padding: 13px 26px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

/* Countdown Card */
.countdown-box {
  background: rgba(8, 10, 15, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  backdrop-filter: blur(14px);
  margin-bottom: 32px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.countdown-box .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 12px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: var(--radius-md);
}

.countdown-num {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: #fff;
  display: block;
  font-family: monospace;
}

.countdown-unit {
  font-size: 9px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

/* Badges Strip */
.badges-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9999px;
  background: rgba(8, 10, 15, 0.8);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
}

.info-pill.white-pill {
  background: #fff;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.info-pill.white-pill:hover {
  background: #e2e8f0;
}

/* Social Strip */
.social-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.25s;
}

.social-circle:hover {
  background: var(--ted-red);
  border-color: var(--ted-red);
  color: #fff;
  transform: translateY(-2px);
}

.social-circle svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

/* Sections Global */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(235, 0, 40, 0.1);
  border: 1px solid rgba(235, 0, 40, 0.25);
  color: var(--ted-red);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
}

.section-header {
  margin-bottom: 46px;
}

.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cards Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: rgba(22, 25, 35, 0.7);
  box-shadow: 0 14px 30px -10px rgba(235, 0, 40, 0.15);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(235, 0, 40, 0.12);
  border: 1px solid rgba(235, 0, 40, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ted-red);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 13px;
  line-height: 1.6;
}

/* About Al Kawthar Narrative Card */
.about-nile-card {
  background: linear-gradient(135deg, rgba(235, 0, 40, 0.08) 0%, rgba(10, 12, 18, 0.9) 60%);
  border: 1px solid rgba(235, 0, 40, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.about-quote {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 18px;
}

.about-emblem-showcase {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(235, 0, 40, 0.3);
  box-shadow: 0 0 40px rgba(235, 0, 40, 0.25);
  max-width: 320px;
  margin: 0 auto;
}

.about-emblem-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* The Hidden Layer Slider (Rock Solid Clip-Path with River & Palms Motif) */
.slider-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.slider-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.preset-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn.active, .preset-btn:hover {
  background: var(--ted-red);
  color: #fff;
}

.reveal-viewport {
  position: relative;
  width: 100%;
  height: 390px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  user-select: none;
  background: #06070a;
}

.reveal-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal-layer.layer-base {
  background: linear-gradient(135deg, #101218 0%, #06070a 100%);
  align-items: flex-end;
  text-align: right;
}

.reveal-layer.layer-hidden {
  background: linear-gradient(135deg, #2b040a 0%, #080305 100%);
  align-items: flex-start;
  text-align: left;
  pointer-events: none;
}

.reveal-content {
  max-width: 440px;
  width: 100%;
}

.layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.layer-badge.gray {
  background: #20222a;
  color: #cbd5e1;
}

.layer-badge.red {
  background: rgba(235, 0, 40, 0.2);
  color: var(--ted-red);
  border-color: rgba(235, 0, 40, 0.4);
}

.reveal-layer h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  margin-bottom: 10px;
}

.reveal-layer p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.layer-tags {
  display: flex;
  gap: 8px;
  font-family: monospace;
  font-size: 11px;
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ted-red);
  box-shadow: 0 0 15px var(--ted-red);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.slider-knob {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ted-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

/* Ticket Cards */
.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
}

.ticket-card.popular {
  background: linear-gradient(180deg, #1c0307 0%, #090204 100%);
  border: 2px solid var(--ted-red);
  box-shadow: 0 0 40px -10px var(--ted-red-glow);
  transform: scale(1.02);
}

.ticket-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.ticket-card .price-num {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
}

.ticket-features {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #d1d5db;
}

.ticket-features li svg {
  color: var(--ted-red);
  width: 14px;
  height: 14px;
  shrink: 0;
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}

.accordion-trigger {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion-body {
  display: none;
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--ted-red);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--ted-red);
}

/* Modal Overlay & Dialogs */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: #0a0b10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 34px;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #fff;
}

/* Digital Ticket View (Printable) */
.ticket-pass {
  background: linear-gradient(180deg, #1b0306 0%, #06070a 100%);
  border: 2px solid rgba(235, 0, 40, 0.5);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(235, 0, 40, 0.3);
}

.ticket-pass-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-pass-body {
  padding: 24px;
}

.ticket-perforated {
  display: flex;
  align-items: center;
  position: relative;
}

.ticket-perforated::before, .ticket-perforated::after {
  content: '';
  width: 18px;
  height: 18px;
  background: #0a0b10;
  border-radius: 50%;
  position: absolute;
}
.ticket-perforated::before { left: -9px; }
.ticket-perforated::after { right: -9px; }

.ticket-dash {
  flex: 1;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  margin: 0 14px;
}

.qr-box {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 10px;
}

/* Admin Dashboard Specifics */
.admin-modal {
  max-width: 900px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th, .admin-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: monospace;
}

/* Footer */
.footer {
  background: #030305;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Print CSS */
@media print {
  body * { visibility: hidden; }
  #printable-pass, #printable-pass * { visibility: visible; }
  #printable-pass {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .about-nile-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .reveal-layer { padding: 22px; }
  .toast-container { right: 12px; left: 12px; top: 16px; }
  .toast { min-width: auto; width: 100%; }
}

/* Custom Cinematic Toast System */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: rgba(10, 12, 18, 0.96);
  border: 1px solid rgba(235, 0, 40, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(235, 0, 40, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast.toast-success {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(34, 197, 94, 0.2);
}

.toast.toast-error {
  border-color: rgba(235, 0, 40, 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(235, 0, 40, 0.3);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.toast-error .toast-icon {
  background: rgba(235, 0, 40, 0.15);
  color: #EB0028;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.toast-close:hover {
  color: #fff;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--ted-red);
  width: 100%;
  animation: toastProgress 4s linear forwards;
}

.toast-success .toast-progress {
  background: #22c55e;
}

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

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}
