:root {
  --rafad-teal-950:#03211f;
  --rafad-teal-900:#063a36;
  --rafad-teal-800:#0f5c55;
  --rafad-teal-700:#0f766e;
  --rafad-teal-600:#0d9488;
  --rafad-teal-500:#14b8a6;
  --rafad-teal-400:#2dd4bf;
  --rafad-teal-100:#ccfbf1;
  --rafad-slate-950:#020617;
  --rafad-slate-900:#0f172a;
  --rafad-slate-800:#1e293b;
  --rafad-slate-700:#334155;
  --rafad-slate-600:#475569;
  --rafad-slate-500:#64748b;
  --rafad-slate-400:#94a3b8;
  --rafad-slate-300:#cbd5e1;
  --rafad-slate-200:#e2e8f0;
  --rafad-slate-100:#f1f5f9;
  --rafad-slate-50:#f8fafc;
  --rafad-white:#ffffff;
  --rafad-green-100:#dcfce7;
  --rafad-green-700:#15803d;
  --rafad-red-100:#fee2e2;
  --rafad-red-700:#b91c1c;
  --rafad-amber-100:#fef3c7;
  --rafad-amber-700:#b45309;
  --rafad-blue-100:#dbeafe;
  --rafad-blue-700:#1d4ed8;
  --rafad-radius-xl:20px;
  --rafad-radius-lg:16px;
  --rafad-radius-md:12px;
  --rafad-shadow-soft:0 18px 55px rgba(15,23,42,.08);
  --rafad-shadow-elevated:0 24px 80px rgba(15,23,42,.15);
  --rafad-shadow-button:0 10px 24px rgba(13,148,136,.22);
}

html { scroll-behavior:smooth; }
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }

.rafad-brand-shell {
  background:
    radial-gradient(ellipse 80% 48% at 50% -10%, rgba(20,184,166,.10), transparent 60%),
    linear-gradient(180deg, #ecfeff 0%, var(--rafad-slate-50) 240px, var(--rafad-slate-50) 100%);
}

.rafad-brand-topbar,
body.rafad-marketing-home .nav,
body.rafad-register-page .top-bar,
body.platform-owner-page .nav {
  max-width: 1440px;
  margin: 0 auto;
}

body.rafad-marketing-home .nav,
body.rafad-register-page .top-bar,
body.platform-owner-page .nav {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 74px;
  padding-inline: 24px;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}

body.platform-owner-page .nav {
  margin-top: 0;
}

body.rafad-marketing-home .nav-brand,
body.platform-owner-page .nav-brand,
body.rafad-register-page .brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

body.rafad-marketing-home .nav-brand-icon,
body.platform-owner-page .nav-brand-icon,
body.rafad-register-page .brand-icon,
.rafad-owner-login-topbar .brand-icon {
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, var(--rafad-teal-700), var(--rafad-teal-500));
  color: var(--rafad-white);
  font-size:18px;
  font-weight:900;
  box-shadow: var(--rafad-shadow-button);
}

body.rafad-marketing-home .nav-brand-name,
body.platform-owner-page .nav-brand-name,
body.rafad-register-page .brand-name,
.rafad-owner-login-topbar .brand-name {
  font-size:20px;
  font-weight:900;
  color: var(--rafad-teal-900);
  letter-spacing:-.25px;
}

body.rafad-marketing-home .nav-brand-tag,
body.platform-owner-page .nav-brand-tag,
.rafad-owner-login-topbar .brand-tag {
  font-size:10px;
  color: var(--rafad-slate-400);
  font-weight:700;
  letter-spacing:.8px;
}

body.rafad-marketing-home .nav-actions,
body.platform-owner-page .nav-right,
body.rafad-register-page .top-actions,
.rafad-owner-login-topbar .top-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

body.rafad-marketing-home .nav-link,
body.platform-owner-page .nav-link,
body.rafad-register-page .ghost-link,
.rafad-owner-login-topbar .ghost-link,
body.rafad-register-page .solid-link,
.rafad-owner-login-topbar .solid-link,
body.platform-owner-page .btn-logout {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border-radius:14px;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
  transition:.18s ease;
}

body.rafad-marketing-home .nav-link,
body.platform-owner-page .nav-link,
body.rafad-register-page .ghost-link,
.rafad-owner-login-topbar .ghost-link,
body.platform-owner-page .btn-logout {
  color: var(--rafad-slate-700);
  background: rgba(255,255,255,.88);
  border:1.5px solid var(--rafad-slate-200);
}

