/* ==========================================================================
   SSC A+ Felicitation & Brand Collaboration Platform
   Theme: Royal Crimson, Festive Gold & Silk Ivory Luxury Aesthetics
   Typography: Hind Siliguri (Bengali UI), Noto Serif Bengali, Outfit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Royal Color Palette */
  --primary-ruby: #8B0029;
  --primary-crimson: #B31336;
  --primary-deep: #5A001A;
  
  --gold-primary: #D4AF37;
  --gold-light: #F6E27A;
  --gold-dark: #996515;
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --emerald: #065F46;
  --emerald-light: #10B981;
  
  --bg-ivory: #FCF9F2;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8F4EB;
  --bg-dark: #1A0D11;
  --bg-dark-card: #271419;

  --text-dark: #221216;
  --text-muted: #6B5B60;
  --text-light: #FDF9F5;
  --text-gold: #D4AF37;
  
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-light: rgba(139, 0, 41, 0.08);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(90, 0, 26, 0.05);
  --shadow-md: 0 8px 24px rgba(90, 0, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(90, 0, 26, 0.12);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
  
  /* Fonts */
  --font-bangla-sans: 'Hind Siliguri', sans-serif;
  --font-bangla-serif: 'Noto Serif Bengali', serif;
  --font-eng-sans: 'Outfit', sans-serif;
  --font-eng-serif: 'Playfair Display', serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-bangla-sans);
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Pattern Accent */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 0, 41, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Typography Helpers */
h1, h2, h3, h4, .serif-font {
  font-family: var(--font-bangla-serif);
  font-weight: 700;
  line-height: 1.3;
}

.eng-font {
  font-family: var(--font-eng-sans);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #5A001A 0%, #8B0029 50%, #5A001A 100%);
  color: var(--text-light);
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.announcement-badge {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: var(--primary-deep);
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary-ruby);
}

