/* ============================================================
   Koshda Jewellery House Platform — Master Design System
   Luxury B2B Jewellery Trade Platform v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Cinzel+Decorative:wght@400;700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Core Palette — Maroon Royale */
  --bg-primary: #FAF6EE;
  /* Warm Ivory page background */
  --bg-secondary: #FFFDF8;
  /* Soft Cream background for main content area / cards */
  --bg-card: #FFFDF8;
  --bg-card-hover: #FAF6EE;
  /* Row hover/subtle tint */
  --bg-elevated: #FFFDF8;
  --bg-dark: #1C1410;
  /* Warm Charcoal sidebar */
  --bg-dark-section: #1C1410;
  /* Warm Charcoal features band */
  --bg-champagne: #FAF6EE;
  /* Warm Ivory */
  --bg-glass: rgba(110, 13, 37, 0.05);
  --bg-glass-hover: rgba(110, 13, 37, 0.08);

  /* Gold Accent System */
  --gold-100: #F6F1E5;
  --gold-200: #EADCBF;
  --gold-300: #DEC79A;
  --gold-400: #D3B274;
  --gold-500: #C9A227;
  /* Antique Gold */
  --gold-600: #B08B1F;
  /* Antique Gold active/hover */
  --gold-700: #987515;
  --gold-800: #81600D;
  --gold-900: #694C05;
  --gold-glow: rgba(201, 162, 39, 0.12);
  --gold-glow-strong: rgba(201, 162, 39, 0.25);

  /* Royal Burgundy System */
  --primary: #6E0D25;
  --primary-hover: #530A1C;
  --secondary: #1C1410;
  --accent: #C9A227;
  --accent-hover: #DFC25C;

  /* Violet Admin Accent (Redirected to Burgundy Accent) */
  --violet-500: #6E0D25;
  --violet-600: #530A1C;
  --violet-700: #3E0714;
  --violet-glow: rgba(110, 13, 37, 0.12);

  /* Status Colors */
  --green-500: #2E6F40;
  --green-glow: rgba(46, 111, 64, 0.12);
  --red-500: #A83232;
  --red-glow: rgba(168, 50, 50, 0.12);
  --yellow-500: #B57A1E;
  --yellow-glow: rgba(181, 122, 30, 0.12);
  --blue-500: #475569;
  --blue-glow: rgba(71, 85, 105, 0.12);
  --orange-500: #B57A1E;

  /* Text — contrast ratios tested against #FAF6EE / #FFFDF8:
     --text-primary   #1C1410  → 15.3:1 ✅ AAA
     --text-secondary #6B6259  →  4.5:1 ✅ AA
     --text-muted     #6B6259  →  4.5:1 ✅ AA
     --text-disabled  #A39E98  →  2.1:1 — intentionally low (disabled state)  */
  --text-primary: #1C1410;
  /* Warm Charcoal */
  --text-secondary: #6B6259;
  /* Warm Taupe */
  --text-muted: #6B6259;
  --text-disabled: #A39E98;
  --text-gold: #C9A227;
  --text-inverse: #FAF6EE;

  /* Borders */
  --border-subtle: #E4D9C5;
  /* Soft Gold-Sand border */
  --border-default: #E4D9C5;
  --border-strong: #C9A227;
  --border-gold: rgba(201, 162, 39, 0.25);
  --border-gold-strong: rgba(201, 162, 39, 0.5);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(180, 140, 60, 0.03);
  --shadow-md: 0 2px 12px rgba(180, 140, 60, 0.05);
  --shadow-lg: 0 6px 24px rgba(180, 140, 60, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 2px 12px rgba(180, 140, 60, 0.05);
  --shadow-gold-lg: 0 6px 24px rgba(180, 140, 60, 0.08);
  --shadow-violet: 0 2px 12px rgba(180, 140, 60, 0.05);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Playfair Display', 'Cinzel', serif;
  --font-decor: 'Cinzel Decorative', serif;
  --font-body: 'Lato', -apple-system, sans-serif;
  --font-eyebrow: 'Cormorant Garamond', Georgia, serif;

  /* Transitions */
  --ease-fast: 0.15s ease;
  --ease-normal: 0.25s ease;
  --ease-slow: 0.4s ease;
  --ease-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --sidebar-w: 210px;
  --header-h: 64px;
  --content-max: 1440px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-700);
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h3 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

