/* ============================================================
   Riddle4You — Gemeinsame Styles
   Palette: Pergament, Espresso, Gold, Sepia
   Fonts: Lora (Serif) + Poppins (Sans)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Poppins:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --creme:       #F7F3EC;
  --creme-light: #FBF8F2;
  --espresso:    #2C1A0E;
  --gold:        #8B6914;
  --gold-light:  #C4A882;
  --gold-hover:  #6E5210;
  --sepia-line:  #DDD0BC;
  --text-muted:  #6B5744;
  --red-block:   #9B2335;
  --yellow-ok:   #8B6914;
  --green-gut:   #4A7C59;
  --shadow:      0 4px 24px rgba(44, 26, 14, 0.10);
  --shadow-lg:   0 8px 40px rgba(44, 26, 14, 0.14);
  --radius:      12px;
  --radius-sm:   6px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--creme);
  color: var(--espresso);
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Lora', serif;
  line-height: 1.3;
  color: var(--espresso);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 600; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 400; }
h3 { font-size: 1.1rem; font-weight: 600; }

p {
  line-height: 1.7;
  color: var(--text-muted);
}

em {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--gold);
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-hover);
}

/* ── Shared Logo ── */
.logo-mark {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.logo-mark::before,
.logo-mark::after {
  content: '✦';
  font-size: 0.6em;
  vertical-align: middle;
  margin: 0 8px;
  opacity: 0.7;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0;
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sepia-line);
}

/* ── Shared Footer ── */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.75rem;
  color: var(--gold-light);
  border-top: 1px solid var(--sepia-line);
  margin-top: 0;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
}

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

/* ── Shared Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-hover);
  box-shadow: 0 4px 16px rgba(139, 105, 20, 0.3);
  color: white;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: var(--gold-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary.full-width {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   LANDING PAGE (index.html)
   ============================================================ */

/* ── Shared top nav bar ── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.top-nav .nav-cta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.top-nav .nav-cta:hover {
  border-color: var(--gold);
  background: rgba(139, 105, 20, 0.06);
}

@media (max-width: 768px) {
  .top-nav .nav-cta {
    display: none;
  }
}

/* ── Hero ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-text {
  max-width: 520px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

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

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-price-note {
  font-size: 0.8rem;
  color: var(--gold-light);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdf-fan {
  position: relative;
  width: 400px;
  height: 400px;
}

.pdf-front,
.pdf-back {
  position: absolute;
  width: 240px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(44, 26, 14, 0.22);
}

.pdf-front {
  top: 30px;
  left: 0;
  transform: rotate(-4deg);
  z-index: 2;
}

.pdf-back {
  top: 50px;
  left: 120px;
  transform: rotate(5deg);
  z-index: 1;
}

/* ── Section shared ── */
.section {
  padding: 80px 40px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
  font-size: 0.95rem;
}

/* ── So funktioniert's ── */
.section-how {
  background: var(--creme-light);
  border-top: 1px solid var(--sepia-line);
  border-bottom: 1px solid var(--sepia-line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--sepia-line);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--creme);
  border: 1.5px solid var(--sepia-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.step-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Warum Riddle4You ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--creme-light);
  border: 1px solid var(--sepia-line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.why-icon-svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.why-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA Banner ── */
.section-cta {
  background: var(--espresso);
  text-align: center;
  padding: 72px 40px;
}

.section-cta .section-inner {
  max-width: 600px;
}

.section-cta h2 {
  color: var(--creme-light);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.section-cta p {
  color: var(--gold-light);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.section-cta .btn-primary {
  background: var(--gold);
  font-size: 1.05rem;
  padding: 18px 40px;
}

.section-cta .btn-primary:hover {
  background: #a07a18;
}

/* ── Responsive Landing ── */
@media (max-width: 768px) {
  .top-nav {
    padding: 16px 24px;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 24px 60px;
    gap: 32px;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .pdf-fan {
    width: 220px;
    height: 220px;
  }

  .pdf-front,
  .pdf-back {
    width: 132px;
  }

  .pdf-front {
    top: 17px;
    left: 0;
  }

  .pdf-back {
    top: 28px;
    left: 66px;
  }

  .section {
    padding: 60px 24px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps-grid::before {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .section-cta {
    padding: 56px 24px;
  }
}

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

/* ============================================================
   ORDER PAGE (order.html)
   ============================================================ */

.order-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.order-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 8px;
}

.order-header .logo-mark {
  display: block;
  margin-bottom: 28px;
}

.order-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 10px;
}

.order-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Karte / Formular-Container ── */
.card {
  background: var(--creme-light);
  border: 1px solid var(--sepia-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 40px;
}

@media (max-width: 520px) {
  .card { padding: 28px 20px; }
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

input[type="text"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: white;
  border: 1.5px solid var(--sepia-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--espresso);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--gold-light);
  opacity: 1;
}

textarea {
  resize: vertical;
  min-height: 240px;
  line-height: 1.6;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  font-size: 0.9rem;
}

select {
  padding-right: 36px;
  cursor: pointer;
}

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

.date-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-align: center;
}

.date-field input {
  text-align: center;
}

/* ── Anlass & Datum: gemeinsame Sektion ── */
.form-section {
  margin-bottom: 28px;
}

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.event-date-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event-select {
  flex: 1.3;
}

.event-select-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.compact-date-row {
  flex: 1;
  gap: 8px;
}

@media (max-width: 560px) {
  .event-date-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.custom-event-input {
  margin-top: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Freitext mit Zeichenzähler ── */
.textarea-wrapper {
  position: relative;
}

.char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.75rem;
  transition: color 0.3s;
}

.char-count-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.char-status {
  font-weight: 500;
}

.char-counter.state-blocked { color: var(--red-block); }
.char-counter.state-ok      { color: var(--yellow-ok); }
.char-counter.state-gut     { color: var(--green-gut); }

.char-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--sepia-line);
  margin-top: 6px;
  overflow: hidden;
}

.char-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.2s, background-color 0.3s;
  width: 0%;
}

.char-bar-fill.state-blocked { background: var(--red-block); }
.char-bar-fill.state-ok      { background: var(--yellow-ok); }
.char-bar-fill.state-gut     { background: var(--green-gut); }

/* ── Inspiration: rotierende Frage ── */
.question-widget {
  background: var(--creme);
  border: 1px solid var(--sepia-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.question-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.question-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--espresso);
  margin-bottom: 10px;
  line-height: 1.5;
}

.btn-question-next {
  flex-shrink: 0;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--gold-light);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-question-next:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* ── Preis & Vertrauen ── */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--creme);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sepia-line);
}

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

