/* =====================================================================
   صروح الفن الإعلامية — Design System
   Dark luxury aesthetic · gold accent · RTL-first
   One consistent language: color, type, space, radius, shadow, motion.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Surfaces (layered depth) — light */
  --bg:        #f6f4ee;
  --bg-2:      #efeae0;
  --surface:   #ffffff;
  --surface-2: #faf7f1;
  --surface-3: #efeadf;
  --elevated:  #ffffff;

  /* Hairlines */
  --border:        rgba(40,32,15,0.12);
  --border-strong: rgba(40,32,15,0.20);

  /* Brand — gold (tuned for light backgrounds) */
  --accent:      #bf9442;           /* mid gold: borders, focus, small fills */
  --accent-2:    #15110a;           /* near-black: was gold text/icons — now black for readability */
  --accent-hi:   #e7c87d;           /* light gold: gradient highlight (fills only) */
  --accent-3:    #7a571a;           /* deep gold: gradient shadow */
  --accent-ink:  #1f1705;           /* text on gold fills */
  --accent-soft: rgba(191,148,66,0.16);
  --accent-glow: rgba(191,148,66,0.30);

  /* Text — all near-black for maximum readability */
  --text:    #100d07;
  --text-2:  #241f17;
  --muted:   #423d32;
  --faint:   #5f594b;

  /* Semantic (darkened for light bg) */
  --green:      #1f9d57;
  --green-soft: rgba(31,157,87,0.12);
  --amber:      #b07d1f;
  --amber-soft: rgba(176,125,31,0.14);
  --red:        #cf4747;
  --red-soft:   rgba(207,71,71,0.10);
  --blue:       #3a72c2;

  /* Typography */
  --font: 'Cairo', 'IBM Plex Sans Arabic', system-ui, -apple-system, Segoe UI, sans-serif;
  --t-display: clamp(28px, 4vw, 40px);
  --t-h1: 24px;
  --t-h2: 19px;
  --t-h3: 16px;
  --t-body: 14px;
  --t-sm: 13px;
  --t-xs: 11.5px;

  /* Spacing scale (4pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px;

  /* Radius */
  --r-xs: 7px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 26px;
  --r-pill: 999px;

  /* Shadows (soft, layered) */
  --shadow-sm: 0 1px 2px rgba(40,32,15,0.07);
  --shadow:    0 6px 20px -8px rgba(40,32,15,0.14);
  --shadow-lg: 0 24px 60px -18px rgba(40,32,15,0.20);
  --shadow-gold: 0 10px 40px -12px var(--accent-glow);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.22s;

  /* Layout */
  --sidebar-w: 268px;
  --maxw: 1160px;
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: var(--t-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient brand glow + grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200,169,110,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(200,169,110,0.05), transparent 55%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.25;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; }

::selection { background: var(--accent-soft); color: var(--accent-2); }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: #cdc6b6; }

/* Focus ring (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Icons */
.ic { width: 20px; height: 20px; stroke-width: 1.75; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------
   3. BRAND MARK
   --------------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
}
.brand-mark::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(6px); opacity: 0.7; z-index: 0;
}
.brand-mark img, .brand-mark-img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.2; }
.brand-sub  { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.brand-logo-full { max-width: 240px; height: auto; }

/* Full logo placements */
.sidebar-logo { display: block; padding: 4px 6px 8px; }
.sidebar-logo-img { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto; }
.auth-logo { margin-bottom: 28px; }
.auth-logo-img { display: block; width: 100%; max-width: 230px; height: auto; }

/* ---------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  --btn-pad: 10px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-pad);
  border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur), border-color var(--dur), color var(--dur);
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ic { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: var(--accent-ink);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 14px 44px -10px var(--accent-glow); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-3); border-color: var(--border-strong); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: rgba(0,0,0,0.04); }

.btn-danger { background: var(--red-soft); color: var(--red); border-color: rgba(232,112,112,0.25); }
.btn-danger:hover { background: rgba(232,112,112,0.2); }

.btn-lg { --btn-pad: 14px 24px; font-size: var(--t-body); border-radius: var(--r); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Icon-only button */
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-xs);
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(232,112,112,0.4); background: var(--red-soft); }
.icon-btn.wa:hover { color: #25D366; border-color: rgba(37,211,102,0.45); background: rgba(37,211,102,0.1); }
.icon-btn.is-on { color: var(--accent-2); border-color: rgba(191,148,66,0.5); background: var(--accent-soft); }
.icon-btn .ic { width: 17px; height: 17px; }

/* ---------------------------------------------------------------------
   5. FORMS
   --------------------------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: var(--t-sm); color: var(--text-2); font-weight: 500; }
.form-hint  { font-size: var(--t-xs); color: var(--muted); }

.form-input, .form-select, textarea.form-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: var(--t-body);
  font-family: inherit;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.form-input::placeholder { color: var(--faint); }
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}
.form-input:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.7; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d7a72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 38px;
}
.form-select option { background: var(--surface); color: var(--text); }

/* Input with affix (e.g. password eye) */
.input-wrap { position: relative; }
.input-wrap .form-input { padding-left: 44px; }
.input-affix {
  position: absolute; inset-inline-start: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--muted); cursor: pointer; border-radius: var(--r-xs);
}
.input-affix:hover { color: var(--text); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }

/* Toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track {
  width: 44px; height: 26px; border-radius: 99px; background: var(--surface-3);
  border: 1px solid var(--border-strong); transition: background var(--dur); position: relative;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; inset-inline-end: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--text-2);
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(-18px); background: var(--accent-ink); }

/* ---------------------------------------------------------------------
   6. CARDS & SURFACES
   --------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: var(--s-6); }

/* ---------------------------------------------------------------------
   7. BADGES
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active  { background: var(--green-soft); color: var(--green);  border: 1px solid rgba(95,200,138,0.22); }
.badge-pending { background: var(--amber-soft); color: var(--amber);  border: 1px solid rgba(224,177,95,0.22); }
.badge-expired { background: rgba(0,0,0,0.045); color: var(--muted); border: 1px solid var(--border); }
.badge-disabled{ background: var(--red-soft); color: var(--red); border: 1px solid rgba(232,112,112,0.22); }

/* Clickable status toggle */
.badge-toggle {
  font-family: inherit; cursor: pointer;
  transition: filter var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.badge-toggle:hover { filter: brightness(1.18); border-color: currentColor; }
.badge-toggle:active { transform: scale(0.96); }
.badge-toggle .ic-sm { width: 13px; height: 13px; }

/* ---------------------------------------------------------------------
   8. ALERTS / TOAST
   --------------------------------------------------------------------- */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-sm);
  font-size: var(--t-sm); margin-bottom: var(--s-4);
}
.alert .ic { width: 18px; height: 18px; }
.alert-error   { background: var(--red-soft);   color: var(--red);   border: 1px solid rgba(232,112,112,0.25); }
.alert-success { background: var(--green-soft); color: var(--green); border: 1px solid rgba(95,200,138,0.25); }
.alert code { background: rgba(0,0,0,0.06); padding: 1px 7px; border-radius: 5px; font-family: monospace; }

.toast-wrap {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--elevated); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: var(--t-sm); font-weight: 500;
  animation: toast-in 0.35s var(--ease-out);
}
.toast .ic { color: var(--green); width: 18px; height: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------------
   9. APP SHELL (sidebar + main)  — admin
   --------------------------------------------------------------------- */
.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: var(--s-6) var(--s-5);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-inline-start: 1px solid var(--border);
}
.sidebar-head { padding: 0 8px var(--s-6); }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-label {
  font-size: var(--t-xs); color: var(--faint); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0 12px; margin: var(--s-4) 0 var(--s-2);
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: var(--t-sm); font-weight: 500;
  transition: all var(--dur) var(--ease); position: relative;
}
.nav-item:hover { background: rgba(0,0,0,0.045); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  color: var(--accent-2);
}
.nav-item.active::before {
  content: ''; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 99px; background: var(--accent);
}
.nav-item .ic { color: currentColor; }

.sidebar-foot {
  border-top: 1px solid var(--border); padding-top: var(--s-4); margin-top: var(--s-4);
}
.user-chip { display: flex; align-items: center; gap: 11px; padding: 6px 10px; border-radius: var(--r-sm); }
.avatar {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(150deg, var(--accent-hi), var(--accent-3));
  font-weight: 700; font-size: 15px;
}
.user-chip .meta { flex: 1; min-width: 0; }
.user-chip .nm { font-size: var(--t-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .rl { font-size: var(--t-xs); color: var(--muted); }

/* Users management (settings) */
.avatar.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.btn-sm { padding: 7px 12px; font-size: var(--t-xs); border-radius: var(--r-sm); }
.users-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2);
}
.user-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-row-main .nm { font-weight: 600; font-size: var(--t-sm); }
.user-row-main .rl { font-size: var(--t-xs); color: var(--muted); }
.user-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.users-empty {
  padding: 18px; text-align: center; color: var(--muted); font-size: var(--t-sm);
  border: 1px dashed var(--border); border-radius: var(--r-md);
}
@media (max-width: 540px) {
  .user-row { flex-direction: column; align-items: stretch; }
  .user-row-actions { justify-content: flex-end; }
}

