/* ==========================================================================
   Golyv (جولايف) — shared design system for the design/* screens
   Converted from Figma screenshots. RTL-first, Arabic (Cairo) typeface.
   ========================================================================== */

:root {
  --navy-950: #0b1730;
  --navy-900: #101f3d;
  --navy-800: #14213e;
  --navy-700: #1a2b4d;
  --navy-600: #22365c;
  --navy-500: #2c4270;

  --brand-grad-start: #24406f;
  --brand-grad-end: #101f3d;

  --accent-orange: #f3894e;
  --accent-orange-soft: #fdece0;
  --accent-purple: #7c6cf0;
  --accent-purple-soft: #efecfd;

  --green: #1fa971;
  --green-dark: #16a34a;
  --green-soft: #e4f8ee;
  --yellow: #eab308;
  --yellow-soft: #fdf3d9;
  --orange: #f5871f;
  --orange-soft: #fdeadb;
  --red: #ef4444;
  --red-soft: #fde9e9;
  --lime: #84cc16;
  --blue: #3b82f6;
  --blue-soft: #e8f1ff;

  --gray-25: #fafbfc;
  --gray-50: #f6f7fa;
  --gray-100: #eef1f5;
  --gray-200: #e3e8ef;
  --gray-300: #cdd5e0;
  --gray-400: #9aa6b8;
  --gray-500: #6b7789;
  --gray-600: #4b5768;
  --gray-700: #334155;

  --text-main: #16233f;
  --text-muted: #6b7789;
  --white: #ffffff;

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 2px 14px rgba(16, 31, 61, 0.06);
  --shadow-pop: 0 20px 45px rgba(10, 20, 40, 0.35);
}

* { box-sizing: border-box; }

body.golyv {
  margin: 0;
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text-main);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

/* :where() keeps this at zero specificity so classes like .btn-primary can set a link's color. */
:where(.golyv) a { text-decoration: none; color: inherit; }
.golyv ul { list-style: none; margin: 0; padding: 0; }
.golyv img { max-width: 100%; display: block; }
.golyv button { font-family: inherit; cursor: pointer; }
.golyv input, .golyv textarea, .golyv select { font-family: inherit; }

/* Circuit-board decorative background used on dark hero sections */
.circuit-bg {
  position: relative;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.8px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  transition: filter .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--brand-grad-start), var(--brand-grad-end));
  box-shadow: 0 10px 20px rgba(16, 31, 61, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--gray-200);
}
.btn-outline:hover { background: var(--gray-50); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-link-orange { color: var(--accent-orange); font-weight: 700; }

/* ---------- Cards / badges ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.badge-green   { background: var(--green-soft);  color: var(--green-dark); }
.badge-yellow  { background: var(--yellow-soft);  color: #a16207; }
.badge-blue    { background: var(--blue-soft);    color: #2563eb; }
.badge-orange  { background: var(--orange-soft);  color: var(--orange); }
.badge-purple  { background: var(--accent-purple-soft); color: var(--accent-purple); }
.badge-red     { background: var(--red-soft);     color: var(--red); }
.badge-gray    { background: var(--gray-100);     color: var(--gray-600); }

.pill-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 13px;
}

/* ==========================================================================
   PUBLIC (customer-facing) pages
   ========================================================================== */

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

.public-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 32px;
}
.public-header .row {
  direction: ltr;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.public-header .header-side { display: flex; align-items: center; gap: 12px; min-width: 140px; }
.public-header .header-center { flex: 1; text-align: center; direction: rtl; }
.public-header .header-center h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-main); }
.public-header .header-center p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }
.public-header .header-logo { text-align: left; direction: rtl; }

.btn-chip {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13.5px;
  background: var(--white);
}

