/*
  Shark — Advertising Agency Management Platform
  Design system: tokens, layout, components. Light + dark mode.
  Brand ramp: Light Blue -> Royal Blue -> Navy Blue (actions/active states/nav only).
*/

/* ============ TOKENS ============ */
:root {
  color-scheme: light;

  /* Brand ramp (sequential blue, light -> navy) */
  --brand-100: #cde2fb;
  --brand-200: #9ec5f4;
  --brand-300: #6da7ec;
  --brand-400: #3987e5;
  --brand-500: #2a78d6;   /* royal blue - primary */
  --brand-600: #1c5cab;
  --brand-700: #104281;   /* navy */
  --brand-800: #0d366b;

  /* Surfaces */
  --surface-page: #f7f8fa;
  --surface-raised: #ffffff;
  --surface-sunken: #f1f3f6;
  --surface-overlay: #ffffff;
  --surface-hover: #f1f5fb;

  /* Ink */
  --ink-primary: #0f172a;
  --ink-secondary: #51586b;
  --ink-muted: #8a90a2;
  --ink-inverse: #ffffff;
  --ink-on-brand: #ffffff;

  /* Borders */
  --border-subtle: #e4e7ee;
  --border-default: #d7dbe4;
  --border-strong: #c1c7d3;
  --ring-focus: rgba(42, 120, 214, 0.35);

  /* Status (fixed, never themed for meaning) */
  --status-neutral-bg: #eef0f4;
  --status-neutral-fg: #4a5164;
  --status-neutral-dot: #9aa1b3;

  --status-info-bg: #e8f1fd;
  --status-info-fg: #17529c;
  --status-info-dot: var(--brand-500);

  --status-success-bg: #e7f7ec;
  --status-success-fg: #0c7a34;
  --status-success-dot: #0ca30c;

  --status-warning-bg: #fef6e3;
  --status-warning-fg: #8a5a00;
  --status-warning-dot: #fab219;

  --status-serious-bg: #fdeee6;
  --status-serious-fg: #a1421d;
  --status-serious-dot: #ec835a;

  --status-critical-bg: #fceaea;
  --status-critical-fg: #a12424;
  --status-critical-dot: #d03b3b;

  /* Shadows (soft, subtle) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  /* Layout */
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 72px;
  --header-h: 60px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-sans: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --brand-100: #12233b;
  --brand-200: #16345c;
  --brand-300: #1c4a80;
  --brand-400: #245fa3;
  --brand-500: #3987e5;
  --brand-600: #5a9de8;
  --brand-700: #86b6ef;
  --brand-800: #b7d3f6;

  --surface-page: #0c0e12;
  --surface-raised: #14171d;
  --surface-sunken: #191d24;
  --surface-overlay: #1a1e25;
  --surface-hover: #1b2432;

  --ink-primary: #f2f4f8;
  --ink-secondary: #b7bcc9;
  --ink-muted: #7d8394;
  --ink-inverse: #0f172a;
  --ink-on-brand: #ffffff;

  --border-subtle: #232832;
  --border-default: #2b313d;
  --border-strong: #3a4152;
  --ring-focus: rgba(57, 135, 229, 0.4);

  --status-neutral-bg: #1e222b;
  --status-neutral-fg: #b7bcc9;
  --status-neutral-dot: #8a90a2;

  --status-info-bg: #12233f;
  --status-info-fg: #7fb0ee;
  --status-info-dot: var(--brand-500);

  --status-success-bg: #10281a;
  --status-success-fg: #4bcb7a;
  --status-success-dot: #199e70;

  --status-warning-bg: #2c2308;
  --status-warning-fg: #e3ad3d;
  --status-warning-dot: #c98500;

  --status-serious-bg: #2c1c12;
  --status-serious-fg: #e8956c;
  --status-serious-dot: #d95926;

  --status-critical-bg: #2c1414;
  --status-critical-fg: #e97e7e;
  --status-critical-dot: #e66767;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; color: var(--ink-primary); }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; color: var(--ink-secondary); }
a { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--brand-600); }
[data-theme="dark"] a:hover { color: var(--brand-700); }
ul { margin: 0; }
img { max-width: 100%; }
::selection { background: var(--brand-200); }
:focus-visible { outline: 2px solid var(--ring-focus); outline-offset: 2px; }
button { font-family: inherit; }