h4 {
  font-size: 1rem;
}

h5 {
  font-size: 0.875rem;
}

h6 {
  font-size: 0.75rem;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  transition: color var(--ease-fast);
}

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

strong {
  color: var(--text-primary);
  font-weight: 600;
}

.text-gold {
  color: var(--gold-500);
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 12px;
}

.text-xs {
  font-size: 11px;
}

.text-lg {
  font-size: 16px;
}

.text-xl {
  font-size: 18px;
}

.text-display {
  font-family: var(--font-display);
}

.text-center {
  text-align: center;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.grid {
  display: grid;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* ── Card / Glass Components ────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--ease-normal), box-shadow var(--ease-normal);
}

.card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.glass {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.glass:hover {
  background: var(--bg-glass-hover);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease-normal);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--ease-fast);
}

.btn:hover::before {
  background: rgba(255, 255, 255, 0.05);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: #F3E9C9;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(110, 13, 37, 0.15);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #F3E9C9;
  border-color: var(--primary-hover);
  box-shadow: 0 4px 20px rgba(110, 13, 37, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  border-color: var(--primary-hover);
  color: var(--primary-hover);
  background: rgba(110, 13, 37, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-danger {
  background: var(--red-500);
  color: var(--text-inverse);
  border-color: var(--red-500);
}

.btn-danger:hover {
  background: #8b2929;
  color: var(--text-inverse);
  border-color: #8b2929;
  box-shadow: 0 4px 16px var(--red-glow);
}

.btn-success {
  background: var(--green-500);
  color: var(--text-inverse);
  border-color: var(--green-500);
}

.btn-success:hover {
  background: #235531;
  color: var(--text-inverse);
  border-color: #235531;
}

.btn-violet {
  background: var(--primary);
  color: #F3E9C9;
  border-color: var(--primary);
}

.btn-violet:hover {
  background: var(--primary-hover);
  color: #F3E9C9;
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-label .required {
  color: var(--red-500);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(110, 13, 37, 0.12);
}

.form-input.error {
  border-color: var(--red-500);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-select {
  appearance: none;
  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 fill='%23A8A4B8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-elevated);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.form-error {
  font-size: 12px;
  color: var(--red-500);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}


/* ── Tables ─────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  background: var(--bg-dark);
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

thead th:first-child {
  padding-left: 20px;
}

thead th:last-child {
  padding-right: 20px;
  text-align: right;
}

tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--ease-fast);
}

tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

tbody tr:nth-child(odd) {
  background: var(--bg-primary);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg-glass-hover) !important;
}

tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--text-secondary);
}

tbody td:first-child {
  padding-left: 20px;
  color: var(--text-primary);
  font-weight: 500;
}

tbody td:last-child {
  padding-right: 20px;
  text-align: right;
}

tbody td .code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--gold-500);
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--ease-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-500), transparent);
  opacity: 0;
  transition: opacity var(--ease-normal);
}

.stat-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-change {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.up {
  color: var(--green-500);
}

.stat-change.down {
  color: var(--red-500);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-2);
}

/* ── Dividers ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-6) 0;
}

.divider-gold {
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}


/* ── Loading States ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-wave {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.empty-state p {
  font-size: 13px;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Alerts / Callouts ──────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border-left: 3px solid;
  font-size: 13px;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--blue-500);
  color: #93C5FD;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--green-500);
  color: #6EE7B7;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--yellow-500);
  color: #FCD34D;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--red-500);
  color: #FCA5A5;
}

.alert-gold {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

/* ── Progress / Steps ───────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-400));
  border-radius: var(--radius-full);
  transition: width var(--ease-slow);
}

.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 1px;
  background: var(--border-default);
  z-index: 0;
}

.step.completed:not(:last-child)::after {
  background: var(--gold-600);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--ease-normal);
}

.step.active .step-circle {
  border-color: var(--gold-500);
  color: var(--gold-500);
  box-shadow: 0 0 0 4px var(--gold-glow);
  background: var(--bg-elevated);
}

.step.completed .step-circle {
  border-color: var(--gold-600);
  background: var(--gold-600);
  color: var(--bg-primary);
}

.step-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
}

.step.active .step-label {
  color: var(--gold-500);
}

.step.completed .step-label {
  color: var(--text-secondary);
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot.completed {
  border-color: var(--green-500);
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-500);
}

.timeline-dot.current {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-500);
}

.timeline-dot.pending {
  border-color: var(--border-default);
  color: var(--text-muted);
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.timeline-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-body {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ── Toggle / Switch ────────────────────────────────────────── */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--ease-normal);
}

.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--ease-normal);
}

.toggle input:checked+.toggle-track {
  background: var(--gold-600);
}

.toggle input:checked+.toggle-track::after {
  transform: translateX(20px);
  background: var(--bg-primary);
}

/* ── Checkbox ───────────────────────────────────────────────── */
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-default);
  border-radius: 4px;
  background: transparent;
  transition: all var(--ease-fast);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.checkbox:checked {
  background: var(--gold-600);
  border-color: var(--gold-600);
}

