:root {
  --green: #14543a;
  --green-dark: #0d3a27;
  --green-soft: #e4efe7;
  --gold: #b8912e;
  --gold-deep: #96721f;
  --gold-soft: #f4ead2;
  --red: #9e2b25;
  --red-soft: #f6e6e2;
  --amber: #9a6a12;
  --amber-soft: #f6ecd6;
  --ink: #2a2118;
  --muted: #6f6656;
  --line: #e4dcc7;
  --bg: #f5efe1;
  --card: #fffdf7;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(42, 33, 24, .06), 0 6px 18px rgba(42, 33, 24, .08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", "Amiri", serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23b8912e' stroke-opacity='0.10' stroke-width='1'%3E%3Cpath d='M32 6 L40 24 L58 32 L40 40 L32 58 L24 40 L6 32 L24 24 Z'/%3E%3Crect x='17' y='17' width='30' height='30' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  --star-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23d8b45a' stroke-opacity='0.22' stroke-width='1'%3E%3Cpath d='M32 6 L40 24 L58 32 L40 40 L32 58 L24 40 L6 32 L24 24 Z'/%3E%3Crect x='17' y='17' width='30' height='30' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image: var(--star);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold-deep); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-family: var(--serif); letter-spacing: .01em; }

.uae-strip {
  height: 5px;
  display: flex;
}
.uae-strip i { flex: 1; display: block; }
.uae-strip .r { background: #ce1126; }
.uae-strip .g { background: #009739; }
.uae-strip .w { background: #ffffff; }
.uae-strip .k { background: #111111; }

.nav {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(13, 58, 39, .3);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 700;
}
.brand:hover { color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 1.15rem;
  border: 1px solid var(--gold-deep);
}
.brand-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand-mark svg { display: block; }
.brand-text em { font-style: normal; color: var(--gold-soft); }

.icon:empty, .doc-ico:empty, .warn-banner span:empty { display: none !important; }
.brand-ar {
  font-family: var(--serif);
  font-size: .74rem;
  color: #c9d8cd;
  font-weight: 400;
  margin-top: 1px;
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: #d5e2d9;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
}
.nav-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-links a.active { background: var(--gold); color: var(--green-dark); }

.page { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.footer {
  border-top: 2px solid var(--gold);
  color: var(--muted);
  font-size: .85rem;
  background: var(--card);
}
.footer-cols {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 20px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: .95rem;
  margin: 0 0 10px;
}
.footer-col a { display: block; color: var(--muted); padding: 3px 0; }
.footer-col a:hover { color: var(--gold-deep); }
.footer-col p { margin: 0 0 6px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding: 14px 20px 18px;
  text-align: center;
}
.footer-bottom p { margin: 3px 0; font-size: .78rem; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 1.7rem; color: var(--green-dark); }
.page-head p { color: var(--muted); margin: 0; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--green); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 .95rem var(--font);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(20, 84, 58, .3);
}
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--green);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

.btn-teal {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold-deep);
  font-weight: 700;
}
.btn-teal:hover { background: var(--gold-deep); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: var(--radius-sm); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-done { background: var(--green-soft); color: var(--green); }
.badge-progress { background: var(--gold-soft); color: var(--gold-deep); }
.badge-pending { background: #efe9db; color: var(--muted); }
.badge-missing { background: var(--red-soft); color: var(--red); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }

.hero {
  background-color: var(--green);
  background-image: var(--star-gold);
  color: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--green-dark);
  border-top: 4px solid var(--gold);
  padding: 48px 38px;
  text-align: left;
  margin-bottom: 34px;
  overflow: hidden;
  position: relative;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 6px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .ar-title {
  font-family: var(--serif);
  color: #cfe0d5;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: #d7e4db;
  margin: 0 0 26px;
}
.hero .tagline strong { color: var(--gold); }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 14px;
}
.hero-search input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font: 1rem var(--font);
  outline: none;
  background: #fffdf7;
  color: var(--ink);
}
.hero-search input:focus { box-shadow: 0 0 0 3px rgba(184, 145, 46, .35); }
.hero-note { font-size: .85rem; color: #b9ccbf; }
.hero-note a { color: var(--gold-soft); text-decoration: underline; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stat .num { font-size: 1.6rem; font-weight: 800; font-family: var(--serif); color: var(--gold); }
.hero-stat .lbl { font-size: .8rem; color: #b9ccbf; }

.section-title {
  font-size: 1.3rem;
  margin: 34px 0 14px;
  color: var(--green-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.feature .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.feature h3 { font-size: 1.05rem; color: var(--green-dark); }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

.wf-card { display: flex; gap: 14px; align-items: flex-start; transition: box-shadow .15s, border-color .15s; }
.wf-card:hover { border-color: var(--gold); }
.wf-card .icon { font-size: 1.9rem; }
.wf-card h3 { font-size: 1rem; margin-bottom: 2px; color: var(--green-dark); }
.wf-card p { margin: 0; color: var(--muted); font-size: .87rem; }

.how { counter-reset: step; }
.how-step { position: relative; padding-left: 52px; }
.how-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 6px; top: 6px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 800;
  font-family: var(--serif);
  border: 1px solid var(--gold-deep);
}
.how-step h3 { font-size: 1rem; color: var(--green-dark); }
.how-step p { color: var(--muted); font-size: .9rem; margin: 0; }

@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

.goal-form { display: flex; gap: 10px; }
.goal-form input {
  flex: 1;
  padding: 13px 17px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: 1rem var(--font);
  outline: none;
  background: var(--card);
}
.goal-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 84, 58, .14); }

.result-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.result-head .icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  border-radius: 10px;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.result-head .goal { color: var(--muted); font-size: .9rem; margin: 0; }
.result-head h1 { font-size: 1.5rem; margin: 0; color: var(--green-dark); }
.result-head .spacer { flex: 1; }

.stat-card { text-align: center; padding: 16px 10px; }
.stat-card .num { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); font-family: var(--serif); }
.stat-card .num small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.stat-card .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .sub { font-size: .75rem; color: var(--gold-deep); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 44px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 15px; top: 30px; bottom: -2px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.t-dot {
  position: absolute;
  left: 0; top: 2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .82rem;
  font-weight: 800;
  font-family: var(--serif);
  background: #efe9db;
  color: var(--muted);
  border: 2px solid var(--line);
  transition: background .3s, border-color .3s, color .3s;
}
li.done .t-dot { background: var(--green); border-color: var(--green); color: #fff; }
li.in_progress .t-dot { background: #fff; border-color: var(--gold); color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(184, 145, 46, .18); }
.t-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-head h3 { font-size: 1rem; margin: 0; color: var(--green-dark); }
.t-agency { font-size: .82rem; color: var(--muted); margin: 2px 0 6px; }
.t-desc { font-size: .9rem; margin: 0 0 8px; color: #40372b; }
.t-why {
  font-size: .84rem;
  color: var(--muted);
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding: 7px 12px;
  border-radius: 0 6px 6px 0;
  margin: 0 0 10px;
}
.t-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); align-items: center; }
.t-meta .warn { color: var(--red); font-weight: 600; }

.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.doc-list li:last-child { border-bottom: none; }
.doc-ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 1rem;
  flex-shrink: 0;
}
.doc-body { flex: 1; min-width: 0; }
.doc-body .name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.doc-body .hint { font-size: .78rem; color: var(--muted); }

.warn-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--amber-soft);
  border: 1px solid #e6d1a3;
  border-left: 4px solid var(--gold);
  color: var(--amber);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .9rem;
  margin-bottom: 18px;
}
.warn-banner b { display: block; }
.ok-banner {
  background: var(--green-soft);
  border-color: #bcd6c5;
  border-left-color: var(--green);
  color: var(--green);
}

.sim-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sim-bar .live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); display: inline-block;
  animation: livepulse 1s infinite;
}
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.progress {
  height: 10px;
  background: #e9e1cd;
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .4s ease;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.upload-row:last-child { border-bottom: none; }
.upload-row .doc-body { min-width: 180px; }
.upload-state { min-width: 130px; text-align: right; margin-left: auto; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.scan {
  width: 110px;
  height: 7px;
  border-radius: 999px;
  background: #e9e1cd;
  overflow: hidden;
}
.scan > span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--gold);
  animation: scan 1s infinite linear;
}
@keyframes scan { from { margin-left: -40%; } to { margin-left: 100%; } }
.file-name { font-size: .76rem; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-note { font-size: .76rem; color: var(--muted); word-break: break-word; }

.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.team-card h3 { margin: 0; font-size: 1.05rem; color: var(--green-dark); }
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--gold-soft);
  border: 2px solid var(--gold);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.3rem;
}