/* ============ APP SHELL ============ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.18s ease;
}
.app-shell.is-collapsed { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
.app-shell.no-sidebar { grid-template-columns: 1fr; }

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-content {
  padding: 28px 32px 56px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: var(--surface-raised);
  border-inline-end: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: var(--header-h);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  white-space: nowrap;
}
.sidebar-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--brand-400), var(--brand-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-brand-name { font-weight: 650; font-size: 15px; color: var(--ink-primary); }
.is-collapsed .sidebar-brand-name,
.is-collapsed .sidebar-section-label,
.is-collapsed .nav-label,
.is-collapsed .nav-item-badge { display: none; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}
.sidebar-section { margin-bottom: 18px; }
.sidebar-section-label {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 0 10px 6px;
}
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}
.nav-item svg { flex-shrink: 0; width: 18px; height: 18px; }
.nav-item:hover { background: var(--surface-hover); color: var(--ink-primary); }
.nav-item.is-active {
  background: var(--status-info-bg);
  color: var(--brand-600);
  font-weight: 650;
}
[data-theme="dark"] .nav-item.is-active { color: var(--brand-700); }
.nav-item.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: -12px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--brand-500);
}
.is-collapsed .nav-item { justify-content: center; }
.is-collapsed .nav-item.is-active::before { inset-inline-start: 0; }

.sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 10px;
  flex-shrink: 0;
}
.sidebar-collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 13px;
}
.sidebar-collapse-btn:hover { background: var(--surface-hover); color: var(--ink-primary); }
.sidebar-collapse-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.is-collapsed .sidebar-collapse-btn { justify-content: center; }
.is-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }

/* mobile sidebar */
.sidebar-scrim { display: none; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr !important; }
  .sidebar {
    position: fixed;
    inset-inline-start: 0; top: 0;
    width: var(--sidebar-w);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-scrim {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 19;
  }
  .app-content { padding: 20px 16px 48px; }
}

/* ============ MOBILE BOTTOM NAV ============ */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0));
    z-index: 18;
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 4px;
    gap: 2px;
  }
  .app-content { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0) + 32px); }
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  margin: 2px;
  border-radius: 16px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.is-active { color: var(--brand-500); background: var(--brand-50, rgba(59, 130, 246, 0.1)); }

/* ============ HEADER ============ */
.app-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
}
.header-menu-btn {
  display: none;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
@media (max-width: 900px) { .header-menu-btn { display: inline-flex; } }
.header-menu-btn:hover { background: var(--surface-hover); }

.global-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.global-search input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--surface-sunken);
  color: var(--ink-primary);
  font-size: 13.5px;
}
.global-search input:focus { background: var(--surface-raised); border-color: var(--brand-400); }
.global-search svg {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); width: 16px; height: 16px;
}
.global-search kbd {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--ink-muted);
  border: 1px solid var(--border-default); border-radius: 4px; padding: 1px 6px;
  background: var(--surface-raised);
}

.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  position: relative;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--ink-primary); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute; top: 6px; left: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--status-critical-dot);
  border: 2px solid var(--surface-raised);
}

.profile-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.profile-trigger:hover { background: var(--surface-hover); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(155deg, var(--brand-400), var(--brand-700));
  color: #fff; font-size: 12px; font-weight: 650;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-name { font-size: 13px; font-weight: 600; color: var(--ink-primary); }
.profile-trigger .chev { color: var(--ink-muted); width: 14px; height: 14px; }

/* dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; left: 0; top: calc(100% + 8px);
  min-width: 240px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 30;
  display: none;
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu.wide { min-width: 320px; }
.dropdown-header {
  padding: 8px 10px; font-size: 12px; font-weight: 650; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--ink-primary); font-size: 13.5px;
  cursor: pointer; border: none; background: none; width: 100%; text-align: start;
}
.dropdown-item:hover { background: var(--surface-hover); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--ink-muted); flex-shrink: 0; }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 6px 4px; }
.notif-item { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--radius-sm); }
.notif-item:hover { background: var(--surface-hover); }
.notif-item .notif-title { font-size: 13px; font-weight: 600; color: var(--ink-primary); }
.notif-item .notif-meta { font-size: 12px; color: var(--ink-muted); }
.notif-item.is-unread .notif-title::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500); margin-inline-end: 6px;
}

/* theme toggle */
.theme-toggle-track {
  width: 40px; height: 24px; border-radius: 12px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-default);
  position: relative; cursor: pointer;
  display: inline-flex; align-items: center; padding: 2px;
}
.theme-toggle-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-500);
  transition: transform 0.18s ease;
}
.theme-toggle-thumb svg { width: 12px; height: 12px; }
[data-theme="dark"] .theme-toggle-thumb { transform: translateX(-16px); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px;
  font-size: 13.5px; font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  color: var(--ink-primary);
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--surface-hover); }
.btn-primary {
  background: var(--brand-500); border-color: var(--brand-500); color: #fff;
}
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-danger { background: var(--status-critical-dot); border-color: var(--status-critical-dot); color: #fff; }
.btn-danger:hover { filter: brightness(0.92); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ============ CARDS ============ */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px 22px; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}
.card-header h2 { font-size: 15px; }
.card-body { padding: 20px 22px; }
.card + .card { margin-top: 20px; }

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-header h1 { margin-bottom: 4px; }
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--brand-500); }

.section-title { font-size: 15px; font-weight: 650; margin-bottom: 12px; }

/* Stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-tile {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-tile.is-linkable { display: block; }
a.stat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.stat-tile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-tile-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--status-info-bg); color: var(--brand-500);
}
.stat-tile-icon svg { width: 17px; height: 17px; }
.stat-tile-icon.icon-blue { background: var(--status-info-bg); color: var(--brand-500); }
.stat-tile-icon.icon-green { background: var(--status-success-bg); color: var(--status-success-dot); }
.stat-tile-icon.icon-orange { background: var(--status-warning-bg); color: var(--status-warning-dot); }
.stat-tile-icon.icon-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.stat-tile-label { font-size: 12.5px; color: var(--ink-muted); font-weight: 600; margin-bottom: 8px; }
.stat-tile-value { font-size: 26px; font-weight: 700; color: var(--ink-primary); letter-spacing: -0.02em; }
.stat-tile-delta { font-size: 12.5px; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.stat-tile-delta.up { color: var(--status-success-fg); }
.stat-tile-delta.down { color: var(--status-critical-fg); }
.stat-tile-delta.flat { color: var(--ink-muted); }
.stat-tile-footer {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle);
  font-size: 12px; color: var(--ink-muted);
}

/* Dashboard hero */
.dashboard-hero { margin-bottom: 28px; }
.dashboard-hero-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-muted); margin-bottom: 8px;
}
.dashboard-hero-eyebrow .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--status-success-dot); flex-shrink: 0; }
.dashboard-hero h1 { font-size: 24px; margin-bottom: 8px; }
.dashboard-hero p { max-width: 640px; margin: 0; }
.project-team { display: flex; align-items: center; }

/* Section header (used above cards on the dashboard) */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-link {
  font-size: 12.5px; font-weight: 650; color: var(--brand-500);
  display: inline-flex; align-items: center; gap: 4px;
}
.section-link:hover { color: var(--brand-600); }
[data-theme="dark"] .section-link { color: var(--brand-700); }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.quick-action-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.quick-action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.quick-action-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.quick-action-icon svg { width: 20px; height: 20px; }
.quick-action-icon.icon-blue { background: var(--status-info-bg); color: var(--brand-500); }
.quick-action-icon.icon-green { background: var(--status-success-bg); color: var(--status-success-dot); }
.quick-action-icon.icon-orange { background: var(--status-warning-bg); color: var(--status-warning-dot); }
.quick-action-icon.icon-red { background: var(--status-critical-bg); color: var(--status-critical-dot); }
.quick-action-icon.icon-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.quick-action-title { font-size: 13px; font-weight: 650; color: var(--ink-primary); margin-bottom: 3px; }
.quick-action-desc { font-size: 11.5px; color: var(--ink-muted); }

/* Filter pill buttons (client-side card filtering) */
.filter-btn-group { display: flex; gap: 2px; background: var(--surface-sunken); border-radius: var(--radius-sm); padding: 3px; }
.filter-btn {
  font-size: 12px; font-weight: 600; color: var(--ink-muted);
  padding: 5px 12px; border: none; background: transparent; border-radius: 6px; cursor: pointer;
}
.filter-btn.is-active { background: var(--surface-raised); color: var(--ink-primary); box-shadow: var(--shadow-xs); }
.filter-btn:hover:not(.is-active) { color: var(--ink-secondary); }

/* Project card rows (dashboard) */
.project-row-list { display: flex; flex-direction: column; }
.project-row {
  padding: 16px 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.project-row:last-child { border-bottom: none; }
.project-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.project-row-name { font-size: 14px; font-weight: 650; color: var(--ink-primary); margin-bottom: 3px; }
.project-row-client { font-size: 12px; color: var(--ink-muted); }
.project-row-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.project-row-deadline { font-size: 11.5px; color: var(--ink-muted); display: flex; align-items: center; gap: 4px; }
.project-row-deadline svg { width: 12px; height: 12px; }

.team-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--surface-raised);
  background: linear-gradient(155deg, var(--brand-400), var(--brand-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; color: #fff;
  margin-inline-start: -8px;
}
.team-avatar:first-child { margin-inline-start: 0; }

/* Task rows (dashboard) */
.task-row-list { display: flex; flex-direction: column; }
.task-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--border-subtle); }
.task-row:last-child { border-bottom: none; }
.task-checkbox-dot {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.task-checkbox-dot.is-done { background: var(--status-success-dot); border-color: var(--status-success-dot); }
.task-checkbox-dot svg { width: 11px; height: 11px; color: #fff; }
.task-row-title { font-size: 13px; font-weight: 600; color: var(--ink-primary); margin-bottom: 5px; }
.task-row.is-done .task-row-title { text-decoration: line-through; color: var(--ink-muted); }
.task-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-row-due { font-size: 11.5px; color: var(--ink-muted); }

/* Notification rows (dashboard) */
.notification-row-list { display: flex; flex-direction: column; }
.notification-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--border-subtle); position: relative; }
.notification-row:last-child { border-bottom: none; }
.notification-row.is-unread::before {
  content: ""; position: absolute; inset-inline-start: -2px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500);
}
.notification-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--status-info-bg); color: var(--brand-500);
}
.notification-icon svg { width: 16px; height: 16px; }
.notification-text { font-size: 13px; color: var(--ink-primary); line-height: 1.6; }
.notification-time { font-size: 11.5px; color: var(--ink-muted); margin-top: 3px; }