.checkbox:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 800;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.page-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

.page-btn.active {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--bg-primary);
}

/* ── Search Input ───────────────────────────────────────────── */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.search-wrap .search-clear {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--ease-fast);
}

.search-wrap:focus-within .search-clear {
  opacity: 1;
}

.search-input {
  padding-left: 40px !important;
  padding-right: 36px;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Gold Gradient Text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Separator with text ────────────────────────────────────── */
.separator {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: 12px;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Tooltip ────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease-fast);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
}



/* ── Dropdown ───────────────────────────────────────────────── */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--ease-normal);
  overflow: hidden;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
}

.dropdown-item:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.dropdown-item.danger {
  color: var(--red-500);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ease-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--gold-500);
  border-bottom-color: var(--gold-500);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Filters Bar ────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-5);
}

.filter-select {
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--ease-fast);
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23A8A4B8' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:focus {
  border-color: var(--gold-500);
  outline: none;
}

.filter-select option {
  background: var(--bg-elevated);
}

/* ── Notification Dot ───────────────────────────────────────── */
.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--red-500);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  position: absolute;
  top: -2px;
  right: -2px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

/* ── NEW Badge animation ────────────────────────────────────── */
.badge-new {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: var(--bg-primary);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--gold-glow);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0);
  }
}

/* ── Live indicator ─────────────────────────────────────────── */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green-500);
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* ── Responsive Grid helpers ────────────────────────────────── */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.anim-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.anim-fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

.anim-scale-in {
  animation: scaleIn 0.3s ease forwards;
}

/* ── Utility Classes ────────────────────────────────────────── */
.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  -webkit-user-select: none;
  user-select: none;
}

.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.tracking-wider {
  letter-spacing: 0.08em;
}

.rounded-full {
  border-radius: var(--radius-full);
}

