:root {
  --brand-color: #111113;
  --brand-dark: #09090b;
  --gold-accent: #c5933a;
  --gold-bright: #e3b864;
  --gold-soft: rgba(197, 147, 58, 0.11);
  --gold-border: rgba(197, 147, 58, 0.32);

  --bg-page: #f7f7f8;
  --bg-card: #ffffff;
  --bg-subtle: #f2f2f4;
  --text-main: #0f0f11;
  --text-secondary: #4a4a52;
  --text-muted: #71717a;

  --border-hairline: rgba(15, 15, 17, 0.08);
  --border-strong: rgba(15, 15, 17, 0.16);

  --error-color: #dc2626;
  --error-bg: #fef2f2;
  --success-color: #15803d;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px -6px rgba(15, 15, 17, 0.05);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 36px -10px rgba(15, 15, 17, 0.09);
  --shadow-hero: 0 24px 60px -18px rgba(9, 9, 11, 0.45);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(at 15% 0%, rgba(197, 147, 58, 0.08) 0px, transparent 42%),
    radial-gradient(at 85% 5%, rgba(17, 17, 19, 0.04) 0px, transparent 38%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.55;
  accent-color: var(--brand-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Visually hidden utility (accessible to screen readers) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ==========================================
   Framer Floating Frosted-Glass Topbar
   ========================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-hairline);
}

.topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-wide .topbar-inner {
  max-width: 1220px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.025em;
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-accent);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s var(--ease-spring), color 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Sleek Framer progress strip */
.progress-strip {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.progress-strip progress {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  accent-color: var(--gold-accent);
}

.progress-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Main containers */
.container {
  max-width: 820px;
  margin: 2rem auto 5rem;
  padding: 0 1.25rem;
}

.container-wide {
  max-width: 1220px;
  margin: 2rem auto 5rem;
  padding: 0 1.25rem;
}

/* ==========================================
   Framer Obsidian & Gold Hero Card
   ========================================== */
.hero-card {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(227, 184, 100, 0.22), transparent 70%),
    linear-gradient(180deg, #161619 0%, #0b0b0d 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(227, 184, 100, 0.22);
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: fadeUp 0.5s var(--ease-spring) both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, black, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo-box {
  width: 86px;
  height: 86px;
  margin: 0 auto 1.1rem;
  border-radius: 22px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px rgba(227, 184, 100, 0.45),
    0 12px 32px rgba(0, 0, 0, 0.45);
}

.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(227, 184, 100, 0.14);
  border: 1px solid rgba(227, 184, 100, 0.32);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bismillah {
  font-family: "Amiri", "Traditional Arabic", "Geeza Pro", serif;
  font-size: 1.65rem;
  line-height: 1.75;
  color: var(--gold-bright);
  margin: 0 0 0.35rem;
  direction: rtl;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-note {
  margin: 1.25rem auto 0;
  display: inline-block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.56);
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-note strong {
  color: var(--gold-bright);
}

/* ==========================================
   Framer Bento Section Cards
   ========================================== */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.28s var(--ease-spring), border-color 0.28s var(--ease-spring);
  animation: fadeUp 0.45s var(--ease-spring) both;
}

.section-card:hover {
  border-color: rgba(15, 15, 17, 0.12);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
}

.section-num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-color);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* ==========================================
   Form Inputs & Framer Focus States
   ========================================== */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .section-card {
    padding: 1.25rem;
    border-radius: 20px;
  }
  .hero-card {
    padding: 2rem 1.35rem;
    border-radius: 20px;
  }
  .nav-link {
    padding: 0.38rem 0.72rem;
    font-size: 0.8rem;
  }
}

.field {
  margin-bottom: 1.1rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label.field-label,
.question-fieldset legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.38rem;
  color: var(--text-main);
}

.required-star {
  color: var(--gold-accent);
  margin-left: 0.15rem;
}

.hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #fafafa;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring), background-color 0.18s var(--ease-spring);
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="date"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
  background: #ffffff;
  border-color: rgba(15, 15, 17, 0.28);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(17, 17, 19, 0.08);
}

/* Validation: show errors only after interaction (:user-invalid + fallback) */
.error-msg {
  display: none;
  color: var(--error-color);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.38rem;
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--error-color);
  background-color: var(--error-bg);
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

:is(input[type="text"], input[type="date"], textarea):user-valid {
  border-color: rgba(21, 128, 61, 0.45);
}

