/* ============================================================
   MissileBlast.cloud – Main Stylesheet
   Dark military-tech aesthetic with neon accent colours
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --bg-darkest: #050810;
    --bg-dark: #0b0f1a;
    --bg-card: #111827;
    --bg-card2: #1a2235;
    --border: #1e2d45;
    --border-glow: #00d4ff44;

    --accent: #00d4ff;
    --accent-dim: #00a3c4;
    --accent-glow: 0 0 20px #00d4ff55;
    --danger: #ff3860;
    --success: #00ff88;
    --warning: #ffd700;

    --text-primary: #e8edf5;
    --text-muted: #7a8ba0;
    --text-dim: #3d4f63;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 3px;
}

/* ── Noise texture overlay ───────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── Grid bg lines ───────────────────────────────────────── */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.4rem;
}

.brand-dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card2);
}

.btn-nav-primary {
    background: var(--accent) !important;
    color: var(--bg-darkest) !important;
    font-weight: 600 !important;
    padding: 0.45rem 1rem !important;
}

.btn-nav-primary:hover {
    background: #00ecff !important;
    box-shadow: var(--accent-glow) !important;
}

.btn-nav-outline {
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
}

.btn-nav-outline:hover {
    border-color: var(--danger) !important;
    color: var(--danger) !important;
    background: transparent !important;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── Dil Toggle Butonu ─────────────────────────────────── */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    background: rgba(0, 212, 255, 0.06) !important;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: var(--bg-darkest);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 212, 255, 0.5);
    color: var(--bg-darkest);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3860, #c41230);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 56, 96, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 56, 96, 0.5);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #00ff88, #00c46e);
    color: var(--bg-darkest);
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    color: var(--bg-darkest);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.08);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-control::placeholder {
    color: var(--text-dim);
}

select.form-control option {
    background: var(--bg-card);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-left: 3px solid;
}

.alert-success {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 56, 96, 0.08);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
}

.table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(30, 45, 69, 0.5);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tr:hover td {
    background: rgba(0, 212, 255, 0.03);
}

.table tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-accent {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-success {
    background: rgba(0, 255, 136, 0.12);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-danger {
    background: rgba(255, 56, 96, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 56, 96, 0.3);
}

.badge-warning {
    background: rgba(255, 215, 0, 0.12);
    color: var(--warning);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ============================================================
   PAGE WRAPPER / LAYOUT
   ============================================================ */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.6rem;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* ─ Hero ─ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 80, 255, 0.06) 0%, transparent 60%),
        var(--bg-darkest);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: rgba(0, 212, 255, 0.06);
    animation: fadeSlideDown 0.8s ease both;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    animation: fadeSlideDown 0.8s 0.1s ease both;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 60%, #0050ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    animation: fadeSlideDown 0.8s 0.2s ease both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideDown 0.8s 0.3s ease both;
}

/* Floating missile animation */
.hero-missile {
    position: absolute;
    font-size: 4rem;
    opacity: 0.12;
    animation: floatMissile 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-missile:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-missile:nth-child(2) {
    top: 60%;
    right: 12%;
    animation-delay: -3s;
    font-size: 2.5rem;
}

.hero-missile:nth-child(3) {
    bottom: 20%;
    left: 25%;
    animation-delay: -5s;
    font-size: 3rem;
}

@keyframes floatMissile {

    0%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    50% {
        transform: translateY(-30px) rotate(-45deg);
    }
}

/* ─ Ad Banners ─ */
.ad-layout {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ad-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    min-height: 400px;
    position: sticky;
    top: 80px;
    color: var(--text-dim);
    font-size: 0.8rem;
    gap: 0.5rem;
}

.ad-banner-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    border: 1px dashed var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ad-main {
    min-width: 0;
}

/* ─ Features Section ─ */
.features-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.08);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─ Stats bar ─ */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: auto;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-disclaimer {
    max-width: 700px;
    margin: 0.5rem auto 0;
    font-style: italic;
    opacity: 0.7;
}

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(0, 212, 255, 0.07) 0%, transparent 60%),
        var(--bg-darkest);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #0050ff);
}

.auth-logo {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.auth-divider {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 1.25rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* ============================================================
   DASHBOARD / USER PANEL
   ============================================================ */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}

.sidebar {
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    padding: 0.5rem 0.75rem;
    display: block;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 0.15rem;
}

.sidebar-link:hover {
    background: var(--bg-card2);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.sidebar-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    padding: 2rem;
    background: var(--bg-darkest);
}

/* Missile/Country selector box */
.sim-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mode-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.mode-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mode-btn.active {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: inset 0 0 16px rgba(0, 212, 255, 0.08);
}

/* missile info panel */
.missile-info {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.missile-stat {
    text-align: center;
}

.missile-stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.missile-stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

/* ============================================================
   MAP CONTAINER
   ============================================================ */
.map-section {
    margin: 1.5rem 0;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.map-instructions {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#mapContainer {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

/* Simulation result overlay */
.sim-result {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.sim-result.show {
    display: flex;
}

.sim-result-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 480px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sim-result-box.success {
    border-color: var(--success);
}

.sim-result-box.fail {
    border-color: var(--danger);
}

.sim-result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.sim-result-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sim-result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}

.sim-result-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sim-result-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

/* Range circle display */
.map-range-indicator {
    font-size: 0.8rem;
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}

.admin-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar .sidebar-item:hover {
    background: var(--bg-card2);
    color: var(--text-primary);
}

.admin-sidebar .sidebar-item.active {
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
    border-left-color: var(--accent);
}

.admin-main {
    padding: 2rem;
}

/* Admin stat cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.05;
    transform: translate(20px, 20px);
}

.admin-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes launchTrail {
    from {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes explosionRing {
    from {
        transform: scale(0);
        opacity: 1;
    }

    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes scanline {
    from {
        top: -10%;
    }

    to {
        top: 110%;
    }
}

/* Scanning animation on map */
.map-scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: var(--radius);
    z-index: 400;
}

.map-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    animation: scanline 3s linear infinite;
    display: none;
}

.map-scan-line.active {
    display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ad-layout {
        grid-template-columns: 1fr;
    }

    .ad-banner {
        display: none;
    }

    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.25rem;
    }

    .sim-controls {
        grid-template-columns: 1fr;
    }

    .missile-info {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-box {
        padding: 1.75rem;
    }

    #mapContainer {
        height: 340px;
    }
}