.p-0 {
  padding: 0 !important;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mr-2 {
  margin-right: var(--space-2);
}

.ml-auto {
  margin-left: auto;
}

.opacity-50 {
  opacity: 0.5;
}

.pointer-events-none {
  pointer-events: none;
}

/* --- Remediated Styles for public/contact, forgot-password, privacy, and register-confirm --- */

.public-nav-items {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  margin-right: var(--space-5);
}

.public-nav-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.public-nav-link:hover,
.public-nav-link.active {
  color: var(--gold-500);
}

.public-page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.public-page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.public-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.public-form-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-textarea-min-h {
  min-height: 120px;
}

.btn-submit-public {
  align-self: flex-start;
  padding: 12px 28px;
  margin-top: 8px;
}

.public-info-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.public-info-list {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.public-info-list-sm {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.public-info-hint {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
}

.info-card-highlighted {
  background: rgba(201,152,58,0.03) !important;
  border-color: rgba(201,152,58,0.15) !important;
  text-align: center;
}

.info-card-highlighted-title {
  color: var(--gold-500);
  margin-bottom: 8px;
}

.info-card-highlighted-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.mb-8px {
  margin-bottom: 8px !important;
}

.auth-logo-icon-style {
  font-size: 32px;
  margin-bottom: 8px;
}

.auth-logo-name-style {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.auth-logo-sub-style {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-form-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-form-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.auth-form-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.btn-auth-submit {
  padding: 12px !important;
}

.success-box-style {
  background: rgba(34,197,94,0.05) !important;
  border: 1px solid rgba(34,197,94,0.15) !important;
  border-radius: var(--radius-lg) !important;
  padding: var(--space-4) !important;
  margin-top: var(--space-5) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--text-secondary) !important;
}

.font-size-13 {
  font-size: 13px !important;
}

.auth-back-link {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

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

.policy-card-gated {
  border-left: 4px solid var(--gold-500) !important;
}

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

.form-input-erasure {
  background: #FFFFFF !important;
  border: 1.5px solid var(--border-default) !important;
  color: var(--text-primary) !important;
}

.form-textarea-erasure {
  background: #FFFFFF !important;
  border: 1.5px solid var(--border-default) !important;
  color: var(--text-primary) !important;
  min-height: 70px !important;
}

.btn-erasure-submit {
  justify-content: center;
  padding: 10px !important;
}

.error-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.error-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.error-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-inline-flex-pad10 {
  display: inline-flex !important;
  padding: 10px !important;
}

.confirm-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.echo-details-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.echo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.echo-row-last {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 13px;
}

.text-muted-12 {
  font-size: 12px;
  color: var(--text-muted);
}

.state-icon-approved {
  font-size: 48px;
  color: var(--green-500);
  margin-bottom: 12px;
}

.state-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.approved-note-box {
  background: rgba(34,197,94,0.04) !important;
  border: 1px solid rgba(34,197,94,0.15) !important;
  border-radius: var(--radius-lg) !important;
  padding: 14px !important;
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  text-align: left !important;
}

.btn-inline-flex-pad12 {
  display: inline-flex !important;
  padding: 12px !important;
}

.state-icon-rejected {
  font-size: 48px;
  color: var(--red-500);
  margin-bottom: 12px;
}

.rejected-note-box {
  background: rgba(239,68,68,0.04) !important;
  border: 1px solid rgba(239,68,68,0.15) !important;
  border-radius: var(--radius-lg) !important;
  padding: 14px !important;
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  text-align: left !important;
}

.faq-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.confirm-footer {
  margin-top: var(--space-6);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.confirm-support-link {
  color: var(--gold-500);
  font-weight: 600;
  display: block;
  margin-top: 4px;
  text-decoration: underline;
}

/* --- Contact Page Styles --- */
.contact-container {
  max-width: 1000px;
  margin: 72px auto 0 auto;
  padding: var(--space-8) var(--space-4);
  flex: 1;
  width: 100%;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  margin-top: var(--space-6);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.info-card h4 {
  color: var(--gold-500);
  margin-bottom: 6px;
  font-size: 14px;
}
.public-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-default);
  padding: var(--space-6) 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-8);
}
.public-footer a {
  color: var(--gold-500);
  text-decoration: none;
  margin: 0 10px;
}
.public-footer a:hover {
  text-decoration: underline;
}

/* --- Forgot Password Page Styles --- */
.forgot-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.auth-page-body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  font-family: var(--font-body);
}

/* --- Privacy Page Styles --- */
.privacy-page-body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.privacy-container {
  max-width: 800px;
  margin: 80px auto 100px;
  padding: 0 var(--space-6);
}
.privacy-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.privacy-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.privacy-meta {
  color: var(--text-muted);
  font-size: 13px;
}
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.policy-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-500);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
  background: var(--bg-secondary);
}
.data-table th, .data-table td {
  border: 1px solid var(--border-default);
  padding: var(--space-3);
  text-align: left;
}
.data-table th {
  background: var(--bg-champagne);
  color: var(--gold-600);
}

/* --- Registration Confirmation Page Styles --- */
.confirm-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.clock-animated {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gold-500);
  border-radius: 50%;
  position: relative;
  margin: 0 auto var(--space-5) auto;
}
.clock-hand {
  width: 3px;
  height: 18px;
  background: var(--gold-500);
  position: absolute;
  top: 7px;
  left: 21px;
  transform-origin: bottom center;
  animation: spin-hand 5s linear infinite;
  border-radius: 2px;
}
@keyframes spin-hand {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.faq-accordion {
  margin-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-5);
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.faq-question {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-user-select: none;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 16px;
  color: var(--gold-400);
  transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
  content: '−';
}
.faq-answer {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
  display: none;
  animation: slideDown 0.2s ease-out;
}
.faq-item.active .faq-answer {
  display: block;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Public Phase 2 Styles --- */
.auth-logo-rem {
  text-align: center;
  margin-bottom: var(--space-6);
}
.auth-logo-rem .auth-logo-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.auth-logo-rem .auth-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.auth-logo-rem .auth-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.error-screen-content {
  text-align: center;
  padding: var(--space-4);
}
.error-screen-content .icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.error-screen-content h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--red-500);
  margin-bottom: 8px;
}
.error-screen-content p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: var(--space-6);
}
.error-screen-content a {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 10px;
}