/* ==========================================
   Framer Segmented Radio Cards
   ========================================== */
.question-fieldset {
  border: 1px solid var(--border-hairline);
  background: #fafafa;
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem;
  margin: 0 0 0.9rem;
  transition: border-color 0.2s var(--ease-spring), background-color 0.2s var(--ease-spring);
}

.question-fieldset:last-child {
  margin-bottom: 0;
}

.question-fieldset.fieldset-invalid {
  border-color: var(--error-color);
  background: var(--error-bg);
}

.question-fieldset.fieldset-invalid .error-msg {
  display: block;
}

.question-fieldset legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.72rem;
  line-height: 1.45;
  font-size: 0.92rem;
}

.question-fieldset::after {
  content: "";
  display: block;
  clear: both;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  clear: both;
}

@media (max-width: 720px) {
  .radio-group {
    grid-template-columns: 1fr;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.56rem 0.68rem;
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.18s var(--ease-spring),
    border-color 0.18s var(--ease-spring),
    background-color 0.18s var(--ease-spring),
    color 0.18s var(--ease-spring),
    box-shadow 0.18s var(--ease-spring);
}

.radio-option:hover {
  border-color: var(--gold-border);
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.radio-option:has(input:checked) {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px -4px rgba(17, 17, 19, 0.35), 0 0 0 1px rgba(227, 184, 100, 0.45);
}

.radio-option:has(input:checked) input[type="radio"] {
  accent-color: var(--gold-bright);
}

.radio-option input[type="radio"] {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

/* Fallback for older browsers without accent-color */
@supports not (accent-color: #111113) {
  .radio-option input[type="radio"] {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .radio-option {
    position: relative;
    padding-left: 2rem;
  }

  .radio-option input[type="radio"] + span::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.95rem;
    height: 0.95rem;
    border: 1.5px solid #a1a1aa;
    border-radius: 50%;
    background: #ffffff;
  }

  .radio-option input[type="radio"]:focus-visible + span::before {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
  }

  .radio-option input[type="radio"]:checked + span::before {
    border-color: var(--gold-bright);
    background: radial-gradient(circle, var(--gold-bright) 45%, var(--brand-color) 52%);
  }

  progress {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: #e4e4e7;
    border-radius: 999px;
  }

  progress::-webkit-progress-bar {
    background-color: #e4e4e7;
    border-radius: 999px;
  }

  progress::-webkit-progress-value {
    background-color: var(--gold-accent);
    border-radius: 999px;
  }

  progress::-moz-progress-bar {
    background-color: var(--gold-accent);
    border-radius: 999px;
  }
}

/* ==========================================
   Framer Buttons
   ========================================== */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.55rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-spring),
    background-color 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease-spring),
    border-color 0.2s var(--ease-spring);
}

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

.btn-primary {
  background: var(--brand-color);
  color: #ffffff;
  box-shadow: 0 6px 20px -6px rgba(17, 17, 19, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover:not(:disabled) {
  background: #222226;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -6px rgba(17, 17, 19, 0.55), 0 0 0 1px rgba(227, 184, 100, 0.45);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.btn-danger {
  background: #ffffff;
  color: var(--error-color);
  border: 1px solid rgba(220, 38, 38, 0.22);
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
}

.btn-danger:hover {
  background: var(--error-bg);
}

.btn-sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
}

/* Alert Banner */
.alert-banner {
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
}

.alert-banner.show {
  display: block;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-color);
  border: 1px solid rgba(220, 38, 38, 0.22);
}

/* Success State */
.success-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 3.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-hover);
  animation: fadeUp 0.4s var(--ease-spring) both;
}

.success-card.show {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--brand-color);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  box-shadow: 0 10px 28px -6px rgba(17, 17, 19, 0.45);
}

.success-card h2 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.success-card p {
  margin: 0 auto 1.75rem;
  max-width: 460px;
  color: var(--text-secondary);
}

/* ==========================================
   Framer Bento Admin Dashboard
   ========================================== */
.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 0.35rem;
}

