:root {
  --bg-page: #020014;
  --bg-surface: #060312;
  --bg-surface-soft: #090417;

  --purple-1: #7C3AED;
  --purple-2: #A855F7;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;

  --border-soft: rgba(148, 163, 184, 0.3);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.9);

  --transition-fast: 170ms ease-out;
  --transition-med: 220ms ease-out;

  --grid-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0%, #020617 45%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.material-symbols-rounded {
  font-variation-settings:
    'FILL' 1,
    'wght' 500,
    'GRAD' 0,
    'opsz' 20;
  font-size: 18px;
  line-height: 1;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0, rgba(124, 58, 237, .28) 0, transparent 55%),
    radial-gradient(circle at 90% 5%, rgba(168, 85, 247, .22) 0, transparent 55%),
    radial-gradient(circle at 0 90%, rgba(37, 99, 235, .2) 0, transparent 55%);
}

.container {
  width: 100%;
  max-width: var(--grid-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; position: relative; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a855f7;
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============== NAVBAR =============== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(5, 3, 20, .98), rgba(5, 3, 20, .9));
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.navbar-inner {
  max-width: var(--grid-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, #f9fafb 0, #dbeafe 22%, transparent 55%),
    radial-gradient(circle at 80% 120%, #0ea5e9 0, transparent 55%),
    linear-gradient(145deg, #22c1ee, #6366f1 45%, #a855f7 100%);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.45),
    0 0 26px rgba(56, 189, 248, 0.9),
    0 0 60px rgba(37, 99, 235, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.5), transparent 50%);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

.logo-brain {
  position: relative;
  font-size: 24px;
  color: #020617;
  text-shadow: 0 0 16px rgba(248, 250, 252, 0.9);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-link {
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-1), var(--purple-2));
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: #e5e7eb;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(6, 4, 26, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 12px;
  color: #e5e7eb;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #f9fafb, #6366f1 60%, #312e81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.9);
}

.mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-toggle span::before { top: -5px; }
.mobile-toggle span::after  { top: 5px; }

/* =============== HERO / GENERIC PAGE HERO =============== */

.hero {
  padding: 96px 0 90px;
  background: radial-gradient(circle at top left, rgba(124, 58, 237, .35) 0, rgba(5, 3, 20, 1) 40%),
              radial-gradient(circle at bottom right, rgba(168, 85, 247, .3) 0, #020013 55%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.7) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.20;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 28px;
}

.hero-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #fefce8, #a855f7 60%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 0 16px rgba(250, 204, 21, .9);
}

.hero-title {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.07em;
  margin: 0 0 18px;
}

.hero-title span {
  display: block;
  color: #a855f7;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn {
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(120deg, var(--purple-1), var(--purple-2));
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, .08),
    0 0 42px rgba(168, 85, 247, .95);
  color: #f9fafb;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, .15),
    0 0 55px rgba(168, 85, 247, 1);
}

.btn-outline {
  background: rgba(6, 3, 18, 0.96);
  border-color: rgba(55, 65, 81, .9);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(168, 85, 247, .85);
  box-shadow: 0 0 22px rgba(15, 23, 42, .9);
  transform: translateY(-2px);
}

/* hero metrics (home فقط تستخدمه لكن عادي للباقي) */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-metric strong {
  display: block;
  font-size: 18px;
  color: #f9fafb;
  margin-bottom: 4px;
}

.hero-metric span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(156, 163, 175, 0.9);
}

/* ========== CARDS / GRIDS المستخدمة في الصفحات ========== */

.engines {
  background: #05020f;
  border-top: 1px solid rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.engine-card {
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.2), #05020f 60%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, .9);
  box-shadow: var(--shadow-soft);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
}

.engine-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(148, 163, 184, .55);
  font-size: 11px;
  color: #e5e7eb;
  margin-bottom: 12px;
}

.engine-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  box-shadow: 0 0 14px rgba(168, 85, 247, .9);
}

.engine-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.engine-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.engine-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: #e5e7eb;
}

.engine-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.engine-bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  flex-shrink: 0;
}