/* Billboard mini overview (dashboard) */
.billboard-mini-map {
  width: 100%; height: 170px; border-radius: var(--radius-md);
  background: var(--surface-sunken);
  position: relative; overflow: hidden; margin-bottom: 18px;
}
.billboard-mini-map svg { position: absolute; inset: 0; opacity: 0.35; }
.billboard-mini-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-500); box-shadow: 0 0 0 4px var(--status-info-bg);
}
.billboard-mini-dot.is-active { background: var(--status-success-dot); box-shadow: 0 0 0 4px var(--status-success-bg); }
.billboard-mini-dot.is-reserved { background: var(--status-warning-dot); box-shadow: 0 0 0 4px var(--status-warning-bg); }
.billboard-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.billboard-mini-stat { text-align: center; padding: 12px; background: var(--surface-sunken); border-radius: var(--radius-md); }
.billboard-mini-stat-value { font-size: 20px; font-weight: 700; color: var(--ink-primary); letter-spacing: -0.02em; }
.billboard-mini-stat-label { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

/* Info list (detail pages) */
.info-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 24px; }
.info-item-label { font-size: 12px; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.info-item-value { font-size: 14px; color: var(--ink-primary); }
.info-item-value.muted { color: var(--ink-muted); }
.info-full { grid-column: 1 / -1; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 20px; overflow-x: auto; }
.tab-link {
  padding: 10px 4px; margin-inline-end: 20px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-link:hover { color: var(--ink-primary); }
.tab-link.is-active { color: var(--brand-500); border-bottom-color: var(--brand-500); }
[data-theme="dark"] .tab-link.is-active { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ============ BADGES / STATUS ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; white-space: nowrap;
  background: var(--status-neutral-bg); color: var(--status-neutral-fg);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--status-neutral-dot); flex-shrink: 0; }

.badge[data-status="active"],
.badge[data-status="in_progress"],
.badge[data-status="open"],
.badge[data-status="medium"] {
  background: var(--status-info-bg); color: var(--status-info-fg);
}
.badge[data-status="active"]::before,
.badge[data-status="in_progress"]::before,
.badge[data-status="open"]::before,
.badge[data-status="medium"]::before { background: var(--status-info-dot); }

.badge[data-status="completed"],
.badge[data-status="paid"],
.badge[data-status="done"],
.badge[data-status="resolved"],
.badge[data-status="available"] {
  background: var(--status-success-bg); color: var(--status-success-fg);
}
.badge[data-status="completed"]::before,
.badge[data-status="paid"]::before,
.badge[data-status="done"]::before,
.badge[data-status="resolved"]::before,
.badge[data-status="available"]::before { background: var(--status-success-dot); }

.badge[data-status="pending"],
.badge[data-status="unpaid"],
.badge[data-status="reserved"],
.badge[data-status="todo"] {
  background: var(--status-warning-bg); color: var(--status-warning-fg);
}
.badge[data-status="pending"]::before,
.badge[data-status="unpaid"]::before,
.badge[data-status="reserved"]::before,
.badge[data-status="todo"]::before { background: var(--status-warning-dot); }

.badge[data-status="maintenance"],
.badge[data-status="high"] {
  background: var(--status-serious-bg); color: var(--status-serious-fg);
}
.badge[data-status="maintenance"]::before,
.badge[data-status="high"]::before { background: var(--status-serious-dot); }

.badge[data-status="cancelled"],
.badge[data-status="urgent"],
.badge[data-status="critical"] {
  background: var(--status-critical-bg); color: var(--status-critical-fg);
}
.badge[data-status="cancelled"]::before,
.badge[data-status="urgent"]::before,
.badge[data-status="critical"]::before { background: var(--status-critical-dot); }

.badge[data-status="closed"],
.badge[data-status="draft"],
.badge[data-status="low"],
.badge[data-status="not_enrolled"],
.badge[data-status="read"] {
  background: var(--status-neutral-bg); color: var(--status-neutral-fg);
}
.badge[data-status="inactive"] {
  background: var(--status-critical-bg); color: var(--status-critical-fg);
}
.badge[data-status="inactive"]::before { background: var(--status-critical-dot); }

.badge[data-status="enrolled"],
.badge[data-status="unread"],
.badge[data-status="published"] {
  background: var(--status-info-bg); color: var(--status-info-fg);
}
.badge[data-status="enrolled"]::before,
.badge[data-status="unread"]::before,
.badge[data-status="published"]::before { background: var(--status-info-dot); }

/* ============ PROGRESS / METER ============ */
.progress-track {
  width: 100%; height: 8px; border-radius: 999px;
  background: var(--surface-sunken);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-500));
}
.progress-fill.is-complete { background: linear-gradient(90deg, #199e70, #0ca30c); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress-track { flex: 1; }
.progress-label { font-size: 12.5px; font-weight: 650; color: var(--ink-secondary); min-width: 34px; text-align: end; }

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-inline-start: 8px; }
.timeline-item {
  position: relative;
  padding-block-end: 24px;
  padding-inline-start: 28px;
  border-inline-start: 2px solid var(--border-subtle);
  margin-inline-start: 8px;
}
.timeline-item:last-child { border-color: transparent; padding-block-end: 0; }
.timeline-dot {
  position: absolute; inset-inline-start: -8px; top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-raised); border: 2px solid var(--border-strong);
}
.timeline-item.is-complete .timeline-dot { background: var(--status-success-dot); border-color: var(--status-success-dot); }
.timeline-item.is-current .timeline-dot { background: var(--brand-500); border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--status-info-bg); }
.timeline-title { font-size: 14px; font-weight: 650; color: var(--ink-primary); display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--ink-secondary); }
.timeline-order {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-sunken); color: var(--ink-muted);
  font-size: 11px; font-weight: 700;
}

