/* ═══════════════════════════════════════════════════════════════
   KarGah Galaxy Theme — Main Stylesheet
   Theme: Galaxy Gamification — Luxe, Minimal, RTL Persian
   Version: 1.0.0
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Brand Colors */
    --gold: #d4af37;
    --gold-light: #f4d35e;
    --gold-deep: #b8941e;
    --orange: #e87a20;
    --grad: linear-gradient(135deg, #d4af37 0%, #e87a20 100%);
    --grad-soft: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(232,122,32,0.15) 100%);

    /* Space (Galaxy) */
    --space-deep: #060818;
    --space-mid: #0a0e2a;
    --space-light: #131a3a;

    /* Text */
    --text-bright: #f8fafc;
    --text-soft: rgba(248, 250, 252, 0.7);
    --text-muted: rgba(248, 250, 252, 0.5);

    /* Nebula glows */
    --nebula-1: rgba(212, 175, 55, 0.08);
    --nebula-2: rgba(232, 122, 32, 0.06);
    --star: rgba(255, 255, 255, 0.85);

    /* Layout */
    --container-w: 1180px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    /* Typography */
    --font-base: 'Vazirmatn', Tahoma, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--space-deep);
    color: var(--text-bright);
    font-family: var(--font-base);
    font-size: 15px;
    line-height: 1.9;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    overflow: hidden; position: absolute !important;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    right: 0;
    background: var(--gold);
    color: #0a0e2a;
    padding: 10px 18px;
    border-radius: 0 0 0 8px;
    z-index: 9999;
    font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ─── Container ─── */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-decoration: none;
    font-family: inherit;
}
.btn-gold {
    background: var(--grad);
    color: #0a0e2a;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
    color: #0a0e2a;
}
.btn-ghost {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.site-header-inner {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-logo-link img {
    width: 44px; height: 44px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

.site-branding-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-bright);
    line-height: 1.2;
}
.site-title a { color: var(--text-bright); }
.site-title a:hover { color: var(--gold); }
.site-title .brand-fa {
    color: var(--gold);
    margin-right: 6px;
    font-weight: 700;
}

.site-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.nav-menu li a {
    display: block;
    padding: 8px 18px;
    color: var(--text-soft);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-bright);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   FRONT PAGE — GALAXY HERO
   ═══════════════════════════════════════════════════════════════ */
.hero-galaxy {
    min-height: 90vh;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 30%, var(--nebula-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--nebula-2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, var(--space-deep) 0%, var(--space-mid) 50%, var(--space-deep) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* Stars layer */
.hero-galaxy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 30% 80%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 50% 40%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 70% 10%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 90% 60%, var(--star) 50%, transparent),
        radial-gradient(2px 2px at 15% 50%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 85% 30%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 45% 70%, var(--star) 50%, transparent),
        radial-gradient(2px 2px at 60% 90%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 25% 15%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 75% 85%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 5% 65%, var(--star) 50%, transparent),
        radial-gradient(1px 1px at 95% 5%, var(--star) 50%, transparent);
    opacity: 0.6;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes twinkle {
    from { opacity: 0.4; }
    to { opacity: 0.8; }
}

/* Orbit rings */
.orbit {
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    pointer-events: none;
    top: 50%; left: 50%;
}

.orbit-1 {
    width: 600px; height: 600px;
    transform: translate(-50%, -50%);
    animation: spin 60s linear infinite;
}
.orbit-2 {
    width: 900px; height: 900px;
    transform: translate(-50%, -50%);
    border-color: rgba(232, 122, 32, 0.08);
    animation: spin 90s linear infinite reverse;
}
.orbit-3 {
    width: 1200px; height: 1200px;
    transform: translate(-50%, -50%);
    border-color: rgba(212, 175, 55, 0.05);
    animation: spin 120s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit::before, .orbit::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}

.orbit-1::before { top: -4px; left: 50%; transform: translateX(-50%); }
.orbit-1::after { bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.orbit-2::before { top: 50%; right: -4px; transform: translateY(-50%); background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.orbit-2::after { top: 50%; left: -4px; transform: translateY(-50%); }

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-logo {
    width: 110px; height: 110px;
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3),
                0 0 60px rgba(212, 175, 55, 0.4),
                0 20px 60px rgba(0, 0, 0, 0.5);
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

.hero-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.2; }
}

.hero-tag {
    display: inline-block;
    background: var(--grad-soft);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #d4af37 50%, #f4d35e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-title-fa {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.hero-slogan {
    font-size: 1.1rem;
    color: var(--text-soft);
    font-style: italic;
    margin: 0 auto 14px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-slogan .quote {
    color: var(--gold);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 700px;
    line-height: 1.85;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-iran {
    background: linear-gradient(135deg, rgba(35, 159, 64, 0.2), rgba(255, 255, 255, 0.1), rgba(218, 0, 0, 0.2));
    border: 1px solid rgba(35, 159, 64, 0.3);
    color: #fff;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--grad);
    color: #0a0e2a;
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    transition: transform 0.25s, box-shadow 0.25s;
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(212, 175, 55, 0.55);
    color: #0a0e2a;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-hint .arrow {
    display: block;
    font-size: 1.4rem;
    margin-top: 4px;
    color: var(--gold);
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ═══════════════════════════════════════════════════════════════
   TODAY BANNER (Jalali date)
   ═══════════════════════════════════════════════════════════════ */
.today-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(232, 122, 32, 0.05));
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 14px 0;
    text-align: center;
}
.today-banner .container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
}
.today-icon { font-size: 1.3rem; }
.today-date { color: var(--text-bright); }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
section { padding: 80px 0; position: relative; }

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 14px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.9;
}

.features-section,
.stats-section,
.usecases-section,
.demo-section,
.docs-section {
    background: var(--space-deep);
    text-align: center;
}

.stats-section {
    background: linear-gradient(180deg, var(--space-mid) 0%, var(--space-deep) 100%);
}

/* ─── Features Grid ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: right;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.05);
}
.feature:hover::before { transform: scaleX(1); }

.feature-icon {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 12px;
    background: var(--grad-soft);
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 14px;
}

.feature h3 {
    font-size: 1.15rem;
    color: var(--text-bright);
    margin: 0 0 8px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin: 0;
}

/* ─── Stats ─── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-block {
    text-align: center;
    padding: 28px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    transition: all 0.3s;
}
.stat-block:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-soft);
}

/* ─── Use Cases ─── */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 40px;
}