.logo-symbol {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-ruby), var(--primary-crimson));
  border: 2px solid var(--gold-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.5rem;
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-symbol {
  transform: rotate(-8deg) scale(1.05);
}

.logo-text-wrap h1 {
  font-size: 1.25rem;
  color: var(--primary-deep);
  margin-bottom: 0.1rem;
}

.logo-text-wrap span {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-crimson), var(--gold-primary));
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-ruby);
  cursor: pointer;
  padding: 0.5rem;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-bangla-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  line-height: 1.3;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-crimson) 0%, var(--primary-ruby) 100%);
  color: var(--text-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 18px rgba(179, 19, 54, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(179, 19, 54, 0.5);
  background: linear-gradient(135deg, #c71b40 0%, var(--primary-crimson) 100%);
}

.btn-gold {
  background: linear-gradient(135deg, #F9D976 0%, #D4AF37 50%, #B48811 100%);
  color: var(--primary-deep);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #FFDF88 0%, #E2BE46 50%, #C49821 100%);
}

.btn-outline {
  background: transparent;
  color: var(--primary-ruby);
  border: 1.5px solid var(--primary-crimson);
}

.btn-outline:hover {
  background: rgba(179, 19, 54, 0.06);
  transform: translateY(-2px);
}

.btn-admin {
  background: rgba(139, 0, 41, 0.05);
  color: var(--primary-deep);
  border: 1px dashed var(--gold-primary);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
}

.btn-admin:hover {
  background: var(--primary-deep);
  color: var(--gold-light);
  border-style: solid;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF6EE 50%, #F5EDE0 100%);
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}

.hero-ornament-left, .hero-ornament-right {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}

.hero-ornament-left {
  top: -50px;
  left: -80px;
  background: var(--primary-crimson);
}

.hero-ornament-right {
  bottom: -50px;
  right: -80px;
  background: var(--gold-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 0, 41, 0.08);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.hero-title {
  font-size: 3.2rem;
  color: var(--primary-deep);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-title .highlight-gold {
  background: linear-gradient(135deg, #B48811, #D4AF37, #996515);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Countdown Timer */
.countdown-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.countdown-title {
  font-size: 0.9rem;
  color: var(--primary-deep);
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.countdown-title span {
  color: var(--primary-crimson);
  font-size: 0.8rem;
  font-weight: 400;
}

.timer-units {
  display: flex;
  gap: 0.8rem;
}

.timer-unit {
  background: linear-gradient(135deg, var(--bg-dark), #2A1218);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 52px;
}

.timer-num {
  font-family: var(--font-eng-sans);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.timer-lbl {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Stats Pill Ticker */
.hero-stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-info strong {
  display: block;
  font-family: var(--font-eng-sans);
  font-size: 1.1rem;
  color: var(--primary-deep);
  line-height: 1.1;
}

.stat-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Visual & 3D Interactive Card */
.hero-visual-wrap {
  position: relative;
}

.royal-box-showcase {
  position: relative;
  background: linear-gradient(145deg, #2D141C, #18090D);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(212, 175, 55, 0.2);
  color: var(--text-light);
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s ease;
}

.royal-box-showcase:hover {
  transform: translateY(-6px);
}

.gold-sparkles-fx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.2) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.2) 0%, transparent 20%);
  pointer-events: none;
}

.box-hero-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-gold);
}

.box-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.royal-box-showcase:hover .box-hero-image {
  transform: scale(1.06);
}

.box-ribbon-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: var(--primary-deep);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.box-peek-badges {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.peek-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
}

.box-cta-hint {
  font-size: 0.95rem;
  color: #E2D3D8;
  margin-bottom: 1.2rem;
}

/* Floating Badges */
.floating-trophy-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background: #FFFFFF;
  border: 2px solid var(--gold-primary);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.floating-trophy-badge .trophy-icon {
  font-size: 1.8rem;
}

.floating-trophy-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-deep);
}

.floating-trophy-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
}

.section-title {
  font-size: 2.4rem;
  color: var(--primary-deep);
  margin-bottom: 0.8rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Mystery Box Section
   ========================================================================== */
.mystery-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #FAF5EE 0%, #FFFFFF 100%);
  position: relative;
}

.mystery-unboxing-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, #2D141C 0%, #1A090E 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  color: var(--text-light);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
}

.mystery-unboxing-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* 3D Mystery Box Animation Trigger */
.box-3d-stage {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mystery-box-cube {
  width: 220px;
  height: 220px;
  position: relative;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 2rem;
}

.mystery-box-cube:hover {
  transform: scale(1.08) rotate(3deg);
}

.box-lid {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #B31336, #8B0029);
  border: 2px solid var(--gold-light);
  border-radius: 12px 12px 0 0;
  position: relative;
  box-shadow: 0 -4px 15px rgba(212, 175, 55, 0.3);
  transition: transform 0.6s ease;
  z-index: 3;
}

.box-lid.opened {
  transform: translateY(-40px) rotate(-15deg);
}

.box-ribbon-cross {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
}

.box-bow {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.box-body-base {
  width: 100%;
  height: 160px;
  background: linear-gradient(180deg, #8B0029 0%, #5A001A 100%);
  border: 2px solid var(--gold-primary);
  border-top: none;
  border-radius: 0 0 12px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.box-body-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
}

.box-emblem {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #FFF4D0, var(--gold-primary));
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.unboxing-instruction {
  font-size: 0.95rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px dashed var(--gold-primary);
  transition: var(--transition-smooth);
}

.unboxing-instruction:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Revealed Items Grid */
.mystery-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mystery-item-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.mystery-item-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-light);
  transform: translateX(6px);
}

.item-thumb-wrap {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gold-primary);
  flex-shrink: 0;
}

.item-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-content-wrap {
  flex-grow: 1;
}

.item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.item-title-row h4 {
  font-size: 1.15rem;
  color: var(--gold-light);
}

.item-tag-pill {
  font-size: 0.72rem;
  background: rgba(212, 175, 55, 0.2);
  color: #FFF;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.item-desc {
  font-size: 0.88rem;
  color: #D6C2C8;
  line-height: 1.4;
}

/* ==========================================================================
   Brand Collaboration Showcase
   ========================================================================== */
.brands-section {
  padding: 5.5rem 0;
  background: var(--bg-ivory);
  position: relative;
}

.brand-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  color: var(--text-dark);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-bangla-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab.active, .filter-tab:hover {
  background: var(--primary-ruby);
  color: var(--text-light);
  border-color: var(--primary-ruby);
  box-shadow: 0 4px 15px rgba(139, 0, 41, 0.25);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.brand-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
}

.brand-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.brand-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.brand-card:hover .brand-image {
  transform: scale(1.08);
}

.brand-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26, 13, 17, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
}

.brand-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.brand-title-wrap {
  margin-bottom: 0.6rem;
}

.brand-body h3 {
  font-size: 1.3rem;
  color: var(--primary-deep);
}

.brand-eng-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-eng-sans);
  display: block;
}

