:root {
  --accent: #B59E59;
  --accent-rgb: 181, 158, 89;
  --accent-text: #000000;
  --bg: #111116;
  --text: #FAF8F5;
}

html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.6s ease, color 0.5s ease;
}

::selection { background: rgba(181, 158, 89, 0.2); color: #FAF8F5; }
html:not(.dark) ::selection { background: rgba(181, 158, 89, 0.25); color: #1a1a20; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111116; transition: background-color 0.6s ease; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; transition: background-color 0.6s ease; }
html:not(.dark) ::-webkit-scrollbar-track { background: #F5F3EF; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }

img { transition: opacity 0.4s ease; }

/* FAQ Accordion */
details[open] > summary svg { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/* Custom Fonts */
.font-heading { font-family: 'Inter', sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }
.font-drama { font-family: 'Playfair Display', serif; }

/* ═══ THEME TRANSITION (active only during toggle) ═══ */
body.theme-switching,
body.theme-switching *,
body.theme-switching *::before,
body.theme-switching *::after {
  transition: background-color 0.6s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.4s ease !important;
}

/* ═══ AMBIENT ANIMATIONS ═══ */

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181, 158, 89, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(181, 158, 89, 0.15); }
}
.cta-pulse { animation: ctaPulse 3s ease-in-out infinite; }
.cta-pulse:hover {
  animation: none;
  box-shadow: 0 0 30px 8px rgba(181, 158, 89, 0.25);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.dot-pulse { animation: dotPulse 2s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.animate-breathe { animation: breathe 4s ease-in-out infinite; }

/* ═══ CARD SHIMMER ═══ */
.card-shimmer {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
  z-index: 1;
  pointer-events: none;
}
.card-shimmer:hover::after { left: 150%; }
.card-shimmer > * { position: relative; z-index: 2; }

html:not(.dark) .card-shimmer::after {
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.02), transparent);
}

/* ═══ CSS REVEAL SYSTEM ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ DECORATIVE BACKGROUNDS ═══ */
.bg-glow-tl { position: relative; }
.bg-glow-tl::before {
  content: ''; position: absolute; top: -20%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(181, 158, 89, 0.03) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.bg-glow-br { position: relative; }
.bg-glow-br::after {
  content: ''; position: absolute; bottom: -20%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(181, 158, 89, 0.05) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.bg-dots {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
html:not(.dark) .bg-dots {
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
}
.watermark { position: relative; overflow: hidden; }
.watermark::before {
  content: attr(data-watermark);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw; font-weight: 900;
  color: rgba(255,255,255,0.015);
  white-space: nowrap; pointer-events: none; z-index: 0;
  font-family: 'Inter', sans-serif; letter-spacing: -0.02em;
}
html:not(.dark) .watermark::before { color: rgba(0,0,0,0.02); }

.accent-line-top { position: relative; }
.accent-line-top::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(181, 158, 89, 0.3), transparent);
}

/* ═══ VOUCHER CARD ═══ */
@keyframes goldShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.voucher-card {
  position: relative;
  background: linear-gradient(135deg, #B59E59 0%, #D4C078 20%, #B59E59 40%, #8A7642 60%, #B59E59 80%, #D4C078 100%);
  background-size: 300% 300%;
  animation: goldShift 5s ease infinite;
  border-radius: 16px;
  padding: 2px;
}
.voucher-card:hover {
  animation-duration: 2s;
}

/* ═══ LIGHTBOX ZOOM ═══ */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══ TIMELINE ═══ */
@keyframes ping {
  75%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes timelineFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.timeline-fill {
  transform-origin: left;
  transform: scaleX(0);
  animation: timelineFill 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

/* ═══ FORM STYLES ═══ */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #A0A0B0;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  background: #0f0f18;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  color: #FAF8F5;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: #B59E59;
  box-shadow: 0 0 0 3px rgba(181, 158, 89, 0.12);
}
.form-input::placeholder { color: #444; }
.form-input:hover:not(:focus) { border-color: rgba(255,255,255,0.18); }

/* Select dropdown */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A0A0B0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option {
  background: #0f0f18;
  color: #FAF8F5;
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio buttons */
.form-radio {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: #0f0f18;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.form-radio:checked {
  border-color: #B59E59;
  background: #0f0f18;
}
.form-radio:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #B59E59;
}
.form-radio:hover { border-color: rgba(255,255,255,0.3); }

/* Checkbox */
.form-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background: #0f0f18;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.form-checkbox:checked {
  border-color: #B59E59;
  background: #B59E59;
}
.form-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-checkbox:hover { border-color: rgba(255,255,255,0.3); }

/* ═══ LIGHT MODE FORM OVERRIDES ═══ */
html:not(.dark) .form-label { color: #6B6B78; }
html:not(.dark) .form-input {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.1);
  color: #1a1a20;
}
html:not(.dark) .form-input:focus {
  border-color: #B59E59;
  box-shadow: 0 0 0 3px rgba(181, 158, 89, 0.15);
}
html:not(.dark) .form-input::placeholder { color: #aaa; }
html:not(.dark) .form-input:hover:not(:focus) { border-color: rgba(0,0,0,0.2); }
html:not(.dark) .form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B78' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
html:not(.dark) .form-select option { background: #fff; color: #1a1a20; }
html:not(.dark) .form-radio {
  border-color: rgba(0,0,0,0.15);
  background: #fff;
}
html:not(.dark) .form-radio:checked { border-color: #B59E59; background: #fff; }
html:not(.dark) .form-radio:hover { border-color: rgba(0,0,0,0.3); }
html:not(.dark) .form-checkbox {
  border-color: rgba(0,0,0,0.15);
  background: #fff;
}
html:not(.dark) .form-checkbox:checked { border-color: #B59E59; background: #B59E59; }
html:not(.dark) .form-checkbox:checked::after { border-color: #fff; }
html:not(.dark) .form-checkbox:hover { border-color: rgba(0,0,0,0.3); }

/* ═══ RESPONSIVE REFINEMENTS ═══ */
@media (max-width: 768px) {
  .voucher-card > div { padding: 24px !important; }
}