.app-card { display: flex; flex-direction: column; gap: 12px; }
.app-card .top { display: flex; align-items: center; gap: 12px; }
.app-card .icon { font-size: 1.6rem; }
.app-card h3 { margin: 0; font-size: 1.02rem; color: var(--green-dark); }
.app-card .goal { font-size: .82rem; color: var(--muted); margin: 0; }
.app-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.app-card .pct { font-weight: 800; color: var(--green-dark); font-size: .9rem; font-family: var(--serif); }
.app-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}
.empty .big { font-size: 2.6rem; margin-bottom: 8px; }

.bar-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.bar-row .bar-label { width: 220px; font-size: .88rem; display: flex; gap: 8px; align-items: center; }
.bar-row .bar-track { flex: 1; height: 22px; background: #e9e1cd; border-radius: var(--radius-sm); overflow: hidden; }
.bar-row .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-radius: var(--radius-sm);
  min-width: 4px;
  transition: width .5s ease;
}
.bar-row .bar-count { width: 34px; font-weight: 800; font-size: .9rem; text-align: right; font-family: var(--serif); }
@media (max-width: 560px) { .bar-row .bar-label { width: 130px; } }

.table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.table th {
  text-align: left;
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 10px;
  border-bottom: 2px solid var(--gold);
}
.table td { padding: 10px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) { .table .hide-sm { display: none; } }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: #fff;
  border: 1px solid var(--gold);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  box-shadow: 0 10px 30px rgba(13, 58, 39, .4);
  z-index: 100;
  animation: pop .2s ease;
}

