:root {
  --color-gold-50: #FFF9EB;
  --color-gold-100: #FDF4DE;
  --color-gold-200: #F5E6C4;
  --color-gold-300: #DFBA73;
  --color-gold-400: #C59B27;
  --color-gold-500: #9E7815;
  --color-gold-600: #806110;
  --color-gold-700: #624A0C;
  
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;

  --color-bg: #F5ECE8;
  --color-frame-bg: rgba(255, 253, 251, 0.75);

  --font-sans: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Merriweather', serif;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-stone-800);
  font-family: var(--font-sans);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 4rem;
}

/* Background Sparkles */
.bg-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(var(--color-gold-400) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: rgba(245, 236, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(223, 186, 115, 0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-gold-700);
  text-transform: uppercase;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  background-color: rgba(197, 155, 39, 0.1);
  border: 1px solid rgba(197, 155, 39, 0.2);
  border-radius: 9999px;
  padding: 2px;
}

.lang-switch button {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--color-gold-800);
  cursor: pointer;
  transition: all 0.3s;
}

.lang-switch button.active {
  background-color: var(--color-gold-500);
  color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Main Container */
main {
  max-w-md: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
  position: relative;
  max-width: 450px;
}

.luxury-frame {
  position: relative;
  border: 2px solid rgba(197, 155, 39, 0.3);
  background-color: var(--color-frame-bg);
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 3.5rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: 1rem;
}

.corner-ornament {
  position: absolute;
  width: 60px;
  height: 60px;
}

.corner-ornament.tl { top: 0; left: 0; }
.corner-ornament.tr { top: 0; right: 0; }
.corner-ornament.bl { bottom: 0; left: 0; }
.corner-ornament.br { bottom: 0; right: 0; }

/* Header Banner */
.text-center { text-align: center; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; }

.subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-600);
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
  letter-spacing: 0.05em;
}

.divider {
  margin: 0.5rem auto;
}

.saukele-container {
  margin: 1.5rem 0;
  position: relative;
  transition: transform 0.5s;
}
.saukele-container:hover {
  transform: scale(1.05);
}
.saukele-glow {
  position: absolute;
  inset: 0;
  background-color: rgba(197, 155, 39, 0.05);
  filter: blur(24px);
  border-radius: 50%;
}

.bride-name {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-gold-600);
  letter-spacing: 0.05em;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0.75rem 0;
}

.sub-bride-name {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-stone-500);
  font-size: 0.875rem;
  line-height: 1.625;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mini-divider {
  height: 1px;
  width: 5rem;
  background: linear-gradient(to right, transparent, var(--color-gold-400), transparent);
  margin: 1rem auto;
}

.date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gold-50);
  border: 1px solid rgba(223, 186, 115, 0.5);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin: 0.5rem auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 320px;
}

.date-text {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 300;
  color: var(--color-gold-700);
  letter-spacing: 0.1em;
}

.time-text {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-stone-500);
  margin-top: 0.25rem;
}

/* Letter */
.letter-section {
  margin: 3.5rem 0;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.letter-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gold-700);
  margin-bottom: 1rem;
  letter-spacing: 0.025em;
}

.letter-text {
  font-family: var(--font-sans);
  line-height: 1.625;
  color: var(--color-stone-600);
  font-size: 0.875rem;
  font-weight: 300;
}

.letter-highlight {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  font-weight: 600;
}

/* Countdown */
.countdown-section {
  margin: 3.5rem 0;
  text-align: center;
  background-color: #FDF9F6;
  border: 1px solid rgba(223, 186, 115, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.countdown-title {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-stone-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  color: var(--color-stone-800);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid rgba(223, 186, 115, 0.5);
  border-radius: 0.75rem;
  padding: 0.625rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.countdown-item:hover {
  transform: scale(1.03);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-gold-600);
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--color-stone-400);
  margin-top: 0.125rem;
}

/* Timeline */
.timeline-section {
  margin: 3.5rem 0;
}

.timeline-title {
  font-family: var(--font-serif);
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-gold-700);
  letter-spacing: 0.025em;
  margin-bottom: 1.5rem;
}

