* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #060B16;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
}

.background {
    filter: blur(24px);
    contain: strict;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top, #00D9FF22, transparent 45%),
        radial-gradient(circle at bottom, #5B4BFF22, transparent 45%),
        #060B16;
    z-index: -2;
}

header {
    position: fixed;
    width: 100%;
    top: 25px;
    display: flex;
    justify-content: center;
    padding: 25px;
    z-index: 200;
}

nav {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 60px;
    padding: 10px 28px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
}

.logo {
    font-family: 'Lalezar', sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #00D9FF;
}

ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

a {
    text-decoration: none;
    color: white;
    transition: .3s;
}

a:hover {
    color: #00D9FF;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-family: 'Lalezar', sans-serif;
    font-size: 110px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0px;
}

.hero span {
    color: #00D9FF;
}

.hero p {
    margin-top: 25px;
    font-size: 22px;
    opacity: .75;
    max-width: 700px;
}

.btn {
    margin-top: 45px;
    display: inline-block;
    padding: 18px 42px;
    background: #00D9FF;
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    transition: .35s;
    box-shadow: 0 0 35px rgba(0, 217, 255, .35);
}

.btn {
    background: #00D9FF;
    color: #081018;
}

.btn:hover {
    background: #22E4FF;
    color: #081018;
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 0 25px rgba(0, 217, 255, .4),
        0 0 60px rgba(0, 217, 255, .3);
}

.btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px #00D9FF88;
}

.btn-secondary {
    background: transparent;
    color: #00D9FF;
    border: 2px solid #00D9FF;
    box-shadow: none;
    margin-right: 20px;
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, .1);
    color: #22E4FF;
}

/* Aurora */

.aurora {
    position: fixed;
    inset: 0;
    z-index: -3;
    contain: strict;
    will-change: transform;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 217, 255, .18), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(94, 92, 255, .18), transparent 35%);
    animation: auroraMove 12s ease-in-out infinite alternate;
}

/* Grid */

.grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    contain: strict;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, white 35%, transparent 85%);
    opacity: .22;
}

/* Noise */

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    contain: strict;
    opacity: .03;
    pointer-events: none;
}

/* Reduce/disable decorative motion for users who asked for it,
   and as a perf safety net on low-power devices */
@media (prefers-reduced-motion: reduce) {
    .aurora,
    #loader img,
    .loader-line::before,
    .scroll-indicator span,
    [class*="status-"],
    .cable,
    .spark,
    .robot,
    .robot-eye,
    .robot-arm {
        animation: none !important;
    }
}

@keyframes auroraMove {
    0% {
        transform: translate(-5%, -5%) scale(1);
    }
    50% {
        transform: translate(5%, 3%) scale(1.15);
    }
    100% {
        transform: translate(-2%, 4%) scale(1);
    }
}

/* ========================= */
/* Loader */
/* ========================= */

#loader {
    position: fixed;
    inset: 0;
    background: #050816;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 99999;
    transition: 1s;
}

#loader img {
    width: 220px;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-line {
    margin-top: 35px;
    width: 170px;
    height: 3px;
    overflow: hidden;
    background: #14253E;
    border-radius: 30px;
    position: relative;
}

.loader-line::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #00D9FF;
    animation: loading 1.5s linear infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

@keyframes logoFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.logo img {
    height: 48px;
    display: block;
    transition: .4s;
}

.logo img:hover {
    transform: scale(1.05);
}

.hero {
    opacity: 0;
    transform: translateY(50px);
    animation: heroAppear 1.3s forwards;
    animation-delay: 1.8s;
}

@keyframes heroAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav {
    transition: .35s;
}

nav.active {
    background: rgba(5, 12, 25, .70);
    backdrop-filter: blur(16px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, .35);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #00D9FF;
    border-radius: 50%;
    animation: scrollMove 1.6s infinite;
}

@keyframes scrollMove {
    0% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 22px;
    }
}

/* ========================= */
/* Services */
/* ========================= */

.services {
    padding: 120px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 52px;
    margin-bottom: 15px;
}

