/* ╔══════════════════════════════════════════════════════╗
   ║         NOORANI UNIVERS — FEUILLE DE STYLE           ║
   ╚══════════════════════════════════════════════════════╝ */

/* ── Global: ensure [hidden] always wins over display ─── */
[hidden] { display: none !important; }

/* ── Variables ─────────────────────────────────────────── */
:root {
  /* Dark tones (hero, footer, admin header, pricing section) */
  --dark:          #0f0e0b;
  --dark-2:        #1c1a16;
  --dark-3:        #2e2b25;

  /* Gold accent */
  --gold:          #c9a84c;
  --gold-light:    #e8cc89;
  --gold-pale:     #f5edd5;

  /* Cream backgrounds */
  --cream:         #faf8f3;
  --cream-2:       #f0ebe0;

  /* Base */
  --white:         #ffffff;
  --text:          #1a1814;
  --text-muted:    #7a7060;
  --border:        #e0d8cc;

  --shadow-sm:     0 1px 4px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    200ms ease;
  --container:     1100px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
fieldset { border: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section header ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2rem;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.section-ornament {
  color: var(--gold);
  font-size: 1rem;
  opacity: .8;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: -1rem auto 2.5rem;
  font-size: .95rem;
}

/* ╔══════════════════════════════════════════════════════╗
   ║                    NAVBAR                            ║
   ╚══════════════════════════════════════════════════════╝ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: .9rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--dark-2);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
}
.logo-crescent { font-size: 1.4rem; color: var(--gold); line-height: 1; }
.logo-text { font-family: 'Playfair Display', serif; font-weight: 600; }
.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.btn-nav:hover { background: var(--gold); color: var(--dark); }

/* ╔══════════════════════════════════════════════════════╗
   ║                      HERO                            ║
   ╚══════════════════════════════════════════════════════╝ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

/* Subtle geometric star pattern in gold */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none'%3E%3Cpolygon points='40,2 49,30 77,30 54,47 62,75 40,58 18,75 26,47 3,30 31,30' fill='%23c9a84c' opacity='0.06'/%3E%3Cpolygon points='40,14 46,33 66,33 50,44 56,63 40,52 24,63 30,44 14,33 34,33' fill='none' stroke='%23c9a84c' stroke-width='0.4' opacity='0.1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(201,168,76,.05) 0%, rgba(15,14,11,.7) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  padding: .35rem 1rem;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 100px;
  color: var(--gold-light);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.brand-name {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--cream);
  line-height: 1;
}
.brand-subtitle {
  font-size: clamp(.95rem, 3vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
.hero-tagline {
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  margin-bottom: 2.25rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.hero-divider { color: var(--gold); opacity: .3; font-size: .6rem; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  color: var(--gold-light);
  opacity: .7;
  transition: opacity var(--transition);
  z-index: 1;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint-text { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.scroll-hint-arrow {
  font-size: 1.2rem;
  animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2.25rem;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px;
  letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(201,168,76,.25);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,168,76,.35);
}
.btn-arrow { font-size: 1.1rem; transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ╔══════════════════════════════════════════════════════╗
   ║                  MEDIA SECTION                       ║
   ╚══════════════════════════════════════════════════════╝ */
.media-section { padding: 5rem 0; background: var(--white); }
.media-section.hidden { display: none; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.gallery-grid:empty { display: none; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  background: var(--cream-2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ╔══════════════════════════════════════════════════════╗
   ║                   ABOUT SECTION                      ║
   ╚══════════════════════════════════════════════════════╝ */
.about-section { padding: 5rem 0; background: var(--cream); }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 768px) { .about-layout { grid-template-columns: 1fr; } }
.about-text-block p { color: var(--text-muted); margin-bottom: 1rem; }
.about-lead {
  font-size: 1.1rem;
  color: var(--text) !important;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.25rem !important;
}
.about-highlight {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.5rem;
}
.highlight-icon { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; line-height: 1; }
.about-highlight blockquote {
  font-style: italic;
  font-size: .9rem;
  color: var(--text-muted);
  border: none;
  padding: 0;
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}
.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem .75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.theme-icon { width: 64px; height: 64px; object-fit: contain; }
.theme-name { font-size: .8rem; font-weight: 500; color: var(--text); }

/* ╔══════════════════════════════════════════════════════╗
   ║               DESTINATIONS / TARIFS                  ║
   ╚══════════════════════════════════════════════════════╝ */
.destinations-section {
  padding: 5rem 0;
  background: var(--dark-2);
}
.destinations-section .section-header h2 { color: var(--cream); }
.destinations-section .section-desc { color: rgba(250,248,243,.5); margin-top: .5rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 780px;
  margin: 0 auto;
}
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr 1fr; max-width: 100%; } }

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.75rem 1.25rem;
  background: rgba(250,248,243,.04);
  border: 1px solid rgba(250,248,243,.1);
  border-radius: var(--radius);
  text-align: center;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.pricing-card:hover {
  background: rgba(250,248,243,.08);
  border-color: rgba(201,168,76,.45);
  transform: translateY(-4px);
}
.pricing-flag  { font-size: 2.25rem; line-height: 1; }
.pricing-country {
  color: rgba(250,248,243,.7);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin: .25rem 0;
}
.pricing-currency { font-size: 1rem; font-weight: 400; color: var(--gold-light); }
.pricing-note { font-size: .75rem; color: rgba(250,248,243,.35); line-height: 1.5; }

/* ╔══════════════════════════════════════════════════════╗
   ║                  ORDER SECTION                       ║
   ╚══════════════════════════════════════════════════════╝ */
.order-section { padding: 5rem 0 6rem; background: var(--cream); }

/* Setup alert */
.setup-alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: #fff8e1;
  border: 1.5px solid #f5c518;
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: .9rem;
}
.setup-alert-icon { font-size: 1.4rem; flex-shrink: 0; }
.setup-alert code {
  background: rgba(0,0,0,.07);
  padding: .1em .4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: .85em;
}

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
@media (max-width: 480px) { .form-card { padding: 1.5rem; border-radius: 0; margin: 0 -1.5rem; } }

/* Fieldsets */
.form-fieldset {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.form-fieldset:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}
.fieldset-legend {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid var(--gold-pale);
  width: 100%;
  letter-spacing: .01em;
}

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }

/* Labels */
label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: .3rem;
  flex-wrap: wrap;
}
.req { color: #c0392b; font-size: .75rem; }
.opt { color: var(--text-muted); font-weight: 400; font-size: .8rem; }

/* Inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
input.invalid, select.invalid, textarea.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7060' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 90px; }

/* Delivery toggle */
.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (max-width: 480px) { .delivery-toggle { grid-template-columns: 1fr; } }
.delivery-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.1rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  background: var(--cream);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.delivery-option:hover { border-color: var(--gold); background: var(--white); }
.delivery-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.delivery-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
  transform: translateY(-1px);
}
.delivery-icon  { font-size: 1.6rem; line-height: 1; }
.delivery-title { font-weight: 600; font-size: .9rem; color: var(--text); }
.delivery-desc  { font-size: .75rem; color: var(--text-muted); }

/* Pickup info box */
.pickup-info-box {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .75rem 1rem;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .85rem;
  color: #7a6020;
  margin-top: .75rem;
  animation: fadeIn .2s ease;
}

/* Price hint */
.price-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .4rem;
  padding: .5rem .85rem;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .82rem;
  color: #7a6020;
  animation: fadeIn .25s ease;
}
.price-hint-icon { font-size: 1rem; flex-shrink: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Phone prefix */
.phone-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.phone-wrapper:focus-within { border-color: var(--gold); }
.phone-prefix {
  padding: .6rem .75rem;
  background: var(--cream);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
  border-right: 1.5px solid var(--border);
  display: none;
}
.phone-prefix.visible { display: block; }
.phone-wrapper input[type="tel"] {
  border: none;
  outline: none;
  flex: 1;
  padding: .6rem .75rem;
  font-size: .9rem;
  background: transparent;
}

/* Field errors */
.field-error { font-size: .78rem; color: #c0392b; min-height: 1rem; display: block; }

/* Quantity control */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream);
  width: fit-content;
}
.qty-control:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.qty-btn {
  padding: .7rem 1rem;
  background: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  transition: background var(--transition);
  line-height: 1;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--gold-pale); }
.qty-control input[type="number"] {
  border: none;
  border-radius: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  background: transparent;
  width: 56px;
  padding: .7rem .4rem;
  -moz-appearance: textfield;
}
.qty-control input[type="number"]::-webkit-inner-spin-button,
.qty-control input[type="number"]::-webkit-outer-spin-button { appearance: none; }
.qty-control input[type="number"]:focus { box-shadow: none; }

/* Form notice */
.form-notice {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.form-notice span { font-size: 1rem; color: var(--gold); flex-shrink: 0; }

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--dark-2);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.btn-submit:hover:not(:disabled) {
  background: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }

/* Spinner */
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(250,248,243,.3);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Secondary button */
.btn-secondary {
  padding: .7rem 1.5rem;
  background: transparent;
  border: 1.5px solid var(--text);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-secondary:hover { background: var(--text); color: var(--white); }

/* Error banner */
.error-banner {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: #fff0f0;
  border: 1.5px solid #f5c6c6;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: #c0392b;
  margin-bottom: 1rem;
}
.close-banner {
  margin-left: auto;
  color: #c0392b;
  font-size: .9rem;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity var(--transition);
}
.close-banner:hover { opacity: 1; }

/* Success card */
.success-card { text-align: center; padding: 2.5rem 2rem; }
.success-checkmark { width: 64px; height: 64px; margin: 0 auto 1.25rem; }
.success-checkmark svg circle {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: draw-circle .6s ease forwards;
}
.success-checkmark svg path {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check .4s .5s ease forwards;
}
@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check  { to { stroke-dashoffset: 0; } }
.success-card h3 { font-size: 1.5rem; margin-bottom: .75rem; color: var(--text); }
.success-card p { color: var(--text-muted); margin-bottom: .75rem; font-size: .95rem; }
.order-ref { font-size: .78rem !important; color: #aaa !important; font-family: monospace; margin-bottom: 1.5rem !important; }

/* ╔══════════════════════════════════════════════════════╗
   ║                     FOOTER                           ║
   ╚══════════════════════════════════════════════════════╝ */
.site-footer { background: var(--dark); padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.footer-logo {
  display: flex; align-items: center; gap: .5rem;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
.footer-logo .logo-crescent { color: var(--gold); }
.footer-tagline { color: rgba(250,248,243,.4); font-size: .85rem; font-style: italic; }
.footer-bottom {
  margin-top: 1rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
}
.footer-bottom p { color: rgba(250,248,243,.25); font-size: .78rem; }
.admin-link { font-size: .78rem; color: rgba(250,248,243,.18); transition: color var(--transition); }
.admin-link:hover { color: rgba(250,248,243,.5); }

/* ╔══════════════════════════════════════════════════════╗
   ║              ADMIN PAGE STYLES                       ║
   ╚══════════════════════════════════════════════════════╝ */
.admin-page { min-height: 100svh; background: var(--cream); }

/* Login gate */
.login-screen {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--dark);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none'%3E%3Cpolygon points='40,2 49,30 77,30 54,47 62,75 40,58 18,75 26,47 3,30 31,30' fill='%23c9a84c' opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  border: 1px solid var(--border);
}
.login-logo { font-size: 2rem; color: var(--gold); margin-bottom: .75rem; }
.login-card h2 { margin-bottom: .25rem; font-size: 1.4rem; }
.login-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.login-input-wrap { position: relative; margin-bottom: 1rem; }
.login-input-wrap input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.login-input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.login-error { font-size: .82rem; color: #c0392b; min-height: 1rem; margin-bottom: .75rem; }
.btn-login {
  width: 100%;
  padding: .85rem;
  background: var(--dark-2);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background var(--transition), transform var(--transition);
}
.btn-login:hover { background: var(--dark); transform: translateY(-1px); }

/* Admin header */
.admin-header {
  background: var(--dark-2);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.admin-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.admin-logo { color: var(--white); display: flex; align-items: center; gap: .5rem; }
.admin-logo .logo-crescent { color: var(--gold); }
.admin-logo-text { font-family: 'Playfair Display', serif; font-weight: 600; font-size: .95rem; }
.admin-logo-badge {
  background: rgba(201,168,76,.15);
  color: var(--gold-light);
  font-size: .7rem;
  padding: .15rem .5rem;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,.25);
}
.admin-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.btn-export {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem;
  background: rgba(201,168,76,.12);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 100px;
  font-size: .82rem; font-weight: 500;
  transition: background var(--transition);
}
.btn-export:hover { background: rgba(201,168,76,.25); }
.btn-logout {
  padding: .45rem 1rem;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.45);
  border-radius: 100px;
  font-size: .82rem;
  transition: border-color var(--transition), color var(--transition);
}
.btn-logout:hover { border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.8); }

/* Dashboard body */
.admin-body { max-width: var(--container); margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* Search bar */
.admin-search-wrap { position: relative; max-width: 400px; margin-bottom: 2rem; }
.admin-search-wrap input {
  width: 100%;
  padding: .65rem 1rem .65rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-size: .9rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.admin-search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.search-icon {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .85rem; pointer-events: none;
}

/* Summary stats */
.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.summary-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .3rem; }
.summary-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }

/* Loading / empty / error states */
.state-msg { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.state-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 1rem;
}

/* Country groups */
.country-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.country-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer; user-select: none;
  transition: background var(--transition);
  border-bottom: 1px solid transparent;
  gap: 1rem;
}
.country-header:hover { background: var(--cream); }
.country-header.open { border-bottom-color: var(--border); }
.country-header-left { display: flex; align-items: center; gap: .75rem; }
.country-flag-big { font-size: 1.5rem; line-height: 1; }
.country-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; }
.country-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .75rem; font-weight: 500;
}
.chip-orders { background: rgba(26,24,20,.07); color: var(--text); }
.chip-boxes  { background: var(--gold-pale); color: #7a6020; }
.country-toggle { font-size: .75rem; color: var(--text-muted); flex-shrink: 0; transition: transform var(--transition); }
.country-toggle.open { transform: rotate(180deg); }

/* Orders list */
.orders-list { padding: 1rem 1.5rem; display: grid; gap: .75rem; }
.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: start;
  font-size: .875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--cream);
}
.order-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.order-card.hidden-by-search { display: none; }
.order-name { font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.order-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--text-muted); font-size: .8rem; margin-top: .35rem; }
.order-meta span { display: flex; align-items: center; gap: .25rem; }
.order-address { color: var(--text-muted); font-size: .8rem; margin-top: .35rem; }
.order-notes {
  margin-top: .5rem;
  padding: .45rem .75rem;
  background: var(--gold-pale);
  border-radius: 4px;
  font-size: .78rem;
  color: #7a6020;
}
.order-qty-badge {
  background: var(--dark-2);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: .4rem .7rem;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}
.order-qty-badge .qty-num { display: block; font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.order-qty-badge .qty-lbl { display: block; font-size: .65rem; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
.order-date { font-size: .72rem; color: var(--text-muted); margin-top: .35rem; }

.no-results { text-align: center; padding: 2rem; color: var(--text-muted); font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-card { padding: 1.5rem; }
  .summary-row { grid-template-columns: 1fr 1fr; }
  .country-header { flex-wrap: wrap; }
  .country-chips { order: 3; }
  .admin-header-inner { gap: .75rem; }
  .order-card { grid-template-columns: 1fr; }
  .order-qty-badge { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .75rem; min-width: auto; }
  .order-qty-badge .qty-num { font-size: 1.1rem; }
}