body.rafad-marketing-home .nav-link:hover,
body.platform-owner-page .nav-link:hover,
body.rafad-register-page .ghost-link:hover,
.rafad-owner-login-topbar .ghost-link:hover,
body.platform-owner-page .btn-logout:hover {
  border-color: var(--rafad-teal-400);
  color: var(--rafad-teal-700);
  background: var(--rafad-white);
  transform: translateY(-1px);
}

body.rafad-marketing-home .nav-cta,
body.rafad-register-page .solid-link,
.rafad-owner-login-topbar .solid-link,
body.platform-owner-page .nav-cta,
body.platform-owner-page .btn-primary,
body.platform-owner-page .command-chip.command-chip--primary {
  color: var(--rafad-white);
  background: linear-gradient(135deg, var(--rafad-teal-700), var(--rafad-teal-600));
  box-shadow: var(--rafad-shadow-button);
  border:none;
}

body.rafad-marketing-home .nav-cta:hover,
body.rafad-register-page .solid-link:hover,
.rafad-owner-login-topbar .solid-link:hover,
body.platform-owner-page .nav-cta:hover,
body.platform-owner-page .btn-primary:hover,
body.platform-owner-page .command-chip.command-chip--primary:hover {
  transform: translateY(-2px);
  filter: brightness(.98);
}

