:root {
    --bg: #050b14;
    --bg2: #081321;
    --card: rgba(10, 22, 37, 0.88);
    --card-border: rgba(105, 174, 255, 0.16);
    --text: #edf6ff;
    --muted: #8fa5ba;
    --primary: #28a9ff;
    --primary2: #176dff;
    --success: #31d69b;
    --danger: #ff5f70;
    --input: rgba(4, 13, 24, 0.78);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family:
        Tahoma,
        "Vazirmatn",
        Arial,
        sans-serif;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(20, 119, 255, 0.22),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #030811 0%,
            #071321 50%,
            #030810 100%
        );
}

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(
            rgba(70, 170, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(70, 170, 255, 0.08) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );
}

.page-shell {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 48px 0 30px;
}

.hero {
    text-align: center;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #aee4ff;
    background: rgba(35, 148, 255, 0.08);
    border: 1px solid rgba(35, 148, 255, 0.2);
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 14px rgba(49, 214, 155, 0.9);
}

.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero p {
    margin: 0 auto;
    max-width: 550px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(44, 172, 255, 0.8),
        transparent
    );
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.eyebrow {
    color: var(--primary);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    direction: ltr;
}

.card-header h2 {
    margin: 5px 0 0;
    font-size: 22px;
}

.lock-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #71caff;
    background: rgba(31, 153, 255, 0.08);
    border: 1px solid rgba(31, 153, 255, 0.16);
    font-size: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #dceafa;
    font-size: 13px;
    font-weight: bold;
}

.field input,
.field select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(119, 157, 193, 0.18);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: var(--input);
    padding: 0 14px;
    font-family: inherit;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.field input::placeholder {
    color: #60758a;
}

.field input:focus,
.field select:focus {
    border-color: rgba(39, 166, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(39, 166, 255, 0.08);
    background: rgba(5, 18, 32, 0.95);
}

.field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.field input[type="tel"] {
    direction: ltr;
    text-align: left;
}

.field small,
#mapError,
#captchaError {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: var(--danger);
    font-size: 11px;
}

.map-section {
    margin-top: 12px;
    padding-top: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: bold;
}

.section-icon {
    color: var(--primary);
    font-size: 21px;
    vertical-align: middle;
}

.iran-only {
    padding: 5px 10px;
    border-radius: 999px;
    color: #76e4bc;
    background: rgba(49, 214, 155, 0.07);
    border: 1px solid rgba(49, 214, 155, 0.14);
    font-size: 10px;
}

.map-description {
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0 12px;
}

#map {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(103, 157, 205, 0.2);
    background: #0b1623;
}

.leaflet-container {
    font-family: Tahoma, Arial, sans-serif;
}

.coordinates {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.coordinates span {
    flex: 1;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 10px;
}

.coordinates b {
    color: #bfe7ff;
    direction: ltr;
    display: inline-block;
}

.captcha-box {
    margin-top: 18px;
    min-height: 95px;
}

.g-recaptcha {
    overflow: hidden;
    border-radius: 4px;
}

button {
    position: relative;
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );
    box-shadow:
        0 12px 28px rgba(20, 112, 255, 0.2);
    transition:
        transform 0.15s,
        filter 0.15s,
        opacity 0.15s;
}

button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.button-icon {
    margin-left: 7px;
}

.result {
    min-height: 25px;
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

.result.success {
    color: var(--success);
}

.result.error {
    color: var(--danger);
}

.security-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.security-item {
    text-align: center;
}

.security-item strong {
    display: block;
    color: #a9dcff;
    font-size: 11px;
}

.security-item span {
    display: block;
    margin-top: 3px;
    color: #5d7388;
    font-size: 9px;
    direction: ltr;
}

footer {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    color: #506579;
    font-size: 9px;
    direction: ltr;
}

/* ─── Radar & Eye decorations ─────────────────────────── */

.h1-with-decorations {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 18px 0 10px;
    direction: ltr;      /* radar چپ، eye راست */
}

.h1-with-decorations h1 {
    margin: 0;
}

/* ── Military Radar ── */

.radar-widget {
    flex-shrink: 0;
}

#mil-radar {
    display: block;
    filter:
        drop-shadow(0 0 10px rgba(0, 220, 50, 0.50))
        drop-shadow(0 0 3px  rgba(0, 180, 40, 0.35));
}

.rdr-blip {
    animation: blipPulse 1.8s ease-in-out infinite;
}

@keyframes blipPulse {
    0%, 100% { opacity: 0.90; }
    50%      { opacity: 0.15; }
}

/* ── Intelligence Eye ── */

.eye-widget {
    flex-shrink: 0;
}

#spy-eye {
    display: block;
    filter:
        drop-shadow(0 0 10px rgba(40, 169, 255, 0.55))
        drop-shadow(0 0 3px  rgba(40, 169, 255, 0.30));
}

/* ─── End decorations ──────────────────────────────────── */

.leaflet-control-zoom a {
    color: #071321 !important;
}

@media (max-width: 600px) {

    .h1-with-decorations {
        gap: 8px;
    }

    #mil-radar {
        width: 62px;
        height: 62px;
    }

    #spy-eye {
        width: 58px;
        height: 44px;
    }

    .page-shell {
        width: min(100% - 18px, 760px);
        padding-top: 25px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    #map {
        height: 330px;
    }

    .security-info {
        grid-template-columns: 1fr;
    }

    .coordinates {
        flex-direction: column;
    }

    .captcha-box {
        overflow-x: auto;
    }
}