/* ============ TABLES ============ */
.table-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--border-subtle);
}
.table-search { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.table-search input {
  width: 100%; padding: 7px 32px 7px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-default);
  background: var(--surface-sunken); color: var(--ink-primary); font-size: 13px;
}
.table-search svg { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-muted); }
.table-filter select {
  padding: 7px 10px 7px 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-default); background: var(--surface-sunken);
  color: var(--ink-primary); font-size: 13px;
}
.table-count { margin-inline-start: auto; font-size: 12.5px; color: var(--ink-muted); }

.table-scroll { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.data-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-sunken);
  text-align: start; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.data-table .cell-muted { color: var(--ink-muted); }
.data-table .cell-actions { display: flex; gap: 14px; justify-content: flex-end; white-space: nowrap; }
.data-table td.align-right, .data-table th.align-right { text-align: end; }
.data-table .row-title { font-weight: 600; }
.data-table .row-subtitle { font-size: 12px; color: var(--ink-muted); }

.empty-state {
  padding: 56px 24px; text-align: center; color: var(--ink-muted);
}
.empty-state svg { width: 32px; height: 32px; margin-bottom: 10px; opacity: 0.6; }
.empty-state-title { font-size: 14px; font-weight: 650; color: var(--ink-secondary); margin-bottom: 4px; }

/* ============ FORMS ============ */
.form-shell { max-width: 640px; }
.form-shell.form-wide { max-width: 880px; }
.form-section { margin-bottom: 8px; }
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 650;
  color: var(--ink-primary); margin-bottom: 7px;
}
.form-help { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--status-critical-fg); margin-top: 6px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="datetime-local"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="file"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-primary);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--ring-focus);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238a90a2'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 10px center; padding-left: 32px; }

/* ============ ROLE PERMISSION PICKER ============ */
.permission-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.permission-toolbar-spacer { flex: 1; }
.permission-toolbar input[type="text"] {
  flex: 1;
  min-width: 180px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  background: var(--surface-base);
  color: var(--ink-primary);
}
.permission-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface-base);
}
.permission-group {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-raised);
}
.permission-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-weight: 650;
  font-size: 13.5px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.permission-group-summary::-webkit-details-marker { display: none; }
.permission-group-summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--ink-muted);
  border-block-end: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
  margin-inline-end: 4px;
}
.permission-group[open] > .permission-group-summary::before { transform: rotate(-135deg); }
.permission-group-title { flex: 1; }
.permission-group-count {
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.permission-group-body {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--border-subtle);
}
.permission-select-all-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.permission-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.permission-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font-size: 13px;
  min-width: 200px;
  flex: 1 1 200px;
  cursor: pointer;
}
.permission-item input { flex-shrink: 0; width: 16px; height: 16px; }

/* ============ VOICE RECORDER (task/ticket chat) ============ */
.voice-recorder { margin-top: 8px; }
.voice-recorder-active,
.voice-recorder-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.voice-recorder-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-critical-dot, #e5484d);
  animation: voice-recorder-pulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes voice-recorder-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.75); }
}

/* ============ PUBLIC RENT PAGES ============ */
.public-shell { max-width: 1160px; margin: 0 auto; padding: 0 20px 60px; }
.public-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
.public-header .landing-brand { text-decoration: none; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.city-card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.1)); }
.city-card-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.city-card-count { font-size: 13px; color: var(--ink-muted); }
.rent-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 26px; }
.rent-stat { flex: 1; min-width: 150px; }
.rent-stat-value { font-size: 26px; font-weight: 800; }
.rent-stat-label { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.billboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 10px; }
.billboard-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; overflow: hidden; }
.billboard-card-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--surface-sunken);
  padding: 10px;
}
.billboard-card-image.is-placeholder { display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: 12.5px; padding: 0; }
.billboard-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.billboard-card-title { font-weight: 700; font-size: 15px; }
.billboard-card-meta { font-size: 12.5px; color: var(--ink-muted); }

/* ============ MESSAGES / TOASTS ============ */
.toast-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast.toast-success { border-color: color-mix(in srgb, var(--status-success-dot) 35%, var(--border-subtle)); }
.toast.toast-success svg { color: var(--status-success-dot); }
.toast.toast-error { border-color: color-mix(in srgb, var(--status-critical-dot) 35%, var(--border-subtle)); }
.toast.toast-error svg { color: var(--status-critical-dot); }
.toast.toast-info svg { color: var(--brand-500); }
.toast.toast-warning svg { color: var(--status-warning-dot); }

/* ============ AUTH ============ */
.auth-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-page);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 380px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 30px;
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-title { margin-bottom: 4px; }
.auth-subtitle { margin-bottom: 24px; font-size: 13.5px; }