.app-main { flex: 1; min-width: 0; }
.page { max-width: var(--maxw); margin: 0 auto; padding: var(--s-7); }

/* Mobile topbar (hidden on desktop) */
.topbar {
  display: none; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}
.hamburger { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 45; backdrop-filter: blur(2px); }

/* ---------------------------------------------------------------------
   10. PAGE HEADER
   --------------------------------------------------------------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); margin-bottom: var(--s-7); flex-wrap: wrap;
}
.page-title { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.4px; }
.page-desc  { font-size: var(--t-sm); color: var(--muted); margin-top: 4px; }
.page-eyebrow {
  font-size: var(--t-xs); color: var(--accent-2); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.section-title { font-size: var(--t-h3); font-weight: 700; }

/* ---------------------------------------------------------------------
   11. STATS
   --------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-7); }
.stat-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-5); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stat-card::after {
  content: ''; position: absolute; top: -20px; inset-inline-start: -20px;
  width: 90px; height: 90px; border-radius: 50%; background: var(--accent-soft); filter: blur(26px);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.stat-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); position: relative;
}
.stat-label { font-size: var(--t-sm); color: var(--text); font-weight: 700; letter-spacing: 0; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -1px; line-height: 1.1; margin-top: 6px; }
.stat-sub { font-size: var(--t-xs); color: var(--text-2); font-weight: 500; margin-top: 6px; }

/* ---------------------------------------------------------------------
   12. DATA TABLE / TRACK ROWS
   --------------------------------------------------------------------- */
