/**
 * CU 26th Batch Reunion Modern Theme
 * Clean, Professional, Bulletproof Responsive Visuals
 */

:root {
  --cu-navy-950: #040d1a;
  --cu-navy-900: #07192e;
  --cu-navy-800: #0b2545;
  --cu-navy-700: #133a68;
  --cu-navy-600: #1a4d8c;
  --cu-gold: #d98218;
  --cu-gold-hover: #b86b09;
  --cu-gold-light: #fef7ed;
  --cu-crimson: #94101d;
  --cu-green: #0f7648;
  --cu-green-light: #e6f7ef;
  --cu-bg: #f8fafc;
  --cu-card: #ffffff;
  --cu-border: #e2e8f0;
  --cu-text-main: #0f172a;
  --cu-text-muted: #64748b;
  --cu-radius: 14px;
  --cu-radius-pill: 50px;
  --cu-shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.05);
  --cu-shadow: 0 8px 24px -4px rgba(11, 37, 69, 0.08), 0 2px 6px -1px rgba(11, 37, 69, 0.03);
  --cu-shadow-lg: 0 20px 48px -8px rgba(11, 37, 69, 0.14), 0 4px 12px -2px rgba(11, 37, 69, 0.04);
}

body {
  font-family: 'Noto Sans Bengali', 'Anek Bangla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--cu-text-main);
  background-color: var(--cu-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography Helpers - Never apply negative letter-spacing to Bengali scripts */
.font-festive {
  font-family: 'Li Alinur Prottyoee Unicode', 'Noto Sans Bengali', 'Anek Bangla', sans-serif;
}
.font-display {
  font-family: 'Noto Sans Bengali', 'Anek Bangla', sans-serif;
  font-weight: 700;
  letter-spacing: normal !important;
}

/* Header */
.cu-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.25s ease;
  z-index: 1040;
}

.cu-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
@media (min-width: 768px) {
  .cu-logo-img {
    height: 48px;
  }
}

/* ==========================================================================
   Modern Split Hero Section
   ========================================================================== */
.cu-hero {
  position: relative;
  background: radial-gradient(120% 120% at 85% 15%, #0f3460 0%, var(--cu-navy-950) 65%);
  color: #ffffff;
  padding-top: calc(65px + 2rem);
  padding-bottom: 3rem;
  overflow: hidden;
}

@media (min-width: 992px) {
  .cu-hero {
    padding-top: calc(75px + 3rem);
    padding-bottom: 4rem;
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
  }
}

.cu-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(217, 130, 24, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(19, 58, 104, 0.35) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px;
  pointer-events: none;
}

/* Left Column Styling */
.cu-hero-left {
  position: relative;
  z-index: 2;
  text-align: left;
}

@media (max-width: 991.98px) {
  .cu-hero-left {
    text-align: center;
    margin-bottom: 2.25rem;
  }
  .cu-event-meta {
    justify-content: center;
  }
  .cu-hero-actions {
    justify-content: center;
  }
}

.cu-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fed7aa;
  padding: 0.4rem 1.25rem;
  border-radius: var(--cu-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cu-hero-slogan {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: #fed7aa;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cu-hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: 0 !important;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.cu-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.cu-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 0.45rem 1.1rem;
  border-radius: var(--cu-radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.cu-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Right Column: Glass Showcase Pass */
.cu-glass-pass {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

.cu-pass-logo {
  max-height: 85px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}

.cu-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 0.3rem 0.9rem;
  border-radius: var(--cu-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}

.cu-pass-timer-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fef08a;
  margin-bottom: 0.85rem;
}

/* 4 Countdown Tiles */
.cu-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.cu-tile-item {
  background: rgba(4, 13, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.75rem 0.35rem;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cu-tile-item:hover {
  border-color: rgba(217, 130, 24, 0.5);
  transform: translateY(-2px);
}

.cu-tile-val {
  display: block;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  font-feature-settings: "tnum";
}

.cu-tile-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.cu-pass-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Professional Countdown Cards (Legacy fallback) */
.cu-countdown-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  height: 100%;
}
.cu-countdown-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.cu-countdown-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.cu-countdown-digits {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
}

/* Action Buttons */
.cu-btn-primary {
  background: linear-gradient(135deg, #d98218 0%, #b86504 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--cu-radius-pill);
  border: none;
  box-shadow: 0 4px 18px rgba(217, 130, 24, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 48px;
}
.cu-btn-primary:hover {
  background: linear-gradient(135deg, #e5932a 0%, #c47209 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 130, 24, 0.55);
}

.cu-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: var(--cu-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 48px;
}
.cu-btn-outline:hover {
  background: #ffffff;
  color: var(--cu-navy-900) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

@media (max-width: 575px) {
  .cu-btn-primary, .cu-btn-outline {
    width: 100%;
  }
}

/* Card Styles */
.cu-card {
  background: var(--cu-card);
  border-radius: var(--cu-radius);
  border: 1px solid var(--cu-border);
  box-shadow: var(--cu-shadow);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cu-card:hover {
  box-shadow: var(--cu-shadow-lg);
}

/* Fee Tier Cards */
.cu-fee-card {
  background: #ffffff;
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius);
  padding: 1.5rem 1.15rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cu-fee-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.cu-fee-card.accent-alumni::before { background: #d98218; }
.cu-fee-card.accent-spouse::before { background: #0f7648; }
.cu-fee-card.accent-child::before { background: #0284c7; }
.cu-fee-card.accent-driver::before { background: #7c3aed; }

.cu-fee-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cu-shadow);
  border-color: #cbd5e1;
}
.cu-fee-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cu-navy-900);
}
.cu-fee-rate {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--cu-crimson);
  margin: 0.4rem 0;
}
.cu-fee-rate small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cu-text-muted);
}

/* Form Controls */
.cu-form-label {
  font-weight: 600;
  color: var(--cu-navy-900);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.cu-form-label .req {
  color: var(--cu-crimson);
  font-weight: bold;
}

.cu-input, .form-control.cu-input, select.cu-input {
  border: 1.5px solid var(--cu-border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  color: var(--cu-text-main);
  background-color: #ffffff;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cu-input:focus, .form-control.cu-input:focus, select.cu-input:focus {
  border-color: var(--cu-navy-700);
  box-shadow: 0 0 0 3px rgba(19, 58, 104, 0.12);
  outline: none;
}

input.cu-input:user-invalid,
select.cu-input:user-invalid,
textarea.cu-input:user-invalid {
  border-color: #d93025;
  background-color: #fff8f7;
}

input.cu-input:user-valid:not(:placeholder-shown) {
  border-color: var(--cu-green);
}

/* Stepper Cards */
.cu-stepper-box {
  background: #f8fafc;
  border: 1.5px solid var(--cu-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 100%;
}
.cu-stepper-label {
  font-weight: 700;
  color: var(--cu-navy-900);
  font-size: 0.95rem;
  line-height: 1.2;
}
.cu-stepper-sub {
  font-size: 0.82rem;
  color: var(--cu-text-muted);
  font-weight: 600;
}

/* Photo Dropzone */
.cu-avatar-dropzone {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px dashed #94a3b8;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--cu-shadow-sm);
}
.cu-avatar-dropzone:hover {
  border-color: var(--cu-navy-800);
  transform: scale(1.02);
  box-shadow: var(--cu-shadow);
}
.cu-avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cu-avatar-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(7, 25, 46, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  text-align: center;
  padding: 0.35rem 0.2rem;
  font-weight: 600;
}

/* Verification Search Switch Tabs */
.cu-nav-pills {
  display: inline-flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--cu-radius-pill);
  max-width: 100%;
}
.cu-nav-pill-btn {
  border: none;
  background: transparent;
  padding: 0.55rem 1.25rem;
  border-radius: var(--cu-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cu-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  white-space: nowrap;
}
.cu-nav-pill-btn.active {
  background: #ffffff;
  color: var(--cu-navy-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
@media (max-width: 480px) {
  .cu-nav-pill-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* Badges */
.cu-badge-paid {
  background-color: var(--cu-green-light);
  color: var(--cu-green);
  border: 1px solid rgba(15, 118, 72, 0.25);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--cu-radius-pill);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cu-badge-pending {
  background-color: var(--cu-gold-light);
  color: var(--cu-gold-hover);
  border: 1px solid rgba(217, 130, 24, 0.25);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--cu-radius-pill);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Mobile Sticky Summary Bar */
.cu-sticky-summary {
  position: sticky;
  bottom: 0;
  z-index: 1020;
  background: rgba(7, 25, 46, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1rem;
}