.engine-btn {
  width: 100%;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(120deg, var(--purple-1), var(--purple-2));
  color: #f9fafb;
  box-shadow: 0 10px 35px rgba(168, 85, 247, .65);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 24px 12px 60px;
}

.engine-btn-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0, #ffffff 0, #f9e8ff 25%, transparent 55%),
    linear-gradient(135deg, #a855f7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.7),
    0 12px 32px rgba(0, 0, 0, 1),
    0 0 40px rgba(168, 85, 247, 0.85);
}

.engine-btn-icon .material-symbols-rounded {
  font-size: 20px;
}

.engine-btn-label {
  position: relative;
  z-index: 1;
}

.engine-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(168, 85, 247, .9);
}

/* كيف يعمل / outputs / who / features / pricing / footer نفس اللي في الهوم */

.how { background: #060314; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.how-card {
  background: #050113;
  border-radius: 26px;
  border: 1px solid rgba(31, 41, 55, 1);
  padding: 28px 20px 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
  position: relative;
  overflow: hidden;
}

.how-glow-circle {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 0, #ffffff 0, #f3e8ff 28%, transparent 55%),
    radial-gradient(circle at 50% 120%, #4c1d95 0, transparent 55%),
    linear-gradient(135deg, #a855f7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow:
    0 0 60px rgba(168, 85, 247, 0.95),
    0 20px 50px rgba(0, 0, 0, 1);
  border: 1px solid rgba(249, 250, 251, 0.5);
}

.how-glow-circle .material-symbols-rounded {
  font-size: 26px;
}

.how-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #a855f7;
  margin-bottom: 4px;
}

.how-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.how-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.outputs { background: #05020f; }

.outputs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.output-card {
  background: rgba(9, 6, 28, 0.98);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, .9);
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.output-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(168, 85, 247, .35), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.output-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 14px 40px rgba(168, 85, 247, 0.8);
  position: relative;
  z-index: 1;
}

.output-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.output-text {
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.output-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, .9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .98);
  background: rgba(9, 6, 28, 1);
}

.output-card:hover::before { opacity: 1; }

.who { background: #060314; }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.who-card {
  background: #050113;
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 55, 1);
  padding: 16px 18px 18px;
  font-size: 13px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.who-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.who-text {
  color: var(--text-muted);
  line-height: 1.6;
}

.features { background: #05020f; }

.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: flex-start;
}

.features-copy {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.features-copy p { margin: 0 0 12px; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  box-shadow: 0 0 14px rgba(168, 85, 247, .85);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0, #fdf2ff 0, transparent 40%),
    linear-gradient(145deg, var(--purple-1), var(--purple-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.2),
    0 14px 35px rgba(15, 23, 42, 0.95);
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.feature-text {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing {
  background: radial-gradient(circle at top, rgba(31, 41, 55, 1) 0, #020012 60%);
  border-top: 1px solid rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  background: rgba(5, 3, 20, .96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, .95);
  padding: 24px 18px 20px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .85);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  background: radial-gradient(circle at top, rgba(124, 58, 237, .6), #050013 55%);
  border-color: rgba(168, 85, 247, 1);
  box-shadow:
    0 0 0 1px rgba(249, 250, 251, .12),
    0 24px 85px rgba(0, 0, 0, .95);
}

.pricing-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #a855f7;
  margin-bottom: 8px;
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pricing-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
  margin-bottom: 6px;
}

.pricing-price span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: #e5e7eb;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.check-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #f9fafb 0, #22c55e 70%, #166534 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.pricing-btn { width: 100%; justify-content: center; }

/* FOOTER */

footer {
  background: #020010;
  padding: 32px 0 26px;
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.social-links { display: flex; gap: 10px; }

.social-pill {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.social-pill:hover {
  border-color: rgba(168, 85, 247, .95);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }

  .nav-links.open {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 60px;
    background: rgba(5, 3, 20, .97);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .7);
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .95);
  }

  .card-grid-3,
  .outputs-grid,
  .who-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding-top: 80px; }

  .hero-ctas { flex-direction: column; }

  .card-grid-3,
  .outputs-grid,
  .who-grid,
  .pricing-grid,
  .how-grid,
  .feature-list,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================= AUTH PAGES & DASHBOARD ================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, .3) 0, #020014 55%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, .3) 0, #020014 65%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(6, 4, 26, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.8);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px 22px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.auth-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.96);
  padding: 9px 14px;
  font-size: 13px;
  color: #f9fafb;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.auth-input:focus {
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, .9);
  background: rgba(15, 23, 42, 1);
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: 12px;
}