body.platform-owner-page {
  font-family:'Tajawal',sans-serif;
  background:
    radial-gradient(ellipse 80% 48% at 50% -10%, rgba(20,184,166,.10), transparent 60%),
    linear-gradient(180deg, #ecfeff 0%, var(--rafad-slate-50) 240px, var(--rafad-slate-50) 100%);
  color:var(--rafad-slate-900);
}

body.platform-owner-page .page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 20px 56px;
}
body.platform-owner-page .page-shell { display:grid; gap:18px; }
body.platform-owner-page .platform-command-bar {
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:14px 16px; background:rgba(255,255,255,.92); border:1px solid var(--rafad-slate-200);
  border-radius:18px; box-shadow:0 12px 28px rgba(15,23,42,.05);
}
body.platform-owner-page .platform-command-bar .group { display:flex; gap:8px; flex-wrap:wrap; }
body.platform-owner-page .command-chip {
  display:inline-flex; align-items:center; gap:8px; border-radius:999px; padding:10px 14px; font-size:12px; font-weight:900;
  text-decoration:none; color:var(--rafad-slate-700); background:var(--rafad-slate-50); border:1px solid var(--rafad-slate-200);
}
body.platform-owner-page .command-chip:hover { border-color:var(--rafad-teal-500); color:var(--rafad-teal-700); background:var(--rafad-white); transform:translateY(-1px); }
body.platform-owner-page .results-chip {
  display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:8px 12px; background:#ecfeff; color:#0f766e; font-size:12px; font-weight:900;
}
body.platform-owner-page .btn-ghost {
  border:none; background:transparent; color:var(--rafad-slate-500); cursor:pointer; font-family:'Tajawal',sans-serif; font-size:12px; font-weight:900; padding:8px 10px; border-radius:10px;
}
body.platform-owner-page .btn-ghost:hover { background:var(--rafad-slate-100); color:var(--rafad-slate-700); }
body.platform-owner-page .flash-banner {
  margin-bottom:16px; border-radius:16px; padding:14px 16px; font-size:13px; font-weight:800;
}
body.platform-owner-page .flash-banner.success { background:#ecfdf5; color:#166534; border:1px solid #bbf7d0; }
body.platform-owner-page .flash-banner.error { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
body.platform-owner-page .hero { display:grid; grid-template-columns:1.45fr .8fr; gap:18px; }
body.platform-owner-page .hero-card,
body.platform-owner-page .panel {
  background:rgba(255,255,255,.95);
  border:1.5px solid var(--rafad-slate-200);
  border-radius:24px;
  box-shadow:var(--rafad-shadow-soft);
}
body.platform-owner-page .hero-main {
  padding:28px; background:linear-gradient(135deg,#f0fdfa,#ffffff 56%,#eff6ff 100%);
}
body.platform-owner-page .eyebrow {
  display:inline-flex; align-items:center; gap:8px; background:var(--rafad-teal-100); color:var(--rafad-teal-700);
  font-size:12px; font-weight:900; padding:7px 12px; border-radius:999px; margin-bottom:14px;
}
body.platform-owner-page .hero-main h1 { font-size:31px; font-weight:900; margin-bottom:10px; letter-spacing:-.4px; }
body.platform-owner-page .hero-main p { color:var(--rafad-slate-600); font-size:14px; line-height:1.9; max-width: 760px; }
body.platform-owner-page .hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
body.platform-owner-page .hero-side { padding:24px; display:grid; gap:12px; }
body.platform-owner-page .hero-side h3 { font-size:16px; font-weight:900; }
body.platform-owner-page .mini-stack { display:grid; gap:10px; }
body.platform-owner-page .mini-item { background:var(--rafad-slate-50); border:1px solid var(--rafad-slate-200); border-radius:16px; padding:14px; }
body.platform-owner-page .mini-item strong { display:block; font-size:13px; margin-bottom:4px; }
body.platform-owner-page .mini-item span { color:var(--rafad-slate-500); font-size:12px; line-height:1.8; }
body.platform-owner-page .kpis { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:18px; }
body.platform-owner-page .kpi {
  background:rgba(255,255,255,.95); border:1.5px solid var(--rafad-slate-200); border-radius:20px; padding:18px; box-shadow:var(--rafad-shadow-soft);
}
body.platform-owner-page .kpi .label { color:var(--rafad-slate-500); font-size:12px; font-weight:900; margin-bottom:10px; }
body.platform-owner-page .kpi .value { font-size:32px; font-weight:900; line-height:1; }
body.platform-owner-page .kpi .sub { color:var(--rafad-slate-400); font-size:12px; margin-top:6px; }
body.platform-owner-page .layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(340px,.95fr); gap:18px; align-items:start; }
body.platform-owner-page .platform-side-stack { display:grid; gap:18px; align-content:start; }
body.platform-owner-page .panel { padding:18px; }
body.platform-owner-page .section-kicker { font-size:11px; letter-spacing:.7px; text-transform:uppercase; color:var(--rafad-teal-700); font-weight:900; margin-bottom:6px; }
body.platform-owner-page .section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }
body.platform-owner-page .section-title { font-size:17px; font-weight:900; color:var(--rafad-slate-900); }
body.platform-owner-page .section-sub { color:var(--rafad-slate-500); font-size:13px; margin-top:4px; line-height:1.7; }
body.platform-owner-page .filters-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
body.platform-owner-page .filters { display:grid; grid-template-columns:1.25fr .72fr .72fr; gap:10px; margin-bottom:14px; }
body.platform-owner-page .field,
body.platform-owner-page .select {
  width:100%; border:1.5px solid var(--rafad-slate-200); border-radius:14px; padding:12px 13px; font-family:'Tajawal',sans-serif;
  font-size:14px; background:var(--rafad-white); color:var(--rafad-slate-900);
}
body.platform-owner-page .field:focus,
body.platform-owner-page .select:focus { outline:none; border-color:var(--rafad-teal-600); box-shadow:0 0 0 4px rgba(13,148,136,.08); }
body.platform-owner-page .table-wrap { overflow:auto; border:1px solid var(--rafad-slate-200); border-radius:20px; background:var(--rafad-white); }
body.platform-owner-page table { width:100%; border-collapse:collapse; min-width:1080px; }
body.platform-owner-page thead th { position:sticky; top:0; z-index:2; background:var(--rafad-slate-50); color:var(--rafad-slate-500); font-weight:900; }
body.platform-owner-page th,
body.platform-owner-page td { padding:13px 14px; text-align:right; font-size:13px; border-bottom:1px solid var(--rafad-slate-100); vertical-align:top; }
body.platform-owner-page tbody tr:hover td { background:#fcfefe; }
body.platform-owner-page tbody tr.is-focused td { background:#ecfeff !important; }
body.platform-owner-page .tenant-name { font-size:14px; font-weight:900; color:var(--rafad-slate-900); }
body.platform-owner-page .tenant-slug,
body.platform-owner-page .muted { font-size:12px; color:var(--rafad-slate-500); }
body.platform-owner-page .tenant-link { color:var(--rafad-teal-700); text-decoration:none; font-weight:800; direction:ltr; display:inline-block; margin-top:4px; }
body.platform-owner-page .badge { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; font-size:11px; font-weight:900; }
body.platform-owner-page .badge-active { background:var(--rafad-green-100); color:var(--rafad-green-700); }
body.platform-owner-page .badge-trial { background:var(--rafad-blue-100); color:var(--rafad-blue-700); }
body.platform-owner-page .badge-suspended { background:var(--rafad-red-100); color:var(--rafad-red-700); }
body.platform-owner-page .badge-cancelled,
body.platform-owner-page .badge-deleted { background:var(--rafad-slate-100); color:var(--rafad-slate-500); }
body.platform-owner-page .plan-select { min-width:190px; }
body.platform-owner-page .actions { display:flex; gap:6px; flex-wrap:wrap; }
body.platform-owner-page .btn-inline {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:9px 12px; font-size:12px; font-weight:900;
  border:none; border-radius:12px; background:var(--rafad-slate-100); color:var(--rafad-slate-700); cursor:pointer; text-decoration:none;
}
body.platform-owner-page .btn-inline.teal { background:#ecfeff; color:var(--rafad-teal-700); }
body.platform-owner-page .btn-inline.green { background:var(--rafad-green-100); color:var(--rafad-green-700); }
body.platform-owner-page .btn-inline.red { background:var(--rafad-red-100); color:var(--rafad-red-700); }
body.platform-owner-page .btn-inline.amber { background:var(--rafad-amber-100); color:var(--rafad-amber-700); }
body.platform-owner-page .plan-grid,
body.platform-owner-page .commercial-grid,
body.platform-owner-page .defaults-grid,
body.platform-owner-page .flag-grid,
body.platform-owner-page .integrity-grid,
body.platform-owner-page .customization-summary { display:grid; gap:12px; }
body.platform-owner-page .plan-grid { grid-template-columns:repeat(2,1fr); }
body.platform-owner-page .commercial-grid,
body.platform-owner-page .defaults-grid,
body.platform-owner-page .flag-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.platform-owner-page .integrity-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.platform-owner-page .customization-summary { grid-template-columns:repeat(3,minmax(0,1fr)); margin:18px 0 14px; }
body.platform-owner-page .plan-card,
body.platform-owner-page .commercial-card,
body.platform-owner-page .defaults-card,
body.platform-owner-page .integrity-box,
body.platform-owner-page .summary-box,
body.platform-owner-page .audit-item,
body.platform-owner-page .detail-card,
body.platform-owner-page .modal-block {
  border:1px solid var(--rafad-slate-200); border-radius:18px; padding:16px; background:linear-gradient(180deg,#ffffff,#fbfdff); transition:.18s ease;
}
body.platform-owner-page .plan-card:hover,
body.platform-owner-page .commercial-card:hover,
body.platform-owner-page .defaults-card:hover,
body.platform-owner-page .integrity-box:hover,
body.platform-owner-page .summary-box:hover,
body.platform-owner-page .audit-item:hover,
body.platform-owner-page .detail-card:hover,
body.platform-owner-page .modal-block:hover { transform:translateY(-1px); border-color:var(--rafad-teal-300); }
body.platform-owner-page .plan-card h3,
body.platform-owner-page .commercial-card h4,
body.platform-owner-page .defaults-card h4 { font-size:14px; font-weight:900; margin-bottom:8px; }
body.platform-owner-page .plan-card .price { color:var(--rafad-teal-700); font-size:22px; font-weight:900; }
body.platform-owner-page .plan-card .price span { color:var(--rafad-slate-400); font-size:12px; font-weight:700; margin-right:4px; }
body.platform-owner-page .plan-card .meta,
body.platform-owner-page .commercial-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
body.platform-owner-page .commercial-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.platform-owner-page .meta-box { background:var(--rafad-white); border-radius:12px; padding:10px 8px; text-align:center; border:1px solid var(--rafad-slate-200); }
body.platform-owner-page .meta-box strong { display:block; font-size:12px; color:var(--rafad-slate-900); }
body.platform-owner-page .meta-box span { display:block; font-size:10px; color:var(--rafad-slate-400); margin-top:4px; }
body.platform-owner-page .usage-row,
body.platform-owner-page .inline-row { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:center; }
body.platform-owner-page .panel-note,
body.platform-owner-page .commercial-note,
body.platform-owner-page .muted-note { font-size:12px; color:var(--rafad-slate-500); line-height:1.8; }
body.platform-owner-page .tiny-label { display:block; font-size:11px; color:var(--rafad-slate-500); font-weight:800; margin-bottom:6px; }
body.platform-owner-page .flag-card { display:flex; gap:8px; align-items:flex-start; border:1px solid var(--rafad-slate-200); border-radius:12px; padding:10px; background:#fff; }
body.platform-owner-page .flag-card input[type="checkbox"] { margin-top:2px; accent-color:var(--rafad-teal-700); }
body.platform-owner-page .flag-card strong { display:block; font-size:12px; }
body.platform-owner-page .flag-card span { display:block; color:var(--rafad-slate-500); font-size:11px; margin-top:2px; line-height:1.6; }
body.platform-owner-page .link-pill,
body.platform-owner-page .feature-tag {
  display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:6px 10px; font-size:11px; font-weight:800; margin:0 6px 6px 0;
}
body.platform-owner-page .link-pill { background:#ecfeff; color:#0f766e; }
body.platform-owner-page .feature-tag { background:#eff6ff; color:#1d4ed8; }
body.platform-owner-page .empty { padding:20px; text-align:center; color:var(--rafad-slate-400); font-size:13px; }
body.platform-owner-page .toast {
  position:fixed; inset-inline-start:20px; bottom:20px; padding:14px 16px; border-radius:14px; color:white; font-weight:900;
  background:var(--rafad-teal-700); box-shadow:var(--rafad-shadow-soft); opacity:0; transform:translateY(10px); pointer-events:none; transition:.15s ease; z-index:200;
}
body.platform-owner-page .toast.show { opacity:1; transform:translateY(0); }
body.platform-owner-page .toast.error { background:var(--rafad-red-700); }
body.platform-owner-page.modal-open { overflow:hidden; }
body.platform-owner-page .modal-backdrop { position:fixed; inset:0; background:rgba(15,23,42,.5); display:none; align-items:center; justify-content:center; padding:18px; z-index:120; }
body.platform-owner-page .modal-backdrop.open { display:flex; }
body.platform-owner-page .modal { width:min(1120px,100%); background:white; border-radius:22px; border:1.5px solid var(--rafad-slate-200); box-shadow:var(--rafad-shadow-soft); padding:0; overflow:hidden; }
body.platform-owner-page .modal-head { position:sticky; top:0; z-index:3; background:white; padding:20px 20px 16px; border-bottom:1px solid var(--rafad-slate-200); display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
body.platform-owner-page .modal-title { font-size:20px; font-weight:900; }
body.platform-owner-page .close-btn { background:var(--rafad-slate-100); border:none; border-radius:12px; padding:8px 12px; cursor:pointer; font-family:'Tajawal',sans-serif; font-weight:900; }
body.platform-owner-page .modal-scroll { max-height:calc(88vh - 78px); overflow:auto; padding:18px 20px 20px; }
body.platform-owner-page .modal-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:16px; }
body.platform-owner-page .modal-subgrid,
body.platform-owner-page .audit-list { display:grid; gap:12px; }
body.platform-owner-page .details-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:16px; }
body.platform-owner-page .detail-card strong { display:block; color:var(--rafad-slate-400); font-size:11px; margin-bottom:6px; }
body.platform-owner-page .detail-card span { color:var(--rafad-slate-900); font-size:14px; font-weight:800; direction:ltr; text-align:left; display:block; word-break:break-all; }
body.platform-owner-page .detail-card.rtl span { direction:rtl; text-align:right; word-break:normal; }
body.platform-owner-page .modal-actions { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
body.platform-owner-page .password-box { background:var(--rafad-amber-100); border:1px solid rgba(245,158,11,.2); border-radius:16px; padding:16px; display:none; }
body.platform-owner-page .password-box.show { display:block; }
body.platform-owner-page .password-box code { display:block; direction:ltr; background:white; border:1px solid rgba(245,158,11,.2); border-radius:12px; padding:12px; margin-top:6px; font-size:15px; font-weight:900; }

body.rafad-owner-login {
  font-family:'Tajawal',sans-serif;
  min-height:100vh;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.20), transparent 32%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #edf6f5 100%);
  color:var(--rafad-slate-900);
  padding:24px;
}
.rafad-owner-login-topbar {
  max-width:1100px; margin:0 auto 28px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.rafad-owner-login-page {
  max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.04fr .96fr; gap:22px; align-items:center;
}
.rafad-owner-login-shell,
.rafad-owner-login-side {
  background:rgba(255,255,255,.94); border:1.5px solid var(--rafad-slate-200); border-radius:28px; box-shadow:var(--rafad-shadow-soft);
}
.rafad-owner-login-shell { overflow:hidden; }
.rafad-owner-login-hero { padding:30px 30px 18px; border-bottom:1px solid var(--rafad-slate-100); background:linear-gradient(135deg,#f0fdfa,#ffffff 60%,#eff6ff 100%); }
.rafad-owner-login-hero .eyebrow { margin-bottom:14px; }
.rafad-owner-login-hero h1 { font-size:32px; font-weight:900; margin-bottom:10px; }
.rafad-owner-login-hero p { color:var(--rafad-slate-600); line-height:1.9; }
.rafad-owner-login-form { padding:24px 30px 30px; }
.rafad-owner-login-form .field { margin-bottom:18px; display:flex; flex-direction:column; gap:8px; }
.rafad-owner-login-form label { font-size:13px; font-weight:900; color:var(--rafad-slate-700); }
.rafad-owner-login-form input {
  width:100%; padding:14px 15px; border-radius:16px; border:1.5px solid var(--rafad-slate-200); background:white; color:var(--rafad-slate-900); font-size:15px; outline:none;
}
.rafad-owner-login-form input:focus { border-color:var(--rafad-teal-500); box-shadow:0 0 0 4px rgba(13,148,136,.08); }
.rafad-owner-login-error {
  margin-bottom:18px; padding:12px 14px; border-radius:14px; background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; font-size:14px; font-weight:700;
}
.rafad-owner-login-footer { padding:0 30px 30px; display:grid; gap:10px; text-align:center; font-size:14px; }
.rafad-owner-login-footer a { color:var(--rafad-teal-700); text-decoration:none; font-weight:800; }
.rafad-owner-login-side { padding:30px; display:grid; gap:16px; }
.rafad-owner-login-list { display:grid; gap:10px; }
.rafad-owner-login-item { background:var(--rafad-slate-50); border:1px solid var(--rafad-slate-200); border-radius:16px; padding:14px; }
.rafad-owner-login-item strong { display:block; font-size:14px; margin-bottom:4px; }
.rafad-owner-login-item span { color:var(--rafad-slate-500); font-size:13px; line-height:1.8; }

@media (max-width: 1200px) {
  body.platform-owner-page .layout,
  body.platform-owner-page .hero,
  body.platform-owner-page .kpis { grid-template-columns:1fr 1fr; }
  body.platform-owner-page .platform-command-bar { align-items:flex-start; }
  body.platform-owner-page .platform-command-bar .group { width:100%; }
}
@media (max-width: 980px) {
  .rafad-owner-login-page { grid-template-columns:1fr; }
  body.platform-owner-page .hero { grid-template-columns:1fr; }
  body.platform-owner-page .layout { grid-template-columns:1fr; }
  body.platform-owner-page .platform-side-stack { position:static; }
}
@media (max-width: 860px) {
  body.platform-owner-page .filters,
  body.platform-owner-page .details-grid,
  body.platform-owner-page .plan-grid,
  body.platform-owner-page .commercial-grid,
  body.platform-owner-page .defaults-grid,
  body.platform-owner-page .flag-grid,
  body.platform-owner-page .integrity-grid,
  body.platform-owner-page .customization-summary,
  body.platform-owner-page .modal-grid,
  body.platform-owner-page .kpis,
  body.platform-owner-page .commercial-meta { grid-template-columns:1fr; }
  body.platform-owner-page .platform-command-bar,
  body.platform-owner-page .filters-meta,
  .rafad-owner-login-topbar,
  body.rafad-register-page .top-bar,
  body.rafad-marketing-home .nav { flex-direction:column; align-items:stretch; }
  body.platform-owner-page .platform-command-bar .group,
  body.platform-owner-page .command-chip,
  body.platform-owner-page .results-chip,
  body.platform-owner-page .btn-ghost { width:100%; justify-content:center; }
  body.rafad-marketing-home .nav-actions,
  body.platform-owner-page .nav-right,
  body.rafad-register-page .top-actions,
  .rafad-owner-login-topbar .top-actions { width:100%; justify-content:space-between; }
}
@media (max-width: 640px) {
  body.platform-owner-page .page { padding-inline:14px; }
  body.platform-owner-page .nav,
  body.rafad-marketing-home .nav,
  body.rafad-register-page .top-bar { padding-inline:14px; }
  .rafad-owner-login-shell,
  .rafad-owner-login-side,
  body.platform-owner-page .hero-card,
  body.platform-owner-page .panel { border-radius:22px; }
  .rafad-owner-login-hero,
  .rafad-owner-login-form,
  .rafad-owner-login-footer,
  .rafad-owner-login-side { padding-inline:18px; }
}

/* === Shared marketing status pages === */
body.rafad-status-page {
  font-family:'Tajawal',sans-serif;
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(ellipse 80% 48% at 50% -10%, rgba(20,184,166,.10), transparent 60%),
    linear-gradient(180deg, #ecfeff 0%, var(--rafad-slate-50) 240px, var(--rafad-slate-50) 100%);
  color:var(--rafad-slate-900);
}
body.rafad-status-page .status-page-shell { max-width:1180px; margin:0 auto; padding:0 16px 56px; }
body.rafad-status-page .status-page-topbar {
  max-width:1180px; margin:0 auto 18px; position:sticky; top:0; z-index:80; min-height:74px; padding:14px 22px;
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  border:1px solid rgba(226,232,240,.9); border-top:0; border-radius:0 0 24px 24px;
  box-shadow:0 16px 34px rgba(15,23,42,.08); background:rgba(255,255,255,.92); backdrop-filter:blur(14px);
}
body.rafad-status-page .status-page-brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
body.rafad-status-page .status-page-brand-meta { display:flex; flex-direction:column; }
body.rafad-status-page .status-page-brand-icon {
  width:42px; height:42px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--rafad-teal-700), var(--rafad-teal-500)); color:var(--rafad-white);
  font-size:18px; font-weight:900; box-shadow:var(--rafad-shadow-button);
}
body.rafad-status-page .status-page-brand-name { font-size:20px; font-weight:900; color:var(--rafad-teal-900); letter-spacing:-.25px; }
body.rafad-status-page .status-page-brand-tag { font-size:11px; color:var(--rafad-slate-400); font-weight:800; }
body.rafad-status-page .status-page-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
body.rafad-status-page .status-card { background:rgba(255,255,255,.96); border:1.5px solid var(--rafad-slate-200); border-radius:28px; overflow:hidden; box-shadow:0 24px 64px rgba(15,23,42,.08); }
body.rafad-status-page .status-hero { padding:34px 34px 28px; background:linear-gradient(135deg, var(--rafad-teal-900), var(--rafad-teal-700)); color:var(--rafad-white); }
body.rafad-status-page .status-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.12); color:#99f6e4; font-size:12px; font-weight:900; margin-bottom:14px; }
body.rafad-status-page .status-title { margin:0 0 10px; font-size:32px; line-height:1.3; font-weight:900; }
body.rafad-status-page .status-copy { margin:0; color:#d1fae5; font-size:15px; line-height:1.9; max-width:72ch; }
body.rafad-status-page .status-body { padding:28px 30px 32px; display:grid; gap:18px; }
body.rafad-status-page .status-layout-grid { display:grid; grid-template-columns:1.08fr .92fr; gap:18px; align-items:start; }
body.rafad-status-page .status-stack { display:grid; gap:14px; }
body.rafad-status-page .status-section, body.rafad-status-page .status-highlight, body.rafad-status-page .status-stat-box { background:var(--rafad-white); border:1.5px solid var(--rafad-slate-200); border-radius:18px; }
body.rafad-status-page .status-section { padding:18px; }
body.rafad-status-page .status-section-title { font-size:15px; font-weight:900; color:var(--rafad-slate-900); margin-bottom:12px; }
body.rafad-status-page .status-highlight { padding:18px; background:linear-gradient(135deg,#f0fdfa 0%,#ffffff 100%); }
body.rafad-status-page .status-highlight.success { background:linear-gradient(135deg,#f0fdf4 0%,#ffffff 100%); border-color:#bbf7d0; }
body.rafad-status-page .status-highlight.warning { background:linear-gradient(135deg,#fffbeb 0%,#ffffff 100%); border-color:#fde68a; }
body.rafad-status-page .status-highlight strong { display:block; font-size:15px; margin-bottom:6px; }
body.rafad-status-page .status-muted, body.rafad-status-page .status-section-text, body.rafad-status-page .status-step-text, body.rafad-status-page .status-note { color:var(--rafad-slate-500); line-height:1.9; font-size:13px; }
body.rafad-status-page .status-url-box, body.rafad-status-page .status-credentials-box, body.rafad-status-page .status-soft-box { background:var(--rafad-slate-50); border:1px solid var(--rafad-slate-200); border-radius:16px; padding:16px; }
body.rafad-status-page .status-mini-label { font-size:12px; color:var(--rafad-slate-400); font-weight:800; margin-bottom:6px; }
body.rafad-status-page .status-ltr { direction:ltr; text-align:left; word-break:break-all; }
body.rafad-status-page .status-value-strong { font-size:16px; font-weight:900; color:var(--rafad-teal-700); }
body.rafad-status-page .status-copy-row { display:flex; gap:8px; align-items:stretch; }
body.rafad-status-page .status-copy-row > *:first-child { flex:1; }
body.rafad-status-page .status-copy-btn, body.rafad-status-page .status-button, body.rafad-status-page .status-button-secondary {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; border-radius:16px; padding:12px 16px;
  font-weight:900; font-size:14px; text-decoration:none; font-family:'Tajawal',sans-serif; transition:.18s ease;
}
body.rafad-status-page .status-copy-btn { border:none; cursor:pointer; background:var(--rafad-teal-100); color:var(--rafad-teal-700); }
body.rafad-status-page .status-button { color:var(--rafad-white); background:linear-gradient(135deg, var(--rafad-teal-700), var(--rafad-teal-600)); box-shadow:var(--rafad-shadow-button); border:none; }
body.rafad-status-page .status-button-secondary { color:var(--rafad-slate-700); background:var(--rafad-white); border:1.5px solid var(--rafad-slate-200); }
body.rafad-status-page .status-button:hover, body.rafad-status-page .status-button-secondary:hover, body.rafad-status-page .status-copy-btn:hover { transform:translateY(-1px); }
body.rafad-status-page .status-actions { display:grid; gap:10px; }
body.rafad-status-page .status-plan-card { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:16px; padding:16px; }
body.rafad-status-page .status-plan-icon { width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:#d1fae5; color:#166534; font-size:18px; font-weight:900; }
body.rafad-status-page .status-plan-name { font-size:16px; font-weight:900; }
body.rafad-status-page .status-plan-sub { color:var(--rafad-slate-500); font-size:13px; margin-top:4px; }
body.rafad-status-page .status-plan-price { color:var(--rafad-teal-700); font-size:20px; font-weight:900; direction:ltr; text-align:left; }
body.rafad-status-page .status-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
body.rafad-status-page .status-stat-box { padding:12px; text-align:center; background:var(--rafad-slate-50); }
body.rafad-status-page .status-stat-box strong { display:block; color:var(--rafad-slate-900); font-size:13px; }
body.rafad-status-page .status-stat-box span { display:block; color:var(--rafad-slate-400); font-size:11px; margin-top:4px; }
body.rafad-status-page .status-step-list { display:grid; gap:10px; }
body.rafad-status-page .status-step { display:flex; align-items:flex-start; gap:10px; background:var(--rafad-slate-50); border:1px solid var(--rafad-slate-200); border-radius:14px; padding:14px; }
body.rafad-status-page .status-step-icon { width:28px; height:28px; border-radius:50%; background:var(--rafad-teal-100); color:var(--rafad-teal-700); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:900; flex-shrink:0; }
body.rafad-status-page .status-step strong { display:block; margin-bottom:3px; font-size:13.5px; }
body.rafad-status-page .status-pill-row { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
body.rafad-status-page .status-pill { display:inline-flex; align-items:center; justify-content:center; padding:7px 12px; border-radius:999px; background:var(--rafad-teal-100); color:var(--rafad-teal-700); font-size:12px; font-weight:900; }
body.rafad-status-page .status-spinner { width:58px; height:58px; border:4px solid rgba(13,148,136,.16); border-top-color:var(--rafad-teal-600); border-radius:50%; animation:rafad-spin .9s linear infinite; margin:8px auto 0; }
@keyframes rafad-spin { to { transform:rotate(360deg); } }
@media (max-width: 1024px) { body.rafad-status-page .status-layout-grid { grid-template-columns:1fr; } }
@media (max-width: 760px) {
  body.rafad-status-page .status-page-topbar { padding:14px 16px; border-radius:0 0 20px 20px; }
  body.rafad-status-page .status-page-actions { width:100%; justify-content:stretch; }
  body.rafad-status-page .status-page-actions > * { flex:1 1 180px; }
  body.rafad-status-page .status-hero, body.rafad-status-page .status-body { padding-right:20px; padding-left:20px; }
  body.rafad-status-page .status-title { font-size:28px; }
}
@media (max-width: 560px) {
  body.rafad-status-page .status-stat-grid { grid-template-columns:1fr; }
  body.rafad-status-page .status-plan-card { grid-template-columns:1fr; text-align:center; }
  body.rafad-status-page .status-plan-price, body.rafad-status-page .status-ltr { text-align:center; }
  body.rafad-status-page .status-copy-row, body.rafad-status-page .status-page-topbar { flex-direction:column; align-items:stretch; }
}