.section-title p {
    opacity: .7;
    font-size: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    padding: 35px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    backdrop-filter: blur(13px);
    transition: .35s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #00D9FF;
    box-shadow:
        0 0 40px rgba(0, 217, 255, .2);
}

.icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.card p {
    opacity: .7;
    line-height: 1.8;
}

.about {
    padding: 150px 8% 70px;
}

.about-container {
    max-width: 950px;
    margin: auto;
    text-align: center;
}

.about h2 {
    font-size: 70px;
    margin-bottom: 20px;
}

.about h3 {
    font-size: 34px;
    color: #00D9FF;
    margin-bottom: 40px;
}

.about p {
    font-size: 20px;
    line-height: 2.1;
    opacity: .82;
    margin-bottom: 20px;
}

.features {
    padding: 70px 8% 140px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.feature-card {
    padding: 45px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(13px);
    border-radius: 25px;
    transition: .4s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #00D9FF;
    box-shadow: 0 0 45px rgba(0, 217, 255, .25);
}

.icon {
    font-size: 55px;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 28px;
    margin-bottom: 18px;
}

.feature-card p {
    line-height: 1.9;
    opacity: .75;
}

/* ========================= */
/* Plans Section */
/* ========================= */

.plans {
    padding: 140px 8%;
}

.plans a,
.plans button {
    cursor: pointer;
}

.plans-header {
    text-align: center;
    margin-bottom: 60px;
}

.plans-header h2 {
    font-size: 56px;
    margin-bottom: 20px;
}

.plans-header p {
    font-size: 22px;
    opacity: .75;
    line-height: 2;
}

.plans-header span {
    color: #00D9FF;
    margin: 0 15px;
}

.plan-tabs {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: .35s;
    backdrop-filter: blur(13px);
}

.tab-btn:hover {
    transform: translateY(-5px);
    border-color: #00D9FF;
}

.tab-btn.active {
    background: #00D9FF;
    color: #07111F;
    box-shadow: 0 0 35px rgba(0, 217, 255, .35);
}

#plans-content {
    min-height: 500px;
}

/* ========================= */
/* Plan Card */
/* ========================= */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    min-width: 0;
}

/* ========================= */
/* Plan Card - HUD Style v2 */
/* ========================= */

.plan-card {
    position: relative;
    min-width: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .03), rgba(255, 255, 255, .03)),
        repeating-linear-gradient(0deg, rgba(0, 217, 255, .025) 0px, rgba(0, 217, 255, .025) 1px, transparent 1px, transparent 26px);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 32px;
    transition: .35s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-card>* {
    width: 100%;
    max-width: 300px;
}

/* Top glowing accent line */
.plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D9FF, transparent);
    opacity: .7;
}

/* Corner brackets (decorative only, don't clip content) */
.plan-card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    border-top: 2px solid #00D9FF;
    border-right: 2px solid #00D9FF;
    opacity: .5;
    transition: .3s;
}

.plan-card:hover {
    transform: translateY(-12px);
    border-color: #00D9FF;
    box-shadow: 0 0 35px rgba(0, 217, 255, .25);
}

.plan-card:hover::after {
    opacity: 1;
    width: 22px;
    height: 22px;
    box-shadow: 0 0 15px rgba(0, 217, 255, .5);
}

/* Online status tag */
.plan-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: monospace;
    letter-spacing: 1px;
    color: #3CFF7A;
    margin-bottom: 16px;
    direction: ltr;
    justify-content: flex-end;
}

.plan-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3CFF7A;
    box-shadow: 0 0 8px #3CFF7A;
    animation: statusBlink 1.6s infinite;
}

@keyframes statusBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .3;
    }
}

.plan-card:hover {
    transform: translateY(-12px);
    border-color: #00D9FF;
    box-shadow:
        0 0 35px rgba(0, 217, 255, .25);
}

.plan-card h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.plan-card h4 {
    color: #00D9FF;
    margin-bottom: 30px;
    font-weight: 500;
}

.plan-spec {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    font-size: 15px;
}