.auth-link {
  color: #a855f7;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin: 16px 0;
}

.auth-divider span {
  flex-shrink: 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.6), transparent);
}

.btn-google {
  width: 100%;
  justify-content: center;
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(55, 65, 81, 1);
}

.btn-google:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 30px rgba(37, 99, 235, .9);
}

.btn-google-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #111827;
}

/* NAVBAR USER AREA */

.nav-user-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-info {
  display: none;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.nav-user-name {
  font-size: 12px;
  color: #e5e7eb;
}

.nav-user-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a855f7;
}

.avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.9);
}

/* DASHBOARD */

.dashboard-hero {
  padding: 90px 0 40px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: flex-start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.stat-card {
  background: #050113;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 1);
  padding: 12px 12px 10px;
  font-size: 12px;
}

.stat-label {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
}

.projects-card {
  background: #050113;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 1);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-soft);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .9);
  border: 1px solid rgba(31, 41, 55, 1);
  font-size: 12px;
}

.project-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-name {
  font-size: 13px;
  font-weight: 600;
}

.project-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.project-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

/* ADMIN PAGE */

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 20px;
}

.admin-card {
  background: #050113;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 1);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(31, 41, 55, .9);
}

.admin-pill {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .8);
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .dashboard-layout,
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============ AUTH PAGES (Sign in / Sign up) ============ */

.auth-page {
  padding: 110px 0 80px;
  background: radial-gradient(circle at top, rgba(124, 58, 237, .35) 0, #020013 55%);
}

.auth-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.auth-title-main {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 0;
}

.auth-title-main span {
  color: #a855f7;
  display: block;
}

.auth-subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 30px 26px 24px;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.5) 0, rgba(6, 3, 20, 0.98) 55%);
  border: 1px solid rgba(55, 65, 81, 0.95);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.95);
}

.auth-card-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
}

.auth-input {
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.95);
  padding: 10px 16px;
  font-size: 14px;
  color: #f9fafb;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.auth-input::placeholder {
  color: #6b7280;
}

.auth-input:focus {
  border-color: rgba(168, 85, 247, 1);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.8), 0 0 25px rgba(168, 85, 247, 0.9);
  background: rgba(15, 23, 42, 1);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.auth-secondary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-secondary-row a {
  color: #a855f7;
  text-decoration: none;
}

.auth-secondary-row a:hover {
  text-decoration: underline;
}

.auth-google-btn {
  margin-top: 10px;
}

.auth-google-btn .btn-outline {
  background: rgba(6, 3, 18, 1);
}

.auth-footer-text {
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}

.auth-footer-text a {
  color: #a855f7;
  text-decoration: none;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-error {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  color: #f97373;
  text-align: center;
}

/* صغير الشاشة */
@media (max-width: 640px) {
  .auth-card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }
}

/* ========== NAV USER (اسم + أفاتار) – تحسين بسيط ========== */

.nav-user-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  line-height: 1.3;
}

.nav-user-name {
  font-weight: 500;
  color: #e5e7eb;
}

.nav-user-role {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 9px;
  color: #9ca3af;
}

.avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.95);
  border: 1px solid rgba(248, 250, 252, 0.5);
}

/* ========== ADMIN HERO الجديد ========== */

.admin-hero {
  padding: 96px 0 40px;
  background: radial-gradient(circle at top, rgba(129, 140, 248, .32) 0, #020014 55%);
}

.admin-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.admin-hero-copy {
  max-width: 520px;
}

.admin-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #a855f7;
  margin-bottom: 10px;
}

.admin-title {
  font-size: clamp(36px, 5.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.08em;
  margin: 0 0 14px;
}

.admin-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 460px;
}

