/* ═══════════════════════════════════════════════════════════════
   منصة المديمر — Premium Village Platform CSS
   Aesthetic: Refined Luxury · Gold & Deep Green · Arabic Heritage
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dim:    #8B6E2E;
  --emerald:     #0D3B2E;
  --emerald-mid: #134D3A;
  --emerald-soft:#1A6B50;
  --cream:       #FAF6EE;
  --parchment:   #F0E8D4;
  --ink:         #0F1C14;
  --ink-soft:    #2A3D2E;
  --mist:        rgba(201,168,76,0.08);
  --border:      rgba(201,168,76,0.2);
  --border-soft: rgba(201,168,76,0.1);

  --font-display: 'Cairo', sans-serif;
  --font-body:    'Cairo', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow:    0 4px 24px rgba(0,0,0,0.18);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.28);
  --glow:      0 0 40px rgba(201,168,76,0.15);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }

/* ── App Shell ──────────────────────────────────────────────── */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}

/* ════════════════════════════════════════════════════════════
   TOPBAR — الشريط العلوي
════════════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 72px;
  background: rgba(13,59,46,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 32px rgba(0,0,0,0.25);
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,168,76,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px; height: 42px;
  background: linear-gradient(180deg, rgba(255,253,248,0.98), rgba(243,236,220,0.96));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(201,168,76,0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(201,168,76,0.22);
}
.brand-mark:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}

.brand-mark img,
.site-footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand p {
  font-size: 0.68rem;
  color: rgba(201,168,76,0.55);
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a, .nav .nav-button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(250,246,238,0.75);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: left 0.25s, right 0.25s;
}

.nav a:hover, .nav .nav-button:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
}

.nav a:hover::after {
  left: 14px; right: 14px;
}

.nav a.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
}
.nav a.active::after { left: 14px; right: 14px; }

.inline-form { display: inline; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: 2.5rem;
  background:
    linear-gradient(180deg, rgba(13,59,46,0.98), rgba(10,33,25,1)),
    radial-gradient(circle at top right, rgba(201,168,76,0.12), transparent 28%);
  color: #fffdf8;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.site-footer-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.2rem 0 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.site-footer-brand {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.site-footer-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,253,248,0.98), rgba(243,236,220,0.96));
  box-shadow: 0 10px 24px rgba(201,168,76,0.18);
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(201,168,76,0.22);
}

.site-footer-brand h2 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.site-footer-brand p {
  color: rgba(255,253,248,0.74);
  max-width: 54ch;
  font-size: 0.95rem;
}

.site-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer-col {
  display: grid;
  gap: 0.55rem;
}

.site-footer-title {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.site-footer-col a,
.site-footer-note {
  color: rgba(255,253,248,0.74);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer-col a:hover {
  color: #fffdf8;
}

.site-footer-bottom {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0.95rem 0 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255,253,248,0.58);
  font-size: 0.84rem;
}

/* ════════════════════════════════════════════════════════════
   HERO — الصفحة الرئيسية
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-mid) 45%, #0A2A1E 100%);
  padding: 7rem 3rem 6rem;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* Ornamental background layers */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(13,59,46,0.8) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
  animation: pulseRing 8s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Geometric ornament top-right */
.hero-geometric {
  position: absolute;
  top: 3rem; left: 3rem;
  width: 200px; height: 200px;
  opacity: 0.06;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}

