:root {
  --ink: #1A2340;
  --ink-soft: #3A435C;
  --muted: #66708A;
  --cream: #FBF7F1;
  --cream-2: #F3EBE1;
  --paper: #FFFFFF;
  --coral: #E06C5C;
  --coral-deep: #C55446;
  --coral-soft: #F8E4E0;
  --gold: #E2A83A;
  --gold-soft: #F8EAC7;
  --teal: #1A7A72;
  --teal-soft: #D7EFEC;
  --navy: #243056;
  --pink: #E9A0B8;
  --blue: #4C7ED8;
  --line: #E8DFD3;
  --shadow: 0 18px 50px rgba(26, 35, 64, 0.10);
  --radius: 24px;
  --max: 1160px;
  --ok: #1A7A72;
  --warn: #9A6B12;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
main { flex: 1; }

header.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 241, 0.92);
  border-bottom: 1px solid rgba(232, 223, 211, 0.8);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; flex-shrink: 0;
}
.logo img { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nav-links { display: flex; gap: 22px; margin-inline: auto; font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.nav-links a:hover { color: var(--coral-deep); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-toggle {
  display: flex; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700;
}
.lang-toggle button { border: 0; background: transparent; padding: 6px 10px; color: var(--muted); }
.lang-toggle button.active { background: var(--navy); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: #fff; border: 0;
  border-radius: 999px; padding: 12px 22px;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 8px 20px rgba(224, 108, 92, 0.28);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-ghost {
  background: #fff; color: var(--ink); box-shadow: none;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--cream-2); }
.btn-navy { background: var(--navy); box-shadow: 0 8px 20px rgba(36,48,86,.22); }
.btn-navy:hover { background: #1A2340; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 24px; color: var(--ink); }

/* Footer — prominent */
.site-footer {
  margin-top: 56px;
  background: #fff;
  border-top: 4px solid var(--coral);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { padding: 48px 0 20px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1.15fr;
  gap: 32px;
  margin-bottom: 28px;
}
.foot-brand { display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--ink); font-size: 20px; margin-bottom: 10px; }
.foot-brand img { width: 42px; height: 42px; border-radius: 50%; }
.site-footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--coral-deep); }
.owner-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
}
.owner-card strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }
.owner-card p { margin: 0 0 4px; line-height: 1.55; }
.owner-card a { color: var(--teal); font-weight: 700; }
.disclaimer {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.copy { text-align: center; font-size: 13px; padding-bottom: 8px; }

.page-hero { padding: 40px 0 12px; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; margin-bottom: 8px; }
.page-hero p { color: var(--muted); font-size: 17px; }
.kicker { color: var(--coral-deep); font-weight: 800; font-size: 13px; letter-spacing: .06em; margin-bottom: 8px; }



.legal { max-width: 820px; margin: 0 auto 40px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal h3 { font-size: 18px; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul, .legal ol { padding-inline-start: 22px; margin-bottom: 12px; }
.company-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; margin: 28px 0;
}
.company-box h2 { margin-top: 0; }

/* Login */
.auth-wrap { max-width: 440px; margin: 36px auto 60px; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: 32px 28px; box-shadow: var(--shadow);
}
.auth-card .mascot { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; }
.auth-card h1 { text-align: center; font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font-size: 15px; background: var(--cream);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--coral); background: #fff; }
.auth-msg {
  display: none; border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin-bottom: 14px;
}
.auth-msg.show { display: block; }
.auth-msg.err { background: #FDECEC; color: #9B2C2C; }
.auth-msg.warn { background: var(--gold-soft); color: #6E4E10; }
.auth-msg.ok { background: var(--teal-soft); color: var(--teal); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--coral-deep); font-weight: 700; }

/* Dashboards */
.dash { padding: 28px 0 60px; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-top h1 { font-size: 28px; }
.dash-top p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; box-shadow: 0 8px 24px rgba(26,35,64,.04);
}
.card h2, .card h3 { font-size: 18px; margin-bottom: 10px; }
.kpi { text-align: center; }
.kpi .n { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 600; }
.child {
  display: flex; gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.child:last-child { border-bottom: 0; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; flex-shrink: 0;
}
.avatar.girl { background: #E9A0B8; }
.avatar.boy { background: #4C7ED8; }
.bar { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: var(--coral); border-radius: 99px; }
.bar.blue span { background: var(--blue); }
.stars { color: #E2A83A; letter-spacing: 2px; font-size: 18px; }
.note {
  background: var(--cream); border-radius: 14px; padding: 10px 12px; font-size: 14px; color: var(--ink-soft);
}
.upload {
  border: 2px dashed var(--line); border-radius: 18px; padding: 22px; text-align: center;
  background: var(--cream);
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; color: var(--muted); font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.tag.ok { background: var(--teal-soft); color: var(--teal); }
.tag.warn { background: var(--gold-soft); color: #7A5410; }
.tag.info { background: #EAF0FB; color: #3D6CC4; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; color: var(--ink-soft);
}
.tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { display: none; }
.panel.active { display: block; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; inset-inline: 0;
    background: #fff; padding: 16px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .foot-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-inner { height: 64px; }
}

.admin-link { text-align: center; font-size: 12px; margin-top: 8px; }
.admin-link a { color: var(--muted); }


.logo-lockup { display:flex; flex-direction:column; align-items:flex-start; gap:1px; line-height:1.15; }
.logo-by { font-size:10px; font-weight:600; color:#8A6A78; margin-inline-start:52px; letter-spacing:.01em; }
.logo-by:hover { color:#C45C7A; text-decoration:underline; }
.merchant-block { font-size:13px; line-height:1.7; color:var(--ink-soft, #3A4466); }
.merchant-block a { color:#C45C7A; }
.hp-field { position:absolute !important; left:-10000px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden !important; }
.cf-turnstile { margin: 12px 0; display:flex; justify-content:center; }
.consent-box { text-align:start; margin: 14px 0; font-size:14px; line-height:1.7; }
.plan-card ul { margin:8px 0 12px; padding-inline-start:18px; }
.plan-card button:disabled, .btn:disabled { opacity:.5; cursor:not-allowed; }
.ws-status { display:inline-block; border-radius:999px; padding:2px 10px; font-size:12px; font-weight:700; }
.ws-status.processing { background:#FFF4D6; color:#8A5A10; }
.ws-status.ready { background:#E7F6F4; color:#1F6F5B; }
.ws-status.rejected { background:#FDE8E8; color:#9B2C2C; }
.invoice-table { width:100%; border-collapse:collapse; }
.voucher-row input[type=text] { font-family: ui-monospace, monospace; }