.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.track-row {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 150px 110px 120px 132px;
  align-items: center; gap: var(--s-3);
  padding: 14px var(--s-5);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur);
}
.track-row:last-child { border-bottom: none; }
.track-row:not(.header):hover { background: rgba(0,0,0,0.025); }
.track-row.header {
  font-size: var(--t-xs); color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; padding: 12px var(--s-5); background: rgba(0,0,0,0.025);
}
.track-num { font-size: var(--t-sm); color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.track-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-thumb {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--accent-2);
  background: linear-gradient(150deg, #f5e9cf, #faf2e0);
  border: 1px solid var(--border);
}
.track-info { min-width: 0; }
.track-name { font-size: var(--t-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-type { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.track-date { font-size: var(--t-sm); color: var(--text-2); }
.track-plays { font-size: var(--t-body); font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.track-actions { display: flex; gap: 7px; align-items: center; justify-content: flex-end; }

.empty-state { text-align: center; padding: var(--s-9) var(--s-5); color: var(--muted); }
.empty-ico {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto var(--s-4);
  display: grid; place-items: center; color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid rgba(200,169,110,0.18);
}
.empty-state .ic { width: 30px; height: 30px; }
.empty-title { font-size: var(--t-h3); font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ---------------------------------------------------------------------
   13. UPLOAD
   --------------------------------------------------------------------- */
.upload-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-7);
}
.dropzone {
  border: 1.5px dashed rgba(200,169,110,0.3); border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-5); text-align: center; cursor: pointer;
  transition: all var(--dur) var(--ease); margin-bottom: var(--s-6);
  background: radial-gradient(500px 200px at 50% 0%, var(--accent-soft), transparent 70%);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(200,169,110,0.06); transform: translateY(-2px); }
.dropzone-ico {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto var(--s-4);
  display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(150deg, var(--accent-hi), var(--accent-3));
  box-shadow: var(--shadow-gold);
}
.dropzone-ico .ic { width: 28px; height: 28px; }
.dropzone-title { font-size: var(--t-h3); font-weight: 700; margin-bottom: 5px; }
.dropzone-sub { font-size: var(--t-sm); color: var(--muted); }
.dropzone-file { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--t-sm); color: var(--accent-2); font-weight: 600; }

.progress-bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transition: width 0.2s var(--ease); }

/* ---------------------------------------------------------------------
   14. TOOLBAR (search / filter / sort)
   --------------------------------------------------------------------- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.search-box {
  position: relative; flex: 1; min-width: 220px; display: flex; align-items: center;
}
.search-box .ic-sm {
  position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none;
}
.search-input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 12px 42px 12px 14px;
  color: var(--text); font-size: var(--t-body); font-family: inherit; outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.search-input::placeholder { color: var(--faint); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.toolbar-select { width: auto; min-width: 150px; flex-shrink: 0; }

@media (max-width: 620px) {
  .search-box { min-width: 100%; }
  .toolbar-select { flex: 1; min-width: 0; }
}

/* ---------------------------------------------------------------------
   15. LINKS LIST
   --------------------------------------------------------------------- */
.link-card {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3);
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.link-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.link-card.is-new { border-color: var(--accent); box-shadow: var(--shadow-gold); }
.link-card.is-expired { opacity: 0.6; }
.link-thumb {
  width: 50px; height: 50px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center; color: var(--accent-2);
  background: linear-gradient(150deg, #f5e9cf, #faf2e0); border: 1px solid var(--border);
}
.link-info { flex: 1; min-width: 180px; }
.link-track-name { font-size: var(--t-body); font-weight: 700; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.link-client { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--text-2); font-weight: 600; margin-bottom: 9px; }
.link-client .ic-sm { width: 13px; height: 13px; color: var(--accent-2); opacity: 0.7; flex-shrink: 0; }
.link-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 99px; white-space: nowrap;
}
.meta-chip .ic-sm { width: 12px; height: 12px; color: var(--accent-2); opacity: 0.65; }
.meta-chip.is-lock { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(191,148,66,0.4); }
.meta-chip.is-lock .ic-sm { opacity: 1; }
.link-url-box {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 230px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 6px 6px 6px 12px;
}
.link-url-text { font-size: var(--t-xs); color: var(--text-2); flex: 1; direction: ltr; font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: var(--r-xs); font-size: var(--t-xs); font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background var(--dur);
}
.copy-btn:hover { filter: brightness(1.06); }
.copy-btn .ic { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------
   15. AUTH — split-screen
   --------------------------------------------------------------------- */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }

.auth-aside {
  position: relative; overflow: hidden; padding: var(--s-9) var(--s-8);
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(700px 500px at 80% 10%, rgba(191,148,66,0.20), transparent 60%),
    linear-gradient(160deg, #fbf3e1, #f3ecdd 60%);
  border-inline-start: 1px solid var(--border);
}
.auth-aside .glow {
  position: absolute; bottom: -120px; inset-inline-end: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%); filter: blur(10px);
}
.auth-quote { position: relative; z-index: 1; }
.auth-quote h2 { font-size: var(--t-display); font-weight: 700; line-height: 1.3; letter-spacing: -0.5px; }
.auth-quote h2 .hl { color: var(--accent-2); }
.auth-quote p { color: var(--text-2); font-size: var(--t-h3); margin-top: var(--s-4); max-width: 30ch; }
.auth-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s-3); }
.auth-feature { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: var(--t-sm); }
.auth-feature .tick { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.auth-feature .tick .ic { width: 15px; height: 15px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--s-7); }
.auth-form { width: 100%; max-width: 380px; }
.auth-form .brand { margin-bottom: var(--s-8); }
.auth-form h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.4px; }
.auth-form .lead { font-size: var(--t-sm); color: var(--muted); margin-top: 6px; margin-bottom: var(--s-7); }
.auth-foot { margin-top: var(--s-6); text-align: center; font-size: var(--t-xs); color: var(--faint); }

/* ---------------------------------------------------------------------
   16. PUBLIC CLIENT PAGE (player)
   --------------------------------------------------------------------- */
.client { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s-7) var(--s-4); }
.client-eyebrow { font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--s-5); }
.player {
  position: relative; overflow: hidden; width: 100%; max-width: 460px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s-7); box-shadow: var(--shadow-lg);
}
.player::before {
  content: ''; position: absolute; top: -100px; inset-inline-start: 50%; transform: translateX(50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%); pointer-events: none;
}
.player-studio { display: flex; align-items: center; gap: 12px; padding-bottom: var(--s-5); margin-bottom: var(--s-6); border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.player-studio .nm { font-size: var(--t-body); font-weight: 700; }
.player-studio .sb { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.cover {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg);
  display: grid; place-items: center; color: var(--accent-2); margin-bottom: var(--s-6);
  background: linear-gradient(150deg, #f3e7cb 0%, #faf2df 50%, #f0e4c9 100%);
  overflow: hidden;
}
.cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 65%, var(--accent-soft), transparent 60%); }
.cover .ic { width: 64px; height: 64px; }
.track-title { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.4px; position: relative; z-index: 1; }
.track-meta { font-size: var(--t-sm); color: var(--muted); margin-top: 6px; margin-bottom: var(--s-6); position: relative; z-index: 1; }

.waveform { display: flex; align-items: center; gap: 3px; height: 56px; margin-bottom: var(--s-5); cursor: pointer; position: relative; z-index: 1; }
.wave-bar { flex: 1; min-width: 2px; background: rgba(122,87,26,0.20); border-radius: 99px; transition: background 0.12s; }
.wave-bar.played { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }

.player-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-6); position: relative; z-index: 1; }
.player-time { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.play-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: var(--shadow-gold); transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 0 40px -4px var(--accent-glow); }
.play-btn .ic { width: 24px; height: 24px; }
.side-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); }

.download-btn {
  position: relative; z-index: 1; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; border-radius: var(--r); font-size: var(--t-body); font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, rgba(200,169,110,0.16), rgba(200,169,110,0.05));
  border: 1px solid rgba(200,169,110,0.3); color: var(--accent-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur);
}
.download-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); background: linear-gradient(135deg, rgba(200,169,110,0.26), rgba(200,169,110,0.1)); }
.download-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.expires-note { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-4); }
.expires-note .ic { width: 14px; height: 14px; }

/* Share block (client player) */
.share-block { position: relative; z-index: 1; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.share-label { font-size: var(--t-xs); color: var(--text-2); font-weight: 600; text-align: center; margin-bottom: var(--s-3); }
.share-actions { display: flex; gap: 10px; align-items: stretch; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r); font-size: var(--t-sm); font-weight: 700; cursor: pointer;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), filter var(--dur), background var(--dur);
}
.share-btn .ic, .share-btn .ic-sm { width: 18px; height: 18px; }
.share-btn:active { transform: scale(0.98); }
/* WhatsApp = primary, fills the row */
.share-wa {
  flex: 1; padding: 13px 16px; color: #fff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 8px 20px -8px rgba(18,140,126,0.6);
}
.share-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(18,140,126,0.7); filter: brightness(1.03); }
.share-wa .ic { width: 20px; height: 20px; }
/* Neutral secondary buttons */
.share-ghost {
  padding: 13px 14px; color: var(--text-2);
  background: var(--bg-2); border-color: var(--border-strong);
}
.share-ghost:hover { transform: translateY(-2px); color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 600px) {
  .share-actions { flex-wrap: wrap; }
  .share-wa { flex: 1 1 100%; }
  .share-ghost { flex: 1 1 calc(50% - 5px); }
}