.plan-price {
    margin-top: 35px;
    text-align: center;
    font-size: 34px;
    font-weight: bold;
    color: #00D9FF;
}

.plan-price span {
    display: block;
    font-size: 16px;
    opacity: .6;
    margin-top: 5px;
}

.order-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(90deg, #00D9FF, #007BFF);
    color: white;
    transition: .35s;
}

.order-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0, 217, 255, .45);
}

.badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 16px;
    background: #00D9FF;
    color: #06121F;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
}

/* ========================= */
/* Plans Switch Animation */
/* ========================= */

#plans-content {
    transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}

#plans-content.switching {
    opacity: 0;
    filter: blur(8px);
    transform: scale(.95) translateY(15px);
}

.plan-card {
    opacity: 0;
    transform: translateY(30px) scale(.95);
    animation: planCardIn .5s ease forwards;
}

@keyframes planCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================= */
/* Hero buttons - equal sizing fix */
/* ========================= */

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 45px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.hero-buttons .btn {
    margin: 0;
    flex: 1;
    min-width: 150px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
}

.hero-buttons .btn-secondary {
    margin: 0;
    background: transparent;
    color: #00D9FF;
    border: 2px solid #00D9FF;
    box-shadow: none;
}

/* ========================= */
/* Particle Canvas */
/* ========================= */

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-light {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 11, 22, .45) 0%, rgba(6, 11, 22, .75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================= */
/* Typewriter */
/* ========================= */

#typewriter {
    color: #00D9FF;
    border-left: 2px solid #00D9FF;
    padding-left: 4px;
}

/* ========================= */
/* Scroll Reveal */
/* ========================= */

.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.4s cubic-bezier(.16, .8, .3, 1), transform 1.4s cubic-bezier(.16, .8, .3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* Footer */
/* ========================= */

.site-footer {
    margin: 80px auto 40px;
    width: 90%;
    max-width: 1100px;
    padding: 35px;
    text-align: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.site-footer p {
    font-size: 15px;
    opacity: .7;
    line-height: 1.9;
}

.site-footer .designer {
    margin-top: 12px;
    font-size: 14px;
    opacity: .6;
}

.site-footer .designer span {
    color: #00D9FF;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ========================= */
/* Nav Dropdown */
/* ========================= */

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: .3s;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 230px;
    background: rgba(8, 16, 30, .92);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    backdrop-filter: blur(13px);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 300;
    box-shadow: 0 25px 55px rgba(0, 0, 0, .45);
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    height: 22px;
    background: transparent;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    transition: .25s;
}

.dropdown-menu a:hover {
    background: rgba(0, 217, 255, .12);
    color: #00D9FF;
}

/* ========================= */
/* Nav Backdrop */
/* ========================= */

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, .25);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 150;
}

.nav-backdrop.active {
    opacity: 1;
}

/* ========================= */
/* Custom Scrollbar */
/* ========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #060B16;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00D9FF, #5B4BFF);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22E4FF;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #00D9FF #060B16;
}

/* Server tower lights blinking */
.server-light {
    fill: #0d2333;
    animation: blinkLight 2.4s infinite;
}

.light-1 {
    animation-delay: 0s;
}
.light-2 {
    animation-delay: .4s;
}
.light-3 {
    animation-delay: .8s;
}

@keyframes blinkLight {
    0%,
    100% {
        fill: #0d2333;
    }
    50% {
        fill: #00D9FF;
    }
}

/* Status light: red -> green loop (being fixed) */
.server-status {
    fill: #FF4D4D;
    animation: statusFix 4s infinite;
}

@keyframes statusFix {
    0%,
    60% {
        fill: #FF4D4D;
    }
    80%,
    100% {
        fill: #3CFF7A;
    }
}

/* Cable wiggle */
.cable {
    animation: cableWiggle 2.4s ease-in-out infinite;
    transform-origin: 230px 150px;
}