.brand-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
  line-height: 1.5;
}

.brand-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-box {
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed var(--gold-primary);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-eng-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-deep);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.coupon-box:hover {
  background: var(--gold-light);
}

/* ==========================================================================
   Guidelines & Process Section
   ========================================================================== */
.guidelines-section {
  padding: 5.5rem 0;
  background: #FFFFFF;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.step-card {
  background: var(--bg-ivory);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-crimson);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-ruby);
  color: var(--gold-light);
  font-family: var(--font-eng-sans);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-primary);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.step-card h4 {
  font-size: 1.15rem;
  color: var(--primary-deep);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Terms Checklist Card */
.terms-checklist-card {
  background: linear-gradient(135deg, #FAF5EE 0%, #FFFFFF 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.terms-checklist-card h3 {
  color: var(--primary-deep);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.terms-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.terms-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.terms-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald-light);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ==========================================================================
   Call To Action Banner
   ========================================================================== */
.cta-banner-section {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #5A001A 0%, #8B0029 50%, #3D0012 100%);
  border-top: 2px solid var(--gold-primary);
  border-bottom: 2px solid var(--gold-primary);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.8rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.15rem;
  color: #F8EBEF;
  margin-bottom: 2.2rem;
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 7, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 35px rgba(212, 175, 55, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-ruby));
  color: var(--text-light);
  padding: 1.6rem 2rem;
  border-bottom: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--gold-light);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--primary-crimson);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.form-label .req {
  color: var(--primary-crimson);
}