.mt-0 { margin-top: 0; }
.mb-18 { margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  .page { padding: 20px 14px 48px; }

  .nav-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 14px; }
  .brand { justify-content: center; }
  .nav-links { width: 100%; justify-content: center; gap: 6px; flex-wrap: wrap; }
  .nav-links a { flex: 1 1 40%; text-align: center; padding: 9px 4px; font-size: .82rem; }

  .hero { padding: 42px 20px; }
  .card { padding: 18px; }

  .how-step { padding-left: 66px; }
  .how-step::before { left: 14px; top: 16px; }
  .section-title { font-size: 1.15rem; }
  .hero-stats { gap: 22px; }
  .result-head .icon { width: 50px; height: 50px; font-size: 1.6rem; }
  .result-head h1 { font-size: 1.3rem; }

  a, button { -webkit-tap-highlight-color: rgba(20, 84, 58, .12); }
}

@media (max-width: 380px) {
  .nav-links a { font-size: .78rem; padding: 8px 3px; }
  .brand-text { font-size: 1rem; }
  .hero-stats { gap: 16px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--green-dark);
  padding: 8px 16px;
  font-weight: 700;
  border-radius: 0 0 6px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.topbar {
  background: var(--green-dark);
  color: #b9ccbf;
  font-size: .78rem;
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar a { color: #d5e2d9; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-tools { display: flex; align-items: center; gap: 14px; }
.fontsize { display: inline-flex; gap: 4px; }
.fontsize button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #d5e2d9;
  border-radius: 4px;
  font-size: .72rem;
  padding: 1px 6px;
  cursor: pointer;
}
.fontsize button:hover { border-color: var(--gold); color: var(--gold-soft); }
.topbar .lang { color: var(--gold-soft); font-family: var(--serif); cursor: default; }

.rate-widget { position: fixed; right: 16px; bottom: 16px; z-index: 90; }
#rate-open {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 .82rem var(--font);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 58, 39, .35);
}
#rate-open:hover { background: var(--green-dark); }
.rate-pop {
  position: absolute;
  right: 0;
  bottom: 46px;
  width: 250px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.rate-pop p { margin: 0 0 10px; font-size: .86rem; color: var(--ink); font-weight: 600; }
.rate-faces { display: flex; gap: 8px; }
.rate-faces button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 4px;
  color: var(--green-dark);
  cursor: pointer;
  font: 500 .72rem var(--font);
}
.rate-faces button:hover { border-color: var(--gold); background: var(--gold-soft); }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--green-dark); }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 0; color: var(--muted); font-size: .92rem; }