@keyframes cableWiggle {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Spark */
.spark {
    animation: sparkFlicker 1.2s infinite;
}

@keyframes sparkFlicker {
    0%,
    100% {
        opacity: 0;
        transform: translate(190px, 118px) scale(.6);
    }
    10% {
        opacity: 1;
        transform: translate(190px, 118px) scale(1.1);
    }
    20% {
        opacity: 0;
    }
    55% {
        opacity: 1;
        transform: translate(190px, 118px) scale(1);
    }
    65% {
        opacity: 0;
    }
}

/* Robot floating */
.robot {
    animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
    0%,
    100% {
        transform: translate(60px, 130px);
    }
    50% {
        transform: translate(60px, 120px);
    }
}

.robot-eye {
    fill: #00D9FF;
    animation: eyeBlink 3.5s infinite;
}

/* Arm swinging like tightening a bolt */
.robot-arm {
    transform-origin: 55px 34px;
    animation: armSwing 1.4s ease-in-out infinite;
}

@keyframes armSwing {
    0%,
    100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-18deg);
    }
}

@keyframes eyeBlink {
    0%,
    92%,
    100% {
        transform: scaleY(1);
    }
    96% {
        transform: scaleY(.1);
    }
}

/* Radar searching rings */
.radar-ring {
    opacity: 0;
    animation: radarPulse 2.4s ease-out infinite;
}

.ring-a {
    animation-delay: 0s;
}
.ring-b {
    animation-delay: .8s;
}
.ring-c {
    animation-delay: 1.6s;
}

@keyframes radarPulse {
    0% {
        r: 4;
        opacity: .9;
    }
    100% {
        r: 35;
        opacity: 0;
    }
}

/* Glitch text effect on 404 */
.error-code {
    position: relative;
    font-family: 'Lalezar', sans-serif;
    font-size: 130px;
    line-height: 1;
    color: #00D9FF;
    text-shadow: 0 0 60px rgba(0, 217, 255, .5);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.glitch::before {
    color: #FF4D6D;
    animation: glitchTop 3.5s infinite linear;
    clip-path: inset(0 0 60% 0);
}

.glitch::after {
    color: #5B4BFF;
    animation: glitchBottom 3.5s infinite linear;
    clip-path: inset(60% 0 0 0);
}

@keyframes glitchTop {
    0%,
    90%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    92% {
        transform: translate(-4px, -2px);
        opacity: .8;
    }
    94% {
        transform: translate(3px, 1px);
        opacity: 0;
    }
}

@keyframes glitchBottom {
    0%,
    90%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    91% {
        transform: translate(4px, 2px);
        opacity: .8;
    }
    93% {
        transform: translate(-3px, -1px);
        opacity: 0;
    }
}

.error-page h1 {
    margin-top: 10px;
    font-size: 36px;
    font-weight: 700;
}

.error-page p {
    margin-top: 20px;
    font-size: 18px;
    opacity: .7;
    max-width: 500px;
}

.error-buttons {
    display: flex;
    gap: 20px;
    margin-top: 45px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-buttons .btn {
    margin-top: 0;
}

@media (max-width: 600px) {
    .error-scene {
        max-width: 280px;
    }
    .error-code {
        font-size: 90px;
    }
    .error-page h1 {
        font-size: 24px;
    }
}

/* ========================= */
/* 404 Page Wrapper */
/* ========================= */

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    gap: 24px;
}

/* ========================= */
/* 404 Brand Loading Box (Border Beam) */
/* ========================= */

.brand-box {
    position: relative;
    border-radius: 50px;
    padding: 2px;
    overflow: hidden;
}

.brand-box::before {
    content: "";
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 82%,
            #00D9FF 92%,
            #5B4BFF 96%,
            transparent 100%);
    animation: borderBeamSpin 2.2s linear infinite;
}

@keyframes borderBeamSpin {
    to {
        transform: rotate(360deg);
    }
}

.brand-box-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 26px;
    background: #060B16;
    border-radius: 48px;
}

.brand-box-inner span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    color: white;
}