.form-control {
  font-family: var(--font-bangla-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D8CFC4;
  border-radius: var(--radius-sm);
  background: #FFFDF9;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-crimson);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(179, 19, 54, 0.12);
}

.select-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='%238B0029' 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: right 1rem center;
  background-size: 1.2em;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* File Upload Dropzone */
.file-dropzone {
  border: 2px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background: rgba(212, 175, 55, 0.04);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.file-dropzone:hover {
  background: rgba(212, 175, 55, 0.1);
}

.file-dropzone-icon {
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.file-preview-wrap {
  margin-top: 0.8rem;
  display: none;
}

.file-preview-img {
  max-height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
}

/* Success Modal / Printable Card */
.success-card-content {
  text-align: center;
}

.congrats-trophy-anim {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.success-badge {
  background: var(--emerald);
  color: #FFF;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.printable-token-card {
  background: #FFFDF9;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 1.5rem 0;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.token-header {
  border-bottom: 1.5px dashed var(--gold-primary);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.token-header strong {
  color: var(--primary-deep);
  font-size: 1.1rem;
}

.token-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.token-field-label {
  color: var(--text-muted);
}

.token-field-value {
  color: var(--primary-deep);
  font-weight: 600;
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */
.admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 7, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.admin-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-window {
  background: #FDFBFA;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.admin-header {
  background: linear-gradient(135deg, var(--bg-dark), #2F1219);
  border-bottom: 1.5px solid var(--gold-primary);
  padding: 1.2rem 2rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-badge {
  background: var(--gold-primary);
  color: var(--primary-deep);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.admin-nav-tabs {
  display: flex;
  background: #200E13;
  padding: 0 2rem;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: #CDB9BF;
  font-family: var(--font-bangla-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.admin-tab-btn.active, .admin-tab-btn:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.04);
}

.admin-content-area {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
  background: #FAF6F0;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* Stats Cards in Admin */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 0, 41, 0.08);
  color: var(--primary-ruby);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.admin-stat-info strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-eng-sans);
  color: var(--primary-deep);
  line-height: 1.1;
}

.admin-stat-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Applicant Table */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #D8CFC4;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.8rem;
  width: 280px;
}

.search-input-wrap input {
  border: none;
  outline: none;
  font-family: var(--font-bangla-sans);
  width: 100%;
  font-size: 0.9rem;
}

.table-responsive {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: #F3ECE1;
  color: var(--primary-deep);
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-gold);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #EFEAE1;
  color: var(--text-dark);
}

.admin-table tr:hover {
  background: #FAF5EE;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-verified { background: #D1FAE5; color: #065F46; }
.status-dispatched { background: #DBEAFE; color: #1E40AF; }

.action-btns-group {
  display: flex;
  gap: 0.4rem;
}

.btn-mini {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}

/* Brand Manager Editor in Admin */
.admin-card-box {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.admin-card-box h3 {
  color: var(--primary-deep);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #EFEAE1;
  padding-bottom: 0.6rem;
}

.brands-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.brand-admin-item {
  border: 1px solid #E2D8CC;
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: #FDFCFB;
  display: flex;
  gap: 0.8rem;
}

.brand-admin-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
}

.brand-admin-details {
  flex-grow: 1;
}

.brand-admin-details h4 {
  font-size: 1rem;
  color: var(--primary-deep);
}

.brand-admin-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #D6C2C8;
  padding: 4.5rem 0 2rem;
  border-top: 2px solid var(--gold-primary);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #D6C2C8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Confetti Canvas Overlay */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   Top 40 Merit Awardees & 26 August Animated Countdown Section
   ========================================================================== */
.top40-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #1C0A0F 0%, #2A0F17 50%, #16070B 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--gold-primary);
  border-bottom: 2px solid var(--gold-primary);
}

.top40-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(179, 19, 54, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.top40-locked-box {
  background: rgba(43, 17, 24, 0.85);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(212, 175, 55, 0.2);
  position: relative;
  backdrop-filter: blur(12px);
}

.top40-lock-icon {
  font-size: 3.5rem;
  display: inline-block;
  margin-bottom: 1rem;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8)); }
}

.top40-title {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.top40-subtitle {
  color: #E2D3D8;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.top40-timer-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.top40-timer-card {
  background: linear-gradient(145deg, #18090D, #38121C);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.top40-timer-digit {
  font-family: var(--font-eng-sans);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.top40-timer-label {
  font-size: 0.8rem;
  color: #E2D3D8;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}

/* Roll Status Checker inside Top 40 */
.roll-checker-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  max-width: 620px;
  margin: 0 auto;
}

.roll-checker-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.roll-checker-input {
  flex-grow: 1;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gold-primary);
  background: #FFFFFF;
  color: var(--text-dark);
  font-family: var(--font-eng-sans);
  font-size: 1rem;
  outline: none;
}

.roll-checker-result {
  margin-top: 1rem;
  font-size: 0.95rem;
  display: none;
}

/* Top 40 Revealed Grid */
.top40-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.top40-student-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.top40-student-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.top40-rank-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.top40-student-name {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
  padding-right: 2.5rem;
}

.top40-student-school {
  font-size: 0.85rem;
  color: #D6C2C8;
  margin-bottom: 0.6rem;
}

.top40-meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--gold-light);
}

/* Live Applicant Pill in Navbar & Hero */
.live-counter-badge {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  animation: pulseGreen 2.5s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ==========================================================================
   Public 700+ Applicants Directory Section & Pagination
   ========================================================================== */
.directory-section {
  padding: 5.5rem 0;
  background: #FFFDF9;
  border-top: 1px solid var(--border-gold);
}

.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  background: #FAF5EE;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
}

.directory-search-input {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #D8CFC4;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.2rem;
  width: 320px;
  max-width: 100%;
}

.directory-search-input input {
  border: none;
  outline: none;
  font-family: var(--font-bangla-sans);
  font-size: 0.95rem;
  width: 100%;
  margin-left: 0.5rem;
}

.directory-table-wrap {
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.directory-table th {
  background: #F4EDE2;
  color: var(--primary-deep);
  font-weight: 700;
  padding: 1rem 1.2rem;
  border-bottom: 1.5px solid var(--border-gold);
  white-space: nowrap;
}

.directory-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #F1ECE3;
  color: var(--text-dark);
}

.directory-table tr:hover {
  background: #FAF6EF;
}

.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-btn-group {
  display: flex;
  gap: 0.4rem;
}

.page-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  color: var(--primary-deep);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-eng-sans);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-btn.active, .page-btn:hover {
  background: var(--primary-ruby);
  color: #FFFFFF;
  border-color: var(--primary-ruby);
}

/* ==========================================================================
   Responsive Overrides (Cascading at the bottom of stylesheet)
   ========================================================================== */

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .mystery-unboxing-container {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.8rem;
  }
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top40-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }
  .announcement-bar {
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
  }
  .announcement-inner {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
  .nav-container {
    height: 70px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 1.5rem 1.8rem;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-lg);
    gap: 1.2rem;
    z-index: 1001;
  }
  .nav-links.mobile-active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(139, 0, 41, 0.06);
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
    padding: 0.8rem 1.2rem;
    font-size: 0.98rem;
  }
  .countdown-box {
    padding: 1.2rem 1rem;
    border-radius: var(--radius-md);
  }
  .timer-units {
    gap: 0.5rem;
  }
  .timer-unit {
    padding: 0.6rem 0.4rem;
  }
  .timer-num {
    font-size: 1.4rem;
  }
  .timer-lbl {
    font-size: 0.75rem;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .stat-chip {
    padding: 0.6rem 0.4rem;
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
  .stat-icon {
    font-size: 1.3rem;
  }
  .stat-info strong {
    font-size: 0.95rem;
  }
  .stat-info span {
    font-size: 0.72rem;
  }
  .top40-title {
    font-size: 1.65rem;
  }
  .top40-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
  }
  .top40-timer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  .top40-timer-card {
    min-width: unset;
    padding: 0.7rem 0.4rem;
  }
  .top40-timer-digit {
    font-size: 1.6rem;
  }
  .top40-timer-label {
    font-size: 0.72rem;
  }
  .roll-checker-form {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }
  .roll-checker-input {
    width: 100%;
    font-size: 0.95rem;
  }
  .roll-checker-form .btn {
    width: 100%;
  }
  .top40-grid {
    grid-template-columns: 1fr;
  }
  .directory-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1rem;
  }
  .directory-search-input {
    width: 100%;
  }
  #dirBoardFilter {
    width: 100%;
  }
  .pagination-controls {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
  }
  .page-btn-group {
    flex-wrap: wrap;
    justify-content: center;
  }
  .brand-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .filter-tab {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }
  .brands-grid {
    grid-template-columns: 1fr;
  }
  .brand-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .brand-footer .coupon-box {
    text-align: center;
  }
  .brand-footer .btn-outline {
    text-align: center;
    width: 100%;
  }
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
  .terms-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .modal-card {
    max-width: 95vw;
    margin: 1rem auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
}

/* Standard & Small Mobile Devices (<= 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 0.9rem;
  }
  .brand-logo .logo-symbol {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .brand-logo h1 {
    font-size: 1.1rem;
  }
  .brand-logo span {
    display: none;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .live-counter-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }
  .nav-actions .open-apply-btn {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }
  .hero-section {
    padding: 3rem 0;
  }
  .hero-badge-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    max-width: 100%;
    line-height: 1.4;
    white-space: normal;
  }
  .hero-title {
    font-size: 1.65rem;
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .timer-units {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }
  .timer-unit {
    padding: 0.4rem 0.2rem;
  }
  .timer-num {
    font-size: 1.25rem;
  }
  .timer-lbl {
    font-size: 0.68rem;
  }
  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }
  .stat-chip {
    padding: 0.4rem 0.2rem;
  }
  .stat-icon {
    font-size: 1.1rem;
  }
  .stat-info strong {
    font-size: 0.85rem;
  }
  .stat-info span {
    font-size: 0.65rem;
  }
  .floating-trophy-badge {
    position: static;
    margin-bottom: 1rem;
    width: 100%;
    justify-content: center;
  }
  .royal-box-showcase {
    padding: 1.2rem 0.9rem;
  }
  .box-hero-image-wrap {
    height: 200px;
  }
  .box-peek-badges {
    justify-content: center;
    gap: 0.3rem;
  }
  .peek-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
  }
  .top40-section {
    padding: 3.5rem 0;
  }
  .top40-locked-box {
    padding: 1.8rem 0.85rem;
  }
  .top40-lock-icon {
    font-size: 2.6rem;
  }
  .top40-title {
    font-size: 1.35rem;
  }
  .top40-subtitle {
    font-size: 0.85rem;
  }
  .top40-timer-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }
  .top40-timer-card {
    padding: 0.5rem 0.2rem;
  }
  .top40-timer-digit {
    font-size: 1.35rem;
  }
  .top40-timer-label {
    font-size: 0.65rem;
  }
  .roll-checker-box {
    padding: 1rem 0.8rem;
  }
  .directory-section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .section-desc {
    font-size: 0.85rem;
  }
  .directory-table th, .directory-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
  }
  .page-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
  }
  .mystery-section {
    padding: 3.5rem 0;
  }
  .mystery-unboxing-container {
    padding: 1.5rem 0.8rem;
  }
  .mystery-box-cube {
    width: 150px;
    height: 170px;
  }
  .box-body-base {
    height: 120px;
  }
  .mystery-item-card {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  .item-thumb-wrap {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }
  .item-thumb-wrap img {
    width: 50px;
    height: 50px;
  }
  .item-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .item-title-row h4 {
    font-size: 0.95rem;
  }
  .item-tag-pill {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }
  .item-desc {
    font-size: 0.8rem;
  }
  .brands-section {
    padding: 3.5rem 0;
  }
  .guidelines-section {
    padding: 3.5rem 0;
  }
  .step-card {
    padding: 1.2rem 0.9rem;
  }
  .terms-checklist-card {
    padding: 1.2rem 0.9rem;
  }
  .terms-list li {
    font-size: 0.82rem;
  }
  .cta-banner-section {
    padding: 3.5rem 0.9rem;
  }
  .cta-banner-section h2 {
    font-size: 1.45rem;
  }
  .cta-banner-section p {
    font-size: 0.88rem;
  }
  .modal-card {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 12px;
    max-height: 95vh;
  }
  .modal-header {
    padding: 0.85rem 1rem;
  }
  .modal-header h3 {
    font-size: 1rem;
  }
  .modal-body {
    padding: 1rem 0.85rem;
  }
  .form-control {
    font-size: 16px; /* Prevents auto-zoom in mobile browsers */
    padding: 0.65rem 0.85rem;
  }
  .printable-token-card {
    padding: 0.9rem;
  }
  .token-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .token-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .admin-window {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .admin-header {
    padding: 0.8rem 1rem;
  }
  .admin-nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.5rem 0.8rem;
    -webkit-overflow-scrolling: touch;
  }
  .admin-tab-btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .admin-stat-card {
    padding: 0.8rem;
  }
  .admin-stat-info strong {
    font-size: 1.3rem;
  }
  .admin-stat-info span {
    font-size: 0.72rem;
  }
}

/* Extra Small Screens (<= 380px) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.45rem;
  }
  .timer-num {
    font-size: 1.1rem;
  }
  .top40-timer-digit {
    font-size: 1.15rem;
  }
  .btn {
    font-size: 0.88rem;
    padding: 0.65rem 0.9rem;
  }
}