/* ============ MAP-FOCUSED (Billboards) ============ */
.map-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) { .map-layout { grid-template-columns: 1fr; } }
.map-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding-inline-end: 4px; }
.map-list-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  cursor: pointer;
}
.map-list-item:hover { border-color: var(--brand-300); background: var(--surface-hover); }
.map-list-item.is-active { border-color: var(--brand-500); background: var(--status-info-bg); }
.map-pin {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--status-info-bg); color: var(--brand-500);
}
.map-pin svg { width: 16px; height: 16px; }
.map-list-title { font-size: 13.5px; font-weight: 650; margin-bottom: 2px; }
.map-list-meta { font-size: 12px; color: var(--ink-muted); }
.map-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 640px;
  background: var(--surface-sunken);
}
.map-panel #billboard-map { width: 100%; height: 100%; }

/* ============ JALALI DATEPICKER ============ */
input.input-jalali, input.input-jalali-time {
  width: 100%;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-primary);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  text-align: right;
}
input.input-jalali:focus, input.input-jalali-time:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--ring-focus);
  outline: none;
}
.jalali-datetime-row { display: flex; gap: 10px; }
.jalali-datetime-row input.input-jalali { flex: 2; }
.jalali-datetime-row input.input-jalali-time { flex: 1; }

.audio-recorder {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}
.audio-recorder-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.audio-recorder-status {
  font-size: 12.5px;
  line-height: 1.8;
}
.audio-recorder-preview {
  width: 100%;
  margin-top: 10px;
}

.jalali-cal {
  direction: rtl;
  z-index: 60;
  width: 260px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.jalali-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.jalali-cal-label { font-size: 13px; font-weight: 650; color: var(--ink-primary); }
.jalali-cal-nav {
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-default); background: var(--surface-raised);
  color: var(--ink-secondary); cursor: pointer; font-size: 15px; line-height: 1;
}
.jalali-cal-nav:hover { background: var(--surface-hover); }
.jalali-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.jalali-cal-weekday { text-align: center; font-size: 11px; font-weight: 650; color: var(--ink-muted); padding: 4px 0; }
.jalali-cal-day {
  aspect-ratio: 1; border-radius: var(--radius-sm); border: none; background: transparent;
  color: var(--ink-primary); font-size: 12.5px; cursor: pointer;
}
.jalali-cal-day:hover { background: var(--surface-hover); }
.jalali-cal-day.is-selected { background: var(--brand-500); color: #fff; font-weight: 650; }

/* ============ LANDING (public home) ============ */
.landing-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-page); }

.landing-header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface-raised) 85%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 40;
  transition: box-shadow 0.2s ease;
}
.landing-header.is-scrolled { box-shadow: var(--shadow-sm); }
.landing-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.landing-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; flex: 1; }
.landing-nav-link { font-size: 13.5px; font-weight: 500; color: var(--ink-secondary); }
.landing-nav-link:hover { color: var(--ink-primary); }
.landing-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.landing-mobile-toggle { display: none; }
.landing-mobile-nav {
  display: none;
  position: fixed; top: var(--header-h); inset-inline: 0;
  background: var(--surface-raised); border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px; z-index: 39;
}
.landing-mobile-nav.is-open { display: block; }
.landing-mobile-nav-link { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-secondary); }
.landing-mobile-nav-link:hover { background: var(--surface-hover); color: var(--ink-primary); }