.usecase {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
}
.usecase:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}
.usecase .icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}
.usecase b {
    font-size: 0.95rem;
    color: var(--text-bright);
    display: block;
    margin-bottom: 2px;
}
.usecase p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Iran Section ─── */
.iran-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(35, 159, 64, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(218, 0, 0, 0.08) 0%, transparent 50%),
        var(--space-deep);
    text-align: center;
    padding: 100px 0;
}

.iran-flag-art {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: flagWave 4s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.iran-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--text-bright);
}

.iran-tagline {
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 24px;
    font-weight: 600;
}

.iran-section p {
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto 14px;
    line-height: 1.9;
}

.quote-gold {
    margin-top: 18px;
    color: var(--gold);
    font-style: italic;
    font-size: 1.1rem;
}

/* ─── Demo CTA Section ─── */
.demo-cta-section {
    background: linear-gradient(135deg, var(--space-mid), var(--space-light));
    text-align: center;
    padding: 80px 0;
}
.demo-cta-section h2 {
    font-size: 2rem;
    margin: 0 0 14px;
    color: var(--text-bright);
}
.demo-cta-section p {
    color: var(--text-soft);
    margin: 0 0 28px;
}

/* ═══════════════════════════════════════════════════════════════
   DEMO PAGE
   ═══════════════════════════════════════════════════════════════ */
.demo-hero {
    padding: 80px 0 30px;
    text-align: center;
    background:
        radial-gradient(ellipse at 20% 30%, var(--nebula-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--nebula-2) 0%, transparent 50%),
        var(--space-deep);
}

.demo-section { padding: 50px 0; }