.brand-logo { font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--text-main); }
.brand-logo small { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.brand-logo.on-dark, .brand-logo.on-dark small { color: var(--white); }
.brand-logo.on-dark small { color: rgba(255,255,255,.65); }

.public-hero {
  padding: 56px 24px 48px;
  text-align: center;
  color: var(--white);
}
.public-hero h1 { font-size: 34px; font-weight: 800; margin: 0 0 10px; }
.public-hero p { font-size: 15px; color: rgba(255,255,255,.65); margin: 0 auto; max-width: 520px; }
.public-hero .trust-pills { margin-top: 22px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700;
}

.public-main { flex: 1; padding: 40px 24px 64px; }
.public-main .wrap { max-width: 760px; margin: 0 auto; }
.public-main .wrap.wide { max-width: 1080px; }

.public-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.55);
  padding: 22px 32px;
  font-size: 13px;
}
.public-footer.rich { padding: 0; }
.public-footer.rich .inner {
  max-width: 1200px; margin: 0 auto; padding: 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.public-footer .socials { display: flex; gap: 10px; }
.public-footer .socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px;
}
.public-footer .tagline { text-align: left; direction: rtl; }
.public-footer .tagline strong { display: block; color: var(--white); font-size: 14px; }
.public-footer .tagline span { font-size: 12.5px; color: rgba(255,255,255,.5); }
.public-footer .copy { text-align: center; padding: 16px; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* Login page */
.login-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 56px 24px 40px; overflow: hidden; }
.login-shell .brand-logo { text-align: center; margin-bottom: 36px; }
.login-shell .brand-logo small { font-size: 15px; margin-top: 4px; }
.login-intro { text-align: center; color: var(--white); margin-bottom: 34px; }
.login-intro h1 { font-size: 30px; font-weight: 800; margin: 0 0 12px; line-height: 1.35; }
.login-intro p { color: rgba(255,255,255,.6); font-size: 14.5px; margin: 0; line-height: 1.8; }
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
  padding: 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 2;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field .input-wrap { position: relative; }
.field input {
  width: 100%;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--text-main);
}
.field input::placeholder { color: var(--gray-400); }
.field .toggle-eye { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.field.has-icon input { padding-inline-start: 42px; }
.forgot-link { display: block; text-align: start; font-size: 13.5px; color: var(--navy-800); font-weight: 700; margin: -8px 0 22px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: var(--radius-md); padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; }
.field-row { display: flex; align-items: center; justify-content: space-between; margin: -8px 0 20px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.checkbox-label input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--navy-800); }

/* Service chooser cards */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.choice-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.choice-card .icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 26px;
}
.choice-card .icon.blue { background: #eef0fd; color: #3b4bd6; }
.choice-card .icon.orange { background: var(--accent-orange-soft); color: var(--accent-orange); }
.choice-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.choice-card p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 18px; line-height: 1.8; }
.choice-card .go-link { font-weight: 800; font-size: 14px; color: var(--accent-orange); display: inline-flex; align-items: center; gap: 8px; }

/* Rating form */
.rate-section { padding: 26px 28px 28px; margin-bottom: 22px; }
.rate-section .sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.rate-section .sec-head h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.rate-section .sec-head p { font-size: 13px; color: var(--text-muted); margin: 0; }
.rate-section .sec-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--gray-50);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.scale-legend {
  display: flex; justify-content: space-between;
  max-width: 300px; margin-bottom: 10px; padding: 0 2px;
  font-size: 11.5px; font-weight: 700;
}
.scale-legend span:nth-child(1) { color: var(--green-dark); }
.scale-legend span:nth-child(2) { color: var(--lime); }
.scale-legend span:nth-child(3) { color: var(--yellow); }
.scale-legend span:nth-child(4) { color: var(--orange); }
.scale-legend span:nth-child(5) { color: var(--red); }