.help-section { margin-top: 30px; }
.help-section h2 { font-size: 1.15rem; color: var(--green-dark); }

.btn-danger { background: var(--red); color: #fff; border-color: #8f1f1a; }
.btn-danger:hover { background: #8f1f1a; color: #fff; }

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

.emirate-pick select {
  background: transparent;
  color: #d5e2d9;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  font: .74rem var(--font);
  padding: 2px 4px;
  cursor: pointer;
}
.emirate-pick select option { color: var(--ink); }

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #d5e2d9;
  border-radius: 4px;
  font: .72rem var(--font);
  padding: 2px 10px;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-soft); }

.bar-fill.sat { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

.queue-card { text-align: center; }
.queue-head {
  font-weight: 700; color: var(--green-dark); font-size: .95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.queue-live {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--red); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.queue-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); animation: livepulse 1s infinite;
}
.queue-pos {
  font-family: var(--serif); font-weight: 800;
  font-size: 2.4rem; color: var(--green-dark); margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.queue-lbl { color: var(--muted); font-size: .82rem; }
.queue-wait {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.queue-wait b { color: var(--green-dark); font-variant-numeric: tabular-nums; }

:root[data-theme="dark"] {
  --ink: #e8ead9;
  --muted: #9fb0a2;
  --line: #2b3a30;
  --bg: #0e1712;
  --card: #17231b;
  --green-dark: #d9e4d3;
  --green-soft: #1f3128;
  --gold-soft: #2c2618;
  --red-soft: #3a201d;
  --amber-soft: #322a16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] body { color: var(--ink); }
:root[data-theme="dark"] a { color: #8fc9ab; }
:root[data-theme="dark"] a:hover { color: var(--gold); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { color: var(--ink); background: var(--card); }
:root[data-theme="dark"] .btn-ghost { color: var(--green-dark); }
:root[data-theme="dark"] .btn-teal { color: #0d3a27; }
:root[data-theme="dark"] .badge-done { color: #86d6a9; }
:root[data-theme="dark"] .badge-progress { color: #d6b45a; }
:root[data-theme="dark"] .badge-missing { color: #e8938c; }
:root[data-theme="dark"] .badge-warn { color: #e0c072; }
:root[data-theme="dark"] .badge-pending { background: #23332a; color: var(--muted); }
:root[data-theme="dark"] .progress,
:root[data-theme="dark"] .bar-track,
:root[data-theme="dark"] .scan,
:root[data-theme="dark"] .t-dot { background: #24332a; }
:root[data-theme="dark"] .warn-banner { color: #e0c072; }
:root[data-theme="dark"] .ok-banner { color: #86d6a9; }
:root[data-theme="dark"] .nav-links a.active,
:root[data-theme="dark"] .how-step::before { color: #0d3a27; }
:root[data-theme="dark"] .avatar { color: #f4ead2; }
:root[data-theme="dark"] .hero .eyebrow { color: #f4ead2; }
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .toast,
:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] #rate-open:hover { background: #0d3a27; }
:root[data-theme="dark"] .topbar .lang { color: #f4ead2; }

@media (max-width: 860px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar-label { display: none; }
  .topbar-inner { justify-content: center; padding: 5px 12px; }
  .footer-cols { grid-template-columns: 1fr; gap: 18px; padding: 22px 16px 6px; }
  .rate-widget { right: 10px; bottom: 10px; }
  .hero-search { flex-direction: column; }
}