.price-amount {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── Rabattcode ── */
.coupon-row {
  margin-bottom: 20px;
}

.coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.coupon-input-wrap input {
  flex: 1;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-coupon {
  background: transparent;
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.btn-coupon:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(139, 105, 20, 0.06);
}

.btn-coupon:disabled {
  cursor: default;
}

.btn-coupon.btn-coupon-applied {
  color: var(--green-gut);
  border-color: var(--green-gut);
}

.btn-coupon.btn-coupon-applied:hover {
  background: rgba(0, 0, 0, 0.04);
}

.coupon-feedback {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  min-height: 18px;
  transition: color 0.2s;
}

.coupon-feedback.state-valid   { color: var(--green-gut); }
.coupon-feedback.state-invalid { color: var(--red-block); }

/* ── Preis mit Rabatt ── */
.price-amount-wrap {
  text-align: right;
  white-space: nowrap;
}

.price-original {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
  transition: all 0.2s;
}

.price-original span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-original.price-struck {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discounted {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
  margin-top: 2px;
}

.price-discounted span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-gut);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gold-light);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}

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

/* ============================================================
   LOADING PAGE (loading.html)
   ============================================================ */

.loading-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.loading-page-header {
  text-align: center;
  padding: 24px;
  border-bottom: 1px solid var(--sepia-line);
}

.loading-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.loading-card {
  background: var(--creme-light);
  border: 1px solid var(--sepia-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.hourglass {
  font-size: 3rem;
  display: block;
  margin: 0 auto 28px;
  animation: flip 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes flip {
  0%   { transform: rotate(0deg); }
  45%  { transform: rotate(0deg); }
  55%  { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

.loading-title {
  margin-bottom: 12px;
}

.loading-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sepia-line);
  animation: pulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { background: var(--sepia-line); transform: scale(1); }
  40%            { background: var(--gold); transform: scale(1.3); }
}

.status-text {
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  min-height: 20px;
  transition: opacity 0.3s;
}

.download-section { display: none; }
.download-section.visible { display: block; }

.success-icon {
  font-size: 3rem;
  display: block;
  margin: 0 auto 20px;
}

.download-title {
  margin-bottom: 8px;
}

.download-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  border: none;
}

.btn-download:active { transform: translateY(1px); }

.btn-download-primary {
  background: var(--gold);
  color: white;
}

.btn-download-primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 4px 16px rgba(139, 105, 20, 0.3);
  color: white;
}

.btn-download-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-light);
}

.btn-download-secondary:hover {
  border-color: var(--gold);
  background: rgba(139, 105, 20, 0.05);
  color: var(--gold);
}

.btn-icon { font-size: 1.1rem; }

.download-hint {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--gold-light);
  line-height: 1.5;
}

.error-section { display: none; }
.error-section.visible { display: block; }

.error-icon {
  font-size: 2.5rem;
  display: block;
  margin: 0 auto 16px;
}

.error-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  border: 1.5px solid var(--gold-light);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(139, 105, 20, 0.05);
}

@media (max-width: 520px) {
  .loading-card { padding: 40px 24px; }
}

@media (max-width: 768px) {
  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .coupon-input-wrap {
    flex-direction: column;
  }

  .btn-coupon {
    width: 100%;
    padding: 12px;
  }
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