.rate-question { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--gray-100); }
.rate-question:first-of-type { border-top: none; padding-top: 0; }
.rate-question .q-text { text-align: end; }
.rate-question .q-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.rate-question .q-answer { font-size: 12.5px; font-weight: 700; }
.scale-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.scale-btn {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.scale-btn.sel-1 { background: var(--red); border-color: var(--red); color: var(--white); }
.scale-btn.sel-2 { background: var(--orange); border-color: var(--orange); color: var(--white); }
.scale-btn.sel-3 { background: var(--yellow); border-color: var(--yellow); color: var(--white); }
.scale-btn.sel-4 { background: var(--lime); border-color: var(--lime); color: var(--white); }
.scale-btn.sel-5 { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

.reason-box {
  margin-top: 12px;
  background: var(--red-soft);
  border: 1px solid #f8d3d3;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.reason-box input {
  flex: 1; border: none; background: transparent; font-size: 13px; text-align: end;
}
.reason-box input::placeholder { color: #c99; }

.yesno { display: inline-flex; border-radius: 999px; background: var(--gray-100); padding: 3px; gap: 3px; }
.yesno button {
  border: none; background: transparent; border-radius: 999px;
  padding: 7px 20px; font-weight: 700; font-size: 13.5px; color: var(--text-muted);
}
.yesno button.active { background: var(--navy-800); color: var(--white); }

.qa-row { padding: 16px 0; border-top: 1px solid var(--gray-100); }
.qa-row:first-child { border-top: none; padding-top: 0; }
.qa-row .qa-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.qa-row .qa-title { font-weight: 700; font-size: 14.5px; margin: 0 0 4px; }
.qa-row .qa-sub { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.qa-row textarea {
  width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--gray-50); padding: 14px 16px; font-size: 13.5px; min-height: 90px; resize: vertical;
}
.char-count { font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.attach-btn {
  width: 100%; border: 1px dashed #f0c9c9; background: var(--red-soft); color: var(--red);
  border-radius: var(--radius-md); padding: 13px; font-weight: 700; font-size: 13.5px; margin-top: 14px;
}
.contact-box { margin-top: 18px; }
.contact-box .cb-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.contact-box .field { margin-bottom: 14px; }
.optional-tag { font-weight: 400; color: var(--gray-400); font-size: 12px; }

/* Dynamic question types (yes/no, single choice, text) */
.choice-group { position: relative; display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.choice-group input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice-chip {
  border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-600);
  border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.choice-group input:checked + .choice-chip { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.choice-group input:focus-visible + .choice-chip { outline: 2px solid var(--navy-800); outline-offset: 2px; }
.rate-question.stacked { flex-direction: column; gap: 12px; }
.rate-question.stacked .q-text { width: 100%; }
.rate-question textarea {
  width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--gray-50); padding: 14px 16px; font-size: 13.5px; min-height: 90px; resize: vertical;
}
.option-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.option-row input { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; }
.option-row input.opt-label { flex: 1; }
.option-row input.opt-score { width: 90px; }

/* Request-service form */
.form-card { padding: 0; overflow: hidden; }
.form-card .fc-head { padding: 24px 28px; border-bottom: 1px solid var(--gray-100); font-size: 18px; font-weight: 800; }
.form-card .fc-body { padding: 26px 28px; }
.upload-box {
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius-md);
  padding: 32px 16px; text-align: center; color: var(--gray-500); background: var(--gray-25);
}
.upload-box .icon { font-size: 22px; color: var(--gray-400); margin-bottom: 10px; }
.upload-box strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.upload-box small { font-size: 12px; color: var(--gray-400); }
.form-card textarea, .form-card select {
  width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--gray-50); padding: 14px 16px; font-size: 14px;
}
.required-star { color: var(--red); }

/* Success dialog */
.overlay-scrim {
  position: fixed; inset: 0; background: rgba(10,18,36,.55);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50;
}
.success-dialog {
  background: var(--white); border-radius: var(--radius-xl);
  max-width: 420px; width: 100%; padding: 40px 32px; text-align: center;
  box-shadow: var(--shadow-pop);
}
.success-dialog .check-circle {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(180deg, var(--brand-grad-start), var(--brand-grad-end));
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 28px;
}
.success-dialog h2 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.success-dialog p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.8; }
.txn-box { background: var(--gray-50); border-radius: var(--radius-md); padding: 14px; margin-bottom: 22px; }
.txn-box .txn-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.txn-box .txn-value { font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.page-behind { filter: blur(3px); pointer-events: none; user-select: none; }

/* ==========================================================================
   ADMIN dashboard
   ========================================================================== */

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin-sidebar .side-brand { text-align: center; padding: 26px 16px 22px; }
.admin-sidebar .side-brand .brand-logo { font-size: 19px; }
.admin-sidebar nav { flex: 1; padding: 6px 14px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 14px; color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.admin-sidebar nav a i { width: 18px; text-align: center; font-size: 15px; }
.admin-sidebar nav a.active { background: rgba(255,255,255,.1); color: var(--white); }
.admin-sidebar nav a:hover:not(.active) { color: rgba(255,255,255,.9); }
.admin-sidebar .side-foot { padding: 16px; text-align: center; font-size: 11px; color: rgba(255,255,255,.35); }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar .user-chip { display: flex; align-items: center; gap: 10px; }
.admin-topbar .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; color: var(--gray-500);
}
.admin-topbar .user-chip .name { font-weight: 700; font-size: 13.5px; }
.admin-topbar .user-chip .role { font-size: 11.5px; color: var(--text-muted); }
.admin-topbar .top-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
  background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--gray-500); position: relative;
}
.icon-btn .dot { position: absolute; top: 8px; inset-inline-start: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.admin-toolbar {
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.admin-toolbar .page-title h1 { font-size: 19px; font-weight: 800; margin: 0; }
.admin-toolbar .page-title p { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 0; }
.select-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 13px; font-weight: 700; background: var(--white); color: var(--text-main);
}

.admin-body { padding: 26px 28px; flex: 1; }

.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; font-weight: 700; }
.breadcrumbs .crumb-active { background: var(--navy-800); color: var(--white); padding: 8px 16px; border-radius: var(--radius-sm); }
.breadcrumbs .crumb-link { padding: 8px 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { padding: 20px; position: relative; }
.stat-card .trend { position: absolute; top: 18px; inset-inline-start: 18px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.stat-card .trend.up { background: var(--green-soft); color: var(--green-dark); }
.stat-card .trend.down { background: var(--red-soft); color: var(--red); }
.stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: 10px; float: inline-end;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.stat-card .stat-value { font-size: 30px; font-weight: 800; margin: 30px 0 2px; }
.stat-card .stat-label { font-size: 13.5px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.stat-card .stat-link { font-size: 12px; color: var(--text-muted); }

.panel-grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-bottom: 22px; }
.panel-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { padding: 22px; }
.panel h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 18px; }

.rank-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.rank-row:last-child { margin-bottom: 0; }
.rank-row .rank-name { width: 130px; flex-shrink: 0; font-weight: 700; text-align: end; }
.rank-row .rank-score { width: 44px; flex-shrink: 0; color: var(--text-muted); font-size: 12px; }
.bar-track { flex: 1; height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#5b6fe0,#3a49c9); }
.bar-fill.orange { background: var(--orange); }
.bar-fill.red { background: var(--red); }
.bar-fill.green { background: var(--green-dark); }

.dist-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; }
.dist-row:last-child { margin-bottom: 0; }
.dist-row .dist-count { width: 34px; font-weight: 800; }
.dist-row .dist-pct { width: 46px; color: var(--text-muted); font-size: 12px; }
.dist-row .bar-track { flex: 1; }
.dist-row .dist-label { width: 90px; flex-shrink: 0; text-align: end; font-weight: 700; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

/* Tables */
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.golyv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.golyv-table th {
  text-align: end; padding: 14px 18px; font-weight: 700; color: var(--text-muted);
  font-size: 12.5px; border-bottom: 1px solid var(--gray-100); white-space: nowrap;
}
table.golyv-table td { text-align: end; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; white-space: nowrap; }
table.golyv-table tr:last-child td { border-bottom: none; }
.cell-sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.link-btn { color: var(--navy-800); font-weight: 700; }
.status-select {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px;
  border-radius: 999px; padding: 5px 12px;
}

.filters-card { padding: 20px 22px; margin-bottom: 20px; }
.filters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 6px; }
.filters-grid label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.filters-grid select, .filters-grid input {
  width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; background: var(--white);
}
.search-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.search-box { flex: 1; position: relative; }
.search-box i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.search-box input { width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 11px 40px; font-size: 13.5px; }
.result-count { font-size: 13px; color: var(--text-muted); font-weight: 700; white-space: nowrap; }

.pagination-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.page-numbers { display: flex; gap: 6px; }
.page-numbers button {
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
  background: var(--white); font-weight: 700; font-size: 13px; color: var(--text-main);
}
.page-numbers button.active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.pg-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 8px 16px; font-weight: 700; font-size: 13px; background: var(--white); }
.pg-btn[disabled] { color: var(--gray-300); }

/* Modal overlay (shown statically alongside dimmed page for this prototype) */
.modal-scrim { position: fixed; inset: 0; background: rgba(10,18,36,.5); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow: auto; z-index: 60; }
.hidden { display: none !important; }
.modal-scrim.hidden { display: none; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 480px; box-shadow: var(--shadow-pop); }
.modal-box.wide { max-width: 760px; }
.modal-box .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-100); }
.modal-box .modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.modal-box .modal-head p { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.modal-box .modal-body { padding: 22px 24px; }
.modal-box .modal-foot { display: flex; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--gray-100); }
.modal-close { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--gray-100); color: var(--gray-500); }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.detail-tile { border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 14px; }
.detail-tile.score { background: var(--green-soft); border-color: transparent; grid-column: span 1; }
.detail-tile .tile-label { font-size: 11.5px; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.detail-tile .tile-value { font-size: 15px; font-weight: 800; }
.detail-tile.score .tile-value { font-size: 26px; color: var(--green-dark); }
.mini-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.6); overflow: hidden; margin-top: 8px; }
.mini-progress span { display: block; height: 100%; background: var(--green-dark); }