.demo-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-soft);
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.tab-btn.active {
    background: var(--grad);
    color: #0a0e2a;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Browser frame */
.browser-frame {
    background: var(--space-mid);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.browser-bar {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dots {
    display: flex;
    gap: 6px;
}
.browser-dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 14px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    direction: ltr;
    text-align: left;
    font-family: monospace;
}

.browser-body {
    padding: 24px;
    background: #f4f1ea;
    color: #1d2327;
}

/* ═══════════════════════════════════════════════════════════════
   KARGAH BOOKING MOCKUP (in demo)
   ═══════════════════════════════════════════════════════════════ */
.kg-booking-mock {
    background: #0F1B29;
    color: #f2f6fb;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 22px;
    padding: 28px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.kg-booking-mock[data-theme="light"] {
    background: #fff;
    color: #122032;
    border-color: rgba(18,32,50,0.15);
}

.kg-theme-toggle {
    position: absolute;
    top: -14px;
    left: 18px;
    z-index: 6;
    width: 44px; height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.kg-booking-mock[data-theme="light"] .kg-theme-toggle {
    background: rgba(18,32,50,0.04);
    border-color: rgba(18,32,50,0.15);
}

.kg-today-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #D4A017;
}
.kg-booking-mock[data-theme="light"] .kg-today-banner {
    background: rgba(212, 160, 23, 0.08);
}
.kg-today-banner strong { color: inherit; }

.kg-form-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 6px;
}
.kg-form-desc {
    font-size: 0.9rem;
    color: rgba(226, 236, 246, 0.78);
    margin: 0 0 22px;
}
.kg-booking-mock[data-theme="light"] .kg-form-desc {
    color: rgba(18, 32, 50, 0.72);
}

/* Progress Header */
.kg-progress-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
}
.kg-booking-mock[data-theme="light"] .kg-progress-header {
    background: rgba(18, 32, 50, 0.04);
}

.kg-progress-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.kg-step-counter {
    font-weight: 800;
    font-size: 1.1rem;
}
.kg-step-current { color: #D4A017; }
.kg-step-separator { color: rgba(255,255,255,0.4); margin: 0 4px; }
.kg-step-label {
    font-size: 0.85rem;
    color: rgba(226, 236, 246, 0.78);
}
.kg-booking-mock[data-theme="light"] .kg-step-label {
    color: rgba(18, 32, 50, 0.72);
}

.kg-progress-bar {
    flex: 1;
    position: relative;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.kg-booking-mock[data-theme="light"] .kg-progress-bar {
    background: rgba(18,32,50,0.08);
}
.kg-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #D4A017, #E87A20);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.kg-progress-dots {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.kg-progress-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.kg-booking-mock[data-theme="light"] .kg-progress-dot {
    background: rgba(18,32,50,0.3);
}
.kg-progress-dot.is-active {
    background: #D4A017;
    box-shadow: 0 0 8px #D4A017;
    transform: scale(1.3);
}

/* Form */
.kg-booking-form { padding-top: 10px; }
.kg-honeypot {
    position: absolute;
    right: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.kg-step-panel { display: none; }
.kg-step-panel.is-active {
    display: block;
    animation: kgFade 0.3s ease;
}
@keyframes kgFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.kg-step-panel legend {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 14px;
    padding: 0;
}

/* Topic list */
.kg-topic-list {
    display: grid;
    gap: 10px;
}
.kg-topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    transition: 0.25s;
}
.kg-booking-mock[data-theme="light"] .kg-topic-item {
    border-color: rgba(18,32,50,0.15);
    background: rgba(18,32,50,0.04);
}
.kg-topic-item:hover {
    border-color: #D4A017;
}
.kg-topic-item.is-selected {
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
}
.kg-topic-item input { accent-color: #E87A20; }
.kg-topic-info { flex: 1; }
.kg-topic-info strong { display: block; font-size: 0.95rem; }
.kg-topic-info small {
    font-size: 0.8rem;
    color: rgba(226,236,246,0.78);
}
.kg-topic-price {
    font-weight: 800;
    color: #D4A017;
    font-size: 0.92rem;
}
.kg-topic-price.free { color: #7CF0AE; }

/* Form fields */
.kg-fields-box {
    display: grid;
    gap: 14px;
}
.kg-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.kg-field input,
.kg-field select {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: inherit;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
}
.kg-booking-mock[data-theme="light"] .kg-field input,
.kg-booking-mock[data-theme="light"] .kg-field select {
    background: #F6F8FB;
    border-color: rgba(18,32,50,0.15);
    color: #122032;
}
.kg-field input:focus,
.kg-field select:focus {
    outline: 0;
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.2);
}

/* Calendar */
.kg-cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.kg-cal-nav {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
    color: inherit;
    font-size: 1.1rem;
}
.kg-booking-mock[data-theme="light"] .kg-cal-nav {
    border-color: rgba(18,32,50,0.15);
    background: rgba(18,32,50,0.04);
}
.kg-cal-nav:hover {
    border-color: #D4A017;
    color: #D4A017;
}
.kg-cal-title {
    font-weight: 800;
}
.kg-cal-modes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}
.kg-cal-mode {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
    color: rgba(226,236,246,0.78);
    border-radius: 999px;
    padding: 4px 18px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}
.kg-cal-mode.on {
    background: linear-gradient(135deg, #D4A017, #E87A20);
    color: #fff;
    border-color: transparent;
}

.kg-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}
.kg-cal-dow {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(226,236,246,0.78);
    padding: 4px 0;
    font-weight: 700;
}
.kg-cal-day {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
    color: inherit;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.kg-cal-day:hover { border-color: #D4A017; }
.kg-cal-day.is-today {
    border-color: #E87A20;
    color: #E87A20;
}
.kg-cal-day.is-selected {
    background: linear-gradient(135deg, #D4A017, #E87A20);
    color: #fff;
    border: 0;
}

.kg-slots {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.kg-slot {
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
    color: inherit;
    font-size: 0.88rem;
    font-family: inherit;
}
.kg-slot:hover:not(:disabled) { border-color: #D4A017; }
.kg-slot.is-selected {
    background: linear-gradient(135deg, #D4A017, #E87A20);
    color: #fff;
    border: 0;
}
.kg-slot:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Type cards */
.kg-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.kg-type-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    transition: 0.25s;
    text-align: center;
    position: relative;
}
.kg-type-card:hover { border-color: #D4A017; }
.kg-type-card.is-selected {
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
}
.kg-type-card input { position: absolute; opacity: 0; }
.kg-type-card small { color: rgba(226,236,246,0.78); }

/* Payment */
.kg-pay-methods {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.kg-pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    transition: 0.25s;
}
.kg-pay-method:hover { border-color: #D4A017; }
.kg-pay-method.is-selected {
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
}
.kg-pay-method input { accent-color: #E87A20; }
.kg-pay-method strong { flex: 1; font-size: 0.95rem; }
.kg-pay-method small { font-size: 0.8rem; color: rgba(226,236,246,0.78); }

.kg-payment-box {
    margin-top: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 16px;
}
.kg-payment-box h4 { margin: 0 0 10px; }
.kg-payment-note {
    font-size: 0.82rem;
    color: rgba(226,236,246,0.78);
    margin: 0;
}

/* Summary */
.kg-summary {
    margin-top: 14px;
    font-size: 0.88rem;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    min-height: 18px;
    word-break: break-word;
}

.kg-form-msg {
    margin: 12px 0 0;
    font-weight: 700;
    min-height: 22px;
    white-space: pre-line;
    font-size: 0.95rem;
}

/* Buttons */
.kg-form-nav {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.kg-btn-primary, .kg-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    border: 0;
    background: linear-gradient(135deg, #D4A017, #E87A20);
    color: #fff;
    box-shadow: 0 8px 30px rgba(212,160,23,0.35);
    font-family: inherit;
    transition: 0.25s;
}
.kg-btn-primary:hover, .kg-next:hover { transform: translateY(-2px); }

.kg-btn-ghost, .kg-prev {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    border: 1px solid rgba(255,255,255,0.16);
    background: transparent;
    color: inherit;
    font-family: inherit;
}
.kg-btn-ghost:hover, .kg-prev:hover {
    border-color: #D4A017;
    color: #D4A017;
}

/* Success screen */
.kg-success {
    text-align: center;
    padding: 24px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #D4A017;
    border-radius: 18px;
    margin-top: 14px;
}
.kg-success-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 6px;
}
.kg-success-title {
    color: #D4A017;
    margin: 0 0 14px;
    font-size: 1.15rem;
}
.kg-success-meta {
    display: grid;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 12px;
    padding: 14px;
    margin: 14px 0;
    font-size: 0.9rem;
    text-align: right;
}
.kg-success-meta > div {
    display: flex;
    justify-content: space-between;
}
.kg-success-meta span { color: rgba(226,236,246,0.78); }
.kg-success-meta strong { color: #D4A017; }

/* Credit footer */
.kg-credit {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 9px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.85rem;
    font-weight: 600;
    direction: ltr;
    position: relative;
}
.kg-credit strong { color: #D4A017; }
.kg-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #D4A017;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: Georgia, serif;
    font-style: italic;
    padding: 0;
}
.kg-info-btn:hover {
    border-color: #D4A017;
    transform: scale(1.15);
}
.kg-info-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 56px));
    background: #0e1826;
    border: 1px solid #D4A017;
    border-radius: 14px;
    padding: 18px 20px;
    z-index: 50;
    box-shadow: 0 18px 50px rgba(0,0,0,0.4);
    text-align: center;
    direction: rtl;
    font-size: 0.84rem;
    line-height: 1.9;
}
.kg-info-popup p { margin: 0 0 10px; }
.kg-info-popup p:last-child { margin: 0; }
.kg-info-popup strong { color: #D4A017; }
.kg-info-close {
    position: absolute;
    top: 6px;
    left: 8px;
    background: none;
    border: 0;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 4px;
}
.kg-info-copy {
    font-size: 0.78rem;
    color: rgba(226,236,246,0.88);
    border-top: 1px dashed rgba(255,255,255,0.16);
    padding-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN MOCKUP
   ═══════════════════════════════════════════════════════════════ */
.kg-admin-mock {
    display: grid;
    grid-template-columns: 215px 1fr;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    overflow: hidden;
    min-height: 520px;
}

.ap-sidebar {
    background: #1d2327;
    color: #c3c4c7;
    padding: 14px 0;
}
.ap-brand {
    padding: 4px 16px 12px;
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
    border-bottom: 1px solid #2c3338;
    margin-bottom: 8px;
}
.ap-menu {
    display: flex;
    flex-direction: column;
}
.ap-menu-item {
    display: flex;
    gap: 9px;
    align-items: center;
    width: 100%;
    text-align: right;
    background: none;
    border: 0;
    color: #c3c4c7;
    font-family: inherit;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-right: 3px solid transparent;
    transition: 0.15s;
}
.ap-menu-item:hover { color: #72aee6; }
.ap-menu-item.active {
    background: #2271b1;
    color: #fff;
    border-right-color: #72aee6;
}

.ap-main {
    padding: 16px 18px;
    min-width: 0;
}

.ap-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ap-topbar h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #1d2327;
}
.ap-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-right: auto;
}
.ap-stats .stat {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3c434a;
}
.ap-stats .stat b { color: #d4af37; }

.apt {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dcdcde;
    font-size: 0.82rem;
    margin-bottom: 16px;
}
.apt th {
    background: #fff;
    text-align: right;
    padding: 9px 10px;
    border-bottom: 2px solid #dcdcde;
    font-size: 0.8rem;
    color: #1d2327;
}
.apt td {
    padding: 9px 10px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
    color: #1d2327;
}
.apt tr:nth-child(even) td { background: #f6f7f7; }

.ap-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}
.ap-badge.paid {
    background: #d1fae5;
    color: #065f46;
}
.ap-badge.pending {
    background: #fef3c7;
    color: #92400e;
}
.ap-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.ap-footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ap-stat-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.ap-stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 2px;
}
.ap-stat-label {
    font-size: 0.72rem;
    color: #5a5343;
}

/* ═══════════════════════════════════════════════════════════════
   DEMO NOTE
   ═══════════════════════════════════════════════════════════════ */
.demo-note-section {
    padding: 50px 0 80px;
}
.demo-note-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 14px;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.demo-note-card h3 {
    color: var(--gold);
    margin: 0 0 12px;
}
.demo-note-card p {
    color: var(--text-soft);
    margin: 0 0 10px;
    line-height: 1.85;
}

/* ═══════════════════════════════════════════════════════════════
   DOCS PAGE
   ═══════════════════════════════════════════════════════════════ */
.docs-hero {
    padding: 80px 0 30px;
    text-align: center;
    background: var(--space-deep);
}

.docs-section {
    padding: 30px 0 80px;
}

.docs-toc {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 30px;
}
.docs-toc h3 {
    color: var(--gold);
    margin: 0 0 12px;
    font-size: 1rem;
}
.docs-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}
.docs-toc a {
    color: var(--text-soft);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.docs-toc a:hover { color: var(--gold); }

.docs-article {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    scroll-margin-top: 80px;
}

.docs-article h2 {
    color: var(--text-bright);
    font-size: 1.6rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--grad);
    color: #0a0e2a;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
}

.docs-article h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin: 20px 0 10px;
    padding-right: 12px;
    border-right: 3px solid var(--gold);
}

.docs-article p {
    color: var(--text-soft);
    line-height: 1.95;
    margin-bottom: 12px;
}

.docs-article p strong { color: var(--text-bright); }

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}
.docs-table th {
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    padding: 10px 14px;
    text-align: right;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(212,175,55,0.15);
}
.docs-table td {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-soft);
    font-size: 0.9rem;
}
.docs-table td.c { text-align: center; }
.docs-table td strong { color: var(--text-bright); }

.docs-steps {
    list-style: none;
    counter-reset: s;
    padding: 0;
    margin: 14px 0;
}
.docs-steps li {
    counter-increment: s;
    position: relative;
    padding: 12px 44px 12px 14px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.15);
    border-right: 3px solid var(--gold);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.8;
}
.docs-steps li::before {
    content: counter(s);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    background: var(--grad);
    color: #0a0e2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.docs-steps li strong { color: var(--text-bright); }

.docs-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.docs-info-grid > div {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 14px;
}
.docs-info-grid b {
    display: block;
    color: var(--gold);
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.docs-info-grid span {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.docs-code {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 6px;
    padding: 12px 18px;
    margin: 10px 0;
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--gold-light);
}

.docs-note {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 14px 0;
    font-size: 0.92rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-right-width: 4px;
}
.docs-note strong { display: block; margin-bottom: 4px; }
.docs-note-success {
    background: rgba(22, 163, 74, 0.1);
    border-right-color: #16a34a;
    color: #86efac;
}
.docs-note-success strong { color: #4ade80; }
.docs-note-danger {
    background: rgba(220, 38, 38, 0.1);
    border-right-color: #dc2626;
    color: #fca5a5;
}
.docs-note-danger strong { color: #f87171; }

.docs-faq {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212,175,55,0.1);
    border-right: 3px solid var(--gold);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.docs-faq h4 {
    color: var(--text-bright);
    font-size: 0.98rem;
    margin: 0 0 6px;
}
.docs-faq p {
    color: var(--text-soft);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--space-deep);
    color: var(--text-soft);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
}

.site-footer-inner {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-branding {
    text-align: center;
}

.footer-logo {
    width: 60px; height: 60px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.footer-title {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.footer-title .brand-fa {
    color: var(--gold);
    margin-right: 6px;
}

.footer-slogan {
    font-style: italic;
    color: var(--gold);
    margin: 0;
    font-size: 0.95rem;
}

.footer-meta {
    text-align: center;
}

.footer-text,
.footer-author,
.footer-iran {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 6px;
    line-height: 1.7;
}

.footer-author strong { color: var(--gold); }

.footer-navigation {
    margin: 24px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 16px 0;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--text-soft);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-menu a:hover { color: var(--gold); }

.site-info {
    margin-top: 24px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}
.copyright small {
    color: var(--text-muted);
    opacity: 0.7;
}
.copyright strong { color: var(--gold); }

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

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-title-fa { font-size: 1.6rem; }
    .hero-slogan { font-size: 0.95rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .section-title { font-size: 1.6rem; }
    .iran-section h2 { font-size: 1.8rem; }
    .demo-cta-section h2 { font-size: 1.5rem; }

    .orbit-1 { width: 400px; height: 400px; }
    .orbit-2 { width: 600px; height: 600px; }
    .orbit-3 { width: 800px; height: 800px; }

    .site-header-inner { gap: 12px; }
    .site-branding-text { display: none; }
    .header-cta { display: none; }

    .menu-toggle {
        display: inline-flex;
        margin-right: auto;
    }
    .main-navigation {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--space-mid);
        padding: 20px;
        transition: right 0.3s;
        z-index: 99;
    }
    .main-navigation.active { right: 0; }
    .nav-menu {
        flex-direction: column;
        gap: 4px;
    }

    .kg-booking-mock { padding: 22px 16px; }
    .kg-progress-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .kg-progress-bar { width: 100%; }

    .kg-type-cards { grid-template-columns: 1fr; }
    .kg-form-nav { flex-wrap: wrap; }
    .kg-form-nav .kg-next, .kg-form-nav .kg-prev { flex: 1; justify-content: center; }

    .kg-admin-mock { grid-template-columns: 1fr; }
    .ap-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    .ap-brand { display: none; }
    .ap-menu {
        flex-direction: row;
    }
    .ap-menu-item {
        white-space: nowrap;
        border-right: 0;
        border-bottom: 3px solid transparent;
    }
    .ap-menu-item.active { border-bottom-color: #72aee6; }

    .apt { font-size: 0.75rem; }
    .apt th, .apt td { padding: 6px 8px; }
    .ap-footer-stats { grid-template-columns: 1fr 1fr; }

    .docs-article { padding: 24px 18px; }
    .docs-article h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-title-fa { font-size: 1.3rem; }
    .hero-badges { gap: 6px; }
    .badge-pill { font-size: 0.75rem; padding: 5px 12px; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT DESIGNER SECTION
   ═══════════════════════════════════════════════════════════════ */
.designer-section {
    background: linear-gradient(180deg, var(--space-deep) 0%, var(--space-mid) 100%);
    padding: 80px 0;
    text-align: center;
}

.designer-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.designer-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.designer-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
    position: relative;
}

.designer-avatar::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: pulseRing 3s ease-in-out infinite;
}

.avatar-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #060818;
    letter-spacing: 2px;
}

.designer-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.designer-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 6px;
    line-height: 1.3;
}

.designer-name-fa {
    color: var(--gold);
    margin-right: 10px;
    font-weight: 700;
}

.designer-role {
    color: var(--gold);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.designer-bio {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.95;
    margin: 0 0 14px;
    text-align: justify;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact-section {
    background: var(--space-deep);
    text-align: center;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 40px 0 28px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-right: 4px solid var(--gold);
    border-radius: 14px;
    padding: 24px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: right;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.contact-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    background: var(--grad-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
}

.contact-content b {
    display: block;
    color: var(--text-bright);
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.contact-content span {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.7;
}

.contact-note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 18px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-note p {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — new sections
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .designer-card {
        padding: 30px 22px;
    }

    .designer-avatar {
        width: 80px;
        height: 80px;
    }

    .avatar-text {
        font-size: 1.7rem;
    }

    .designer-name {
        font-size: 1.5rem;
    }

    .designer-bio {
        font-size: 0.88rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 22px 18px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }

    .contact-content {
        text-align: center;
    }

    .contact-note {
        padding: 14px 18px;
    }

    .contact-note p {
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BADGE: نسخه پایه (Base Edition)
   ═══════════════════════════════════════════════════════════════ */
.badge-base {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #060818 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.6);
}

/* Demo hero badges */
.demo-hero-badges,
.docs-hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   VERSIONS SECTION
   ═══════════════════════════════════════════════════════════════ */
.versions-section {
    background: linear-gradient(180deg, var(--space-mid) 0%, var(--space-deep) 100%);
    text-align: center;
    padding: 80px 0;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.version-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 32px 26px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.version-card.version-current {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
    transform: scale(1.03);
}

.version-card.version-future {
    opacity: 0.85;
}

.version-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.version-card.version-current:hover {
    transform: scale(1.03) translateY(-6px);
}

.version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.version-card.version-current .version-badge {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #060818;
    border-color: transparent;
}

.version-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
    display: block;
}

.version-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 6px;
}

.version-card.version-current .version-name {
    color: var(--gold);
}

.version-tagline {
    color: var(--text-soft);
    font-size: 0.88rem;
    margin: 0 0 20px;
    font-style: italic;
}

.version-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: right;
}

.version-features li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-soft);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    line-height: 1.6;
}

.version-features li:last-child {
    border-bottom: none;
}

.version-status {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
}

.version-card.version-current .version-status {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.4);
    color: #4ade80;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — versions section
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .versions-grid {
        grid-template-columns: 1fr;
    }

    .version-card.version-current {
        transform: none;
    }

    .version-card.version-current:hover {
        transform: translateY(-6px);
    }

    .version-card {
        padding: 26px 20px;
    }

    .version-name {
        font-size: 1.2rem;
    }

    .version-features li {
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HERO CTA GROUP — دو دکمه کنار هم
   ═══════════════════════════════════════════════════════════════ */
.hero-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-social {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--text-bright);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.hero-cta-social:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER SOCIAL BUTTON
   ═══════════════════════════════════════════════════════════════ */
.btn-social {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.25s;
}
.btn-social:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE CONTENT SECTION (editable via Classic Editor)
   ═══════════════════════════════════════════════════════════════ */
.page-content-section {
    background: var(--space-deep);
    padding: 60px 0;
}

.editable-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    padding: 32px 36px;
}

.editable-content .entry-content {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
}

.editable-content .entry-content h1,
.editable-content .entry-content h2,
.editable-content .entry-content h3 {
    color: var(--text-bright);
    margin: 20px 0 10px;
}

.editable-content .entry-content h2 {
    font-size: 1.5rem;
    padding-right: 12px;
    border-right: 3px solid var(--gold);
}

.editable-content .entry-content p {
    margin: 0 0 14px;
}

.editable-content .entry-content a {
    color: var(--gold);
    text-decoration: underline;
}

.editable-content .entry-content ul,
.editable-content .entry-content ol {
    padding-right: 22px;
    margin: 0 0 14px;
}

.editable-content .entry-content li {
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY CAROUSEL — موکاپ با دکمه چپ/راست
   ═══════════════════════════════════════════════════════════════ */
.gallery-section {
    background: linear-gradient(180deg, var(--space-deep) 0%, var(--space-mid) 100%);
    text-align: center;
    padding: 80px 0;
}

.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px auto;
    max-width: 1000px;
}

.gallery-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.gallery-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s;
    padding: 10px;
}

.gallery-slide.is-active {
    opacity: 1;
}

/* Device frames */
.device-frame {
    position: relative;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.device-desktop {
    width: 100%;
    max-width: 800px;
    border-radius: 14px;
}

.device-desktop .device-screen {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.device-desktop .device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Browser bar on desktop */
.device-desktop::before {
    content: '';
    display: block;
    height: 24px;
    background: #2a2a3e;
    border-radius: 8px 8px 0 0;
    position: relative;
    background-image:
        radial-gradient(circle 4px at 16px 12px, #ff5f57, #ff5f57),
        radial-gradient(circle 4px at 32px 12px, #ffbd2e, #ffbd2e),
        radial-gradient(circle 4px at 48px 12px, #28ca42, #28ca42);
    background-repeat: no-repeat;
}

.device-desktop .device-screen {
    border-radius: 0 0 8px 8px;
}

.device-mobile {
    width: 280px;
    border-radius: 32px;
    padding: 12px;
    background: #1a1a2e;
    border: 3px solid #2a2a3e;
}

.device-mobile .device-screen {
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9 / 19.5;
}

.device-mobile .device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile notch */
.device-mobile::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #1a1a2e;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.gallery-caption {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

/* Navigation buttons */
.gallery-nav {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
    z-index: 5;
}

.gallery-nav:hover {
    background: var(--grad);
    color: #060818;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.gallery-prev { order: 1; }
.gallery-viewport { order: 2; }
.gallery-next { order: 3; }

/* Dots */
.gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gallery-dot.is-active {
    background: var(--gold);
    transform: scale(1.4);
    box-shadow: 0 0 8px var(--gold);
}

.gallery-counter {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 10px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL RESPONSIBILITY SECTION
   ═══════════════════════════════════════════════════════════════ */
.social-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(232, 122, 32, 0.06) 0%, transparent 50%),
        var(--space-deep);
    padding: 80px 0;
    text-align: center;
}

.social-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 48px 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--orange), var(--gold), transparent);
}

.social-icon-big {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 20px;
    animation: pulseSocial 3s ease-in-out infinite;
}

@keyframes pulseSocial {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.social-section .section-tag {
    margin-bottom: 8px;
}

.social-content {
    text-align: justify;
    max-width: 700px;
    margin: 0 auto 32px;
}

.social-content > p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
    margin: 0 0 24px;
}

.social-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.social-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
}

.social-feature:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.social-feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.social-feature b {
    color: var(--text-bright);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
}

.social-feature p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   DESIGNER AVATAR — با لوگو به جای حروف
   ═══════════════════════════════════════════════════════════════ */
.designer-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
    position: relative;
    padding: 4px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--space-deep);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — gallery
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gallery-carousel {
        gap: 8px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .gallery-viewport {
        padding: 16px;
        min-height: 400px;
    }

    .device-mobile {
        width: 220px;
    }

    .social-card {
        padding: 30px 20px;
    }

    .social-icon-big {
        font-size: 2.5rem;
    }

    .social-features {
        grid-template-columns: 1fr 1fr;
    }

    .header-cta .btn-social .header-cta-text {
        display: none;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group .hero-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .social-features {
        grid-template-columns: 1fr;
    }

    .gallery-viewport {
        padding: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════════════════════════════════ */
.btn-theme-toggle {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    cursor: pointer;
}
.btn-theme-toggle:hover {
    background: var(--grad);
    color: #060818;
    border-color: transparent;
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME (تم روشن) — رعایت سیستم دیزاین و خوانایی
   ═══════════════════════════════════════════════════════════════ */
body.kg-theme-light {
    --space-deep: #f4f1ea;
    --space-mid: #ffffff;
    --space-light: #faf8f3;

    --text-bright: #1d2327;
    --text-soft: #3c434a;
    --text-muted: #6b7280;

    --nebula-1: rgba(212, 175, 55, 0.08);
    --nebula-2: rgba(232, 122, 32, 0.05);
    --star: rgba(0, 0, 0, 0.3);

    background: var(--space-deep);
    color: var(--text-bright);
}

/* Header in light mode */
body.kg-theme-light .site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

body.kg-theme-light .nav-menu li a {
    color: var(--text-soft);
}
body.kg-theme-light .nav-menu li a:hover,
body.kg-theme-light .nav-menu li.current-menu-item a {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-deep);
}

/* Hero in light mode */
body.kg-theme-light .hero-galaxy {
    background:
        radial-gradient(ellipse at 20% 30%, var(--nebula-1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--nebula-2) 0%, transparent 50%),
        linear-gradient(180deg, #f4f1ea 0%, #ffffff 50%, #f4f1ea 100%);
}

body.kg-theme-light .hero-galaxy::before {
    opacity: 0.3;
}

body.kg-theme-light .orbit {
    border-color: rgba(212, 175, 55, 0.2);
}

/* Hero title gradient — darker for light mode */
body.kg-theme-light .hero-title {
    background: linear-gradient(135deg, #1d2327 0%, #b8941e 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.kg-theme-light .hero-title-fa {
    color: var(--gold-deep);
}

body.kg-theme-light .hero-slogan {
    color: var(--text-soft);
}
body.kg-theme-light .hero-slogan .quote {
    color: var(--gold-deep);
}

body.kg-theme-light .hero-subtitle {
    color: var(--text-muted);
}

body.kg-theme-light .badge-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-bright);
}

body.kg-theme-light .badge-iran {
    background: linear-gradient(135deg, rgba(35, 159, 64, 0.15), rgba(255, 255, 255, 0.5), rgba(218, 0, 0, 0.15));
    color: #1d2327;
    border-color: rgba(35, 159, 64, 0.3);
}

body.kg-theme-light .hero-cta-social {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-bright);
}
body.kg-theme-light .hero-cta-social:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-deep);
}

/* Today banner in light mode */
body.kg-theme-light .today-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(232, 122, 32, 0.08));
    border-color: rgba(212, 175, 55, 0.3);
}
body.kg-theme-light .today-banner .container {
    color: var(--gold-deep);
}
body.kg-theme-light .today-date {
    color: var(--text-bright);
}

/* Sections in light mode */
body.kg-theme-light .features-section,
body.kg-theme-light .stats-section,
body.kg-theme-light .usecases-section,
body.kg-theme-light .demo-section,
body.kg-theme-light .docs-section,
body.kg-theme-light .gallery-section {
    background: var(--space-deep);
}

body.kg-theme-light .stats-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4f1ea 100%);
}

body.kg-theme-light .section-title {
    color: var(--text-bright);
}

body.kg-theme-light .section-desc {
    color: var(--text-soft);
}

/* Feature cards in light mode */
body.kg-theme-light .feature {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .feature:hover {
    background: #faf8f3;
    border-color: var(--gold);
}
body.kg-theme-light .feature h3 {
    color: var(--text-bright);
}
body.kg-theme-light .feature p {
    color: var(--text-soft);
}

/* Stats in light mode */
body.kg-theme-light .stat-block {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .stat-label {
    color: var(--text-soft);
}

/* Use cases in light mode */
body.kg-theme-light .usecase {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .usecase:hover {
    border-color: var(--gold);
    background: #faf8f3;
}
body.kg-theme-light .usecase b {
    color: var(--text-bright);
}
body.kg-theme-light .usecase p {
    color: var(--text-muted);
}

/* Versions in light mode */
body.kg-theme-light .versions-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4f1ea 100%);
}
body.kg-theme-light .version-card {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .version-card.version-current {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
}
body.kg-theme-light .version-name {
    color: var(--text-bright);
}
body.kg-theme-light .version-card.version-current .version-name {
    color: var(--gold-deep);
}
body.kg-theme-light .version-tagline {
    color: var(--text-soft);
}
body.kg-theme-light .version-features li {
    color: var(--text-soft);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.kg-theme-light .version-status {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-soft);
}

/* Iran section in light mode */
body.kg-theme-light .iran-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(35, 159, 64, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(218, 0, 0, 0.06) 0%, transparent 50%),
        #f4f1ea;
}
body.kg-theme-light .iran-section h2 {
    color: var(--text-bright);
}
body.kg-theme-light .iran-section p {
    color: var(--text-soft);
}

/* Demo CTA in light mode */
body.kg-theme-light .demo-cta-section {
    background: linear-gradient(135deg, #ffffff, #faf8f3);
}
body.kg-theme-light .demo-cta-section h2 {
    color: var(--text-bright);
}
body.kg-theme-light .demo-cta-section p {
    color: var(--text-soft);
}

/* Designer section in light mode */
body.kg-theme-light .designer-section {
    background: linear-gradient(180deg, #f4f1ea 0%, #ffffff 100%);
}
body.kg-theme-light .designer-card {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
body.kg-theme-light .designer-name {
    color: var(--text-bright);
}
body.kg-theme-light .designer-name-fa {
    color: var(--gold-deep);
}
body.kg-theme-light .designer-role {
    color: var(--gold-deep);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}
body.kg-theme-light .designer-bio {
    color: var(--text-soft);
}
body.kg-theme-light .designer-tag {
    color: var(--gold-deep);
}

/* Contact section in light mode */
body.kg-theme-light .contact-section {
    background: #f4f1ea;
}
body.kg-theme-light .contact-card {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .contact-card:hover {
    background: #faf8f3;
    border-color: var(--gold);
}
body.kg-theme-light .contact-content b {
    color: var(--text-bright);
}
body.kg-theme-light .contact-content span {
    color: var(--text-soft);
}
body.kg-theme-light .contact-note {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
}
body.kg-theme-light .contact-note p {
    color: var(--text-soft);
}

/* Social section in light mode */
body.kg-theme-light .social-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(232, 122, 32, 0.04) 0%, transparent 50%),
        #f4f1ea;
}
body.kg-theme-light .social-card {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
body.kg-theme-light .social-content > p {
    color: var(--text-soft);
}
body.kg-theme-light .social-feature {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(212, 175, 55, 0.2);
}
body.kg-theme-light .social-feature:hover {
    background: rgba(212, 175, 55, 0.08);
}
body.kg-theme-light .social-feature b {
    color: var(--text-bright);
}
body.kg-theme-light .social-feature p {
    color: var(--text-muted);
}

/* Gallery in light mode */
body.kg-theme-light .gallery-section {
    background: linear-gradient(180deg, #f4f1ea 0%, #ffffff 100%);
}
body.kg-theme-light .gallery-viewport {
    background: rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .device-frame {
    background: #2a2a3e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
body.kg-theme-light .gallery-caption {
    color: var(--text-soft);
}
body.kg-theme-light .gallery-counter {
    color: var(--text-muted);
}
body.kg-theme-light .gallery-dot {
    background: rgba(0, 0, 0, 0.2);
}

/* Editable content in light mode */
body.kg-theme-light .editable-content {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .editable-content .entry-content {
    color: var(--text-soft);
}
body.kg-theme-light .editable-content .entry-content h1,
body.kg-theme-light .editable-content .entry-content h2,
body.kg-theme-light .editable-content .entry-content h3 {
    color: var(--text-bright);
}

/* Footer in light mode */
body.kg-theme-light .site-footer {
    background: #1d2327;
    color: rgba(255, 255, 255, 0.85);
}
body.kg-theme-light .footer-text,
body.kg-theme-light .footer-author,
body.kg-theme-light .footer-iran {
    color: rgba(255, 255, 255, 0.7);
}
body.kg-theme-light .footer-author strong {
    color: var(--gold);
}
body.kg-theme-light .copyright {
    color: rgba(255, 255, 255, 0.5);
}
body.kg-theme-light .copyright strong {
    color: var(--gold);
}

/* Tab buttons in light mode */
body.kg-theme-light .tab-btn {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.kg-theme-light .tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
}

/* Browser frame in light mode */
body.kg-theme-light .browser-frame {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
body.kg-theme-light .browser-bar {
    background: rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.kg-theme-light .browser-url {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
}
body.kg-theme-light .browser-body {
    background: #f4f1ea;
    color: var(--text-bright);
}

/* ═══════════════════════════════════════════════════════════════
   EDITABLE CONTENT — استایل محتوای ادیتور کلاسیک (Premium Design)
   تمام کلاس‌های kg-* با دیزاین حرفه‌ای: padding بیشتر، hover effect، border نازک
   ═══════════════════════════════════════════════════════════════ */
.page-content-section {
    background: var(--space-deep);
    padding: 80px 0 100px;
    min-height: 400px;
    position: relative;
}

.page-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(50%);
}

.page-content-section .container {
    max-width: 1180px;
}

/* ═══ Typography ═══ */
.page-content-section h2 {
    color: var(--text-bright);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 60px 0 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--gold);
    line-height: 1.3;
    text-align: center;
    position: relative;
}

.page-content-section h2:first-child {
    margin-top: 0;
}

.page-content-section h3 {
    color: var(--gold);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 28px 0 14px;
    line-height: 1.4;
}

.page-content-section p {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 2;
    margin: 0 0 16px;
}

.page-content-section ul,
.page-content-section ol {
    color: var(--text-soft);
    padding-right: 22px;
    margin: 0 0 20px;
    line-height: 2;
}

.page-content-section li {
    margin-bottom: 8px;
}

.page-content-section a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.2s;
}

.page-content-section a:hover {
    color: var(--gold-light);
}

.page-content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES GRID — Premium card design
   ═══════════════════════════════════════════════════════════════ */
.kg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.kg-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.kg-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s;
}

.kg-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.kg-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.kg-feature-card:hover::before {
    transform: scaleX(1);
}

.kg-feature-card:hover::after {
    opacity: 1;
}

.kg-feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--text-bright);
    transition: color 0.3s;
}

.kg-feature-card:hover h3 {
    color: var(--gold);
}

.kg-feature-card p {
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.85;
    color: var(--text-soft);
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY GRID — ساده اما حرفه‌ای
   ═══════════════════════════════════════════════════════════════ */
.kg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.kg-gallery-item {
    text-align: center;
    transition: transform 0.3s;
}

.kg-gallery-item:hover {
    transform: translateY(-4px);
}

.kg-gallery-item img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.35s;
}

.kg-gallery-item:hover img {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

.kg-gallery-item p {
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL BOX — Premium with gradient border
   ═══════════════════════════════════════════════════════════════ */
.kg-social-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.kg-social-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--orange), var(--gold), transparent);
}

.kg-social-box p {
    font-size: 1.02rem;
    line-height: 2;
    margin-bottom: 18px;
}

.kg-social-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.kg-social-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.35s;
}

.kg-social-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.kg-social-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
}

.kg-social-feature b {
    color: var(--text-bright);
    font-size: 0.98rem;
    display: block;
    margin-bottom: 8px;
}

.kg-social-feature p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   STATS GRID — Premium with glow
   ═══════════════════════════════════════════════════════════════ */
.kg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.kg-stat-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.kg-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.kg-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.kg-stat-num {
    font-size: 3rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    position: relative;
}

.kg-stat-label {
    font-size: 0.9rem;
    color: var(--text-soft);
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   VERSIONS GRID — Premium with scale on current
   ═══════════════════════════════════════════════════════════════ */
.kg-versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.kg-version-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.35s;
    position: relative;
}

.kg-version-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.kg-version-card.kg-version-current {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.15);
    transform: scale(1.03);
}

.kg-version-card.kg-version-current:hover {
    transform: scale(1.03) translateY(-8px);
}

.kg-version-card h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: var(--text-bright);
}

.kg-version-card.kg-version-current h3 {
    color: var(--gold);
}

.kg-version-tagline {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0 0 20px;
    font-style: italic;
}

.kg-version-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.kg-version-card li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-soft);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    line-height: 1.6;
}

.kg-version-card li:last-child {
    border-bottom: none;
}

.kg-version-status {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    margin: 0;
}

.kg-version-card.kg-version-current .kg-version-status {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.4);
    color: #4ade80;
}

/* ═══════════════════════════════════════════════════════════════
   DESIGNER CARD — Premium with avatar glow
   ═══════════════════════════════════════════════════════════════ */
.kg-designer-card {
    max-width: 850px;
    margin: 32px auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.kg-designer-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--orange), var(--gold), transparent);
}