.brand-logo-spin {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #00D9FF, #5B4BFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #07111F;
    animation: logoSpin 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes logoSpin {
    0%,
    100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

/* ========================= */
/* 404 Error Scene */
/* ========================= */

.error-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-scene {
    width: 100%;
    max-width: 280px;
    margin-bottom: 0;
}

.repair-svg {
    width: 100%;
    height: auto;
}

.server-light {
    fill: #0d2333;
    animation: blinkLight 2.4s infinite;
}

.light-1 {
    animation-delay: 0s;
}
.light-2 {
    animation-delay: .4s;
}
.light-3 {
    animation-delay: .8s;
}

@keyframes blinkLight {
    0%,
    100% {
        fill: #0d2333;
    }
    50% {
        fill: #00D9FF;
    }
}

.server-status {
    fill: #FF4D4D;
    animation: statusFix 4s infinite;
}

@keyframes statusFix {
    0%,
    60% {
        fill: #FF4D4D;
    }
    80%,
    100% {
        fill: #3CFF7A;
    }
}

.cable {
    animation: cableWiggle 2.4s ease-in-out infinite;
    transform-origin: 230px 150px;
}

@keyframes cableWiggle {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.spark {
    animation: sparkFlicker 1.2s infinite;
}

@keyframes sparkFlicker {
    0%,
    100% {
        opacity: 0;
        transform: translate(190px, 118px) scale(.6);
    }
    10% {
        opacity: 1;
        transform: translate(190px, 118px) scale(1.1);
    }
    20% {
        opacity: 0;
    }
    55% {
        opacity: 1;
        transform: translate(190px, 118px) scale(1);
    }
    65% {
        opacity: 0;
    }
}

.robot {
    animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
    0%,
    100% {
        transform: translate(60px, 130px);
    }
    50% {
        transform: translate(60px, 120px);
    }
}

.robot-eye {
    fill: #00D9FF;
    animation: eyeBlink 3.5s infinite;
}

.robot-arm {
    transform-origin: 55px 34px;
    animation: armSwing 1.4s ease-in-out infinite;
}

@keyframes armSwing {
    0%,
    100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-18deg);
    }
}

@keyframes eyeBlink {
    0%,
    92%,
    100% {
        transform: scaleY(1);
    }
    96% {
        transform: scaleY(.1);
    }
}

.radar-ring {
    opacity: 0;
    animation: radarPulse 2.4s ease-out infinite;
}

.ring-a {
    animation-delay: 0s;
}
.ring-b {
    animation-delay: .8s;
}
.ring-c {
    animation-delay: 1.6s;
}

@keyframes radarPulse {
    0% {
        r: 4;
        opacity: .9;
    }
    100% {
        r: 35;
        opacity: 0;
    }
}

.error-code {
    position: relative;
    font-family: 'Lalezar', sans-serif;
    font-size: 80px;
    line-height: 1;
    color: #00D9FF;
    text-shadow: 0 0 60px rgba(0, 217, 255, .5);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.glitch::before {
    color: #FF4D6D;
    animation: glitchTop 3.5s infinite linear;
    clip-path: inset(0 0 60% 0);
}

.glitch::after {
    color: #5B4BFF;
    animation: glitchBottom 3.5s infinite linear;
    clip-path: inset(60% 0 0 0);
}

@keyframes glitchTop {
    0%,
    90%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    92% {
        transform: translate(-4px, -2px);
        opacity: .8;
    }
    94% {
        transform: translate(3px, 1px);
        opacity: 0;
    }
}

@keyframes glitchBottom {
    0%,
    90%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    91% {
        transform: translate(4px, 2px);
        opacity: .8;
    }
    93% {
        transform: translate(-3px, -1px);
        opacity: 0;
    }
}

.error-page h1 {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 700;
}

.error-page p {
    margin-top: 10px;
    font-size: 15px;
    opacity: .7;
    max-width: 440px;
}

.error-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-buttons .btn {
    margin-top: 0;
    padding: 14px 32px;
}

@media (max-width: 600px) {
    .error-scene {
        max-width: 220px;
    }
    .error-code {
        font-size: 60px;
    }
    .error-page h1 {
        font-size: 19px;
    }
    .error-page p {
        font-size: 13px;
    }
    .brand-box-inner span {
        font-size: 12px;
    }
}

/* ========================= */
/* Plan Power Bar - Segmented HUD */
/* ========================= */

.power-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 1px;
    opacity: .65;
    margin-bottom: 10px;
    font-family: monospace;
    direction: ltr;
}

.power-label .power-value {
    color: #00D9FF;
    font-weight: bold;
}

.power-bar {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 10px;
    margin-bottom: 28px;
}

.power-segment {
    flex: 1;
    background: rgba(255, 255, 255, .07);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

.power-segment.filled::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #00D9FF, #5B4BFF);
    transform: scaleX(0);
    transform-origin: right;
    animation:
        segmentPop .4s ease forwards,
        segmentGlow 1.8s ease-in-out infinite;
    animation-delay: inherit, 0.6s;
}

@keyframes segmentPop {
    to {
        transform: scaleX(1);
    }
}

@keyframes segmentGlow {
    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 217, 255, .4);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 1);
        filter: brightness(1.4);
    }
}