/* Developer credit (client player footer) */
.dev-credit { width: 100%; max-width: 460px; text-align: center; margin-top: var(--s-4); font-size: 11px; color: var(--faint); letter-spacing: 0.02em; }
.dev-credit a { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.dev-credit a:hover { text-decoration: underline; }

/* Centered message card (errors on public page) */
.msg-card { width: 100%; max-width: 420px; text-align: center; padding: var(--s-8) var(--s-7); }
.msg-ico { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto var(--s-5); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.msg-ico .ic { width: 34px; height: 34px; }

/* ---------------------------------------------------------------------
   17. MOTION / REVEAL
   --------------------------------------------------------------------- */
@keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: reveal-up 0.5s var(--ease-out) both; }
.reveal[data-d="1"] { animation-delay: 0.05s; }
.reveal[data-d="2"] { animation-delay: 0.10s; }
.reveal[data-d="3"] { animation-delay: 0.15s; }
.reveal[data-d="4"] { animation-delay: 0.20s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------
   18. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  /* App shell -> block layout so main is always full width and never squeezed */
  .app-shell { display: block; }
  .app-main { width: 100%; min-width: 0; }
  .sidebar {
    position: fixed; right: 0; left: auto; top: 0; z-index: 50;
    width: min(86vw, 320px); height: 100vh; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s var(--ease);
    box-shadow: var(--shadow-lg); border-inline-start: 1px solid var(--border);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .topbar { display: flex; }
  .page { padding: var(--s-5) var(--s-4); }

  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  /* Track table -> compact: name + actions only */
  .track-row { grid-template-columns: minmax(0,1fr) auto; gap: var(--s-3); }
  .track-row > *:nth-child(1),
  .track-row > *:nth-child(3),
  .track-row > *:nth-child(4),
  .track-row > *:nth-child(5) { display: none; }
  .stat-value { font-size: 26px; }
  .link-url-box { order: 5; min-width: 100%; }
  .toast-wrap { inset-inline: 16px; }
  .toast { width: auto; }
}

/* ===== Modal (QR) ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(5,5,8,0.72); backdrop-filter: blur(6px);
}
.modal-overlay.show { display: flex; animation: modalFade 0.2s var(--ease); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 360px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 26px 24px;
  box-shadow: var(--shadow-lg); text-align: center;
  animation: modalPop 0.25s var(--ease);
}
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; inset-inline-end: 14px; top: 14px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-3); color: var(--muted); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.qr-eyebrow { font-size: var(--t-xs); color: var(--accent-2); font-weight: 600; letter-spacing: .04em; }
.qr-title { font-size: var(--t-md); font-weight: 700; margin: 4px 0 18px; }
.qr-box {
  width: 240px; height: 240px; margin: 0 auto; padding: 12px;
  background: #fff; border-radius: var(--r-md); display: grid; place-items: center;
}
.qr-box img, .qr-box canvas { display: block; width: 216px !important; height: 216px !important; }
.qr-url {
  margin: 16px auto 0; max-width: 100%; font-size: var(--t-xs); color: var(--muted);
  word-break: break-all; direction: ltr;
}
.qr-actions { display: flex; gap: 10px; margin-top: 20px; }
.qr-actions .btn { flex: 1; justify-content: center; }
.qr-hint { font-size: var(--t-xs); color: var(--muted); margin: 16px 0 0; line-height: 1.7; }

/* =====================================================================
   19. MOBILE-FIRST POLISH (phone-optimized — most users are on phones)
   ===================================================================== */

/* Comfortable tap feedback + smooth scroll */
* { -webkit-tap-highlight-color: rgba(191,148,66,0.16); }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { -webkit-overflow-scrolling: touch; }
img, svg, video, canvas { max-width: 100%; }

/* On touch devices, drop hover "lift" transforms that feel laggy */
@media (hover: none) {
  .btn:hover, .btn-primary:hover, .stat-card:hover, .link-card:hover,
  .icon-btn:hover, .download-btn:hover, .play-btn:hover, .wave-bar:hover {
    transform: none;
  }
  .btn:active, .icon-btn:active, .copy-btn:active, .badge-toggle:active { transform: scale(0.97); }
}

/* Prevent iOS auto-zoom on focus: form fields must be >=16px */
@media (max-width: 768px) {
  .form-input, .form-select, textarea.form-input, .search-input { font-size: 16px; }

  .page { padding: var(--s-5) var(--s-4) var(--s-8); }
  .page-head { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .page-head .btn { width: 100%; }
  .page-title { font-size: 22px; }
  .section-head { gap: var(--s-3); flex-wrap: wrap; }

  /* Toolbar: search full row, selects share a row */
  .toolbar { gap: 8px; }
  .toolbar-select { min-width: calc(50% - 4px); }
}

/* Phones */
@media (max-width: 600px) {
  :root { --sidebar-w: min(86vw, 320px); }

  .sidebar { overflow-y: auto; padding: var(--s-5) var(--s-4); }
  .page { padding: var(--s-4) var(--s-3) var(--s-9); }

  /* Stats: two-up, tighter */
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .stat-card { padding: var(--s-4); }
  .stat-value { font-size: 23px; }
  .stat-ico { width: 34px; height: 34px; }

  /* Cards & forms */
  .upload-card { padding: var(--s-5); border-radius: var(--r-lg); }
  .dropzone { padding: var(--s-6) var(--s-4); }
  .dropzone-ico { width: 54px; height: 54px; }

  /* Bigger, finger-friendly controls */
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn .ic { width: 18px; height: 18px; }
  .copy-btn { padding: 9px 14px; }

  /* Link cards -> clean vertical stack */
  .link-card { padding: var(--s-4); gap: var(--s-3) var(--s-4); }
  .link-card > .link-thumb { order: 1; }
  .link-card > .link-info { order: 2; flex: 1 1 auto; min-width: 0; }
  .link-card > form, .link-card > .badge { order: 3; }
  .link-card > .link-url-box { order: 4; min-width: 100%; }
  .link-card > .track-actions { order: 5; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }

  /* Public player */
  .client { padding: var(--s-5) var(--s-3); }
  .player { padding: var(--s-5); border-radius: var(--r-lg); }
  .track-title { font-size: 22px; }
  .play-btn { width: 64px; height: 64px; }
  .side-btn { width: 44px; height: 44px; }
  .download-btn { padding: 15px; }

  /* Auth (login) */
  .auth-main { padding: var(--s-6) var(--s-4); }
  .auth-form { max-width: 100%; }
  .auth-logo-img { max-width: 200px; }

  /* Settings user rows already stack at 540 */
  .user-row-actions .btn-sm { flex: 1; }

  /* Modal */
  .modal { padding: 22px 18px 20px; }
  .qr-box { width: 220px; height: 220px; }
  .qr-box img, .qr-box canvas { width: 196px !important; height: 196px !important; }
}

/* Small phones */
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .page-title { font-size: 20px; }
  .brand-name { font-size: 15px; }
  .track-title { font-size: 20px; }
  .qr-actions { flex-wrap: wrap; }
  .qr-actions .btn { min-width: calc(50% - 5px); }
}

/* Auth (login) — bulletproof single-column on tablet & phone.
   Use block layout so the form's width resolves against a definite width
   (flex centering + percentage widths caused horizontal overflow). */
@media (max-width: 900px) {
  .auth { display: block; min-height: 100vh; }
  .auth-aside { display: none !important; }
  .auth-main {
    display: block; width: 100%; min-height: 100vh;
    padding: var(--s-8) var(--s-5);
  }
  .auth-form {
    width: 100%; max-width: 380px; margin: 0 auto;
    display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--s-8) * 2);
  }
}
@media (max-width: 600px) {
  .auth-main { padding: var(--s-7) var(--s-4); }
  .auth-form { max-width: 100%; min-height: calc(100vh - var(--s-7) * 2); }
}