.hero-content > div { animation: heroFadeUp 0.9s ease both; }
.hero-side { animation: heroFadeUp 0.9s ease 0.2s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero > .hero-content > div > p {
  font-size: 1.05rem;
  color: rgba(250,246,238,0.65);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Hero tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.hero-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(201,168,76,0.85);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 5px 12px;
  border-radius: 6px;
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero side card */
.hero-side {
  background: rgba(250,246,238,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-side::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-side h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-side > p {
  font-size: 0.88rem;
  color: rgba(250,246,238,0.6);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-mini-card {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.hero-mini-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-mini-card span {
  font-size: 0.72rem;
  color: rgba(250,246,238,0.5);
  font-weight: 300;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS — الأزرار
════════════════════════════════════════════════════════════ */
.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--emerald);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}
.primary-btn:hover::before { opacity: 1; }
.primary-btn:active { transform: translateY(0); }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.light-btn {
  color: rgba(250,246,238,0.85);
  border: 1px solid rgba(250,246,238,0.2);
}

.light-btn:hover {
  color: var(--cream);
  background: rgba(250,246,238,0.07);
  border-color: rgba(250,246,238,0.35);
}

.danger-btn {
  color: #e05c5c;
  border: 1px solid rgba(224,92,92,0.3);
}
.danger-btn:hover {
  background: rgba(224,92,92,0.08);
}

/* ════════════════════════════════════════════════════════════
   BADGES — الشارات
════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  background: rgba(42,61,46,0.5);
  color: rgba(250,246,238,0.7);
  border: 1px solid rgba(250,246,238,0.1);
}

.badge.success {
  background: rgba(26,107,80,0.2);
  color: #5DCE9E;
  border-color: rgba(93,206,158,0.25);
}
.badge.info {
  background: rgba(30,80,140,0.2);
  color: #7BBAFF;
  border-color: rgba(123,186,255,0.25);
}
.badge.warning {
  background: rgba(180,130,20,0.2);
  color: #E8C97A;
  border-color: rgba(232,201,122,0.25);
}
.badge.danger {
  background: rgba(140,30,30,0.2);
  color: #FF8E8E;
  border-color: rgba(255,142,142,0.25);
}

/* ════════════════════════════════════════════════════════════
   SECTIONS — الأقسام
════════════════════════════════════════════════════════════ */
.section {
  padding: 5rem 3rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-title h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.section-title p {
  font-size: 0.9rem;
  color: #5C7060;
  font-weight: 300;
}

.cta-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-soft);
  text-decoration: none;
  border-bottom: 2px solid rgba(26,107,80,0.3);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.cta-link:hover {
  color: var(--gold-dim);
  border-color: var(--gold-dim);
}

/* Section band (dark) */
.section-band {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  max-width: none;
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
}

.section-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.section-band > .grid {
  max-width: 1300px;
  margin: 0 auto;
}

.section-band .panel h3 { color: var(--gold-light); }
.section-band .section-kicker { margin-bottom: 0.75rem; }
.section-band .panel .muted { color: rgba(250,246,238,0.55); }

/* ════════════════════════════════════════════════════════════
   GRIDS — الشبكات
════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.admin-grid {
  grid-template-columns: 1fr 1.3fr;
}

/* ════════════════════════════════════════════════════════════
   CARDS — البطاقات
════════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(201,168,76,0.06), transparent 70%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.25);
}

.card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.announcement-card { border-right: 3px solid var(--gold); }
.announcement-meta { display: flex; gap: 8px; margin-bottom: 0.75rem; }

/* ── Panel ─────────────────────────────────────────────────── */
.panel {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

/* ── Sidebar Card ──────────────────────────────────────────── */
.sidebar-card {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--cream);
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: var(--glow);
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   KPIs — المؤشرات
════════════════════════════════════════════════════════════ */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.kpi {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.kpi::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 4px; height: 40%;
  background: linear-gradient(to top, var(--gold), transparent);
  border-radius: 2px;
}

.kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.kpi strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.kpi span {
  font-size: 0.8rem;
  color: #6B8070;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
   TABLES — الجداول
════════════════════════════════════════════════════════════ */
.table-card {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.table-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: linear-gradient(90deg, var(--parchment), #fff);
}

th {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1.5rem;
  text-align: right;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

td {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}

td a {
  color: var(--emerald-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
td a:hover { color: var(--gold-dim); }

tbody tr {
  transition: background 0.2s;
}
tbody tr:hover { background: rgba(201,168,76,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ════════════════════════════════════════════════════════════
   PROFILE — الملف الشخصي
════════════════════════════════════════════════════════════ */
.profile-card {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  color: var(--cream);
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -80px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.avatar {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.profile-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.meta-tag {
  font-size: 0.8rem;
  color: rgba(201,168,76,0.8);
  font-weight: 400;
}
.meta-tag + .meta-tag::before {
  content: '·';
  margin-left: 6px;
  margin-right: 0;
  opacity: 0.5;
}

/* Stat bar */
.stat-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ════════════════════════════════════════════════════════════
   LISTS — القوائم
════════════════════════════════════════════════════════════ */
.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-right: 14px;
  position: relative;
  line-height: 1.6;
}

.list li::before {
  content: '';
  position: absolute;
  right: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.sidebar-card .list li { color: rgba(250,246,238,0.75); }
.sidebar-card .list li::before { background: rgba(201,168,76,0.6); }

/* ════════════════════════════════════════════════════════════
   ROW — الصف
════════════════════════════════════════════════════════════ */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.row:last-child { border-bottom: none; padding-bottom: 0; }
.row > div strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.row > div span   { font-size: 0.8rem; color: #7A9280; margin-top: 2px; display: block; }

.price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald);
  white-space: nowrap;
}
.price.danger { color: #E05C5C; }

/* ════════════════════════════════════════════════════════════
   TIMELINE — الجدول الزمني
════════════════════════════════════════════════════════════ */
.timeline {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.timeline h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.timeline-item > div strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* ════════════════════════════════════════════════════════════
   FORMS — النماذج
════════════════════════════════════════════════════════════ */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-block span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald-mid);
  letter-spacing: 0.02em;
}

.field-block input,
.field-block textarea,
.field-block select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.field-block input:focus,
.field-block textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.toggle-box {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.toggle-box input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 5px;
  accent-color: var(--emerald-soft);
  cursor: pointer;
}

/* Application cards */
.application-card {
  padding: 1.25rem;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--cream);
}
.application-card .row { padding: 0 0 0.75rem 0; }
.application-card .row strong { font-size: 0.95rem; }
.application-card .row span { color: #7A9280; font-size: 0.8rem; }

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   FLASH MESSAGES — رسائل النظام
════════════════════════════════════════════════════════════ */
.flash {
  max-width: 1300px;
  margin: 1rem auto 0;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success-flash {
  background: rgba(26,107,80,0.1);
  color: #1A6B50;
  border: 1px solid rgba(26,107,80,0.2);
}

.error-flash {
  background: rgba(200,50,50,0.08);
  color: #B83232;
  border: 1px solid rgba(200,50,50,0.2);
}

/* ════════════════════════════════════════════════════════════
   MISC
════════════════════════════════════════════════════════════ */
.muted { font-size: 0.88rem; color: #7A9280; line-height: 1.7; }

.foot-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(201,168,76,0.2);
  font-size: 0.82rem;
  color: #9EB0A4;
}

/* Admin hero variant */
.hero-admin {
  min-height: 40vh;
  padding: 4rem 3rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — الاستجابة الكاملة
   Breakpoints:
     xl  → 1200px  (لابتوب صغير)
     lg  → 1024px  (تابلت أفقي)
     md  → 768px   (تابلت عمودي)
     sm  → 480px   (موبايل كبير)
     xs  → 360px   (موبايل صغير)
════════════════════════════════════════════════════════════ */

/* ── XL: لابتوب صغير ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-content        { grid-template-columns: 1fr 320px; gap: 3rem; }
  .kpis                { grid-template-columns: repeat(2, 1fr); }
  .four-grid           { grid-template-columns: repeat(2, 1fr); }
  .feature-grid        { grid-template-columns: repeat(2, 1fr); }
  .three-grid          { grid-template-columns: repeat(2, 1fr); }
}

/* ── LG: تابلت أفقي ──────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Topbar */
  .topbar              { padding: 0 1.5rem; height: 60px; }
  .brand h1            { font-size: 1rem; }
  .brand p             { display: none; }
  .nav a, .nav .nav-button { font-size: 0.82rem; padding: 6px 10px; }

  /* Hero */
  .hero                { padding: 4.5rem 2rem 4rem; min-height: auto; }
  .hero-content        { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-side           { max-width: 520px; }
  .hero h2             { font-size: 2.5rem; }

  /* Layout */
  .section             { padding: 3.5rem 2rem; }
  .section-band        { padding: 3.5rem 2rem; }
  .showcase-layout     { grid-template-columns: 1fr; }
  .admin-grid          { grid-template-columns: 1fr; }

  /* Grids */
  .grid                { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .three-grid          { grid-template-columns: repeat(2, 1fr); }
  .four-grid           { grid-template-columns: repeat(2, 1fr); }
  .feature-grid        { grid-template-columns: repeat(2, 1fr); }
  .kpis                { grid-template-columns: repeat(2, 1fr); }

  /* Profile */
  .profile-card        { padding: 2rem; }
  .profile-header      { flex-wrap: wrap; gap: 1rem; }

  /* Join */
  .join-shell          { grid-template-columns: 1fr; }
  .join-story          { position: static; max-width: 600px; margin: 0 auto; }
  .join-metrics        { grid-template-columns: repeat(3, 1fr); }

  /* Auth */
  .auth-card           { max-width: 700px; }
}

/* ── MD: تابلت عمودي ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Topbar — قائمة همبرغر */
  .topbar {
    padding: 0 1.25rem;
    height: 56px;
    flex-wrap: wrap;
    position: relative;
  }

  /* إخفاء روابط Nav الزائدة وإبقاء الأساسية فقط */
  .nav a:not(.btn-nav):not([href*="login"]):not([href*="register"]):not(.active) {
    display: none;
  }

  /* إظهار الـ hamburger بدل القائمة */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    margin-right: 4px;
  }
  .nav-toggle span {
    width: 22px; height: 2px;
    background: var(--gold-light);
    border-radius: 1px;
    display: block;
    transition: all 0.3s;
  }

  /* Hero */
  .hero                { padding: 4rem 1.25rem 3rem; min-height: auto; }
  .hero h2             { font-size: 2rem; }
  .hero-content        { grid-template-columns: 1fr; gap: 2rem; }
  .hero-side           { max-width: 100%; }
  .hero-mini-grid      { grid-template-columns: 1fr 1fr; }
  .hero-actions        { flex-direction: column; align-items: stretch; }
  .hero-actions a      { text-align: center; justify-content: center; }

  /* Sections */
  .section             { padding: 2.5rem 1.25rem; }
  .section-band        { padding: 2.5rem 1.25rem; }
  .section-title       { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Grids — كل شيء عمود واحد في المتوسط */
  .grid                { grid-template-columns: 1fr; }
  .three-grid          { grid-template-columns: 1fr; }
  .four-grid           { grid-template-columns: repeat(2, 1fr); }
  .feature-grid        { grid-template-columns: 1fr; }
  .kpis                { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .showcase-layout     { grid-template-columns: 1fr; }
  .band-inner          { grid-template-columns: 1fr; gap: 1rem; }

  /* KPI */
  .kpi                 { padding: 1.25rem 1rem; }
  .kpi strong          { font-size: 1.6rem; }

  /* Cards */
  .card                { padding: 1.25rem; }
  .card h3             { font-size: 0.92rem; }

  /* Profile */
  .profile-card        { padding: 1.5rem; border-radius: var(--radius-lg); }
  .profile-header      { gap: 0.85rem; }
  .avatar              { width: 52px; height: 52px; font-size: 1rem; }

  /* Tables — تمرير أفقي */
  .table-card          { overflow-x: auto; border-radius: var(--radius); }
  table                { font-size: 0.78rem; min-width: 520px; }
  th, td               { padding: 0.65rem 0.85rem; }
  .table-card h3       { padding: 1.25rem 1.25rem 0.85rem; font-size: 1rem; }

  /* Topbar brand */
  .brand-mark          { width: 36px; height: 36px; font-size: 16px; }
  .brand h1            { font-size: 0.95rem; }

  /* Admin hero */
  .hero-admin          { padding: 2.5rem 1.25rem; min-height: auto; }
  .hero-admin .hero-content { gap: 1.5rem; }

  /* Auth */
  .auth-card           { grid-template-columns: 1fr; max-width: 480px; border-radius: var(--radius-lg); }
  .auth-copy           { padding: 2rem 1.75rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .auth-copy h2        { font-size: 1.3rem; }
  .auth-form           { padding: 2rem 1.75rem; }

  /* Join */
  .join-stage          { padding: 1.5rem 1.25rem 3rem; }
  .join-shell          { gap: 1.75rem; }
  .join-story          { padding: 2rem 1.5rem; }
  .join-story h1       { font-size: 1.3rem; }
  .join-form-head      { padding: 1.75rem; }
  .join-form-head h2   { font-size: 1.25rem; }
  .join-form-grid      { grid-template-columns: 1fr; padding: 1.5rem; gap: 0.85rem; }
  .join-section-title,
  .join-field-wide,
  .field-span-2        { grid-column: 1; }
  .join-metrics        { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .join-metric strong  { font-size: 1rem; }
  .join-submit         { font-size: 0.92rem; padding: 12px 20px; }
}

/* ── SM: موبايل كبير ─────────────────────────────────────── */
@media (max-width: 480px) {
  /* Topbar */
  .topbar              { height: 52px; padding: 0 1rem; }
  .brand-mark          { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
  .brand h1            { font-size: 0.88rem; }
  .nav                 { gap: 2px; }
  .nav a               { padding: 5px 8px; font-size: 0.75rem; }

  /* Hero */
  .hero                { padding: 3.5rem 1rem 2.5rem; }
  .hero h2             { font-size: 1.65rem; line-height: 1.3; }
  .hero > .hero-content > div > p { font-size: 0.88rem; }
  .hero-tags           { gap: 5px; }
  .hero-tag            { font-size: 0.7rem; padding: 3px 9px; }
  .hero-actions        { gap: 8px; }
  .btn-primary,
  .primary-btn         { padding: 11px 20px; font-size: 0.85rem; }
  .hero-mini-grid      { grid-template-columns: 1fr 1fr; }
  .hero-side           { padding: 1.5rem; border-radius: var(--radius-lg); }

  /* Sections */
  .section             { padding: 2rem 1rem; }
  .section-band        { padding: 2rem 1rem; }
  .section-kicker      { font-size: 0.65rem; }
  .section-title h3    { font-size: 1.4rem; }

  /* KPIs — عمود واحد في الموبايل */
  .kpis                { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .kpi                 { padding: 1rem 0.85rem; }
  .kpi strong          { font-size: 1.4rem; }
  .kpi span            { font-size: 0.72rem; }

  /* Grids */
  .four-grid           { grid-template-columns: 1fr; }
  .three-grid          { grid-template-columns: 1fr; }

  /* Cards */
  .card                { padding: 1rem 1.1rem; border-radius: var(--radius); }
  .panel               { padding: 1.25rem; border-radius: var(--radius); }
  .timeline            { padding: 1.25rem; border-radius: var(--radius); }

  /* Profile */
  .profile-card        { padding: 1.25rem; border-radius: var(--radius-lg); }
  .profile-header      { flex-direction: row; flex-wrap: wrap; }
  .avatar              { width: 46px; height: 46px; font-size: 0.95rem; border-radius: 10px; }
  .profile-header h3   { font-size: 1.1rem; }

  /* Row */
  .row                 { flex-wrap: wrap; gap: 0.5rem; }

  /* Tables */
  table                { font-size: 0.75rem; min-width: 460px; }
  th, td               { padding: 0.55rem 0.75rem; }

  /* Auth */
  .auth-shell          { padding: 1.5rem 1rem; }
  .auth-card           { border-radius: var(--radius-lg); }
  .auth-copy           { padding: 1.75rem 1.25rem; }
  .auth-copy h2        { font-size: 1.2rem; }
  .auth-copy > p       { font-size: 0.82rem; }
  .auth-form           { padding: 1.75rem 1.25rem; gap: 1rem; }

  /* Join */
  .join-stage          { padding: 1rem 0.85rem 2.5rem; }
  .join-story          { padding: 1.75rem 1.25rem; border-radius: var(--radius-lg); }
  .join-crest          { width: 56px; height: 56px; margin-bottom: 1.25rem; }
  .join-story h1       { font-size: 1.2rem; }
  .join-lead           { font-size: 0.8rem; }
  .join-ribbon         { padding: 0.7rem 0.85rem; }
  .join-metrics        { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .join-metric         { padding: 0.65rem 0.4rem; }
  .join-metric strong  { font-size: 0.95rem; }
  .join-metric span    { font-size: 0.6rem; }
  .join-step > span    { width: 26px; height: 26px; font-size: 0.75rem; }
  .join-form-wrap      { border-radius: var(--radius-lg); }
  .join-form-head      { padding: 1.25rem; }
  .join-form-head h2   { font-size: 1.1rem; }
  .join-form-grid      { padding: 1.1rem; gap: 0.75rem; }
  .join-field input,
  .join-field textarea { padding: 9px 11px; font-size: 0.85rem; }

  /* Badges */
  .badge               { font-size: 0.65rem; padding: 2px 7px; }

  /* Flash */
  .flash               { margin: 0.75rem 1rem 0; padding: 0.85rem 1rem; font-size: 0.82rem; }
}

/* ── XS: موبايل صغير جداً ────────────────────────────────── */
@media (max-width: 360px) {
  .topbar              { padding: 0 0.75rem; }
  .brand h1            { font-size: 0.82rem; }
  .nav a               { padding: 5px 6px; font-size: 0.72rem; }

  .hero h2             { font-size: 1.45rem; }
  .section             { padding: 1.75rem 0.85rem; }
  .kpis                { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .kpi strong          { font-size: 1.25rem; }
  .hero-actions        { flex-direction: column; }
  .hero-mini-grid      { grid-template-columns: 1fr 1fr; }

  .join-metrics        { grid-template-columns: repeat(3, 1fr); }
  .auth-copy           { padding: 1.5rem 1rem; }
  .auth-form           { padding: 1.5rem 1rem; }
  .join-form-grid      { padding: 0.85rem; }
}

/* ── Print: طباعة ────────────────────────────────────────── */
@media print {
  .topbar, .hero-actions, .nav, .join-submit, .primary-btn { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  .card, .panel, .kpi { box-shadow: none; border: 1px solid #ddd; }
  body { background: #fff; }
}

/* ════════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section { animation: fadeInUp 0.6s ease both; }
.kpi     { animation: fadeInUp 0.5s ease both; }
.kpi:nth-child(1) { animation-delay: 0.05s; }
.kpi:nth-child(2) { animation-delay: 0.10s; }
.kpi:nth-child(3) { animation-delay: 0.15s; }
.kpi:nth-child(4) { animation-delay: 0.20s; }

/* Gold shimmer effect on hover for special elements */
@keyframes goldShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero h2 {
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 60%, var(--gold-light) 70%, var(--cream) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s linear infinite;
}


/* ════════════════════════════════════════════════════════════
   AUTH — صفحة تسجيل الدخول
════════════════════════════════════════════════════════════ */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(13,59,46,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 30%, rgba(201,168,76,0.05) 0%, transparent 65%),
    var(--cream);
  position: relative;
}

.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,168,76,0.04) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,168,76,0.04) 80px);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(201,168,76,0.12);
}

/* Left panel — copy */
.auth-copy {
  background: linear-gradient(155deg, var(--emerald) 0%, var(--emerald-mid) 60%, #0A2A1E 100%);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-copy::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-copy::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,80,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.auth-copy .section-kicker {
  margin-bottom: 1rem;
}

.auth-copy h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.auth-copy > p {
  font-size: 0.88rem;
  color: rgba(250,246,238,0.58);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.auth-copy .meta-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Right panel — form */
.auth-form {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  background: var(--cream);
}

.auth-form .field-block span {
  color: var(--emerald-mid);
}

.auth-form .primary-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-form .toggle-box {
  color: var(--ink-soft);
}

/* Decorative gold line separator */
.auth-card .auth-copy + .auth-form {
  border-right: 1px solid rgba(201,168,76,0.12);
}

@media (max-width: 720px) {
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-copy {
    padding: 2.5rem 2rem;
  }
  .auth-copy h2 { font-size: 1.3rem; }
  .auth-form {
    padding: 2rem;
  }
}


/* ════════════════════════════════════════════════════════════
   JOIN — صفحة طلب العضوية
════════════════════════════════════════════════════════════ */
.page-join body,
.page-join .app-shell {
  background: var(--cream);
}

.join-stage {
  min-height: calc(100vh - 72px);
  padding: 3rem 2rem 5rem;
  background:
    radial-gradient(ellipse 50% 70% at 5% 40%, rgba(13,59,46,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 95% 70%, rgba(201,168,76,0.05) 0%, transparent 60%),
    var(--cream);
}

.join-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Story sidebar ───────────────────────────────────────── */
.join-story {
  position: sticky;
  top: 88px;
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-mid) 55%, #0A2A1E 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  color: var(--cream);
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: 0 16px 56px rgba(0,0,0,0.2), var(--glow);
  overflow: hidden;
  position: sticky;
}

.join-story::before {
  content: '';
  position: absolute;
  top: -80px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Crest emblem */
.join-crest {
  width: 72px; height: 72px;
  position: relative;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.35);
  animation: rotateSlow 12s linear infinite;
}

.crest-ring::before {
  content: '';
  position: absolute;
  top: -3px; right: 50%;
  transform: translateX(50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.crest-core {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* Story content */
.join-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 4px 12px;
  border-radius: 100px;
  text-align: center;
  margin-bottom: 1.25rem;
}

.join-story h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 1rem;
  text-align: center;
}

.join-lead {
  font-size: 0.83rem;
  color: rgba(250,246,238,0.55);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
  text-align: center;
}

/* Ribbon */
.join-ribbon {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-right: 3px solid var(--gold);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.join-ribbon strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.join-ribbon span {
  font-size: 0.78rem;
  color: rgba(250,246,238,0.5);
  font-weight: 300;
  line-height: 1.6;
}

/* Metrics row */
.join-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 2rem;
}

.join-metric {
  background: rgba(250,246,238,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 10px;
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.join-metric strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 3px;
  line-height: 1;
}

.join-metric span {
  font-size: 0.65rem;
  color: rgba(250,246,238,0.45);
  font-weight: 300;
}

/* Steps */
.join-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.join-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.join-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 15px; top: 44px;
  width: 1px; bottom: 0;
  background: linear-gradient(to bottom, rgba(201,168,76,0.3), rgba(201,168,76,0.05));
}

.join-step > span {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--emerald);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(201,168,76,0.35);
  font-family: var(--font-display);
}

.join-step > div strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
}

.join-step > div p {
  font-size: 0.78rem;
  color: rgba(250,246,238,0.48);
  line-height: 1.6;
  font-weight: 300;
}

/* ── Form area ───────────────────────────────────────────── */
.join-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(201,168,76,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  overflow: hidden;
}

.join-form-head {
  background: linear-gradient(90deg, var(--parchment), #fff);
  padding: 2.25rem 2.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.join-form-head .section-kicker {
  margin-bottom: 0.75rem;
}

.join-form-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.join-form-head p {
  font-size: 0.85rem;
  color: #7A9280;
  font-weight: 300;
  line-height: 1.7;
}

/* Form grid */
.join-form-grid {
  padding: 2rem 2.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}

/* Section title inside grid */
.join-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0.5rem;
}

.join-section-title:first-child {
  margin-top: 0;
}

.join-section-title span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--emerald-soft);
  text-transform: uppercase;
}

.join-section-title::before,
.join-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2));
}

.join-section-title::before {
  background: linear-gradient(270deg, transparent, rgba(201,168,76,0.2));
}

/* Join field */
.join-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.join-field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald-mid);
  letter-spacing: 0.02em;
}

.join-field input,
.join-field textarea,
.join-field select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(201,168,76,0.18);
  border-radius: 10px;
  padding: 10px 13px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.join-field input:focus,
.join-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
  background: #fff;
}

.join-field input:hover,
.join-field textarea:hover {
  border-color: rgba(201,168,76,0.35);
}

.field-hint,
.field-error {
  display: block;
  margin-top: 0.38rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.field-hint {
  color: #6D7F74;
}

.field-error,
.error-text {
  color: #B42318;
}

.success-text {
  color: #0F7B4A;
}

.join-field-wide,
.field-span-2 {
  grid-column: 1 / -1;
}

/* Submit row */
.join-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(201,168,76,0.18);
  margin-top: 0.5rem;
}

.join-submit {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--emerald);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  letter-spacing: 0.02em;
}

.join-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}

.join-submit:active {
  transform: translateY(0);
}

.join-submit-row > p {
  font-size: 0.75rem;
  color: #9EB0A4;
  text-align: center;
  line-height: 1.6;
  max-width: 380px;
}

.success-crest .crest-core {
  background: linear-gradient(135deg, #0F7B4A, #1F9D68);
  color: #fff;
}

.join-success-card {
  margin-top: 1.2rem;
}

.join-success-actions {
  margin-top: 1.2rem;
  justify-content: flex-start;
}

/* Responsive */
@media (max-width: 1024px) {
  .join-shell {
    grid-template-columns: 1fr;
  }
  .join-story {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .join-stage {
    padding: 1.5rem 1rem 3rem;
  }
  .join-form-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .join-form-head {
    padding: 1.75rem 1.5rem;
  }
  .join-section-title {
    grid-column: 1;
  }
  .join-field-wide,
  .field-span-2 {
    grid-column: 1;
  }
}


/* ════════════════════════════════════════════════════════════
   HAMBURGER MENU — قائمة الموبايل
   أضف هذا الـ HTML في layouts/app.blade.php داخل <nav class="nav">:
   <button class="nav-toggle" id="navToggle" aria-label="القائمة">
     <span></span><span></span><span></span>
   </button>
════════════════════════════════════════════════════════════ */

/* الزر مخفي في الشاشات الكبيرة */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 7px;
  border-radius: 7px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  margin-right: 4px;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--gold-light);
  border-radius: 1px;
  display: block;
  transition: all 0.3s ease;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 56px; right: 0; left: 0;
  background: rgba(13,59,46,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-drawer.open { display: flex; }

.nav-drawer a,
.nav-drawer .nav-button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(250,246,238,0.8);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: right;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(201,168,76,0.06);
}

.nav-drawer a:hover,
.nav-drawer .nav-button:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
}

.nav-drawer a.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
}

.nav-drawer .drawer-join {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--emerald);
  font-weight: 700;
  border-radius: 9px;
  text-align: center;
}

/* Hamburger open state */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  /* إخفاء الروابط الأصلية في الـ nav */
  .nav > a,
  .nav > .inline-form,
  .nav > .nav-button {
    display: none;
  }
  .nav-drawer { top: 52px; }
}

@media (max-width: 480px) {
  .nav-drawer { top: 52px; }
  .nav-drawer a,
  .nav-drawer .nav-button { font-size: 0.95rem; padding: 10px 12px; }
}

/* ════════════════════════════════════════════════════════════
   ADMIN + MEMBER PORTAL EXTENSIONS
════════════════════════════════════════════════════════════ */

.hero-admin,
.hero-portal,
.hero-event-detail {
  min-height: auto;
  padding: 5.5rem 3rem 4rem;
}

.hero-admin-compact {
  padding-bottom: 3rem;
}

.portal-hero-grid {
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: stretch;
}

.portal-summary-card {
  background:
    linear-gradient(180deg, rgba(250,246,238,0.08), rgba(250,246,238,0.03)),
    radial-gradient(circle at top left, rgba(201,168,76,0.18), transparent 50%);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 24px;
  padding: 1.5rem;
  color: var(--cream);
  box-shadow: var(--shadow);
}

.portal-summary-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.portal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,168,76,0.95), rgba(139,110,46,0.95));
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(201,168,76,0.28);
}

.portal-summary-card h3 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.portal-summary-card p {
  color: rgba(250,246,238,0.7);
  font-size: 0.9rem;
}

.portal-meter {
  margin-bottom: 1.4rem;
}

.portal-meter-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: var(--cream);
}

.portal-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.portal-mini-kpis div {
  background: rgba(250,246,238,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 16px;
  padding: 0.9rem 0.75rem;
  text-align: center;
}

.portal-mini-kpis strong,
.mini-stat-row strong {
  display: block;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.portal-mini-kpis span,
.mini-stat-row span {
  font-size: 0.78rem;
  color: rgba(250,246,238,0.7);
}

.portal-grid,
.admin-shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 1.25rem;
}

.admin-hub-wrap {
  padding: 1.5rem 1.5rem 2.25rem;
}

.admin-hub-shell {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(13,59,46,0.98), rgba(10,33,25,0.98));
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 24px 60px rgba(19, 23, 18, 0.16);
  color: #fffdf8;
}

.admin-sidebar-brand h2 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.8rem;
  margin: 0.25rem 0 0.45rem;
}

.admin-sidebar-brand p,
.admin-sidebar-note p {
  color: rgba(255,253,248,0.72);
  font-size: 0.9rem;
}

.admin-sidebar-kicker {
  display: inline-block;
  font-size: 0.78rem;
  color: rgba(255,253,248,0.56);
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.admin-side-link {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-side-link strong,
.admin-side-link span {
  display: block;
}

.admin-side-link strong {
  color: #fffdf8;
  font-size: 0.98rem;
  margin-bottom: 0.1rem;
}

.admin-side-link span {
  color: rgba(255,253,248,0.62);
  font-size: 0.76rem;
}

.admin-side-link:hover,
.admin-side-link.is-active {
  transform: translateY(-1px);
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.24);
}

.admin-sidebar-note {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-note strong {
  display: block;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.admin-main {
  min-width: 0;
  display: grid;
  gap: 1.15rem;
}

.admin-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0.94));
  border: 1px solid rgba(201,168,76,0.16);
  box-shadow: 0 16px 50px rgba(33, 29, 18, 0.08);
}

.admin-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--emerald);
  margin: 0.4rem 0 0.55rem;
}

.admin-page-hero p {
  color: var(--ink-soft);
  max-width: 68ch;
}

.admin-hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-hero-kpi {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(240,232,212,0.48);
  border: 1px solid rgba(201,168,76,0.16);
}

.admin-hero-kpi span {
  display: block;
  color: var(--gold-dim);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.admin-hero-kpi strong {
  display: block;
  color: var(--emerald);
  font-size: 1.35rem;
}

.admin-page-grid {
  display: grid;
  gap: 1.15rem;
}

.admin-page-grid--two {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.admin-inline-actions {
  display: grid;
  align-content: end;
}

.portal-side-stack {
  display: grid;
  gap: 1.25rem;
}

.portal-identity-card,
.panel,
.table-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.92));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(33, 29, 18, 0.08);
}

.panel,
.table-card {
  padding: 1.5rem;
}

.table-card table {
  margin-top: 0.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-item {
  background: rgba(240,232,212,0.4);
  border: 1px solid rgba(201,168,76,0.16);
  border-radius: 16px;
  padding: 1rem;
}

.detail-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-bottom: 0.35rem;
}

.detail-item strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.detail-item-wide,
.field-span-2 {
  grid-column: 1 / -1;
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.22), transparent);
  margin: 1.25rem 0;
}