.admin-hero-card {
  border-radius: 24px;
  padding: 20px 18px 18px;
  background:
    radial-gradient(circle at top left, rgba(248, 250, 252, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.6), #020014 70%);
  border: 1px solid rgba(148, 163, 184, .55);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.95);
}

.admin-hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-hero-card-header .material-symbols-rounded {
  font-size: 24px;
  padding: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0, #fefce8 0, transparent 45%),
    linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.95);
}

.admin-hero-card-label {
  font-size: 13px;
  font-weight: 600;
}

.admin-hero-card-sub {
  font-size: 12px;
  color: #cbd5f5;
}

.admin-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.admin-hero-metric {
  padding: 10px 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .88);
  border: 1px solid rgba(148, 163, 184, .4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .9);
}

.admin-hero-metric-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.admin-hero-metric-value {
  font-size: 18px;
  font-weight: 600;
}

/* ========== ADMIN MAIN GRID + CARDS ========== */

.admin-main {
  padding: 40px 0 80px;
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 1) 0, #020014 65%);
}

.admin-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.admin-card {
  border-radius: 26px;
  border: 1px solid rgba(31, 41, 55, .95);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, .4), #050113 55%);
  box-shadow: 0 28px 86px rgba(0, 0, 0, .96);
  padding: 20px 20px 18px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-card-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-icon {
  font-size: 22px;
  padding: 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0, #fdf2ff 0, transparent 45%),
    linear-gradient(135deg, var(--purple-1), var(--purple-2));
  box-shadow: 0 14px 35px rgba(168, 85, 247, .9);
}

.admin-card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-chip {
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  border: 1px solid rgba(248, 250, 252, 0.55);
  background: rgba(15, 23, 42, .96);
  color: #f9fafb;
  cursor: default;
}

.admin-chip-muted {
  border-color: rgba(148, 163, 184, 0.7);
  color: #cbd5f5;
  background: rgba(15, 23, 42, .9);
}

/* TABLE ستايل VIP */

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: linear-gradient(to right, rgba(15, 23, 42, .96), rgba(30, 64, 175, .95));
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cbd5f5;
  border-bottom: 1px solid rgba(30, 64, 175, .9);
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, .9);
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, .92);
}

.admin-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, .8);
}

.admin-table tbody tr:hover {
  background: radial-gradient(circle at left, rgba(124, 58, 237, .45), rgba(15, 23, 42, .98));
}

/* BADGES – كما هي مع لمسة بسيطة */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.pill-admin {
  background: rgba(236, 252, 203, .1);
  color: #bef264;
  border: 1px solid rgba(190, 242, 100, .5);
}

.pill-user {
  background: rgba(219, 234, 254, .04);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, .5);
}

.pill-provider {
  background: rgba(248, 250, 252, .03);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, .6);
}

.pill-google {
  background: rgba(245, 243, 255, .08);
  color: #c4b5fd;
  border: 1px solid rgba(165, 180, 252, .6);
}

/* STATUS BADGES */

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.status-live {
  background: rgba(22, 163, 74, .12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .7);
}

.status-review {
  background: rgba(234, 179, 8, .12);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, .8);
}

.status-draft {
  background: rgba(148, 163, 184, .12);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, .9);
}

.status-paused {
  background: rgba(239, 68, 68, .12);
  color: #f97373;
  border: 1px solid rgba(248, 113, 113, .85);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .admin-hero-shell {
    grid-template-columns: minmax(0,1fr);
  }

  .admin-main-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* =========================================================
   DASHBOARD – VIP LAYOUT
   ========================================================= */

.dash-hero {
  padding: 92px 0 40px;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, .32) 0, #020014 55%);
}

.dash-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.dash-hero-left {
  max-width: 560px;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, .8);
  background: rgba(15, 23, 42, .85);
  font-size: 11px;
  color: #e5e7eb;
  margin-bottom: 18px;
}

.dash-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.dash-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.08em;
  margin: 0 0 10px;
}

.dash-title-accent {
  color: var(--purple-2);
}

.dash-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
}