/* =====================================================================
   LANDING PAGE (الصفحة العامة للزوّار)
   ===================================================================== */
body.landing { background: var(--bg); color: var(--text); }
.landing .lp-h2 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; color: var(--text); margin: 0 0 10px; letter-spacing: -.02em; }
.landing .lp-lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.85; margin: 0; }

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(246,244,238,0.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.lp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.lp-brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.lp-brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.lp-brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.lp-nav-links { display: flex; align-items: center; gap: 6px; }
.lp-nav-links > a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 13px; border-radius: var(--r-sm); transition: background var(--dur), color var(--dur); }
.lp-nav-links > a:hover { background: var(--surface-3); color: var(--text); }
.lp-login { display: inline-flex !important; align-items: center; gap: 7px; background: var(--text) !important; color: #fff !important; }
.lp-login:hover { filter: brightness(1.12); }
.lp-login .ic-sm { width: 15px; height: 15px; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 116px) clamp(16px, 5vw, 56px) clamp(48px, 7vw, 92px); text-align: center; }
.lp-hero-glow { position: absolute; inset: -30% 20% auto 20%; height: 420px; background: radial-gradient(60% 60% at 50% 0%, var(--accent-glow), transparent 70%); filter: blur(10px); pointer-events: none; z-index: 0; }
.lp-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.lp-eyebrow .ic-sm { width: 15px; height: 15px; color: var(--accent); }
.lp-title { font-size: clamp(30px, 6vw, 56px); line-height: 1.18; font-weight: 900; letter-spacing: -.03em; margin: 0 0 18px; color: var(--text); }
.lp-sub { font-size: clamp(15px, 2vw, 19px); color: var(--muted); line-height: 1.85; margin: 0 auto 32px; max-width: 660px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Sections */
.lp-section { padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 56px); max-width: var(--maxw); margin: 0 auto; }
.lp-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 52px); }

/* Service cards */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.lp-card-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: var(--r); background: linear-gradient(145deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); margin-bottom: 16px; box-shadow: var(--shadow-gold); }
.lp-card-ic .ic { width: 26px; height: 26px; }
.lp-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--text); }
.lp-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* About */
.lp-about { }
.lp-about-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-points { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.lp-point { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); font-size: 15px; }
.lp-point .ic { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.lp-about-art { display: grid; place-items: center; }
.lp-about-art { background: linear-gradient(160deg, var(--surface), var(--surface-3)); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px; box-shadow: var(--shadow); }
.lp-about-logo { max-width: 100%; height: auto; max-height: 200px; object-fit: contain; }

/* Contact + socials */
.lp-contact { text-align: center; }
.lp-contact-cta { margin-bottom: 32px; }
.lp-socials { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 760px; margin: 0 auto; }
.lp-social { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur), color var(--dur); }
.lp-social .ic { width: 22px; height: 22px; color: var(--sc, var(--accent)); }
.lp-social:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sc, var(--accent)); }

/* Footer */
.lp-foot { border-top: 1px solid var(--border); background: var(--surface-2); padding: clamp(36px, 6vw, 56px) clamp(16px, 5vw, 56px); }
.lp-foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.lp-foot-links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.lp-foot-links a:hover { color: var(--accent); }
.lp-foot-copy { color: var(--faint); font-size: 13px; line-height: 1.9; }
.lp-dev { display: block; margin-top: 4px; }
.lp-dev a { color: var(--accent); text-decoration: none; font-weight: 700; }

/* Floating WhatsApp */
.lp-wa-float { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform var(--dur) var(--ease); }
.lp-wa-float:hover { transform: scale(1.08); }
.lp-wa-float .ic { width: 30px; height: 30px; }

/* Social badge (admin list) */
.social-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--sc, var(--accent)); border: 1px solid var(--border); flex-shrink: 0; }
.social-badge .ic { width: 22px; height: 22px; }