.mini-stat-list {
  display: grid;
  gap: 0.75rem;
}

.mini-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(13,59,46,0.92);
}

.page-admin-member-edit .mini-stat-row,
.page-admin-report .mini-stat-row,
.page-event-show .mini-stat-row,
.page-member-portal .mini-stat-row {
  background: rgba(13,59,46,0.82);
}

.stack-list {
  display: grid;
  gap: 0.85rem;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(240,232,212,0.42);
  border: 1px solid rgba(201,168,76,0.16);
}

.stack-item span,
.stack-item a {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.stack-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.stack-item-rich {
  align-items: flex-start;
}

.compact-row {
  gap: 0.5rem;
}

.subhead {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--gold-dim);
}

.empty-state-inline {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(240,232,212,0.38);
  border: 1px dashed rgba(201,168,76,0.3);
  color: var(--ink-soft);
  text-align: center;
}

.small-btn {
  padding: 0.6rem 0.95rem;
  font-size: 0.8rem;
}

.full-width-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.event-community-grid {
  display: grid;
  gap: 1.2rem;
}

.event-community-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.94));
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: 0 20px 48px rgba(29, 23, 12, 0.08);
}

.event-community-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.event-community-head h3 {
  font-family: var(--font-display);
  margin: 0.55rem 0;
  color: var(--emerald);
  font-size: 1.4rem;
}