.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 2px;
  background-color: rgba(223, 186, 115, 0.7);
}

.timeline-event {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 0.625rem;
  top: 0.25rem;
  height: 1rem;
  width: 1rem;
  background-color: white;
  border: 2px solid var(--color-gold-500);
  border-radius: 50%;
  transition: all 0.3s;
}

.timeline-event:hover .timeline-dot {
  background-color: var(--color-gold-500);
}

.timeline-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-gold-600);
  font-weight: 600;
}

.timeline-title-event {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-stone-800);
  margin-top: 0.125rem;
}

.timeline-desc {
  font-size: 0.75rem;
  color: var(--color-stone-500);
  font-weight: 300;
  margin-top: 0.125rem;
  line-height: 1.625;
}

/* Venue */
.venue-section {
  margin: 3.5rem 0;
  background-color: #FAF1EE;
  border: 1px solid rgba(223, 186, 115, 0.15);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}

.venue-icon-wrapper {
  margin: 0 auto 0.75rem auto;
  height: 3rem;
  width: 3rem;
  background-color: rgba(197, 155, 39, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(197, 155, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-600);
  animation: pulse 2s infinite;
}

.venue-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-gold-700);
  letter-spacing: 0.025em;
}

.venue-name {
  font-weight: 600;
  color: var(--color-stone-800);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.btn-2gis {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #2BAC33;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.btn-2gis:hover {
  background-color: #259b2d;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Form */
.rsvp-section {
  margin: 3.5rem 0;
  border-top: 1px solid rgba(223, 186, 115, 0.2);
  padding-top: 2rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-stone-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
}

.form-input {
  width: 100%;
  background-color: var(--color-stone-50);
  border: 1px solid rgba(223, 186, 115, 0.4);
  color: var(--color-stone-800);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}
.form-input:focus {
  border-color: var(--color-gold-500);
}

.status-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.status-btn {
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--color-stone-100);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: all 0.2s;
  background-color: white;
  color: var(--color-stone-600);
  cursor: pointer;
  text-align: center;
  flex-direction: column;
}
.status-btn:hover {
  border-color: rgba(223, 186, 115, 0.5);
}
.status-btn.active-yes, .status-btn.active-couple {
  background-color: var(--color-gold-500);
  color: white;
  border-color: var(--color-gold-500);
  font-weight: 700;
  transform: scale(1.02);
}
.status-btn.active-no {
  background-color: rgba(244, 63, 94, 0.1);
  color: #be123c;
  border-color: #fb7185;
  font-weight: 700;
  transform: scale(1.02);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(to right, var(--color-gold-400), var(--color-gold-500), var(--color-gold-600));
  color: white;
  font-weight: 600;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.btn-submit:hover {
  background: linear-gradient(to right, #dfba73, var(--color-gold-500), var(--color-gold-500));
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success Alert */
.success-alert {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  display: none;
}
.success-alert.show {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

/* Audio Player */
.audio-player-wrapper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.btn-audio-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--color-gold-300);
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-gold-700);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.5s;
}

.btn-audio-toggle.playing {
  background: linear-gradient(to right, var(--color-gold-400), var(--color-gold-500));
  color: white;
  border-color: white;
  animation: pulse 2s infinite;
}

.audio-tooltip {
  background-color: rgba(28, 25, 23, 0.9);
  color: var(--color-gold-50);
  font-size: 10px;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(223, 186, 115, 0.3);
  animation: pulse 2s infinite;
}

/* Floral Decoration */
.floral-decor {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.95;
  pointer-events: none;
}
.floral-decor.top {
  margin-bottom: 0.5rem;
  margin-top: -2rem;
}
.floral-decor.bottom {
  margin-top: 2rem;
  margin-bottom: -1rem;
  transform: rotate(180deg);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spinSlow 3s linear infinite;
}
.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Admin panel modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
}
.admin-modal.show {
  display: flex;
}
.admin-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.875rem; }
.table th, .table td { padding: 0.5rem; border-bottom: 1px solid #e5e7eb; text-align: left; }
