/**
 * Created by 11Hopem
 * Contact: umutocgdr@gmail.com
 *
 * Copyright (c) 2026 11hopem. All rights reserved.
 * Licensed under proprietary software license terms.
 * Any unauthorized reproduction, transfer, or distribution is strictly prohibited.
 */

:root {
  --bg-dark: #0e030b;
  --bg-gradient: radial-gradient(circle at 50% 15%, #2a091d 0%, #150410 60%, #080106 100%);
  --gold-primary: #f6d365;
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-border: rgba(246, 211, 101, 0.3);
  --ruby-dark: #7b0d18;
  --ruby-gradient: linear-gradient(135deg, #a71d2a 0%, #5c0710 100%);
  --text-main: #fdfaf6;
  --text-muted: #d6bacb;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(246, 211, 101, 0.2);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-royal: 'Cinzel', serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --radius-lg: 18px;
  --radius-md: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

#goldCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 3, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246, 211, 101, 0.15);
  padding: 14px 0;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(246, 211, 101, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-royal);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.btn-designer {
  background: rgba(246, 211, 101, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  padding: 7px 16px;
  border-radius: 20px;
}

.btn-designer:hover {
  background: var(--gold-gradient);
  color: #1a0815;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
}

/* Guest Personalized Welcome Banner */
.guest-welcome-banner {
  background: linear-gradient(90deg, #6b0c16 0%, #9e1a2c 50%, #6b0c16 100%);
  border-bottom: 1px solid var(--gold-primary);
  padding: 12px 0;
  text-align: center;
  position: relative;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-icon {
  font-size: 1.4rem;
}

.banner-text {
  font-size: 1.05rem;
  color: #fff;
}

.banner-cta {
  background: var(--gold-gradient);
  color: #1a0815;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: 8px;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 50px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.royal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(246, 211, 101, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-gold-glow {
  background: var(--gold-gradient);
  color: #1a0815;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(179, 135, 40, 0.5);
  transition: var(--transition);
}

.btn-gold-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(246, 211, 101, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* Interactive Envelope */
.envelope-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
}

.envelope-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 460px;
}

.envelope-card {
  position: relative;
  background: #23081a;
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(246, 211, 101, 0.2);
  overflow: hidden;
  transition: var(--transition);
}

.envelope-front {
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 5;
  transition: opacity 0.5s ease;
}

.envelope-hint {
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-top: 70px;
}

.wax-seal {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: var(--ruby-gradient);
  border: 3px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(155, 17, 30, 0.8);
  transition: var(--transition);
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 30px rgba(246, 211, 101, 0.7);
}

.seal-inner {
  font-size: 1.8rem;
}

.seal-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  animation: sealPulse 2s infinite;
}

@keyframes sealPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.envelope-card.opened .envelope-front {
  display: none;
}

.envelope-card.opened .wax-seal {
  display: none;
}

/* Invitation Letter Card Inside Envelope */
.invitation-letter {
  display: none;
  padding: 26px;
  background: #170512;
  border-radius: 8px;
  animation: letterRise 0.6s ease-out forwards;
}

.envelope-card.opened .invitation-letter {
  display: block;
}

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

.letter-border {
  border: 1px solid rgba(246, 211, 101, 0.35);
  padding: 28px 22px;
  text-align: center;
  border-radius: 6px;
  background: radial-gradient(circle at center, rgba(37, 9, 24, 0.9) 0%, rgba(18, 4, 13, 0.95) 100%);
  position: relative;
}

.letter-top-ornament {
  display: block;
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.letter-header-tag {
  font-family: var(--font-royal);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.letter-couple {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 12px 0 16px;
}

.cursive-amp {
  font-family: var(--font-cursive);
  font-size: 1.3em;
  color: var(--gold-primary);
  padding: 0 4px;
}

.letter-msg {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.letter-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px dashed rgba(246, 211, 101, 0.25);
  border-bottom: 1px dashed rgba(246, 211, 101, 0.25);
  padding: 16px 0;
  margin-bottom: 22px;
}

.detail-block {
  text-align: center;
}

.detail-label {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.detail-val {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.detail-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.letter-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-letter-rsvp,
.btn-letter-taki {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-letter-rsvp {
  background: var(--gold-gradient);
  color: #1a0815;
}

.btn-letter-taki {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--gold-border);
}

/* Countdown Strip */
.countdown-strip {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(246, 211, 101, 0.15);
  border-bottom: 1px solid rgba(246, 211, 101, 0.15);
  padding: 24px 0;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.countdown-title {
  font-family: var(--font-royal);
  font-size: 1rem;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

.timer-boxes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(26, 8, 21, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 6px 14px;
  min-width: 58px;
}

.timer-box span {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.timer-box small {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin-top: 4px;
}

.timer-colon {
  font-size: 1.4rem;
  color: var(--gold-primary);
  font-weight: 700;
}

/* Common Section */
.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 46px;
}

.gold-subtitle {
  font-family: var(--font-royal);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--gold-primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Vault Stats */
.vault-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-color: rgba(246, 211, 101, 0.25);
}

.stat-icon {
  font-size: 2.4rem;
}

.stat-val {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

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

/* Takı Catalog */
.taki-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.taki-card {
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(246, 211, 101, 0.2);
}

.taki-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 14px 34px rgba(246, 211, 101, 0.25);
}

.taki-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(246, 211, 101, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.taki-card-icon {
  font-size: 3rem;
  margin: 12px 0 14px;
  display: block;
}

.taki-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.taki-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.btn-taki-select {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--gold-primary);
  background: rgba(246, 211, 101, 0.1);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.taki-card:hover .btn-taki-select {
  background: var(--gold-gradient);
  color: #1a0815;
}

/* IBAN Box */
.iban-card {
  padding: 28px 32px;
  margin-bottom: 40px;
  border-color: rgba(246, 211, 101, 0.3);
  background: radial-gradient(circle at center, rgba(37, 9, 24, 0.8) 0%, rgba(14, 3, 11, 0.9) 100%);
}

.iban-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.iban-badge {
  background: var(--ruby-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.iban-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.iban-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(246, 211, 101, 0.25);
  margin-bottom: 12px;
}

.iban-text {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: #fff;
  flex: 1;
}

.btn-copy-iban {
  background: var(--gold-gradient);
  color: #1a0815;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.iban-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Recent Gifts Stream */
.recent-gifts-wrap {
  margin-top: 30px;
}

.recent-gifts-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.gifts-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stream-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-left: 3px solid var(--gold-primary);
}

.stream-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stream-gift-icon {
  font-size: 1.8rem;
}

.stream-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.stream-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.stream-amount {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-primary);
}

/* RSVP Layout */
.rsvp-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.rsvp-form-card,
.rsvp-stats-card {
  padding: 34px 30px;
}

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

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(246, 211, 101, 0.3);
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.radio-card {
  cursor: pointer;
}

.radio-card input {
  display: none;
}

.radio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.radio-card input:checked + .radio-content {
  border-color: var(--gold-primary);
  background: rgba(246, 211, 101, 0.12);
  box-shadow: 0 0 16px rgba(246, 211, 101, 0.2);
}

.radio-emoji {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.radio-content strong {
  font-size: 0.95rem;
  color: #fff;
}

.radio-content small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-half {
  flex: 1;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* RSVP Summary Stats */
.summary-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.rsvp-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.summary-stat-box {
  padding: 16px 10px;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
}

.box-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}

.stat-attending .box-number { color: #5cdb95; }
.stat-declined .box-number { color: #ff6b6b; }
.stat-total-guests .box-number { color: var(--gold-primary); }

.box-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.attendee-list-wrap h4 {
  font-size: 0.95rem;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.attendee-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.attendee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 0.88rem;
}

.attendee-status-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-attending {
  background: rgba(92, 219, 149, 0.15);
  color: #5cdb95;
}

.status-declined {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

/* Share Section */
.share-box {
  padding: 36px 30px;
  max-width: 820px;
  margin: 0 auto;
}

.share-input-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.btn-action {
  height: 48px;
  padding: 0 24px;
  white-space: nowrap;
}

.generated-link-box {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--glass-border);
}

.link-display {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.link-input {
  font-family: monospace;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-preview-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* Designer Section */
.designer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: flex-start;
}

.designer-controls {
  padding: 32px 28px;
}

.designer-controls h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.template-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.template-btn {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: left;
}

.template-btn.active {
  border-color: var(--gold-primary);
  background: rgba(246, 211, 101, 0.15);
  box-shadow: 0 0 12px rgba(246, 211, 101, 0.2);
}

.designer-preview-wrap {
  position: sticky;
  top: 90px;
}

.preview-badge {
  text-align: center;
  font-family: var(--font-royal);
  font-size: 0.85rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.designer-preview-card {
  padding: 34px 28px;
  border-radius: 14px;
  border: 2px solid var(--gold-primary);
  background: #170512;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.preview-card-inner {
  text-align: center;
  border: 1px solid rgba(246, 211, 101, 0.3);
  padding: 28px 20px;
  border-radius: 8px;
}

.preview-tag {
  font-family: var(--font-royal);
  font-size: 0.82rem;
  color: var(--gold-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.preview-couple {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 12px 0 14px;
}

.preview-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.preview-divider {
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.preview-date-block {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.preview-venue-block {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 2, 8, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  max-width: 480px;
  width: 100%;
  padding: 34px 28px;
  position: relative;
  border-color: var(--gold-primary);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-item-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.modal-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-top: 4px;
}

.checkbox-group {
  margin: 14px 0;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.payment-method-box {
  margin-bottom: 22px;
}

.pay-title {
  display: block;
  font-size: 0.82rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pay-chips {
  display: flex;
  gap: 10px;
}

.pay-chip {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.pay-chip.active {
  border-color: var(--gold-primary);
  background: rgba(246, 211, 101, 0.12);
  color: var(--gold-primary);
}

/* Toast */
.toast-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(26, 8, 21, 0.95);
  border: 2px solid var(--gold-primary);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  font-size: 0.95rem;
  animation: toastSlide 0.4s ease-out;
}

.toast-message.hidden {
  display: none;
}

@keyframes toastSlide {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
  padding: 60px 0 36px;
  background: rgba(10, 2, 8, 0.9);
  border-top: 1px solid rgba(246, 211, 101, 0.15);
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.footer-title {
  font-family: var(--font-royal);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--gold-primary);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .attribution {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* --- Enterprise Security & Login System Styles --- */
.btn-login-nav {
  background: rgba(246, 211, 101, 0.12);
  border: 1px solid rgba(246, 211, 101, 0.4);
  color: var(--gold-primary) !important;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-login-nav:hover {
  background: var(--gold-gradient);
  color: #1a0815 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(246, 211, 101, 0.3);
}

.btn-admin-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(191, 149, 63, 0.1));
  border: 1px solid #bf953f;
  color: #fcf6ba !important;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-badge:hover {
  background: var(--gold-gradient);
  color: #1a0815 !important;
}

.btn-logout-nav {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5 !important;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout-nav:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff !important;
}

/* Login Modal Card */
.login-modal-card {
  max-width: 440px;
  width: 92%;
  border: 1px solid rgba(246, 211, 101, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 25px rgba(246, 211, 101, 0.2);
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.security-alert-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  text-align: left;
}

.security-alert-box.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.8;
}

.form-input.with-icon {
  padding-left: 38px;
  padding-right: 38px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px;
}

.password-toggle-btn:hover {
  opacity: 1;
}

/* Visual CAPTCHA Components */
.captcha-group {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(246, 211, 101, 0.3);
  padding: 12px;
  border-radius: 10px;
}

.captcha-render-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.captcha-canvas {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background: #000;
}

.captcha-refresh-btn {
  background: rgba(246, 211, 101, 0.15);
  border: 1px solid rgba(246, 211, 101, 0.4);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-refresh-btn:hover {
  background: rgba(246, 211, 101, 0.35);
  transform: rotate(180deg);
}

.captcha-input {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  text-align: center;
  font-size: 1.1rem;
}

.captcha-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.login-credentials-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(246, 211, 101, 0.08);
  border: 1px solid rgba(246, 211, 101, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hint-badge {
  background: rgba(246, 211, 101, 0.2);
  color: var(--gold-primary);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Admin Dashboard Modal Card */
.admin-dashboard-card {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(246, 211, 101, 0.4);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(246, 211, 101, 0.2);
  padding-bottom: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.admin-crown-badge {
  font-size: 2rem;
}

.admin-user-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.btn-admin-action {
  background: rgba(246, 211, 101, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-action:hover {
  background: var(--gold-gradient);
  color: #1a0815;
}

.btn-admin-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-logout:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  color: #fff;
}

.admin-tab-btn.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

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

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

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

.admin-stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(246, 211, 101, 0.2);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.admin-stat-card .stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.admin-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

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

.admin-table th {
  background: rgba(246, 211, 101, 0.08);
  color: var(--gold-primary);
  padding: 10px 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.badge-private {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-public {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.audit-level-info {
  color: #93c5fd;
  font-weight: 600;
}

.audit-level-warn {
  color: #fcd34d;
  font-weight: 600;
}

.audit-level-critical {
  color: #f87171;
  font-weight: 700;
}

.audit-intro {
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-layout,
  .rsvp-layout,
  .designer-grid {
    grid-template-columns: 1fr;
  }
  .vault-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats-summary {
    grid-template-columns: 1fr;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