.event-community-head p {
  color: var(--ink-soft);
  max-width: 720px;
}

.event-community-meta {
  min-width: 220px;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--gold-dim);
}

.comment-stream {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.comment-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(240,232,212,0.4);
  border: 1px solid rgba(201,168,76,0.15);
}

.comment-body strong {
  display: block;
  color: var(--emerald);
  margin-bottom: 0.4rem;
}

.comment-body p {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.comment-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.18);
}

.comment-form textarea,
.field-block textarea,
.field-block input,
.field-block select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,0.22);
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.95);
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus,
.field-block textarea:focus,
.field-block input:focus,
.field-block select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
}

.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field-block span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  color: var(--gold-dim);
  font-weight: 700;
}

.toggle-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(240,232,212,0.32);
  border: 1px solid rgba(201,168,76,0.18);
}

.toggle-box input {
  width: 18px;
  height: 18px;
}

.application-card {
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(240,232,212,0.42);
  border: 1px solid rgba(201,168,76,0.18);
  margin-bottom: 0.85rem;
}

.admin-quick-nav-wrap {
  padding-top: 0;
}

.admin-quick-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 4px;
  scroll-snap-type: x proximity;
}

.admin-quick-nav a {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(255,255,255,0.72);
  color: var(--emerald);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  scroll-snap-align: start;
}