.plan-price {
    font-family: 'Lalezar', sans-serif;
    letter-spacing: 1px;
}

/* ========================= */
/* CRT Scanlines (subtle) */
/* ========================= */

.crt-lines {
    position: fixed;
    inset: 0;
    z-index: -1;
    contain: strict;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            rgba(255, 255, 255, .025),
            rgba(255, 255, 255, .025) 1px,
            transparent 1px,
            transparent 3px);
    opacity: .5;
}

/* ========================= */
/* Nav Toggle (Hamburger) */
/* ========================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: .3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 750px) {
    nav {
        gap: 16px;
        width: calc(100% - 90px);
        margin-left: 60px;
        justify-content: space-between;
    }

    /* Dropdown becomes accordion-style */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        left: auto !important;
        right: auto !important;
        margin-top: 4px;
        padding: 0 10px;
        background: rgba(255, 255, 255, .03);
        border-radius: 10px;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease, padding .35s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 8px 10px;
    }

    .nav-links ul li>a {
        display: block;
        padding: 12px;
        border-radius: 10px;
    }

    .nav-links ul li>a:hover {
        background: rgba(255, 255, 255, .05);
    }

    .dropdown-toggle::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-top: -4px;
        transition: .3s;
        display: inline-block;
    }
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(225deg);
        margin-top: 4px;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    display: block;
}

/* ========================= */
/* Scroll to Top Button */
/* ========================= */

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    color: #00D9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(.8);
    transition: opacity .35s ease, transform .35s ease, box-shadow .3s ease, border-color .3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    border-color: #00D9FF;
    box-shadow: 0 0 25px rgba(0, 217, 255, .4);
    transform: translateY(-6px) scale(1.05);
}

.scroll-top-btn svg {
    animation: arrowFloat 1.8s ease-in-out infinite;
}

@keyframes arrowFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 700px) {
    .scroll-top-btn {
        bottom: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 750px) {
    nav {
        gap: 16px;
        width: 92%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(6, 11, 22, .97);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 16px;
        backdrop-filter: blur(13px);
        padding: 0 14px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .4s ease, opacity .3s ease, padding .4s ease;
    }

    .nav-links.open {
        max-height: 600px;
        opacity: 1;
        padding: 14px;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .nav-links ul li {
        width: 100%;
    }

    .nav-links ul li>a {
        display: block;
        padding: 12px;
        border-radius: 10px;
    }

    .nav-links ul li>a:hover {
        background: rgba(255, 255, 255, .05);
    }

    /* Dropdown as accordion inside normal flow */
    .dropdown-menu {
        position: static;
        transform: none;
        pointer-events: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        max-height: 0;
        opacity: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 2px;
        background: rgba(255, 255, 255, .03);
        border-radius: 10px;
        margin-top: 4px;
        padding: 0 10px;
        box-shadow: none;
        transition: max-height .35s ease, padding .35s ease;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 8px 10px;
    }

    .dropdown-menu a {
        white-space: normal;
        word-break: break-word;
        text-align: right;
        padding: 10px 12px;
    }

    .nav-support-btn {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}

/* Mobile typewriter fix */
#typewriter {
    display: inline-block;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
}