.dash-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.dash-metric-card {
  border-radius: 18px;
  padding: 12px 12px 11px;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(31, 41, 55, .95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .95);
}

.dash-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.dash-metric-value {
  font-size: 20px;
  font-weight: 600;
}

.dash-metric-hint {
  margin-top: 3px;
  font-size: 11px;
  color: #9ca3af;
}

/* Right hero card */

.dash-hero-right {
  display: flex;
  justify-content: flex-end;
}

.dash-assets-card {
  width: 100%;
  border-radius: 24px;
  padding: 18px 18px 14px;
  background:
    radial-gradient(circle at top left, rgba(248, 250, 252, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.6), #020014 70%);
  border: 1px solid rgba(148, 163, 184, .55);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.95);
}

.dash-assets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.dash-assets-title {
  font-size: 15px;
  font-weight: 600;
}

.dash-assets-sub {
  font-size: 12px;
  color: #cbd5f5;
}

.dash-assets-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, .15);
  border: 1px solid rgba(74, 222, 128, .9);
  color: #bbf7d0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Empty state & table */

.dash-assets-empty {
  text-align: center;
  padding: 26px 10px 18px;
  font-size: 13px;
  color: #e5e7eb;
}

.dash-assets-empty .material-symbols-rounded {
  font-size: 28px;
  margin-bottom: 4px;
  color: #a855f7;
}

.dash-assets-empty p {
  margin-top: 4px;
  font-size: 12px;
  color: #a1a1aa;
}

.dash-assets-scroller {
  max-height: 260px;
  overflow: auto;
  border-radius: 16px;
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(15, 23, 42, 1);
}

.dash-assets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dash-assets-table th,
.dash-assets-table td {
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.dash-assets-table thead {
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, .98),
    rgba(55, 48, 163, .98)
  );
}

.dash-assets-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cbd5f5;
  border-bottom: 1px solid rgba(30, 64, 175, .9);
}

.dash-assets-table tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, .9);
}

.dash-assets-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, .9);
}

.dash-assets-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, .96);
}

.dash-assets-table tbody tr:hover {
  background: radial-gradient(circle at left, rgba(129, 140, 248, .45), rgba(15, 23, 42, .98));
}

/* Secondary section */

.dash-secondary {
  padding: 32px 0 80px;
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 1) 0, #020014 65%);
}

.dash-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 24px;
}

.dash-card {
  border-radius: 24px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left, rgba(55, 48, 163, .46), #020012 55%);
  border: 1px solid rgba(31, 41, 55, .95);
  box-shadow: 0 28px 86px rgba(0, 0, 0, .96);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dash-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.dash-card-title .material-symbols-rounded {
  font-size: 20px;
  padding: 4px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0, #fefce8 0, transparent 45%),
    linear-gradient(135deg, var(--purple-1), var(--purple-2));
  box-shadow: 0 14px 35px rgba(168, 85, 247, .9);
}

/* Quick actions */

.dash-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.dash-quick-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .6);
  background: rgba(15, 23, 42, .96);
  text-decoration: none;
  color: #f9fafb;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.dash-quick-pill .material-symbols-rounded {
  font-size: 20px;
}

.dash-quick-label {
  font-size: 13px;
  font-weight: 500;
}

.dash-quick-sub {
  font-size: 11px;
  color: #9ca3af;
}

.dash-quick-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .9);
  border-color: rgba(248, 250, 252, .7);
}

/* Session card */

.dash-session-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.dash-session-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #e5e7eb;
}

.dash-session-row span:first-child {
  color: #9ca3af;
}

.dash-session-value {
  font-weight: 500;
}

/* Responsive */

@media (max-width: 960px) {
  .dash-hero-shell {
    grid-template-columns: minmax(0,1fr);
  }

  .dash-secondary-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .dash-metrics-row {
    grid-template-columns: minmax(0,1fr);
  }
}

/* =========================================================
   NAVBAR BRAND – VIP LOOK
   ========================================================= */

.navbar {
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.25), #020014 60%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(22px);
}

/* شعار Apilos */