.desktop-table {
  display: block;
}

.mobile-records {
  display: none;
}

.mobile-record-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(240,232,212,0.42);
  border: 1px solid rgba(201,168,76,0.16);
  display: grid;
  gap: 0.9rem;
}

.mobile-record-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.mobile-record-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.mobile-record-grid div {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(201,168,76,0.12);
}

.mobile-record-grid span {
  display: block;
  color: var(--gold-dim);
  font-size: 0.76rem;
  margin-bottom: 0.2rem;
}

.mobile-record-grid strong,
.mobile-record-grid strong a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.action-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.ghost-btn,
.primary-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.primary-btn {
  border: 1px solid rgba(201,168,76,0.36);
  color: var(--emerald);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 28px rgba(201,168,76,0.18);
}

.ghost-btn {
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--emerald);
  background: rgba(240,232,212,0.55);
}

.danger-btn {
  color: #7f1d1d;
  background: rgba(255,236,236,0.72);
  border: 1px solid rgba(191, 53, 53, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.portal-identity-card .section-title,
.panel .section-title,
.table-card .section-title {
  margin-bottom: 1rem;
}

.portal-identity-card .section-title h3,
.panel .section-title h3,
.table-card .section-title h3 {
  font-family: var(--font-display);
  color: var(--emerald);
  font-size: 1.35rem;
}

.portal-identity-card .section-title p,
.panel .section-title p,
.table-card .section-title p,
.muted {
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .site-footer-shell {
    grid-template-columns: 1fr;
  }

  .admin-hub-shell,
  .admin-page-hero,
  .admin-page-grid--two,
  .portal-hero-grid,
  .portal-grid,
  .admin-shell-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .event-community-head {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .site-footer-shell {
    width: min(100%, calc(100% - 22px));
    padding: 1.5rem 0 1rem;
  }

  .site-footer-brand,
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-columns {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    width: min(100%, calc(100% - 22px));
  }

  .admin-hub-wrap {
    padding: 1rem 0.85rem 1.5rem;
  }

  .admin-hub-shell {
    gap: 1rem;
  }

  .admin-sidebar,
  .admin-page-hero {
    border-radius: 22px;
    padding: 1.1rem;
  }

  .admin-hero-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .hero-admin,
  .hero-portal,
  .hero-event-detail {
    padding: 4.6rem 1.25rem 2.4rem;
  }

  .detail-grid,
  .form-grid,
  .portal-mini-kpis,
  .kpis {
    grid-template-columns: 1fr;
  }

  .comment-form-actions,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stack-item,
  .mini-stat-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-quick-nav {
    position: sticky;
    top: 72px;
    z-index: 15;
    margin: 0 -2px;
    padding: 6px 2px;
    background: rgba(250,246,238,0.92);
    backdrop-filter: blur(12px);
  }

  .desktop-table {
    display: none;
  }

  .mobile-records {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
  }

  .table-card,
  .panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .section-title h3 {
    font-size: 1.2rem;
  }

  .field-block input,
  .field-block textarea,
  .field-block select {
    font-size: 16px;
  }
}

/* ════════════════════════════════════════════════════════════
   HOME LANDING 2026
════════════════════════════════════════════════════════════ */

.page-home-landing {
  background:
    radial-gradient(circle at top right, rgba(201,168,76,0.08), transparent 26%),
    linear-gradient(180deg, #f6f0e2 0%, #f4efe6 100%);
}

.home-shell {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.home-stage {
  padding: 28px 0 20px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.home-main {
  min-width: 0;
}

.hero-slider-card {
  position: relative;
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  background: #0d3b2e;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 22px 60px rgba(19, 23, 18, 0.16);
}

.hero-slider-track {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(22px, 3vw, 42px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-fallback {
  background:
    linear-gradient(120deg, rgba(13,59,46,0.98), rgba(12,43,33,0.88)),
    radial-gradient(circle at 18% 30%, rgba(201,168,76,0.25), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.06), transparent 22%);
}

.hero-slide-copy {
  width: min(720px, 100%);
  color: #fffdf8;
}

.hero-slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.hero-slide-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 1.18;
  margin-bottom: 16px;
  color: #fffdf8;
}

.hero-slide-copy p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,253,248,0.82);
  max-width: 62ch;
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-slider-dots {
  position: absolute;
  inset-inline: 24px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--gold-light);
}

.home-side-panel {
  min-width: 0;
  border-radius: 34px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(10,33,25,0.98), rgba(13,59,46,0.96)),
    radial-gradient(circle at top left, rgba(201,168,76,0.18), transparent 24%);
  border: 1px solid rgba(201,168,76,0.2);
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 18px 48px rgba(16, 19, 15, 0.15);
}

.home-side-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 10px 0 8px;
  color: var(--gold-light);
}

.home-side-header p {
  color: rgba(255,253,248,0.7);
}

.home-side-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-side-stat,
.home-side-item,
.home-strip-card,
.home-kpi-card,
.service-card,
.announcement-feature-card,
.event-preview-card {
  min-width: 0;
}

.home-side-stat {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.home-side-stat strong {
  display: block;
  font-size: 1.45rem;
  color: #fffdf8;
}

.home-side-stat span {
  font-size: 0.84rem;
  color: rgba(255,253,248,0.7);
}

.home-side-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-side-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.home-side-item span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,253,248,0.64);
  margin-bottom: 4px;
}

.home-side-item strong {
  display: block;
  font-size: 1rem;
  color: #fffdf8;
}

.home-strip-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-strip-card {
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(201,168,76,0.18);
  box-shadow: 0 10px 30px rgba(40, 32, 20, 0.05);
}

.home-strip-card span {
  display: block;
  color: var(--gold-dim);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.home-strip-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.home-section {
  padding: 18px 0 24px;
}

.home-kpi-grid,
.service-grid,
.announcement-showcase,
.event-preview-grid {
  display: grid;
  gap: 16px;
}

.home-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-kpi-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(201,168,76,0.16);
}

.home-kpi-card span {
  display: block;
  color: var(--gold-dim);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.home-kpi-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--emerald);
  margin-bottom: 10px;
}