/* Upload progress overlay (replace audio) */
.up-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(20,16,8,.45); backdrop-filter: blur(3px); transition: opacity .3s; }
.up-overlay.fade { opacity: 0; }
.up-box { width: min(380px, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-lg); text-align: center; }
.up-spin { width: 30px; height: 30px; margin: 0 auto 16px; border: 3px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: upSpin .8s linear infinite; }
.up-box.ok .up-spin, .up-box.err .up-spin { display: none; }
@keyframes upSpin { to { transform: rotate(360deg); } }
.up-title { font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 16px; line-height: 1.7; word-break: break-word; }
.up-bar { height: 10px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-hi), var(--accent)); border-radius: var(--r-pill); transition: width .2s ease; }
.up-pct { margin-top: 12px; font-weight: 800; font-size: 17px; color: var(--text); }
.up-box.ok .up-bar span { background: var(--green); }
.up-box.ok .up-pct { color: var(--green); }
.up-box.err .up-bar span { background: var(--red); }
.up-box.err .up-pct { color: var(--red); }

/* Landing text editor (admin) */
.lp-edit-group { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.lp-edit-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.lp-edit-title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14.5px; color: var(--text); margin-bottom: 13px; }
.lp-edit-title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }

@media (max-width: 860px) {
  .lp-about-inner { grid-template-columns: 1fr; }
  .lp-about-art { order: -1; padding: 28px; }
  .lp-about-logo { max-height: 150px; }
}
/* Hero — social row */
.lp-hero-socials { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.lp-hero-socials-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--faint); }
.lp-hero-socials-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-hsoc { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--shadow-sm); transition: transform .26s var(--ease), background .26s, color .26s, border-color .26s, box-shadow .26s; }
.lp-hsoc .ic { width: 23px; height: 23px; }
.lp-hsoc:hover { transform: translateY(-5px); background: var(--sc, var(--accent)); color: #fff; border-color: var(--sc, var(--accent)); box-shadow: var(--shadow-lg); }

/* Connect band (featured socials — second section) */
.lp-connect { max-width: none; margin: 0; background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-connect .lp-head, .lp-connect-grid { max-width: var(--maxw); margin-inline: auto; }
.lp-connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; }
.lp-connect-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s, border-color .28s; }
.lp-connect-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--sc, var(--accent)); opacity: 0; transition: opacity .28s; }
.lp-connect-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sc, var(--accent)); }
.lp-connect-card:hover::before { opacity: 1; }
.lp-connect-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--surface-3); color: var(--sc, var(--accent)); flex-shrink: 0; transition: background .28s, color .28s, transform .28s var(--ease); }
.lp-connect-ic .ic { width: 26px; height: 26px; }
.lp-connect-card:hover .lp-connect-ic { background: var(--sc, var(--accent)); color: #fff; transform: scale(1.06) rotate(-3deg); }
.lp-connect-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lp-connect-label { font-weight: 800; font-size: 16px; color: var(--text); }
.lp-connect-sub { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.lp-connect-go { color: var(--faint); flex-shrink: 0; transition: transform .28s var(--ease), color .28s; }
.lp-connect-go .ic { width: 20px; height: 20px; }
.lp-connect-card:hover .lp-connect-go { color: var(--sc, var(--accent)); transform: translateX(-6px); }

/* Subtle entrance motion (alive, not flashy) */
@keyframes lpUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-inner > * { animation: lpUp .7s var(--ease-out) both; }
  .lp-hero-inner > *:nth-child(2) { animation-delay: .06s; }
  .lp-hero-inner > *:nth-child(3) { animation-delay: .12s; }
  .lp-hero-inner > *:nth-child(4) { animation-delay: .18s; }
  .lp-hero-inner > *:nth-child(5) { animation-delay: .24s; }
  .lp-connect-card { animation: lpUp .6s var(--ease-out) both; }
  .lp-connect-card:nth-child(2) { animation-delay: .05s; }
  .lp-connect-card:nth-child(3) { animation-delay: .10s; }
  .lp-connect-card:nth-child(4) { animation-delay: .15s; }
  .lp-connect-card:nth-child(5) { animation-delay: .20s; }
  .lp-connect-card:nth-child(6) { animation-delay: .25s; }
}

@media (max-width: 640px) {
  .lp-nav { padding: 11px 16px; }
  .lp-nav-links > a { display: none; }
  .lp-brand-name { font-size: 15px; }
  .lp-cta .btn { width: 100%; justify-content: center; }
  .lp-hsoc { width: 46px; height: 46px; }
}
