/* ============================================
   PAGES CSS — Page-specific styles
   ============================================ */

/* ============ LANDING: HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(6, 182, 212, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(8, 145, 178, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: glow-pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem); /* Bolder, massive headings */
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 64px;
  margin-bottom: 40px; /* Spacing from next section */
  animation: fadeUp 0.6s 0.4s ease both;
  flex-wrap: wrap;
}

.hero-stat {
  flex: 1;
  min-width: 160px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat p {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 600px;
  z-index: 0;
  pointer-events: none;
}

.hero-card-float {
  position: absolute;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--shadow-card);
}

.hero-card-float:nth-child(2) {
  animation-delay: 1s;
}

.hero-card-float:nth-child(3) {
  animation-delay: 2s;
}

@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* ============ FEATURED PACKAGES ============ */
.packages-section {
  padding: 100px 0;
  position: relative;
}

.packages-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

/* ============ BUILDER PAGE ============ */
.builder-layout {
  padding-top: 100px;
  min-height: 100vh;
}

.builder-header {
  text-align: center;
  padding: 60px 0 40px;
}

.builder-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.builder-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.builder-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
}

.builder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 50px; /* Generous padding */
}

.builder-step {
  display: none;
}

.builder-step.active {
  display: block;
  animation: scale-in 0.4s ease;
}

.builder-step h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.builder-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.event-type-card {
  padding: 28px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
}

.event-type-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.event-type-card.selected {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.07);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.event-type-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.event-type-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-type-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.slider-value-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.slider-current {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slider-range {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.addons-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.builder-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Live Price Panel */
.live-price-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.live-price-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.live-price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-display);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  line-height: 1;
}

.live-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.price-line-label {
  color: var(--text-secondary);
}

.price-line-value {
  font-weight: 600;
}

@media (max-width: 900px) {
  .builder-container {
    grid-template-columns: 1fr;
  }

  .live-price-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .event-type-grid {
    grid-template-columns: 1fr;
  }

  .builder-card {
    padding: 24px;
  }
}

/* ============ CHECKOUT PAGE ============ */
.checkout-layout {
  padding-top: 120px;
  padding-bottom: 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.checkout-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 50px;
}

.checkout-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.section-title-sm {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 28px 0 16px;
}

.upi-input-wrapper {
  position: relative;
}

.upi-input-wrapper .form-input {
  padding-right: 100px;
}

.upi-verify-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 16px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.upi-verify-btn:hover {
  opacity: 0.85;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  margin-top: 12px;
}

.qr-placeholder {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.qr-app-links {
  display: flex;
  gap: 10px;
}

.qr-app-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: background 0.2s;
}

.qr-app-btn:hover {
  background: #e2e8f0;
}

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

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

  .checkout-form-card {
    padding: 24px;
  }
}

/* ============ SUCCESS PAGE ============ */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  position: relative;
}

.success-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(16, 185, 129, 0.15), transparent 70%);
}

.success-card {
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  max-width: 540px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: scale-in 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.1), var(--shadow-card);
}

.success-icon-wrapper {
  width: 100px;
  height: 100px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  animation: glow-pulse 2s ease-in-out infinite;
}

.success-checkmark {
  width: 50px;
  height: 50px;
}

.success-check-circle {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: checkmark 0.5s 0.4s ease forwards;
}

.success-check-path {
  stroke: var(--green);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmark 0.4s 0.7s ease forwards;
}

.success-card h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.booking-id-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: monospace;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.booking-id-copy {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.booking-id-copy:hover {
  background: rgba(6, 182, 212, 0.1);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ============ BOOKINGS PAGE ============ */
.bookings-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.bookings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.bookings-header h1 {
  font-size: 2rem;
}

.tab-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 32px;
  width: fit-content;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient);
  color: white;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ============ ADMIN PAGE ============ */
.admin-header {
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 1.8rem;
}

.admin-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-table-header h3 {
  font-size: 1rem;
}

.admin-table-wrapper {
  overflow-x: auto;
}

/* ============ RAZORPAY MODAL ============ */
.razorpay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.razorpay-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.razorpay-modal {
  background: #1e293b;
  border-radius: 20px;
  width: 100%;
  max-width: 450px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.razorpay-overlay.open .razorpay-modal {
  transform: scale(1);
}

.razorpay-header {
  background: linear-gradient(135deg, #072654, #0f3d8a);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.razorpay-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.razorpay-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
}

.razorpay-logo-icon {
  width: 36px;
  height: 36px;
  background: #3395ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.razorpay-amount {
  text-align: right;
}

.razorpay-amount-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.razorpay-amount-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.razorpay-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s;
}

.razorpay-close:hover {
  color: white;
}

.razorpay-body {
  padding: 24px;
}

.razorpay-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.razorpay-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.razorpay-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.razorpay-tab-panel {
  display: none;
}

.razorpay-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.razorpay-upi-submit {
  width: 100%;
  padding: 16px;
  background: #3395ff;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s;
}

.razorpay-upi-submit:hover {
  background: #2276e0;
  transform: translateY(-1px);
}

.processing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 20px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.processing-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(51, 149, 255, 0.2);
  border-top-color: #3395ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}