.home-kpi-card p,
.service-card p,
.announcement-feature-card p,
.event-preview-card p {
  color: var(--ink-soft);
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  color: var(--emerald);
  margin-bottom: 6px;
}

.home-mini-label {
  display: inline-block;
  color: var(--gold-dim);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.65));
  border: 1px solid rgba(201,168,76,0.14);
}

.service-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 16px;
  background: rgba(201,168,76,0.12);
  color: var(--emerald);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.service-card h3,
.announcement-feature-card h3,
.event-preview-card h3 {
  font-family: var(--font-display);
  color: var(--emerald);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.announcement-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.announcement-feature-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(201,168,76,0.14);
}

.announcement-feature-meta,
.event-preview-top,
.announcement-feature-foot,
.event-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.announcement-feature-meta,
.event-preview-top {
  margin-bottom: 14px;
  flex-wrap: wrap;
  color: var(--gold-dim);
  font-size: 0.82rem;
}

.announcement-feature-foot,
.event-preview-foot {
  margin-top: 18px;
  font-size: 0.85rem;
}

.event-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-preview-card {
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,241,228,0.95));
  border: 1px solid rgba(201,168,76,0.14);
}

.event-preview-foot a {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .home-kpi-grid,
  .service-grid,
  .announcement-showcase,
  .event-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-side-stats,
  .home-side-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-shell {
    width: min(100%, calc(100% - 20px));
  }

  .home-stage {
    padding-top: 18px;
  }

  .hero-slider-card {
    min-height: 460px;
    border-radius: 26px;
  }

  .home-strip-grid,
  .home-side-stats,
  .home-side-list,
  .home-kpi-grid,
  .service-grid,
  .announcement-showcase,
  .event-preview-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    flex-direction: column;
    align-items: start;
  }

  .hero-slide-copy h1 {
    font-size: 2.15rem;
  }

  .home-side-panel,
  .home-strip-card,
  .home-kpi-card,
  .service-card,
  .announcement-feature-card,
  .event-preview-card {
    border-radius: 22px;
  }
}