.kg-designer-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    padding: 4px;
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.4);
    position: relative;
}

.kg-designer-avatar::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    animation: pulseRing 3s ease-in-out infinite;
}

.kg-designer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--space-deep);
}

.kg-designer-info h3 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.kg-designer-info p {
    text-align: justify;
    max-width: 680px;
    margin: 0 auto 16px;
    line-height: 2;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT GRID — Premium with right border accent
   ═══════════════════════════════════════════════════════════════ */
.kg-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.kg-contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 4px solid var(--gold);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.35s;
}

.kg-contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.kg-contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    background: var(--grad-soft);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kg-contact-card b {
    color: var(--text-bright);
    font-size: 1.08rem;
    display: block;
    margin-bottom: 6px;
}

.kg-contact-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME for editable content
   ═══════════════════════════════════════════════════════════════ */
body.kg-theme-light .page-content-section {
    background: var(--space-deep);
}

body.kg-theme-light .page-content-section h2 {
    color: var(--text-bright);
    border-bottom-color: var(--gold);
}

body.kg-theme-light .page-content-section h3 {
    color: var(--gold-deep);
}

body.kg-theme-light .page-content-section p,
body.kg-theme-light .page-content-section li {
    color: var(--text-soft);
}

body.kg-theme-light .kg-feature-card,
body.kg-theme-light .kg-version-card,
body.kg-theme-light .kg-stat-card,
body.kg-theme-light .kg-contact-card,
body.kg-theme-light .kg-social-feature {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.kg-theme-light .kg-feature-card:hover,
body.kg-theme-light .kg-version-card:hover,
body.kg-theme-light .kg-stat-card:hover,
body.kg-theme-light .kg-contact-card:hover,
body.kg-theme-light .kg-social-feature:hover {
    background: #faf8f3;
    border-color: var(--gold);
    box-shadow: 0 16px 36px rgba(212, 175, 55, 0.12);
}

body.kg-theme-light .kg-feature-card h3,
body.kg-theme-light .kg-version-card h3,
body.kg-theme-light .kg-contact-card b {
    color: var(--text-bright);
}

body.kg-theme-light .kg-feature-card:hover h3 {
    color: var(--gold-deep);
}

body.kg-theme-light .kg-feature-card p,
body.kg-theme-light .kg-version-card li,
body.kg-theme-light .kg-stat-label,
body.kg-theme-light .kg-contact-card p,
body.kg-theme-light .kg-social-feature p {
    color: var(--text-soft);
}

body.kg-theme-light .kg-version-card.kg-version-current {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.1);
}