.reset-form-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}
.reset-form-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: var(--space-6);
  text-align: center;
}
.reset-form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.reset-form-strength {
  margin-top: 8px;
}
.reset-form-strength-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.reset-submit-btn-rem {
  width: 100%;
  justify-content: center;
  padding: 12px;
  margin-top: 8px;
}

.success-screen-content {
  text-align: center;
}
.success-screen-content .icon {
  font-size: 40px;
  color: var(--green-500);
  margin-bottom: 12px;
}
.success-screen-content h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.success-screen-content p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.success-screen-content .countdown {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.success-screen-content .progress-bar-wrap {
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}
.success-screen-content .progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-500);
  transition: width 2s linear;
}

.register-header-rem {
  text-align: center;
  max-width: 600px;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}
.register-header-rem h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.register-header-rem p {
  color: var(--text-secondary);
}
.register-card-z1 {
  position: relative;
  z-index: 1;
}

.back-to-home-link {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s;
  z-index: 10;
  text-decoration: none;
}
.back-to-home-link:hover {
  color: var(--gold-400);
}
.auth-card-gold-border {
  border: 1.5px solid var(--gold-500) !important;
  box-shadow: var(--shadow-gold-lg) !important;
}
.logo-name-bold {
  font-family: var(--font-display);
  font-weight: 700;
}
.password-input-padding {
  padding-right: 44px;
}
.eye-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}
.forgot-pass-link {
  font-size: 12px;
  color: var(--gold-500);
  align-self: flex-end;
  margin-top: -8px;
  text-decoration: none;
}
.forgot-pass-link:hover {
  text-decoration: underline;
}
.btn-full-padding {
  width: 100%;
  justify-content: center;
  padding: 13px;
}
.auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-5);
}
.auth-footer-text a {
  color: var(--gold-500);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer-text a:hover {
  text-decoration: underline;
}

.category-img-rings {
  background-image: url('https://images.unsplash.com/photo-1605100804763-247f67b3557e?q=80&w=600&auto=format&fit=crop');
}
.category-img-necklaces {
  background-image: url('https://images.unsplash.com/photo-1599643478518-a784e5dc4c8f?q=80&w=600&auto=format&fit=crop');
}
.category-img-bracelets {
  background-image: url('https://images.unsplash.com/photo-1611591437281-460bfbe1220a?q=80&w=600&auto=format&fit=crop');
}
.category-img-earrings {
  background-image: url('https://images.unsplash.com/photo-1635767798638-3e25273a8236?q=80&w=600&auto=format&fit=crop');
}
.footer-about-text {
  margin-top: 8px;
  font-size: 13px;
}
.footer-whatsapp-container {
  margin-top: 16px;
}

/* ── Custom Logo & Layout Stability Overrides ──────────────── */
.main-logo {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Responsive logo layout rules for sidebar/navbar containers */
.sidebar-logo .main-logo {
  max-height: 36px;
}

.navbar-brand .main-logo,
.nav-logo .main-logo {
  max-height: 40px;
}

/* Ensure no distortion and centered placement */
img.main-logo {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Layout stability classes to prevent flickering / jumping */
.sidebar {
  position: fixed;
  height: 100vh;
}
.main-content {
  margin-left: 250px;
}
body {
  overflow-x: hidden;
}