@media (max-width: 860px) {
  .landing-nav-links { display: none; }
  .landing-mobile-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  padding: 104px 24px 88px;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-500) 14%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-anim { opacity: 0; transform: translateY(18px); animation: hero-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-anim-delay-1 { animation-delay: 0.08s; }
.hero-anim-delay-2 { animation-delay: 0.16s; }
.hero-anim-delay-3 { animation-delay: 0.24s; }
.hero-anim-delay-4 { animation-delay: 0.34s; }
@keyframes hero-fade-up { to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
[dir="rtl"] .hero-eyebrow { padding: 6px 8px 6px 16px; }
.hero-eyebrow-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--status-info-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-eyebrow-dot::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500); animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 20px; }
.hero h1 .hero-accent {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 16.5px; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-actions .btn { padding: 12px 26px; font-size: 14.5px; }

.hero-visual { max-width: 1180px; margin: 8px auto 0; padding: 0 24px; position: relative; z-index: 1; }
.hero-browser {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px color-mix(in srgb, var(--brand-500) 12%, transparent);
  animation: hero-visual-float 6s ease-in-out infinite;
}
@keyframes hero-visual-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Floating stat chips over the hero visual */
.hero-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 12.5px; font-weight: 650; color: var(--ink-primary);
  white-space: nowrap;
  z-index: 2;
  animation: chip-float 5s ease-in-out infinite;
}
.hero-chip-icon {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-chip-icon svg { width: 15px; height: 15px; }
.hero-chip-icon.icon-green { background: var(--status-success-bg); color: var(--status-success-dot); }
.hero-chip-icon.icon-blue { background: var(--status-info-bg); color: var(--brand-500); }
.hero-chip-sub { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.hero-chip-1 { top: -18px; inset-inline-start: -18px; animation-delay: 0.2s; }
.hero-chip-2 { bottom: 34px; inset-inline-end: -22px; animation-delay: 1s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 860px) { .hero-chip { display: none; } }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-sunken); }
.browser-url {
  flex: 1; height: 26px; background: var(--surface-sunken); border-radius: 6px;
  margin-inline-start: 8px; display: flex; align-items: center; padding: 0 12px;
  font-size: 12px; color: var(--ink-muted); direction: ltr; text-align: start;
}
.browser-content { background: var(--surface-sunken); padding: 22px; }
.hero-preview-grid { display: grid; grid-template-columns: 160px 1fr 1fr; grid-template-rows: auto 1fr; gap: 14px; height: 360px; }
.hero-preview-sidebar { grid-row: 1 / -1; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; }
.hero-preview-sidebar-item { height: 9px; background: var(--surface-sunken); border-radius: 5px; margin-bottom: 11px; }
.hero-preview-sidebar-item:first-child { width: 60%; background: var(--brand-200); }
.hero-preview-card { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; }
.hero-preview-card-label { height: 7px; width: 50%; background: var(--surface-sunken); border-radius: 4px; margin-bottom: 10px; }
.hero-preview-card-value { height: 20px; width: 40%; background: var(--brand-200); border-radius: 6px; margin-bottom: 14px; }
.hero-preview-chart { height: 50px; display: flex; align-items: flex-end; gap: 4px; }
.hero-preview-bar { flex: 1; background: var(--brand-200); border-radius: 3px 3px 0 0; opacity: 0.6; }
.hero-preview-bar.is-highlight { background: var(--brand-500); opacity: 1; }
.hero-preview-main { grid-column: 2 / -1; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hero-preview-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-subtle); }
.hero-preview-row:last-child { border-bottom: none; }
.hero-preview-row-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hero-preview-row-text { height: 8px; background: var(--surface-sunken); border-radius: 4px; flex: 1; }
.hero-preview-row-badge { height: 18px; width: 46px; border-radius: 9px; flex-shrink: 0; }

@media (max-width: 720px) {
  .hero-preview-grid { grid-template-columns: 1fr; height: auto; }
  .hero-preview-sidebar { display: none; }
  .hero-preview-main { grid-column: 1; }
}