.nav-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 2px;
  background:
    radial-gradient(circle at 25% 0, #fefce8 0, transparent 45%),
    linear-gradient(135deg, #4f46e5, #a855f7, #ec4899);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 14px 40px rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-brain {
  font-size: 22px;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #e5e7eb 0, #f9fafb 55%);
  color: #020012;
}

/* النص بجانب اللوغو */

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.logo-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.08em;
  background: linear-gradient(120deg, #ffffff, #e5e7eb, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-sub {
  margin-top: -2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: #9ca3af;
}

/* حبة Creative Intelligence Engine في اليمين */

.nav-pill {
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.12), transparent 45%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* اسم المستخدم و الـ Avatar */

.nav-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav-user-name {
  font-size: 11px;
  font-weight: 500;
}

.nav-user-role {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9ca3af;
}

.avatar,
.avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 0, #fefce8 0, transparent 45%),
    linear-gradient(135deg, #4f46e5, #a855f7);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
  font-size: 14px;
  font-weight: 600;
}

.avatar-img {
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

/* ========================= NAVBAR – VIP ========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(26px);
  background: linear-gradient(to right, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
  border-bottom: 1px solid rgba(15,23,42,1);
}

.navbar-inner-vip {
  max-width: var(--grid-width);
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* LOGO */

.nav-left-vip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #f9fafb, #1e1b4b 55%, #020014);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(248,250,252,0.22),
    0 16px 38px rgba(15,23,42,1),
    0 0 40px rgba(129,140,248,0.7);
  overflow: hidden;
}

.logo-svg {
  width: 90%;
  height: 90%;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-word {
  font-size: 18px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* NAV LINKS */

.nav-links-vip {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(209,213,219,0.85);
  padding: 4px 0;
  cursor: pointer;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: 0 auto;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-1), var(--purple-2));
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: #f9fafb;
}

.nav-link:hover::after {
  width: 100%;
}

/* RIGHT SIDE + AUTH */

.nav-right-vip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-pill-outline {
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(148,163,184,0.65);
  background: radial-gradient(circle at 10% 0, rgba(129,140,248,0.18), rgba(15,23,42,0.96));
  color: #e5e7eb;
  white-space: nowrap;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav {
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}

.btn-nav-primary {
  background: linear-gradient(120deg, var(--purple-1), var(--purple-2));
  color: #f9fafb;
  box-shadow:
    0 0 0 1px rgba(248,250,252,0.08),
    0 12px 35px rgba(124,58,237,0.85);
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(248,250,252,0.16),
    0 18px 44px rgba(124,58,237,1);
}

.btn-nav-ghost {
  background: rgba(15,23,42,0.9);
  border-color: rgba(55,65,81,0.9);
  color: rgba(229,231,235,0.9);
}

.btn-nav-ghost:hover {
  background: rgba(15,23,42,1);
  border-color: rgba(148,163,184,0.9);
}

.nav-link-ghost {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav-link-ghost::after {
  display: none;
}

.nav-link-ghost:hover {
  opacity: 1;
}

/* USER INFO */

.nav-user-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: right;
}

.nav-user-name {
  font-size: 11px;
  font-weight: 500;
}

.nav-user-role {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.avatar,
.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(248,250,252,0.26),
    0 12px 32px rgba(88,28,135,1);
}

.avatar {
  background: radial-gradient(circle at 20% 0, #f9fafb, #a855f7 50%, #312e81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.avatar-img {
  object-fit: cover;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .navbar-inner-vip {
    padding-inline: 14px;
  }
  .nav-links-vip {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 62px;
    padding: 14px 16px;
    background: rgba(15,23,42,0.98);
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.7);
    box-shadow: 0 22px 60px rgba(0,0,0,0.95);
    z-index: 45;
  }
  .nav-pill-outline,
  .nav-auth-group {
    display: none;
  }
}

@media (max-width: 640px) {
  .logo-text {
    display: none;
  }
}

/* نخلي الكروت الروابط تشتغل كبلوك وتحافظ على نفس الشكل */
.output-card-link {
  display: block;              /* عشان الـ <a> يصير كارد كامل */
  color: inherit;              /* نفس لون النص */
  text-decoration: none;       /* بدون خط تحت */
}
