: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;
  --navy: #243056;
  --pink: #E9A0B8;
  --pink-bg: #FDEEF4;
  --blue: #4C7ED8;
  --blue-bg: #EAF0FB;
  --line: #E8DFD3;
  --shadow: 0 18px 50px rgba(26, 35, 64, 0.10);
  --radius: 24px;
  --max: 1100px;
  --ok: #1A7A72;
  --err: #C55446;
}
* { 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;
  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; }

.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: 16px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.logo img { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nav-links { display: flex; gap: 18px; 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: 11px 20px;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 8px 20px rgba(224, 108, 92, 0.28);
}
.btn:hover { background: var(--coral-deep); }
.btn-lg { padding: 14px 26px; font-size: 16px; width: 100%; }
.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: none; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 24px; color: var(--ink); }
main { flex: 1; }

.auth-wrap { width: min(460px, calc(100% - 40px)); margin: 40px auto 64px; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: 32px 28px; box-shadow: var(--shadow); text-align: center;
}
.auth-card .mascot { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px; background: #fff; box-shadow: 0 4px 14px rgba(26,35,64,.08); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 18px; }
.field { text-align: start; margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: var(--cream); color: var(--ink); font-size: 15px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--coral-soft); border-color: var(--coral); background: #fff; }
.check { display: flex; align-items: flex-start; gap: 10px; text-align: start; font-size: 14px; margin: 12px 0; color: var(--ink-soft); }
.check input { margin-top: 5px; flex-shrink: 0; }
.check a { color: var(--coral-deep); text-decoration: underline; }
.auth-msg { display: none; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.auth-msg.show { display: block; }
.auth-msg.ok { background: #E7F6F4; color: var(--teal); }
.auth-msg.warn { background: var(--gold-soft); color: #8A5A10; }
.auth-msg.err { background: var(--coral-soft); color: var(--coral-deep); }
.auth-switch { margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--coral-deep); font-weight: 700; }
.note { font-size: 13px; color: var(--muted); }

.dash { padding: 28px 0 56px; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.kicker { color: var(--coral-deep); font-weight: 800; font-size: 13px; letter-spacing: .06em; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 8px 24px rgba(26,35,64,.04); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi .n { font-size: 32px; font-weight: 800; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 14px; }
.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: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.avatar.girl { background: var(--pink); }
.avatar.boy { background: var(--blue); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 700; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.tag.ok { background: #E7F6F4; color: var(--teal); }
.tag.info { background: var(--blue-bg); color: #2A4F9A; }
.site-footer { border-top: 4px solid var(--coral); margin-top: auto; padding: 28px 0 18px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.foot-links a:hover { color: var(--coral-deep); }
.disclaimer { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; color: var(--ink-soft); }
.copy { text-align: center; font-size: 13px; }
@media (max-width: 800px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; inset-inline: 0;
    background: #fff; padding: 16px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; 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; }
.pay-note { background: var(--gold-soft); color: #8A5A10; border-radius: 14px; padding: 12px 14px; font-weight: 700; margin: 12px 0; }
.plan-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.plan-card .price { font-size: 28px; font-weight: 800; }


.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; }