/* ════════════════════════════════════════════════════════════
   HOME V3
════════════════════════════════════════════════════════════ */

.page-home-v3 {
  background: var(--dark);
  color: var(--text);
}

.page-home-v3 .topbar,
.page-home-v3 .nav-drawer {
  display: none;
}

.home-v3-shell,
.home-v3-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-v3-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.home-v3-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.home-v3-nav-logo {
  font-family: 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.home-v3-nav-logo span {
  display: block;
  margin-top: 2px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 400;
}

.home-v3-nav-links,
.home-v3-nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-v3-nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.home-v3-nav-links a:hover,
.home-v3-nav-links a.is-active {
  color: var(--gold);
}

.home-v3-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-v3-nav-btn:hover {
  opacity: 0.92;
}

.home-v3-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(200,169,110,0.1);
}

.home-v3-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(29,158,117,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(200,169,110,0.06) 0%, transparent 60%),
    var(--dark);
}

.home-v3-hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(200,169,110,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.home-v3-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: stretch;
  padding: 72px 0;
}

.home-v3-main {
  min-width: 0;
}

.home-v3-slider {
  position: relative;
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.14);
  background: var(--dark2);
}

.home-v3-slider-track {
  min-height: inherit;
  position: relative;
}

.home-v3-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.home-v3-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.home-v3-slide.is-fallback {
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(29,158,117,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(200,169,110,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(13,17,23,0.92), rgba(28,35,48,0.95));
}

.home-v3-slide-copy {
  width: 100%;
  max-width: 760px;
}

.home-v3-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif;
}

.home-v3-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.home-v3-slide-copy h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.home-v3-slide-copy p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 26px;
  font-weight: 300;
}

.home-v3-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-v3-btn-primary,
.home-v3-btn-ghost {
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  transition: transform 0.2s, opacity 0.2s, border-color 0.2s, color 0.2s;
}