.rate-list { border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 14px; }
.rate-list .rl-title { font-weight: 700; font-size: 13px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rate-list .rl-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.rl-row .stars { color: var(--yellow); letter-spacing: 1px; font-size: 12px; }

.note-box { background: var(--yellow-soft); border-radius: var(--radius-md); padding: 12px 14px; margin-top: 14px; font-size: 13px; }
.note-box .nb-label { font-weight: 700; font-size: 12px; color: #a16207; margin-bottom: 4px; display:flex; align-items:center; gap:6px; }
.complaint-box { background: var(--red-soft); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 16px; }
.complaint-box .cb-label { font-weight: 700; font-size: 13px; color: var(--red); margin-bottom: 6px; display:flex; align-items:center; gap:6px; }
.photo-box { background: var(--orange-soft); border-radius: var(--radius-md); padding: 16px; margin-top: 16px; }
.photo-box .pb-label { font-weight: 700; font-size: 13px; color: var(--accent-orange); margin-bottom: 10px; display:flex; align-items:center; gap:6px; }
.photo-placeholder { background: var(--gray-100); border-radius: var(--radius-sm); height: 90px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gray-400); }
.photo-placeholder .ph-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-300); }
.photo-placeholder .ph-bar { width: 60px; height: 26px; border-radius: 6px; background: var(--gray-300); }