.dashboard-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-main);
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s var(--ease-spring), box-shadow 0.24s var(--ease-spring);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.kpi-card-featured {
  background: linear-gradient(160deg, #17171a 0%, #0b0b0d 100%);
  border-color: rgba(227, 184, 100, 0.28);
  color: #ffffff;
}

.kpi-card-featured .kpi-label {
  color: var(--gold-bright);
}

.kpi-card-featured .kpi-value {
  color: #ffffff;
}

.kpi-card-featured .kpi-sub {
  color: rgba(255, 255, 255, 0.62);
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  margin: 0.35rem 0 0.2rem;
  line-height: 1.1;
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Category Breakdown Bars */
.analytics-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.bar-row {
  margin-bottom: 0.95rem;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.bar-meta span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.bar-track {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-color) 0%, var(--gold-accent) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.45s var(--ease-spring);
}

.dist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.dist-row:last-child {
  border-bottom: none;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill-5 { background: rgba(21, 128, 61, 0.12); color: #166534; }
.pill-4 { background: rgba(197, 147, 58, 0.16); color: #8c631c; }
.pill-3 { background: rgba(113, 113, 122, 0.14); color: #3f3f46; }
.pill-2 { background: rgba(234, 88, 12, 0.14); color: #9a3412; }
.pill-1 { background: rgba(220, 38, 38, 0.13); color: #991b1b; }

/* Filter toolbar */
.toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  align-items: center;
}

.toolbar input[type="search"] {
  flex: 1;
  min-width: 220px;
}

.toolbar select {
  width: auto;
  min-width: 210px;
}

/* Responsive Semantic Data Table (container query + sticky headers) */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 75vh);
  container-type: inline-size;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.table-wrapper:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  --label-2: "Grup";
  --label-3: "Pembimbing";
  --label-4: "Muthowwif";
  --label-5: "Kesimpulan";
  --label-6: "Skor";
  --label-7: "Aksi";
}

.data-table caption {
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-main);
  background: #fafafa;
  border-bottom: 1px solid var(--border-hairline);
}

.data-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.data-table thead th {
  background: #f5f5f7;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.data-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: #ffffff;
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
  z-index: 1;
}

.data-table tbody tr:hover th,
.data-table tbody tr:hover td {
  background: #fafafa;
}

.actions-cell {
  display: flex;
  gap: 0.4rem;
  white-space: nowrap;
}

@container (width < 680px) {
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    margin: 0.75rem;
    border: 1px solid var(--border-hairline);
    border-radius: 14px;
    overflow: hidden;
  }

  .data-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: #f5f5f7;
    border-bottom: 1px solid var(--border-hairline);
  }

  .data-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  .data-table td:nth-child(2)::before { content: var(--label-2) ": "; font-weight: 600; color: var(--text-muted); }
  .data-table td:nth-child(3)::before { content: var(--label-3) ": "; font-weight: 600; color: var(--text-muted); }
  .data-table td:nth-child(4)::before { content: var(--label-4) ": "; font-weight: 600; color: var(--text-muted); }
  .data-table td:nth-child(5)::before { content: var(--label-5) ": "; font-weight: 600; color: var(--text-muted); }
  .data-table td:nth-child(6)::before { content: var(--label-6) ": "; font-weight: 600; color: var(--text-muted); }
  .data-table td:nth-child(7)::before { content: var(--label-7) ": "; font-weight: 600; color: var(--text-muted); }
}

/* Native Dialog Modal */
dialog.detail-dialog {
  width: min(720px, 94vw);
  max-height: 86vh;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

dialog.detail-dialog::backdrop {
  background: rgba(9, 9, 11, 0.58);
  backdrop-filter: blur(6px);
}

.dialog-head {
  padding: 1.15rem 1.45rem;
  background: var(--brand-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(227, 184, 100, 0.25);
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.dialog-close {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dialog-body {
  padding: 1.35rem 1.45rem;
  overflow-y: auto;
  max-height: calc(86vh - 64px);
}

.detail-section-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-accent);
  margin: 1.2rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-hairline);
}

.detail-section-title:first-child {
  margin-top: 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  border-bottom: 1px dotted var(--border-hairline);
}

.detail-row span:first-child {
  color: var(--text-muted);
}

.detail-saran {
  background: #fafafa;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.05rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: var(--text-main);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2.5rem;
}

/* ==========================================
   Framer Admin Login Page
   ========================================== */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-shell {
  width: min(420px, 100%);
  animation: fadeUp 0.45s var(--ease-spring) both;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-hover);
}

.login-brand {
  text-align: center;
  margin-bottom: 1.65rem;
}

.login-logo-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(15, 15, 17, 0.12), 0 0 0 1px var(--gold-border);
}

.login-brand h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.login-brand p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-submit {
  width: 100%;
  margin-top: 0.6rem;
}
