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

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
 --bg: #0c0603;
 --bg2: #160b05;
 --panel: rgba(28, 14, 7, 0.88);
 --panel-border: #b87322;
 --panel-border-glow: rgba(243, 180, 75, 0.35);

 --gold-main: #d98d28;
 --gold-light: #fce09b;
 --gold-dark: #7e4612;
 --gold-glow: rgba(217, 141, 40, 0.45);

 --evil-red: #dc2626;
 --evil-glow: rgba(220, 38, 38, 0.4);
 
 --good-blue: #00e5ff;
 --good-green: #10b981;
 
 --text-main: #fde68a;
 --text-muted: #d4a373;
 --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.85);
 --max-w: 1200px;
}

* * { font-family: Vazirmatn, Tahoma, sans-serif; }

* { box-sizing: border-box; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text-main);
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: 
    radial-gradient(circle at 50% 0%, rgba(217, 141, 40, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(184, 115, 34, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(140, 78, 15, 0.18) 0%, transparent 40%),
    var(--bg);
  line-height: 2;
  background-attachment: fixed;
  overflow-wrap: break-word;
  word-break: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: 
    radial-gradient(#d98d28 0.75px, transparent 0.75px),
    linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 20%, transparent 80%, rgba(0,0,0,0.95));
  background-size: 30px 30px, 100% 100%;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
.container { width: min(var(--max-w), calc(100% - 32px)); margin: auto; position: relative; z-index: 2; max-width: 100%; box-sizing: border-box; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 16px; font-weight: 800; }
.serif { font-family: 'Cinzel', serif; letter-spacing: 1px; }

/* نوار بالای صفحه */
.topbar {
 position: sticky; top: 0; z-index: 100;
 background: rgba(14, 7, 3, 0.92);
 backdrop-filter: blur(16px);
 border-bottom: 2px solid var(--panel-border);
 box-shadow: 0 4px 30px rgba(0,0,0,0.8), 0 0 15px rgba(217, 141, 40, 0.15);
}
.topbar-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.brand { font-weight: 900; color: var(--gold-light); display: flex; align-items: center; gap: 12px; font-size: 18px; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.crest, .crest img {
 width: 40px; height: 40px;
 /*border: 2px solid var(--gold-main);*/
 border-radius: 25%; display: grid; place-items: center;
 color: var(--gold-light); font-family: Cinzel; font-weight: 900;
 background: radial-gradient(circle, rgba(217,141,40,0.3), transparent);
 box-shadow: 0 0 15px var(--gold-glow);
}
.progress { height: 4px; background: rgba(255,255,255,0.05); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--evil-red), var(--gold-main), var(--good-blue)); transition: 0.2s; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding: 5px 0; }
.nav a { font-size: 13px; color: var(--text-muted); padding: 6px 12px; border-radius: 8px; white-space: nowrap; transition: 0.3s; }
.nav a:hover, .nav a.active { color: var(--gold-light); background: rgba(217,141,40,0.18); border: 1px solid var(--panel-border); }

/* هیرو حماسی */
.hero {
 position: relative; min-height: 640px; display: grid; align-items: center; overflow: hidden;
 border-bottom: 2px solid var(--panel-border);
 padding: 60px 0;
}
.hero-bg-overlay {
 position: absolute; inset: 0;
 background: 
   linear-gradient(180deg, rgba(12,6,3,0.4) 0%, rgba(12,6,3,0.9) 80%, #0c0603 100%),
   radial-gradient(ellipse at 70% 30%, rgba(220,38,38,0.15) 0%, transparent 50%),
   radial-gradient(ellipse at 20% 70%, rgba(0,229,255,0.12) 0%, transparent 50%);
}
.hero-content { max-width: 780px; position: relative; z-index: 3; }
.kicker { color: var(--gold-main); font-size: 13px; letter-spacing: 3px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 10px var(--gold-glow); }
.kicker::before { content: "⚔️"; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); color: var(--gold-light); text-shadow: 0 0 35px rgba(217,141,40,0.4), 0 10px 30px #000; margin-bottom: 20px; line-height: 1.15; }
.hero p { font-size: 19px; color: var(--text-muted); max-width: 700px; text-shadow: 0 2px 10px #000; margin-bottom: 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.btn {
 border: 1px solid var(--panel-border);
 background: linear-gradient(180deg, rgba(217, 141, 40, 0.2) 0%, rgba(126, 70, 18, 0.4) 100%);
 color: var(--gold-light);
 padding: 12px 24px; border-radius: 12px; font-weight: 800; cursor: pointer; font-family: inherit;
 display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease;
 box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(252, 224, 155, 0.2);
}
.btn.primary {
 background: linear-gradient(180deg, #e59b35 0%, #8c4e0f 100%);
 color: #fff8e7; border: 1px solid #fce09b; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
 box-shadow: 0 0 20px rgba(217, 141, 40, 0.5), inset 0 1px 1px rgba(255,255,255,0.4);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.2); box-shadow: 0 8px 25px rgba(217,141,40,0.4); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.stat { padding: 18px; background: rgba(28, 14, 7, 0.85); border: 1px solid var(--panel-border); border-radius: 16px; backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
.stat b { display: block; color: var(--gold-light); font-size: 24px; font-family: Cinzel, serif; }
.stat span { color: var(--text-muted); font-size: 13px; }

/* 🔴 استایل اختصاصی بخش معرفی اپلیکیشن AVALON APP SPOTLIGHT 🔴 */
.avalon-app-spotlight {
 position: relative;
 margin: 40px 0 60px;
 padding: 35px;
 border-radius: 24px;
 background: linear-gradient(135deg, rgba(32, 16, 8, 0.95) 0%, rgba(18, 9, 4, 0.98) 50%, rgba(42, 20, 10, 0.95) 100%);
 border: 2px solid var(--gold-main);
 box-shadow: 0 0 40px rgba(217, 141, 40, 0.3), inset 0 0 30px rgba(217, 141, 40, 0.12);
 overflow: hidden;
 transition: all 0.4s ease;
}
.avalon-app-spotlight::before {
 content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
 background: radial-gradient(circle, rgba(217,141,40,0.15) 0%, transparent 60%);
 pointer-events: none; animation: pulseGlow 8s infinite alternate;
}
@keyframes pulseGlow { 0% { opacity: 0.3; } 100% { opacity: 0.8; } }

.app-badge {
 display: inline-flex; align-items: center; gap: 6px;
 background: linear-gradient(90deg, #d98d28, #fce09b);
 color: #0c0603; font-weight: 900; font-size: 12px;
 padding: 5px 14px; border-radius: 20px; text-transform: uppercase;
 letter-spacing: 1px; margin-bottom: 20px; box-shadow: 0 0 15px var(--gold-glow);
}

.app-grid {
 display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: center;
}
.app-content h2 {
 font-size: clamp(26px, 4vw, 36px); color: var(--gold-light); margin-bottom: 14px;
 text-shadow: 0 2px 15px rgba(217,141,40,0.4);
}
.app-content p {
 font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 22px;
}
.app-features {
 display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 25px;
}
.app-feat-item {
 display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gold-light); font-weight: 700;
 background: rgba(217,141,40,0.08); padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(184,115,34,0.3);
}

.app-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.app-btn-main {
 background: linear-gradient(180deg, #e59b35 0%, #8c4e0f 100%);
 color: #fff8e7; font-weight: 900; font-size: 16px; padding: 14px 28px;
 border-radius: 14px; border: 1px solid #fce09b; cursor: pointer; transition: 0.3s;
 box-shadow: 0 0 25px rgba(217, 141, 40, 0.4); display: inline-flex; align-items: center; gap: 10px;
 text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.app-btn-main:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.2); box-shadow: 0 10px 30px rgba(217, 141, 40, 0.6); }

/* نمایش تصاویر برنامه */
.app-media {
 position: relative; display: flex; justify-content: center; align-items: center;
}
.app-mockup-wrapper {
 position: relative; width: 100%; height: 380px;
 border-radius: 20px; border: 2px solid var(--gold-main);
 background: rgba(12, 6, 3, 0.9); overflow: hidden;
 box-shadow: 0 15px 35px rgba(0,0,0,0.9), 0 0 20px var(--gold-glow);
 display: flex;
}
.carousel-inner {
 display: flex; width: 100%; transition: transform 0.5s ease-in-out;
}
.app-mockup-img {
 min-width: 100%; height: 100%; object-fit: contain; background: #0c0603;
}
.carousel-btn {
 position: absolute; top: 50%; transform: translateY(-50%);
 background: rgba(14,7,3,0.85); color: var(--gold-light); border: 1px solid var(--gold-main);
 font-size: 18px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border-radius: 50%;
 z-index: 10; transition: 0.3s; box-shadow: 0 0 12px var(--gold-glow);
}
.carousel-btn:hover { background: var(--gold-main); color: #0c0603; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-indicators {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 10; direction: ltr;
}
.dot {
 width: 12px; height: 12px; background: rgba(252,224,155,0.3); border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.dot.active, .dot:hover { background: var(--gold-main); box-shadow: 0 0 10px var(--gold-glow); }
.app-icon-logo {
 position: absolute; top: -15px; right: -15px; width: 70px; height: 70px;
 border-radius: 18px; border: 2px solid var(--gold-main);
 background: #160b05; box-shadow: 0 10px 25px rgba(0,0,0,0.8);
 display: grid; place-items: center; font-size: 32px; z-index: 20;
}

.app-icon-logo img { width: 65px; height: 65px; border-radius: 25%;}

/* ساختار دو ستونه اصلی */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 50px; }
.layout > * { min-width: 0; }
.content { min-width: 0; max-width: 100%; }
.toc { position: sticky; top: 90px; height: max-content; background: rgba(28, 14, 7, 0.85); border: 2px solid var(--panel-border); padding: 18px; border-radius: 16px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.toc h4 { color: var(--gold-light); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; border-bottom: 1px solid rgba(217, 141, 40, 0.3); padding-bottom: 8px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.toc a { display: block; padding: 8px 10px; color: var(--text-muted); font-size: 13px; border-right: 2px solid transparent; transition: 0.2s; border-radius: 4px; }
.toc a:hover { color: var(--gold-light); background: rgba(217, 141, 40, 0.15); border-color: var(--gold-main); }

section { scroll-margin-top: 90px; margin-bottom: 80px; min-width: 0; max-width: 100%; }
.section-title { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.num {
 flex: 0 0 48px; height: 48px; border: 2px solid var(--gold-main); border-radius: 14px;
 display: grid; place-items: center; color: var(--gold-light); font-weight: 900; font-size: 20px; font-family: Cinzel, serif;
 background: radial-gradient(circle, rgba(217,141,40,0.3), transparent); box-shadow: 0 0 18px var(--gold-glow);
}
.section-title h2 { font-size: 28px; color: var(--gold-light); margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.section-title p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* کارت‌ها و باکس‌ها (طراحی اختصاصی فریم‌های باستانی اپلیکیشن) */
.card {
 background: 
   radial-gradient(ellipse at 50% 20%, rgba(70, 36, 17, 0.85) 0%, rgba(18, 9, 4, 0.96) 100%),
   rgba(28, 14, 7, 0.9);
 border: 2px solid #c87f28;
 outline: 1px solid rgba(126, 70, 18, 0.6);
 outline-offset: -5px;
 border-radius: 16px;
 padding: 28px;
 box-shadow: 
   0 15px 40px rgba(0, 0, 0, 0.9),
   0 0 20px rgba(217, 141, 40, 0.25),
   inset 0 0 25px rgba(0, 0, 0, 0.85);
 margin: 20px 0;
 backdrop-filter: blur(10px);
 position: relative;
 overflow: hidden;
 max-width: 100%;
 min-width: 0;
 box-sizing: border-box;
}

/* نوار تزئینی زرین بالای کارت‌ها - مشابه فریم‌های اپلیکیشن */
.card::before {
 content: "";
 position: absolute;
 top: 0;
 left: 20px;
 right: 20px;
 height: 3px;
 background: linear-gradient(90deg, transparent, #fce09b, var(--gold-main), #fce09b, transparent);
 box-shadow: 0 0 10px rgba(252, 224, 155, 0.8);
 z-index: 5;
}

.card::after {
 content: "";
 position: absolute;
 bottom: 0;
 left: 30px;
 right: 30px;
 height: 2px;
 background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
 opacity: 0.7;
}

.card.gold {
 border-color: #fce09b;
 outline: 1px solid #d98d28;
 outline-offset: -5px;
 box-shadow: 
   0 0 35px rgba(217, 141, 40, 0.35),
   inset 0 0 30px rgba(217, 141, 40, 0.18);
 background: 
   radial-gradient(ellipse at 50% 20%, rgba(90, 48, 22, 0.9) 0%, rgba(22, 11, 5, 0.97) 100%),
   rgba(32, 16, 8, 0.95);
}

.card.dark-realm {
 border-color: #ef4444;
 outline: 1px solid #991b1b;
 outline-offset: -5px;
 box-shadow: 
   0 0 35px rgba(220, 38, 38, 0.3),
   inset 0 0 30px rgba(220, 38, 38, 0.15);
 background: 
   radial-gradient(ellipse at 50% 20%, rgba(65, 16, 20, 0.9) 0%, rgba(20, 8, 10, 0.97) 100%),
   rgba(28, 10, 12, 0.95);
}

/* چرخه سرنوشت هر دور (Cycle Flow) */
.cycle-flow {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 margin-top: 18px;
 flex-wrap: wrap;
}
.cycle-step {
 background: rgba(217, 141, 40, 0.12);
 border: 1px solid var(--panel-border);
 padding: 10px 14px;
 border-radius: 14px;
 display: flex;
 align-items: center;
 gap: 8px;
 flex: 1 1 auto;
 justify-content: center;
 transition: all 0.3s ease;
 box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.cycle-step:hover {
 background: rgba(217, 141, 40, 0.25);
 border-color: var(--gold-main);
 transform: translateY(-3px);
 box-shadow: 0 6px 20px rgba(217, 141, 40, 0.4);
}
.step-icon { font-size: 18px; }
.step-title { font-size: 13px; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.cycle-arrow {
 color: var(--gold-main);
 opacity: 0.85;
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
 filter: drop-shadow(0 0 6px var(--gold-glow));
}

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 > *, .grid3 > *, .role-grid > *, .app-grid > *, .app-features > *, .stats > * { min-width: 0; }

.callout { padding: 20px; border-right: 4px solid var(--gold-main); border-left: 1px solid rgba(217, 141, 40, 0.3); background: rgba(217,141,40,0.1); border-radius: 12px; margin: 15px 0; max-width: 100%; box-sizing: border-box; }
.danger { border-color: var(--evil-red); background: rgba(220,38,38,0.15); color: #fca5a5; }
.danger b { color: #f87171; }
.success { border-color: var(--good-green); background: rgba(16,185,129,0.15); color: #a7f3d0; }
.info { border-color: var(--good-blue); background: rgba(0,229,255,0.12); color: #a5f3fc; }

/* جداول باستانی */
.table-responsive { width: 100%; max-width: 100%; overflow-x: auto; margin: 10px 0; -webkit-overflow-scrolling: touch; display: block; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 450px; }
th, td { padding: 14px; border-bottom: 1px solid rgba(217, 141, 40, 0.15); text-align: center; }
th { color: var(--gold-light); background: rgba(217, 141, 40, 0.18); font-weight: 700; font-family: Cinzel, serif; }
td:first-child, th:first-child { text-align: right; font-weight: 700; }

/* کارت‌های نقش‌ها (فریم‌های اختصاصی نقش در اپلیکیشن) */
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.role {
 position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
 border-width: 2px; border-style: solid; border-radius: 16px;
 outline: 1px solid rgba(126, 70, 18, 0.5); outline-offset: -4px;
 box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.7);
}
.role[data-side="good"] {
 border-color: rgba(0, 229, 255, 0.6);
 background: linear-gradient(160deg, rgba(14, 40, 52, 0.88) 0%, rgba(18, 9, 4, 0.96) 100%);
}
.role[data-side="good"]::before { background: linear-gradient(90deg, transparent, var(--good-blue), transparent); }

.role[data-side="evil"] {
 border-color: rgba(220, 38, 38, 0.6);
 background: linear-gradient(160deg, rgba(48, 14, 16, 0.88) 0%, rgba(18, 9, 4, 0.96) 100%);
}
.role[data-side="evil"]::before { background: linear-gradient(90deg, transparent, var(--evil-red), transparent); }

.role-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.role-head h3 { margin: 0; font-size: 22px; color: var(--gold-light); }
.badge { font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 700; letter-spacing: 0.5px; }
.good { background: rgba(0,229,255,0.15); color: #67e8f9; border: 1px solid rgba(0,229,255,0.4); }
.evil { background: rgba(220,38,38,0.2); color: #fca5a5; border: 1px solid rgba(220,38,38,0.4); }

.role p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin: 0 0 10px; }
.role small { color: var(--gold-main); font-weight: 600; font-size: 13px; display: block; }

/* تب‌ها */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab {
 cursor: pointer; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--panel-border);
 background: rgba(28, 14, 7, 0.7); color: var(--text-muted); font-family: inherit; font-weight: 700; transition: 0.3s;
}
.tab.on { background: linear-gradient(180deg, #d98d28 0%, #8c4e0f 100%); border-color: var(--gold-light); color: #fff8e7; box-shadow: 0 0 18px var(--gold-glow); }

/* بخش تعاملی و شبیه‌سازها */
.interactive {
 background: linear-gradient(160deg, rgba(32, 16, 8, 0.95), rgba(16, 8, 4, 0.98));
 border: 2px solid var(--gold-main); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-heavy);
}
.controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.select, .number {
 background: #0e0704; color: var(--gold-light); border: 1px solid var(--panel-border); padding: 10px 16px;
 border-radius: 10px; font-family: inherit; font-weight: 700; outline: none; transition: 0.3s;
}
.select:focus, .number:focus { border-color: var(--gold-main); box-shadow: 0 0 12px var(--gold-glow); }
.result { margin-top: 20px; padding: 20px; border-radius: 14px; background: rgba(217,141,40,0.06); border: 1px solid rgba(217,141,40,0.2); font-size: 15px; }

/* شبیه‌ساز رای‌گیری */
.vote-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 15px 0; }
.vote-card { background: rgba(217,141,40,0.04); border: 1px solid rgba(217,141,40,0.15); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.vote-btn-group { display: flex; gap: 6px; }
.vote-btn-group button { padding: 6px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; border: 1px solid transparent; font-family: inherit; font-weight: 700; }
.vote-btn-group .yes { background: rgba(0,229,255,0.15); color: #67e8f9; border-color: rgba(0,229,255,0.3); }
.vote-btn-group .yes.active { background: #0284c7; color: #fff; }
.vote-btn-group .no { background: rgba(220,38,38,0.15); color: #fca5a5; border-color: rgba(220,38,38,0.3); }
.vote-btn-group .no.active { background: #dc2626; color: #fff; }

/* هیئت مأموریت‌ها */
.mission-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.mission {
 border: 1px solid var(--panel-border); border-radius: 16px; padding: 18px 10px; text-align: center;
 background: rgba(28, 14, 7, 0.7); position: relative; overflow: hidden;
}
.mission b { display: block; color: var(--gold-light); font-size: 16px; margin-bottom: 6px; }
.mission .dot { width: 22px; height: 22px; border-radius: 50%; margin: 12px auto; background: #261309; border: 2px solid #542b0f; }
.mission.ok .dot { background: var(--good-green); border-color: #6ee7b7; box-shadow: 0 0 15px rgba(16,185,129,0.8); }
.mission.fail .dot { background: var(--evil-red); border-color: #fca5a5; box-shadow: 0 0 15px rgba(220,38,38,0.8); }

/* نقل‌قول‌ها */
.quote {
 font-size: 20px; color: var(--gold-light); font-weight: 800; padding: 30px;
 border: 2px solid var(--panel-border); border-radius: 20px; text-align: center;
 background: linear-gradient(135deg, rgba(217,141,40,0.15) 0%, rgba(12,6,3,0.9) 100%);
 font-family: 'Cinzel', serif; line-height: 1.8; position: relative;
 box-shadow: inset 0 0 30px rgba(217,141,40,0.08);
}
.quote::before { content: "“"; font-size: 60px; position: absolute; top: -10px; right: 20px; opacity: 0.3; color: var(--gold-main); }

/* آکاردئون */
details { border: 1px solid var(--panel-border); border-radius: 14px; margin: 12px 0; background: rgba(28, 14, 7, 0.5); transition: 0.3s; }
details[open] { background: rgba(38, 19, 10, 0.9); border-color: var(--gold-main); }
summary { cursor: pointer; padding: 16px 20px; font-weight: 800; color: var(--gold-light); display: flex; align-items: center; justify-content: space-between; }
summary::after { content: "⚔️"; font-size: 14px; }
details > div { padding: 0 20px 20px; color: var(--text-muted); line-height: 1.9; border-top: 1px solid rgba(217,141,40,0.1); margin-top: 10px; padding-top: 15px; }

/* فوتر */
.footer { border-top: 2px solid var(--panel-border); padding: 50px 0 80px; color: var(--text-muted); font-size: 14px; text-align: center; }
.footer a { color: var(--gold-light); font-weight: 700; text-decoration: underline; }

/* منوی همبرگری موبایل */
.hamburger {
 display: none; background: none; border: none; cursor: pointer;
 width: 44px; height: 44px; position: relative; z-index: 110;
}
.hamburger span {
 display: block; width: 24px; height: 2px; background: var(--gold-light);
 margin: 6px auto; border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav-overlay {
 display: none; position: fixed; inset: 0; background: rgba(5, 8, 15, 0.95);
 backdrop-filter: blur(20px); z-index: 99; padding-top: 80px;
 flex-direction: column; align-items: center; gap: 8px;
 overflow-y: auto;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
 font-size: 18px; color: var(--text-muted); padding: 14px 30px; border-radius: 12px;
 transition: 0.3s; font-weight: 700; width: 80%; text-align: center;
 border: 1px solid transparent;
}
.mobile-nav-overlay a:hover, .mobile-nav-overlay a.active {
 color: var(--gold-light); background: rgba(212,163,89,0.12); border-color: var(--panel-border);
}

@media(max-width: 900px) {
 .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
 .content { width: 100%; min-width: 0; max-width: 100%; }
 .toc { display: none; }
 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .grid2, .grid3, .role-grid { grid-template-columns: minmax(0, 1fr); }
 .app-grid { grid-template-columns: minmax(0, 1fr); }
 .app-features { grid-template-columns: minmax(0, 1fr); }
 .cycle-flow { gap: 6px; }
 .cycle-step { padding: 8px 10px; }
 .step-icon { font-size: 15px; }
 .step-title { font-size: 12px; }
 .nav { display: none; }
 .hamburger { display: block; }
 .hero { min-height: auto; padding: 40px 0; }
 .hero p { font-size: 16px; }
 .card { padding: 20px; margin: 12px 0; }
 .section-title h2 { font-size: 22px; }
 .num { flex: 0 0 40px; height: 40px; font-size: 16px; border-radius: 12px; }
 .interactive { padding: 20px; border-radius: 18px; max-width: 100%; box-sizing: border-box; }
 .quote { font-size: 17px; padding: 22px; }
 .avalon-app-spotlight { padding: 24px; margin: 30px 0 40px; border-radius: 22px; }
 .app-content h2 { font-size: 24px; }
 .app-content p { font-size: 14px; }
 .app-btn-main { font-size: 14px; padding: 12px 22px; }
 .app-mockup-wrapper { height: 380px; }
 .app-media { flex-direction: column; }
 .app-icon-logo { top: -10px; right: -10px; width: 55px; height: 55px; font-size: 26px; }
 .app-icon-logo img { width: 50px; height: 50px; }
 .carousel-indicators { bottom: 10px; }
 .footer { padding: 30px 0 50px; }
 .mission-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

@media(max-width: 600px) {
 .container { width: calc(100% - 24px); }
 .topbar-inner { height: 58px; }
 .brand { font-size: 14px; gap: 6px; }
 .crest { width: 34px; height: 34px; font-size: 14px; }
 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
 .stat { padding: 12px; }
 .stat b { font-size: 18px; }
 .hero h1 { font-size: 26px; }
 .hero p { font-size: 14px; margin-bottom: 20px; }
 .kicker { font-size: 10px; letter-spacing: 1.5px; }
 .hero-actions { flex-direction: column; }
 .hero-actions .btn { width: 100%; justify-content: center; }
 .section-title { gap: 12px; margin-bottom: 20px; }
 .section-title h2 { font-size: 19px; }
 .section-title p { font-size: 13px; }
 .num { flex: 0 0 36px; height: 36px; font-size: 14px; border-radius: 10px; }
 .card { padding: 16px; border-radius: 16px; margin: 10px 0; }
 .card h3 { font-size: 16px; }
 .card p.serif { font-size: 14px !important; }
 .cycle-flow { flex-direction: column; align-items: stretch; gap: 4px; }
 .cycle-step { width: 100%; justify-content: flex-start; padding: 10px 14px; box-sizing: border-box; }
 .cycle-arrow { transform: rotate(-90deg); margin: -2px 0; }
 .grid2, .grid3, .role-grid { gap: 10px; }
 .role { min-height: auto; }
 .role-head h3 { font-size: 17px; }
 .callout { padding: 14px; font-size: 13px; }
 .interactive { padding: 16px; border-radius: 16px; }
 .interactive h3 { font-size: 15px; }
 .controls { flex-direction: column; align-items: stretch; }
 .select, .number { width: 100%; }
 .result { padding: 14px; font-size: 13px; }
 .quote { font-size: 14px; padding: 18px; line-height: 1.7; }
 .quote::before { font-size: 36px; top: -5px; right: 12px; }
 .mission-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
 .mission { padding: 12px 6px; border-radius: 12px; }
 .mission b { font-size: 13px; }
 .mission small { font-size: 10px; display: block; word-break: break-word; }
 .mission .dot { width: 16px; height: 16px; margin: 6px auto; }
 .vote-grid-container { grid-template-columns: minmax(0, 1fr); }
 .vote-card { padding: 8px 10px; }
 .tabs { flex-wrap: wrap; gap: 8px; }
 .tab { padding: 8px 14px; font-size: 13px; }
 .avalon-app-spotlight { padding: 18px; margin: 20px 0 30px; border-radius: 18px; border-width: 1px; }
 .app-content h2 { font-size: 20px; }
 .app-content p { font-size: 13px; line-height: 1.7; }
 .app-feat-item { font-size: 12px; padding: 6px 10px; }
 .app-btn-main { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }
 .app-mockup-wrapper { height: 380px; border-radius: 16px; }
 .app-icon-logo { width: 45px; height: 45px; font-size: 22px; top: -8px; right: -8px; border-radius: 14px; }
 .app-icon-logo img { width: 40px; height: 40px; }
 .app-badge { font-size: 11px; padding: 4px 12px; }
 details > div { padding: 0 14px 14px; font-size: 13px; }
 summary { padding: 14px 16px; font-size: 14px; }
 .footer { padding: 25px 0 40px; }
 .footer p { font-size: 13px; }
 .nav a { font-size: 14px; padding: 10px; }
 table { min-width: 400px; font-size: 13px; }
 th, td { padding: 10px 8px; }
}

@media(max-width: 380px) {
 .hero h1 { font-size: 22px; }
 .container { width: calc(100% - 16px); }
 .stats { grid-template-columns: minmax(0, 1fr); }
 .mission-board { grid-template-columns: minmax(0, 1fr); }
 .brand .serif { font-size: 12px; }
 table { min-width: 360px; font-size: 12px; }
}