body.kg-theme-light .kg-version-card.kg-version-current h3 {
    color: var(--gold-deep);
}

body.kg-theme-light .kg-social-box {
    background: rgba(212, 175, 55, 0.03);
    border-color: rgba(212, 175, 55, 0.2);
}

body.kg-theme-light .kg-designer-card {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

body.kg-theme-light .kg-designer-info p {
    color: var(--text-soft);
}

body.kg-theme-light .kg-gallery-item img {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

body.kg-theme-light .kg-contact-icon {
    background: rgba(212, 175, 55, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .kg-features-grid,
    .kg-versions-grid,
    .kg-contact-grid {
        grid-template-columns: 1fr;
    }

    .kg-gallery-grid {
        grid-template-columns: 1fr;
    }

    .kg-version-card.kg-version-current {
        transform: none;
    }

    .kg-version-card.kg-version-current:hover {
        transform: translateY(-8px);
    }

    .kg-social-box {
        padding: 28px 20px;
    }

    .kg-designer-card {
        padding: 32px 20px;
    }

    .page-content-section h2 {
        font-size: 1.6rem;
    }

    .page-content-section {
        padding: 50px 0 70px;
    }
}

@media (max-width: 480px) {
    .kg-feature-card,
    .kg-social-feature,
    .kg-contact-card {
        padding: 24px 18px;
    }

    .page-content-section h2 {
        font-size: 1.4rem;
    }

    .kg-stat-num {
        font-size: 2.2rem;
    }

    .kg-version-card h3,
    .kg-designer-info h3 {
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AUTO-ANCHOR — فاصله از هدر برای anchor links
   ═══════════════════════════════════════════════════════════════ */
.page-content-section h2[id],
.page-content-section [id] {
    scroll-margin-top: 100px;
}

/* برجسته شدن موقت هنگام anchor jump */
.page-content-section h2[id]:target {
    animation: anchorHighlight 2s ease-out;
}

@keyframes anchorHighlight {
    0% { background: rgba(212, 175, 55, 0.15); }
    100% { background: transparent; }
}

/* منوی فعال — وقتی روی anchor هست */
.nav-menu li.current-menu-item a,
.nav-menu li a[href*="#about"]:hover,
.nav-menu li a[href*="#contact"]:hover,
.nav-menu li a[href*="#social"]:hover {
    color: var(--gold);
}
