:root {
    --bg: #0b1020;
    --card: rgba(255,255,255,0.08);
    --card-strong: rgba(255,255,255,0.12);
    --text: #eef2ff;
    --muted: #b7c0d8;
    --gold: #d4af37;
    --cyan: #39d0ff;
    --border: rgba(255,255,255,0.12);
}

/* ===== Base ===== */

body {
    font-family: 'Assistant', sans-serif;
    background: radial-gradient(circle at top, #192347 0%, #0b1020 45%, #070b16 100%);
    color: var(--text);
    min-height: 100vh;

    margin: 0;
    padding: 0;
}
/* ===== Navbar ===== */

.mazeoria-nav {
    background: rgba(6, 10, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    font-weight: 800;
}

/* ===== Cards ===== */

.hero-box,
.content-card,
.form-card,
.dashboard-card,
.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
}

/* ===== HERO FIX (חשוב מאוד) ===== */

.hero-box {
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* ❗️ זה התיקון הקריטי */
.hero-box::after {
    content: '';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(57,208,255,0.28), transparent 65%);
    pointer-events: none; /* מונע חסימת קליקים */
}

/* ❗️ מבטיח שהכפתורים מעל הכול */
.hero-box .btn,
.hero-box a {
    position: relative;
    z-index: 10;
}

/* ===== Layout ===== */

.content-card,
.form-card,
.dashboard-card,
.admin-card {
    padding: 1.5rem;
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
}

.text-muted-custom {
    color: var(--muted);
}

/* ===== Buttons ===== */

.btn-gold {
    background: linear-gradient(135deg, #f6d96b, var(--gold));
    color: #1e1a0a;
    border: none;
    font-weight: 700;
}

.btn-gold:hover {
    opacity: 0.95;
}

/* ===== Typography ===== */

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
}

/* ===== Cards ===== */

.feature-card {
    background: var(--card-strong);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem;
}

/* ===== Forms ===== */

.form-control,
.form-select {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
}

.form-control::placeholder {
    color: #c7d0e6;
}

/* FIX dropdown */
.form-select option {
    color: #000;
    background: #fff;
}

/* ===== Status ===== */

.status-pill {
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .9rem;
    font-weight: 700;
}

.status-completed {
    background: rgba(25,135,84,.25);
    color: #9ef0c1;
}

.status-pending {
    background: rgba(255,193,7,.2);
    color: #ffe38a;
}

/* ===== Progress ===== */

.mission-progress {
    height: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.mission-progress .progress-bar {
    background: linear-gradient(135deg, #f6d96b, var(--gold));
    font-weight: 800;
}

/* ===== Animations ===== */

.unlock-box {
    border-radius: 22px;
    padding: 1.6rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.06));
    border: 1px solid rgba(212,175,55,0.3);
}

.unlock-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffe38a;
}

/* ===== Small tweaks ===== */

.footer-note {
    color: var(--muted);
    text-align: center;
}

.mission-section-title {
    color: #ffe38a;
    font-weight: 800;
}
/* ===== Global spacing under navbar ===== */

.page-wrap {
    min-height: calc(100vh - 72px);
    margin-top: 0.4rem !important;
    padding-top: 0 !important;
    padding-bottom: 2rem;
}
/* ===== Global spacing system ===== */

.section-gap {
    margin-bottom: 1.5rem;
}

.section-gap-lg {
    margin-bottom: 2rem;
}

.card-gap > * + * {
    margin-top: 1rem;
}

.hero-box,
.content-card,
.form-card,
.dashboard-card,
.admin-card,
.feature-card,
.game-panel,
.mission-card-glow,
.story-box,
.clue-box,
.unlock-box {
    margin-bottom: 1.25rem;
}

.hero-box:last-child,
.content-card:last-child,
.form-card:last-child,
.dashboard-card:last-child,
.admin-card:last-child,
.feature-card:last-child,
.game-panel:last-child,
.mission-card-glow:last-child,
.story-box:last-child,
.clue-box:last-child,
.unlock-box:last-child {
    margin-bottom: 0;
}

.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5,
.dashboard-card h1,
.dashboard-card h2,
.dashboard-card h3,
.dashboard-card h4,
.dashboard-card h5,
.admin-card h1,
.admin-card h2,
.admin-card h3,
.admin-card h4,
.admin-card h5,
.form-card h1,
.form-card h2,
.form-card h3,
.form-card h4,
.form-card h5,
.hero-box h1,
.hero-box h2,
.hero-box h3,
.hero-box h4,
.hero-box h5 {
    margin-bottom: 1rem;
}

.content-card p:last-child,
.dashboard-card p:last-child,
.admin-card p:last-child,
.form-card p:last-child,
.hero-box p:last-child,
.feature-card p:last-child {
    margin-bottom: 0;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.stats-row {
    gap: 1rem;
}

.table-responsive {
    margin-top: 1rem;
}

.alert {
    margin-bottom: 1rem;
}

form .row.g-3 {
    margin-top: 0;
}

.dashboard-title {
    font-size: 1.8rem; /* בערך חצי מגודל hero */
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-wrap {
        margin-top: .75rem;
        padding-bottom: 1.5rem;
    }

    .hero-box,
    .content-card,
    .form-card,
    .dashboard-card,
    .admin-card,
    .game-panel {
        padding: 1.1rem !important;
    }

    .hero-title {
        margin-bottom: .75rem;
    }

    .section-title {
        margin-bottom: .85rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-row .btn {
        width: 100%;
    }
}