:root {
    --bg: #000000;
    --card-bg: #050505;
    --card-border: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --green: #2ecc71;
    --red: #e74c3c;
    --accent: #2e67ff;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(1, 0, 0, 1), opacity 0.8s ease;
}

.logo-large {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.loader-bar {
    width: 0;
    height: 2px;
    background: #fff;
    margin: 0 auto;
    animation: load 1.2s ease-in-out forwards;
}

@keyframes load {
    0% {
        width: 0;
    }

    100% {
        width: 200px;
    }
}

#preloader.loaded {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Dashboard Wrapper Entrance */
.dashboard-wrapper {
    opacity: 0;
    transition: opacity 1.5s ease, filter 1.5s ease;
    filter: blur(15px);
}

.dashboard-wrapper.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Top Bar Styles */
.top-bar {
    width: 100%;
    height: 48px;
    background: #000;
    border-bottom: 1px solid #111;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.domain-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.domain-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s;
}

.domain-link:hover {
    color: var(--green);
}

.uptime-stat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
}

.top-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s;
}

.top-link:hover {
    color: #fff;
}

/* Header & Stats */
header {
    padding: 6rem 0 3rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.status-pill {
    background: rgba(46, 204, 113, 0.05);
    border: 1px solid rgba(46, 204, 113, 0.1);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.pulse {
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.status-text {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.text-green {
    color: var(--green);
}

/* Services */
.section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s;
}

.service-card:hover:not(.disabled) {
    border-color: #222;
    transform: scale(1.02);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.status-badge.online {
    background: rgba(46, 204, 113, 0.1);
    color: var(--green);
}

.status-badge.offline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.btn-action {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid #1a1a1a;
    transition: background 0.2s, border-color 0.2s;
}

.btn-action:hover:not(.disabled) {
    background: #0a0a0a;
    border-color: #333;
}

.disabled {
    opacity: 0.5;
}

/* Did You Know */
.did-you-know {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 4rem;
}

.fact-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.did-you-know p {
    color: var(--text-secondary);
}

/* Quick Links Grid */
.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 6rem;
}

.quick-link-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s;
}

.quick-link-box:hover {
    background: #0a0a0a;
}

.qtitle {
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.qdesc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Footer Section */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--card-border);
}

.footer-content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: #fff;
}

/* Animations */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0, 0, 1);
}

.animate-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Atmosphere Overhaul: Grid, Rain, Lightning */
#background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

#background-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

#lightning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: #fff;
    opacity: 0;
}

.raindrop {
    position: absolute;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 80%, rgba(255, 255, 255, 0.6) 100%);
    width: 2px;
    height: 80px;
    top: -120px;
    will-change: transform;
    animation: fall linear infinite;
    transform: rotate(7deg);
    border-radius: 100px;
    /* Fully rounded for droplet feel */
}

@keyframes fall {
    from {
        transform: translateY(0) rotate(7deg);
    }

    to {
        transform: translateY(120vh) rotate(7deg);
    }
}

.lightning-flash {
    animation: flash 0.2s ease-out;
}

@keyframes flash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        opacity: 0;
    }
}

/* Support Page Specifics */
.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    justify-content: center;
    /* Center items */
}

.support-grid>div:only-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.support-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.support-card:hover {
    border-color: #333;
}

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.faq-section {
    margin-bottom: 8rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.top-link.active {
    color: #fff;
}

@media (max-width: 768px) {
    header {
        padding: 4rem 0 2rem;
    }

    .header-top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content-wrap {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .footer-right a {
        margin-left: 0;
        margin-right: 1.5rem;
    }

    .support-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 2rem;
    }
}