.home-v3-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(200,169,110,0.3);
}

.home-v3-btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.home-v3-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 500;
}

.home-v3-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.home-v3-status-bar {
  background: linear-gradient(135deg, rgba(29,158,117,0.1), rgba(200,169,110,0.05));
  border: 1px solid rgba(29,158,117,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.home-v3-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-v3-status-indicator {
  width: 10px;
  height: 10px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.home-v3-status-text {
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.home-v3-status-sub {
  font-size: 12px;
  color: var(--text2);
}

.home-v3-status-right {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  color: var(--teal-light);
  font-weight: 500;
}

.home-v3-slider-dots {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 5;
}

.home-v3-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: all 0.25s ease;
}

.home-v3-dot.is-active {
  width: 30px;
  background: var(--gold);
}

.home-v3-stats-panel {
  background: rgba(22,27,34,0.8);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(8px);
  min-width: 0;
}

.home-v3-stats-head {
  border-bottom: 1px solid rgba(200,169,110,0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.home-v3-stats-head h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.home-v3-stats-head p {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

.home-v3-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.home-v3-stat-box {
  background: rgba(13,17,23,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.home-v3-stat-box strong {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.home-v3-stat-box span {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
}

.home-v3-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  gap: 10px;
}

.home-v3-stat-item:last-child {
  border-bottom: none;
}

.home-v3-stat-item span {
  color: var(--text2);
}

.home-v3-stat-item strong {
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.home-v3-section {
  padding: 72px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.home-v3-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
}

.home-v3-section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-family: 'Cairo', sans-serif;
}

.home-v3-section-title {
  font-family: 'Cairo', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.home-v3-section-sub {
  font-size: 14px;
  color: var(--text2);
  max-width: 500px;
  line-height: 1.7;
}

.home-v3-link-all {
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(200,169,110,0.3);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.home-v3-link-all:hover {
  background: rgba(200,169,110,0.08);
}

.home-v3-kpi-grid,
.home-v3-service-grid,
.home-v3-announce-grid,
.home-v3-event-grid {
  display: grid;
  gap: 16px;
}

.home-v3-kpi-grid {
  grid-template-columns: repeat(4, 1fr);
}

.home-v3-kpi-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-v3-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}

.home-v3-kpi-card.is-green::before {
  background: var(--teal);
}

.home-v3-kpi-card.is-red::before {
  background: #e24b4a;
}

.home-v3-kpi-card:hover {
  border-color: rgba(200,169,110,0.3);
  transform: translateY(-3px);
}

.home-v3-kpi-card span {
  font-size: 12px;
  color: var(--text2);
  display: block;
  margin-bottom: 10px;
}

.home-v3-kpi-card strong {
  font-family: 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.home-v3-kpi-card p {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

.home-v3-service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.home-v3-service-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-v3-service-card:hover {
  border-color: rgba(200,169,110,0.25);
  transform: translateY(-4px);
}

.home-v3-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 19px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

.home-v3-service-icon.is-gold { background: rgba(200,169,110,0.12); color: var(--gold); }
.home-v3-service-icon.is-teal { background: rgba(29,158,117,0.12); color: var(--teal-light); }
.home-v3-service-icon.is-blue { background: rgba(55,138,221,0.12); color: #85b7eb; }
.home-v3-service-icon.is-violet { background: rgba(83,74,183,0.12); color: #afa9ec; }

.home-v3-service-card h3,
.home-v3-announce-card h3,
.home-v3-event-card h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.home-v3-service-card p,
.home-v3-announce-card p,
.home-v3-event-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

.home-v3-announce-grid,
.home-v3-event-grid {
  grid-template-columns: repeat(3, 1fr);
}

.home-v3-announce-card,
.home-v3-event-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-v3-announce-card:hover,
.home-v3-event-card:hover {
  border-color: rgba(200,169,110,0.2);
  transform: translateY(-2px);
}

.home-v3-announce-meta,
.home-v3-event-top,
.home-v3-announce-foot,
.home-v3-event-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.home-v3-announce-meta,
.home-v3-event-top {
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.home-v3-announce-date,
.home-v3-event-time {
  font-size: 11px;
  color: var(--text3);
}

.home-v3-badge,
.home-v3-event-type {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Cairo', sans-serif;
}

.home-v3-badge.is-official {
  background: rgba(55,138,221,0.15);
  color: #85b7eb;
}

.home-v3-badge.is-condolence {
  background: rgba(226,75,74,0.15);
  color: #f09595;
}

.home-v3-badge.is-event,
.home-v3-event-type {
  background: rgba(29,158,117,0.12);
  color: var(--teal-light);
}

.home-v3-announce-foot,
.home-v3-event-foot {
  font-size: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 16px;
  color: var(--text3);
}

.home-v3-event-foot strong {
  color: var(--text2);
}

.home-v3-event-foot a {
  color: var(--gold);
  text-decoration: none;
}

.home-v3-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.home-v3-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.home-v3-footer-brand {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.home-v3-footer-brand span {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: var(--text3);
  margin-top: 2px;
}

.home-v3-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.home-v3-footer-links a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
}

.home-v3-footer-links a:hover,
.home-v3-footer-copy {
  color: var(--gold);
}

.home-v3-footer-copy {
  font-size: 12px;
}

@media (max-width: 1100px) {
  .home-v3-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-v3-stats-panel {
    order: -1;
  }

  .home-v3-kpi-grid,
  .home-v3-service-grid,
  .home-v3-announce-grid,
  .home-v3-event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .home-v3-shell,
  .home-v3-page {
    padding: 0 14px;
  }

  .home-v3-nav-inner,
  .home-v3-nav-links,
  .home-v3-nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .home-v3-nav {
    position: relative;
  }

  .home-v3-nav-inner {
    padding: 16px 0;
  }

  .home-v3-nav-links a,
  .home-v3-nav-btn {
    width: 100%;
    text-align: center;
  }

  .home-v3-hero-grid {
    padding: 40px 0;
  }

  .home-v3-slider {
    min-height: 500px;
  }

  .home-v3-slide {
    padding: 22px;
  }

  .home-v3-slide-copy h1 {
    font-size: 30px;
  }

  .home-v3-slide-copy p {
    font-size: 14px;
  }

  .home-v3-status-bar,
  .home-v3-section-head,
  .home-v3-footer-inner,
  .home-v3-announce-meta,
  .home-v3-event-top,
  .home-v3-announce-foot,
  .home-v3-event-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-v3-stat-row,
  .home-v3-kpi-grid,
  .home-v3-service-grid,
  .home-v3-announce-grid,
  .home-v3-event-grid {
    grid-template-columns: 1fr;
  }

  .home-v3-actions,
  .home-v3-footer-links {
    width: 100%;
  }

  .home-v3-btn-primary,
  .home-v3-btn-ghost,
  .home-v3-link-all {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
