/* =====================================================================
   Divine Jewels — Design tokens & base ("Noir Champagne")
   Shared by the public site, member panel and admin panel.
   Theme colours can be overridden from Admin → Theme (inline :root vars).
   ===================================================================== */
:root {
  --gold: #C9A46A;
  --gold-soft: #E6CF9F;
  --gold-deep: #8A6A3C;
  --gold-ink: #5E4523;
  --ink: #0E0B09;
  --ink-2: #16110D;
  --ink-3: #211A14;
  --ink-4: #2E251D;
  --ivory: #FBF7F0;
  --pearl: #F3ECE0;
  --sand: #E7DCCB;
  --emerald: #1F4D47;
  --emerald-soft: #2F6B62;
  --rose: #B9806C;

  --success: #2E9D6A;
  --warning: #D69A2D;
  --danger: #D2544A;
  --info: #4C8DD6;

  --gold-gradient: linear-gradient(135deg, #7A5A30 0%, #C9A46A 30%, #F1DDB0 50%, #C9A46A 70%, #8A6A3C 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(201,164,106,.18), rgba(241,221,176,.06));
  --noir-gradient: radial-gradient(1200px 600px at 80% -10%, rgba(201,164,106,.14), transparent 60%),
                   radial-gradient(900px 500px at -10% 110%, rgba(31,77,71,.22), transparent 60%),
                   linear-gradient(180deg, #120E0B 0%, #0E0B09 100%);

  --font-display: "Cormorant Garamond", "Noto Serif Devanagari", "Noto Serif Gujarati", Georgia, serif;
  --font-body: "Manrope", "Noto Sans Devanagari", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow: 0 10px 30px rgba(14,11,9,.12);
  --shadow-lg: 0 30px 80px rgba(14,11,9,.25);
  --shadow-gold: 0 10px 40px rgba(201,164,106,.25);
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur: .35s;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 7rem;

  --fs-xs: .78rem; --fs-sm: .9rem; --fs-base: 1rem;
  --fs-lg: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  --fs-xl: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-hero: clamp(2.8rem, 1.6rem + 5.8vw, 6.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(201,164,106,.6); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(gu) h1, :lang(gu) h2, :lang(gu) h3 { line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 9999;
  background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

.gold-text {
  background: var(--gold-gradient); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur), color var(--dur), border-color var(--dur);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-gold { --btn-bg: var(--gold-gradient); --btn-fg: #1b1309; background: var(--gold-gradient); background-size: 200% 100%; box-shadow: var(--shadow-gold); }
.btn-gold:hover { background-position: 100% 0; }
.btn-outline { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.btn-ghost { --btn-bg: transparent; --btn-fg: currentColor; }
.btn-light { --btn-bg: var(--ivory); --btn-fg: var(--ink); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; }
.btn-sm { min-height: 36px; padding: .4rem .95rem; font-size: .85rem; }
.btn-lg { min-height: 56px; padding: .9rem 2rem; font-size: 1.05rem; }
.btn-icon { width: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.form-control, .form-select {
  width: 100%; min-height: 48px; padding: .7rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(14,11,9,.16); background: #fff; color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-control:focus, .form-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,106,.2); }
.form-hint { font-size: .8rem; opacity: .7; margin-top: .3rem; }
.field-validation-error, .text-danger { color: var(--danger); font-size: .82rem; }
.input-validation-error { border-color: var(--danger) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Alerts ---------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: rgba(46,157,106,.1); border-color: rgba(46,157,106,.35); color: #1d6b48; }
.alert-danger { background: rgba(210,84,74,.1); border-color: rgba(210,84,74,.35); color: #9c3028; }
.alert-warning { background: rgba(214,154,45,.12); border-color: rgba(214,154,45,.4); color: #8a5f12; }
.alert-info { background: rgba(76,141,214,.1); border-color: rgba(76,141,214,.35); color: #285f9c; }

/* ---------- Layout helpers ---------- */
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
.grid { display: grid; gap: var(--space-5); }
.flex { display: flex; gap: var(--space-4); }
.center { text-align: center; }
.muted { opacity: .7; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- WEBIXA credit (mandatory, do not remove) ---------- */
.webixa-credit { font-size: .875rem; opacity: .85; margin: 0; }
.webixa-link { font-weight: 700; letter-spacing: .04em; text-decoration: none; color: inherit; padding-right: 1.1em; unicode-bidi: isolate; }
.webixa-link:hover, .webixa-link:focus-visible { text-decoration: underline; }
.wx-a { position: relative; display: inline-block; }
.wx-tm { position: absolute; top: -0.45em; left: 100%; margin-left: .08em; font-size: .5em; font-weight: 700; line-height: 1; letter-spacing: 0; }

/* ---------- Motion ---------- */
@keyframes dj-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dj-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes dj-spin { to { transform: rotate(360deg); } }
@keyframes dj-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .85; } }
@keyframes dj-sparkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }

.skeleton { background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.12) 37%, rgba(0,0,0,.06) 63%); background-size: 400% 100%; animation: dj-shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Empty ASP.NET validation summaries must not render as an empty alert box. */
.validation-summary-valid { display: none !important; }