/* Sections */
.landing-section { max-width: 1160px; margin: 0 auto; padding: 8px 24px 96px; width: 100%; }
.landing-section-label {
  font-size: 12px; font-weight: 700; color: var(--brand-500);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
[data-theme="dark"] .landing-section-label { color: var(--brand-700); }
.landing-section-heading { margin-bottom: 48px; }
.landing-section-heading.center { text-align: center; }
.landing-section-heading.center .landing-section-label { }
.landing-section-heading h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 14px; }
.landing-section-heading p { font-size: 15.5px; max-width: 520px; }
.landing-section-heading.center p { margin-inline: auto; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.service-card.is-featured {
  grid-column: span 2; grid-row: span 2;
  padding: 32px 28px; display: flex; flex-direction: column; justify-content: flex-end;
}
.service-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card.is-featured .service-icon { width: 52px; height: 52px; }
.service-icon svg { width: 21px; height: 21px; }
.service-icon.icon-blue { background: var(--status-info-bg); color: var(--brand-500); }
.service-icon.icon-green { background: var(--status-success-bg); color: var(--status-success-dot); }
.service-icon.icon-orange { background: var(--status-warning-bg); color: var(--status-warning-dot); }
.service-icon.icon-red { background: var(--status-critical-bg); color: var(--status-critical-dot); }
.service-icon.icon-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.service-icon.icon-teal { background: rgba(20,184,166,0.12); color: #14b8a6; }
.service-icon.icon-indigo { background: rgba(99,102,241,0.12); color: #6366f1; }
.service-title { font-size: 15.5px; font-weight: 650; margin-bottom: 8px; }
.service-card.is-featured .service-title { font-size: 20px; }
.service-desc { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.7; }
.service-card.is-featured .service-desc { font-size: 14.5px; max-width: 380px; }
.service-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; color: var(--brand-500); margin-top: 14px; }
[data-theme="dark"] .service-link { color: var(--brand-700); }
.featured-visual {
  flex: 1; margin-bottom: 26px; background: var(--surface-sunken); border-radius: var(--radius-md);
  min-height: 180px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.billboard-glyph { position: absolute; bottom: 18px; width: 170px; height: 110px; background: var(--surface-raised); border: 2px solid var(--border-subtle); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.billboard-glyph::after { content: ""; position: absolute; inset-inline-start: 50%; bottom: -34px; transform: translateX(-50%); width: 7px; height: 34px; background: var(--border-strong); border-radius: 4px; }
.billboard-glyph-screen { position: absolute; inset: 5px; background: linear-gradient(135deg, var(--brand-100), var(--brand-200)); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.billboard-glyph-screen span { width: 50%; height: 8px; background: var(--brand-400); border-radius: 4px; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.is-featured { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.is-featured { grid-column: span 1; }
}

/* Portfolio */
.portfolio-section { background: var(--surface-sunken); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-card:first-child { grid-row: span 2; }
.portfolio-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised);
  border: 1px solid var(--border-subtle); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portfolio-image { width: 100%; aspect-ratio: 16/10; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.portfolio-card:first-child .portfolio-image { aspect-ratio: auto; height: 100%; min-height: 280px; }
.portfolio-shape { border-radius: var(--radius-md); opacity: 0.55; }
.portfolio-body { padding: 20px 22px; }
.portfolio-card:first-child .portfolio-body {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  padding: 40px 22px 22px;
}
.portfolio-category { font-size: 11px; font-weight: 700; color: var(--brand-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.portfolio-card:first-child .portfolio-category { color: var(--brand-300); }
.portfolio-title { font-size: 16px; font-weight: 650; margin-bottom: 5px; }
.portfolio-card:first-child .portfolio-title { color: #fff; font-size: 19px; }
.portfolio-client { font-size: 12.5px; color: var(--ink-muted); }
.portfolio-card:first-child .portfolio-client { color: rgba(255,255,255,0.65); }

@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card:first-child { grid-row: span 1; }
}
@media (max-width: 620px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* Billboard network map */
.map-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.map-stat { padding: 18px 20px; background: var(--surface-sunken); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.map-stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.map-stat-label { font-size: 12.5px; color: var(--ink-muted); }
.map-frame {
  background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl, 20px);
  overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: var(--shadow-lg);
}
.map-grid-pattern { position: absolute; inset: 0; }
.map-grid-pattern line, .map-grid-pattern path { stroke: var(--border-default); }
.map-pin { position: absolute; display: flex; flex-direction: column; align-items: center; animation: map-float 4s ease-in-out infinite; }
@keyframes map-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.map-pin-head { width: 13px; height: 13px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 18%, transparent), var(--shadow-sm); position: relative; }
.map-pin-pulse { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--brand-300); position: absolute; top: -7px; inset-inline-start: -7px; animation: pin-pulse 2.5s ease-out infinite; opacity: 0; }
@keyframes pin-pulse { 0% { transform: scale(0.8); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }
.map-pin-label { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 650; color: var(--ink-secondary); margin-top: 4px; white-space: nowrap; box-shadow: var(--shadow-sm); }

@media (max-width: 900px) { .map-content { grid-template-columns: 1fr; } .map-stats { grid-template-columns: 1fr; } }

/* Trust / why choose us */
.trust-section { background: var(--surface-sunken); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card { padding: 32px 26px; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.trust-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trust-number { font-size: 32px; font-weight: 800; color: var(--brand-500); letter-spacing: -0.02em; opacity: 0.18; margin-bottom: 14px; font-style: italic; }
.trust-title { font-size: 15.5px; font-weight: 650; margin-bottom: 8px; }
.trust-text { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.7; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* Academy */
.academy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.course-image { height: 150px; background: var(--surface-sunken); position: relative; display: flex; align-items: center; justify-content: center; }
.course-badge { position: absolute; top: 12px; inset-inline-start: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 6px; }
.course-badge.is-new { background: var(--status-success-bg); color: var(--status-success-dot); }
.course-badge.is-popular { background: var(--status-warning-bg); color: var(--status-warning-dot); }
.course-icon-placeholder { width: 60px; height: 60px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--status-info-bg); color: var(--brand-500); }
.course-icon-placeholder svg { width: 26px; height: 26px; }
.course-body { padding: 20px 22px; }
.course-category { font-size: 11px; font-weight: 700; color: var(--brand-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.course-title { font-size: 15.5px; font-weight: 650; margin-bottom: 10px; }
.course-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-muted); }
.course-meta-item { display: flex; align-items: center; gap: 4px; }
.course-meta-item svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .academy-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonials-section { background: var(--surface-sunken); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px 24px; transition: box-shadow 0.2s ease; }
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--status-warning-dot); }
.testimonial-text { font-size: 14px; color: var(--ink-secondary); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); }
.testimonial-name { font-size: 13.5px; font-weight: 650; }
.testimonial-role { font-size: 11.5px; color: var(--ink-muted); }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

.logos-bar { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 40px 0 0; border-top: 1px solid var(--border-subtle); margin-top: 48px; flex-wrap: wrap; }
.logo-item { font-size: 16px; font-weight: 700; color: var(--ink-muted); letter-spacing: -0.01em; opacity: 0.5; }
.logo-item:hover { opacity: 0.8; }

/* CTA */
.landing-cta {
  padding: 96px 24px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-sunken) 0%, var(--surface-page) 100%);
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.landing-cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.landing-cta p { max-width: 480px; margin: 0 auto 28px; }
.landing-cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
.landing-footer { margin-top: auto; padding: 56px 24px 28px; border-top: 1px solid var(--border-subtle); }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand-text { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-heading { font-size: 12px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.footer-link { font-size: 13.5px; color: var(--ink-secondary); }
.footer-link:hover { color: var(--ink-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: var(--ink-muted); flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > *:first-child { grid-column: span 2; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* utility */
.text-muted { color: var(--ink-muted); }
.mt-0 { margin-top: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.hidden { display: none !important; }
