/* RAWDA ERP — public website. Night navy with blue → cyan, the identity of the apps. */
:root {
  --bg: #050b18;
  --bg2: #0a1426;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef9;
  --muted: #94a3b8;
  --faint: #64748b;
  --blue: #2f7cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(135deg, #2f7cf6 0%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang='en'] body { font-family: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.65; }
html[lang='ar'] .en, html[lang='en'] .ar { display: none !important; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, 0.3); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* background glow */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.glow::before, .glow::after {
  content: ''; position: absolute; width: 720px; height: 720px; border-radius: 50%; filter: blur(120px); opacity: 0.35;
}
.glow::before { background: #1d4ed8; top: -260px; inset-inline-end: -180px; }
.glow::after { background: #0e7490; top: 520px; inset-inline-start: -260px; opacity: 0.22; }

/* ------------------------------------------------------------------ header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 24, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.2px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: #cbd5e1; font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { background: var(--card); color: #fff; }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-btn { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; cursor: pointer; color: #cbd5e1; font-size: 13.5px; font-weight: 700; }
.lang-btn:hover { border-color: var(--line-strong); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 38px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: #cbd5e1; margin: 4px auto; border-radius: 2px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #04101f; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.55); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(34, 211, 238, 0.75); }
.btn-ghost { background: var(--card); border-color: var(--line); color: #e2e8f0; }
.btn-ghost:hover { background: var(--card-strong); border-color: var(--line-strong); }
.btn-lg { padding: 14px 26px; font-size: 16.5px; border-radius: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 84px 0 56px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.09); border: 1px solid rgba(34, 211, 238, 0.28); color: #a5f3fc; font-size: 13.5px; font-weight: 700;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.22; margin: 20px 0 18px; font-weight: 800; letter-spacing: -0.5px; }
html[lang='en'] .hero h1 { letter-spacing: -1.2px; line-height: 1.1; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: #b6c3d6; margin: 0 0 30px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-notes > span::before { content: '✓'; color: var(--green); font-weight: 800; margin-inline-end: 6px; }

/* app preview */
.preview {
  position: relative; border-radius: 22px; padding: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.preview .bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.preview .bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.screen { border-radius: 14px; background: #0b1424; border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi small { color: var(--muted); font-size: 12px; display: block; }
.kpi b { font-size: 19px; display: block; margin-top: 2px; }
.kpi em { font-style: normal; color: var(--green); font-size: 12px; font-weight: 700; }
.chart { height: 120px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.chart span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad); opacity: 0.85; }
.rows { display: grid; gap: 6px; }
.rows div { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.rows div b { color: var(--cyan); }
.float-card {
  position: absolute; background: rgba(10, 20, 38, 0.92); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; backdrop-filter: blur(10px);
}
.float-card .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 211, 153, 0.15); color: var(--green); font-size: 17px; }
.float-a { bottom: -22px; inset-inline-start: -26px; }
.float-b { top: -22px; inset-inline-end: 28px; }
.float-b .dot { background: rgba(34, 211, 238, 0.15); color: var(--cyan); }

/* ------------------------------------------------------------------ sections */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 13.5px; letter-spacing: 1.5px; text-transform: uppercase; }
html[lang='ar'] .eyebrow { letter-spacing: 0; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.3; margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.strip { padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.strip b { color: var(--text); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--line-strong); background: var(--card-strong); }
.card h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 800; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(47,124,246,0.22), rgba(34,211,238,0.14)); border: 1px solid rgba(34,211,238,0.25);
}
.card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.card li { color: #cbd5e1; font-size: 14.5px; padding-inline-start: 22px; position: relative; }
.card li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.biz .card { padding: 26px 24px 24px; }
.biz .tag { display: inline-block; margin-top: 16px; font-size: 12.5px; color: #a5f3fc; font-weight: 700; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 80px; }
.split h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; margin: 10px 0 14px; font-weight: 800; }
.split p { color: var(--muted); margin: 0 0 18px; font-size: 16.5px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: #d6deea; font-size: 15.5px; }
.checks li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(52,211,153,0.14); color: var(--green); font-weight: 800; font-size: 13px; margin-top: 3px; }
.visual { border-radius: 22px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.app { background: #0b1424; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.app b { display: block; font-size: 15px; margin-top: 8px; }
.app small { color: var(--muted); font-size: 13px; }
.app .ico { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 20px; inset-inline-start: 24px;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #04101f; font-weight: 800;
}

/* ------------------------------------------------------------------ pricing */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-top: 22px; }
.billing-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); }
.billing-toggle button.on { background: var(--card-strong); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.billing-toggle .save { color: var(--green); font-size: 12px; margin-inline-start: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; position: relative; }
.plan.featured { border-color: rgba(34, 211, 238, 0.55); background: linear-gradient(180deg, rgba(34,211,238,0.08), rgba(47,124,246,0.04)); box-shadow: 0 30px 70px -30px rgba(34,211,238,0.35); }
.plan .badge { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--grad); color: #04101f; font-size: 12.5px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 20px; }
.price { margin: 16px 0 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; }
.plan .trial { color: var(--green); font-size: 13.5px; font-weight: 700; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 14.5px; color: #d6deea; padding-inline-start: 0; }
.plan li::before { position: static; width: auto; height: auto; background: none; border-radius: 0; }
.plan li.off { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(100,116,139,0.5); }
.plan li::before { content: '✓'; color: var(--green); font-weight: 800; flex: none; }
.plan li.off::before { content: '–'; color: var(--faint); }
.plan li.limit::before { content: '•'; color: var(--cyan); }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.skeleton { height: 420px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card), var(--card-strong), var(--card)); background-size: 200% 100%; animation: sk 1.4s infinite; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--cyan); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ------------------------------------------------------------------ cta + footer */
.cta-box {
  border-radius: 26px; padding: 54px 40px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(34,211,238,0.18), rgba(47,124,246,0.10) 45%, rgba(255,255,255,0.02) 70%);
  border: 1px solid var(--line-strong);
}
.cta-box h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 12px; line-height: 1.3; }
.cta-box p { color: #b6c3d6; margin: 0 auto 26px; max-width: 560px; font-size: 17px; }
.cta-box .hero-cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 48px 0 30px; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--text); margin: 0 0 12px; font-size: 15px; }
footer a { display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
footer .bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* ------------------------------------------------------------------ forms (sign-up, contact) */
.page { padding: 56px 0 80px; }
.form-shell { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.form-card h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; line-height: 1.3; }
.form-card > p { color: var(--muted); margin: 0 0 24px; }
.stepper { display: flex; gap: 8px; margin-bottom: 26px; }
.stepper div { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.stepper div.on { background: var(--grad); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: #cbd5e1; }
.field .hint { font-size: 12.5px; color: var(--faint); }
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(2, 8, 20, 0.6); border: 1px solid var(--line-strong);
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; font-size: 15px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14); }
input.ltr { direction: ltr; text-align: start; }
html[lang='ar'] input.ltr { text-align: right; }
select option { background: #0b1424; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(2,8,20,0.45); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; height: 100%;
}
.choice > span b { font-size: 15px; }
.choice > span small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.choice > span em { font-style: normal; font-size: 22px; }
.choice input:checked + span { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); box-shadow: 0 0 0 3px rgba(34,211,238,0.12); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(34,211,238,0.3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #cbd5e1; }
.check input { margin-top: 6px; width: 17px; height: 17px; accent-color: var(--cyan); }
.check a { color: var(--cyan); }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin-top: 18px; display: none; }
.alert.show { display: block; }
.alert.err { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); color: #fecaca; }
.alert.ok { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.35); color: #bbf7d0; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side { display: grid; gap: 16px; position: sticky; top: 90px; }
.side .card h3 { margin-top: 0; font-size: 17px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary div:last-child { border-bottom: 0; }
.summary span { color: var(--muted); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.2s ease, background 0.2s ease; }

/* status after sign-up */
.status { text-align: center; padding: 20px 0 6px; }
.status .ring { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
.status .done { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: rgba(52,211,153,0.14); color: var(--green); border: 1px solid rgba(52,211,153,0.4); }
.status .fail { background: rgba(248,113,113,0.12); color: var(--red); border-color: rgba(248,113,113,0.4); }
@keyframes spin { to { transform: rotate(360deg); } }
.creds { display: grid; gap: 10px; margin: 24px auto; max-width: 440px; text-align: start; }
.creds div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(2,8,20,0.6); border: 1px solid var(--line-strong); }
.creds span { color: var(--muted); font-size: 14px; }
.creds b { font-size: 17px; direction: ltr; }
.copy { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; cursor: pointer; color: var(--muted); font-size: 12.5px; margin-inline-start: 8px; }

/* ------------------------------------------------------------------ showcase tabs */
.showcase { background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.03) 40%, rgba(47, 124, 246, 0.03) 70%, transparent); }
.showcase .section-head { margin-bottom: 32px; }
.showcase-nav {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px;
  background: rgba(10, 20, 38, 0.85); padding: 6px; border-radius: 999px; border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.showcase-nav .tab-btn {
  background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 14.5px; font-weight: 700;
  padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all 0.22s ease;
}
.showcase-nav .tab-btn:hover { color: #fff; }
.showcase-nav .tab-btn.on {
  background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.4); color: #a5f3fc;
  box-shadow: 0 4px 16px -4px rgba(34, 211, 238, 0.35);
}
.showcase-content { max-width: 1040px; margin: 0 auto; position: relative; }
.showcase-panel { display: none; }
.showcase-panel.on { display: block; animation: showFade 0.35s ease; }
@keyframes showFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------------ real erp window chrome */
.erp-window {
  background: #08101e; border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 25px 65px -15px rgba(0,0,0,0.7), 0 0 35px -10px rgba(34,211,238,0.18);
  overflow: hidden; display: flex; flex-direction: column;
}
.erp-titlebar {
  background: #040913; border-bottom: 1px solid var(--line); padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px;
}
.win-dots { display: flex; gap: 6px; align-items: center; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.win-dots i:nth-child(1) { background: #ef4444; }
.win-dots i:nth-child(2) { background: #eab308; }
.win-dots i:nth-child(3) { background: #22c55e; }
.win-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #f1f5f9; }
.app-tag { background: rgba(34,211,238,0.15); color: var(--cyan); padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 11px; }
.win-title .sep { color: var(--faint); }
.win-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.badge-pill { background: var(--card); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.badge-status-on { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: var(--green); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.erp-body { padding: 16px; background: #070e1c; }
.erp-split { display: grid; gap: 14px; align-items: start; }
.pos-layout { grid-template-columns: 1.35fr 1fr; }
.rest-layout { grid-template-columns: 1.4fr 1fr; }
.fin-layout { grid-template-columns: 1.15fr 1fr; }

/* ── POS SCREEN ────────────────────────────────────────────────────────── */
.pos-catalog { display: flex; flex-direction: column; gap: 10px; }
.pos-search-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pos-search-input {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px;
  font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px;
}
.pos-search-input .kbd { background: rgba(255,255,255,0.08); border-radius: 4px; padding: 1px 6px; font-size: 10px; color: #94a3b8; margin-inline-start: auto; }
.pos-actions-quick { display: flex; gap: 6px; }
.quick-chip { background: var(--card); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; }
.quick-chip.warn { color: var(--amber); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }
.quick-chip.danger { color: var(--red); border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }
.pos-categories { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.cat-chip { background: var(--card); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; }
.cat-chip.on { background: rgba(34,211,238,0.12); border-color: var(--cyan); color: #a5f3fc; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pos-item-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 86px; cursor: pointer; transition: all 0.2s;
}
.pos-item-card:hover, .pos-item-card.active-card { border-color: rgba(34,211,238,0.5); background: rgba(15,23,42,0.85); box-shadow: 0 4px 14px -3px rgba(34,211,238,0.25); }
.pos-item-card .item-title { font-size: 12px; font-weight: 700; color: #f1f5f9; line-height: 1.3; }
.pos-item-card .item-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.pos-item-card .item-price { font-size: 13.5px; font-weight: 800; color: var(--cyan); }
.pos-item-card .item-stock { font-size: 10px; color: var(--muted); background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; }

/* POS Cart */
.pos-cart { background: #050b16; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.cart-title { display: flex; gap: 8px; align-items: center; }
.cart-title b { font-size: 12.5px; display: block; }
.cart-title small { font-size: 10.5px; color: var(--green); display: block; }
.tag-loyalty { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: var(--green); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; cursor: pointer; }
.cart-lines { display: flex; flex-direction: column; gap: 6px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; gap: 8px; }
.cart-line .line-info { flex: 1; }
.cart-line .line-info b { font-size: 12px; display: block; }
.cart-line .line-info small { font-size: 10.5px; color: var(--muted); }
.line-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 20px; height: 20px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border-radius: 4px; font-size: 12px; cursor: pointer; }
.qty-num { font-size: 12px; font-weight: 800; width: 14px; text-align: center; }
.line-sum { font-size: 12.5px; font-weight: 800; color: var(--text); min-width: 44px; text-align: end; }
.cart-calc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.calc-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-size: 12.5px; font-weight: 700; }
.calc-total b { font-size: 20px; font-weight: 900; color: var(--cyan); }
.cart-pay-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-btn {
  border: 0; padding: 8px 6px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform 0.15s;
}
.pay-btn:hover { transform: translateY(-1px); }
.pay-btn .kkey { font-size: 9.5px; opacity: 0.7; letter-spacing: 0.5px; }
.pay-cash { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.pay-card { background: linear-gradient(135deg, #06b6d4, #0284c7); color: #fff; }
.pay-mixed { background: var(--card-strong); border: 1px solid var(--line-strong); color: #e2e8f0; }

/* ── RESTAURANT SCREEN ─────────────────────────────────────────────────── */
.rest-top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.room-chips { display: flex; gap: 6px; }
.room-chip { background: var(--card); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
.room-chip.on { background: rgba(34,211,238,0.12); border-color: var(--cyan); color: #a5f3fc; }
.status-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.legend-dot { display: flex; align-items: center; gap: 4px; }
.legend-dot i { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.green i { background: #10b981; }
.legend-dot.blue i { background: #3b82f6; }
.legend-dot.orange i { background: #f59e0b; }
.legend-dot.purple i { background: #8b5cf6; }
.legend-dot.muted i { background: #64748b; }
.table-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.table-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; transition: all 0.2s; }
.state-purple { border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.06); }
.state-blue { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.06); }
.state-green { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.08); }
.state-orange { border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.08); }
.state-free { border-style: dashed; border-color: var(--line-strong); opacity: 0.7; }
.selected-table { box-shadow: 0 0 16px -2px rgba(16,185,129,0.4); border-color: #10b981; }
.tbl-top { display: flex; justify-content: space-between; align-items: center; }
.tbl-top b { font-size: 13.5px; }
.tbl-badge { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.tbl-guest { font-size: 11px; color: var(--muted); }
.tbl-time { font-size: 10px; color: var(--faint); }
.tbl-amount { font-size: 12.5px; font-weight: 800; color: var(--cyan); margin-top: 4px; }
.tbl-action-hint { font-size: 11px; color: var(--cyan); font-weight: 700; margin-top: 6px; }

/* Restaurant Order Panel */
.rest-order-panel { background: #050b16; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.order-panel-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.order-panel-head b { font-size: 12.5px; display: block; }
.order-panel-head small { font-size: 10px; color: var(--muted); }
.badge-ready { background: rgba(16,185,129,0.15); border: 1px solid #10b981; color: #34d399; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.order-items-list { display: flex; flex-direction: column; gap: 6px; }
.order-item-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; gap: 8px; }
.oi-name { flex: 1; }
.oi-name b { font-size: 12px; display: block; }
.oi-name .oi-note { font-size: 10px; color: var(--muted); display: block; }
.oi-status { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.oi-status.green { background: rgba(16,185,129,0.15); color: #34d399; }
.oi-status.muted { background: rgba(255,255,255,0.06); color: var(--muted); }
.oi-price { font-size: 12.5px; font-weight: 800; color: var(--text); }
.order-panel-total { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.order-panel-total .sub-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.order-panel-total .main-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-size: 12.5px; font-weight: 700; }
.order-panel-total .main-total b { font-size: 20px; font-weight: 900; color: var(--cyan); }
.order-panel-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.btn-rest-act { background: var(--card-strong); border: 1px solid var(--line-strong); color: #cbd5e1; padding: 7px 4px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; text-align: center; }
.btn-rest-pay { grid-column: 1 / -1; background: var(--grad); color: #04101f; font-weight: 800; border: 0; padding: 9px; border-radius: 8px; font-size: 13px; cursor: pointer; text-align: center; }

/* ── INVENTORY SCREEN ──────────────────────────────────────────────────── */
.inv-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.inv-search-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px;
  font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px;
}
.inv-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-btn { background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: #cbd5e1; cursor: pointer; }
.inv-btn.primary { background: rgba(34,211,238,0.14); border-color: var(--cyan); color: #a5f3fc; }
.erp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #050b16; }
.erp-data-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: start; min-width: 720px; }
.erp-data-table th { background: #0a1426; color: var(--muted); padding: 10px 12px; font-weight: 700; font-size: 11px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.erp-data-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #cbd5e1; }
.erp-data-table tr:hover td { background: rgba(255,255,255,0.02); }
.sku-tag { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 11px; color: #94a3b8; }
.row-warn td { background: rgba(245,158,11,0.04); }
.text-cyan { color: var(--cyan); }
.text-danger { color: var(--red); }
.text-green { color: #34d399; }
.tbl-badge-ok { background: rgba(16,185,129,0.12); color: #34d399; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; border: 1px solid rgba(16,185,129,0.25); }
.tbl-badge-warn { background: rgba(245,158,11,0.12); color: #fbbf24; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; border: 1px solid rgba(245,158,11,0.25); }
.inv-footer-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.inv-kpi-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.inv-kpi-item small { color: var(--muted); font-size: 11px; display: block; }
.inv-kpi-item b { font-size: 16px; margin-top: 2px; display: block; }

/* ── FINANCE SCREEN ────────────────────────────────────────────────────── */
.finance-kpis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.fin-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.fin-card small { color: var(--muted); font-size: 11px; }
.fin-card .val { font-size: 18px; font-weight: 800; }
.fin-card em { font-style: normal; color: var(--green); font-size: 11px; font-weight: 700; }
.fin-card .sub-muted { color: var(--muted); font-size: 10.5px; }
.fin-card.highlight { background: linear-gradient(180deg, rgba(16,185,129,0.12), rgba(16,185,129,0.03)); border-color: rgba(16,185,129,0.4); }
.fin-chart-box { background: #050b16; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.box-head b { font-size: 12.5px; }
.chart-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.chart-legend .dot-c { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.chart-bars-wrap { height: 140px; display: flex; align-items: flex-end; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.c-bar {
  flex: 1; height: var(--h); background: linear-gradient(180deg, var(--cyan), #3b82f6);
  border-radius: 6px 6px 2px 2px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding-bottom: 4px; position: relative; transition: height 0.4s ease;
}
.c-bar span { position: absolute; bottom: -20px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.c-bar b { font-size: 9px; color: #04101f; font-weight: 800; margin-bottom: 2px; }
.c-bar.active-b { background: linear-gradient(180deg, #34d399, #10b981); }
.chart-bottom-actions { display: flex; gap: 6px; margin-top: 26px; }
.fin-btn { background: var(--card); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #cbd5e1; cursor: pointer; }
.fin-ledger-box { background: #050b16; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.badge-posted { background: rgba(52,211,153,0.12); color: #34d399; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(52,211,153,0.25); }
.journal-entries-list { display: flex; flex-direction: column; gap: 8px; }
.jv-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
.jv-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 4px; gap: 8px; }
.jv-id { font-family: monospace; font-size: 11px; color: var(--cyan); font-weight: 700; }
.jv-source { font-size: 11.5px; color: var(--text); font-weight: 700; flex: 1; }
.jv-badge-ok { font-size: 10px; color: var(--green); font-weight: 700; }
.jv-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.jv-row b { color: #e2e8f0; font-size: 11px; }

/* legal pages */
.legal { max-width: 820px; }
.legal h1 { font-size: 34px; margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: #c3cedd; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .status .ring { animation-duration: 3s; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .hero .wrap, .split, .form-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .preview { max-width: 620px; margin: 0 auto; width: 100%; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .split .visual { order: 2; }
  .side { position: static; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: rgba(5,11,24,0.97); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .menu-btn { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .pos-layout, .rest-layout, .fin-layout { grid-template-columns: 1fr; }
  .pos-grid { grid-template-columns: repeat(2, 1fr); }
  .table-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .finance-kpis-grid, .inv-footer-summary { grid-template-columns: repeat(2, 1fr); }
  .erp-titlebar { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .g4, .apps, .fields, .kpis { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
  .form-card { padding: 22px 18px; }
  .cta-box { padding: 40px 20px; }
  footer .cols { grid-template-columns: 1fr; }
  .nav .wrap { gap: 10px; }
  .brand small { display: none; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 14px; }
  .showcase-nav { border-radius: 16px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .showcase-nav .tab-btn { text-align: center; padding: 9px 8px; font-size: 13px; border-radius: 10px; }
  .pos-grid, .table-cards-grid, .finance-kpis-grid, .inv-footer-summary { grid-template-columns: 1fr; }
  .win-meta { display: none; }
  .chart-bars-wrap { height: 110px; }
  .inv-actions { width: 100%; }
  .inv-btn { flex: 1 1 45%; text-align: center; }
}

/* Elements hidden by the page's script stay hidden whatever their display style. */
[hidden] { display: none !important; }