/* toggle switch */
.toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--gray-200); position: relative; display: inline-block; flex-shrink: 0; }
.toggle.on { background: var(--navy-800); }
.toggle .knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: .15s; }
.toggle.on .knob { inset-inline-start: 21px; }

/* settings page */
.settings-toolbar { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.settings-section { padding: 20px 22px; margin-bottom: 18px; }
.settings-section .ss-title { font-weight: 800; font-size: 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--gray-100); gap: 16px; }
.settings-row:first-of-type { border-top: none; padding-top: 0; }
.settings-row .sr-text strong { display: block; font-size: 13.5px; font-weight: 700; }
.settings-row .sr-text span { font-size: 12px; color: var(--text-muted); }
.settings-section.warn { background: #fff8f8; border: 1px solid #fbdede; }
.mini-field { margin-bottom: 14px; }
.mini-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.mini-field .edit-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; color: var(--gray-500); }

.question-group { border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 16px; }
.question-group .qg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 800; font-size: 14px; }
.question-group .qg-head .qg-actions { display: flex; align-items: center; gap: 10px; color: var(--gray-400); font-size: 13px; }
.question-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--gray-600); }
.question-item i.drag { color: var(--gray-300); }
.question-item .qi-text { flex: 1; }
.add-question { width: 100%; border: 1px dashed var(--gray-300); border-radius: var(--radius-sm); padding: 10px; font-size: 13px; color: var(--gray-500); background: var(--gray-25); margin-top: 6px; }

.checklist-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; }
.checklist-row input[type=checkbox] { width: 17px; height: 17px; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.perm-item { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; font-weight: 700; }
.perm-item:has(input:disabled) { background: var(--gray-50); color: var(--text-muted); border-color: var(--gray-100); }
.perm-item:has(input:disabled)::after { content: "من الدور"; font-size: 11px; font-weight: 700; color: var(--gray-400); }
.company-tag { display: inline-flex; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 12.5px; font-weight: 700; margin-inline-end: 6px; margin-bottom: 6px; }

/* activity log timeline colors */
.action-tag { font-weight: 700; font-size: 12px; }
.action-tag.resolve { color: var(--green-dark); }
.action-tag.status { color: var(--blue); }
.action-tag.edit { color: var(--yellow); background: var(--yellow-soft); padding: 4px 10px; border-radius: 999px; }
.action-tag.add { color: #2563eb; background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; }
.action-tag.delete { color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 999px; }

/* Responsive */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid-2, .panel-grid-3 { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-sidebar { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* Design index hub */
.design-index { max-width: 980px; margin: 0 auto; padding: 48px 24px; }
.design-index h1 { font-size: 24px; margin-bottom: 6px; }
.design-index p.lead { color: var(--text-muted); margin-bottom: 28px; }
.design-index .grp-title { font-size: 13px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin: 28px 0 12px; }
.design-index .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.design-index .item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 16px 18px; }
.design-index .item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.design-index .item span { font-size: 12px; color: var(--text-muted); }
