:root {
    --rl-primary: #ff003c;
    --rl-primary-dark: #cc002f;
    --rl-bg: #050505;

    --rl-accent-blue: #00d2ff;
    --rl-accent-green: #00ff9d;
    --rl-accent-gold: #ffcc00;
    --rl-accent-purple: #bc13fe;

    --rl-card-bg: rgba(20, 20, 20, 0.7);
    --rl-text-main: #ffffff;
    --rl-text-muted: #a0a0a0;

    --rl-border: 1px solid rgba(255, 255, 255, 0.1);
    --rl-glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --rl-neon-glow: 0 0 15px rgba(255, 0, 60, 0.4);
    --rl-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    --rl-font-head: "Orbitron", sans-serif;
    --rl-font-body: "Inter", sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background-color: var(--rl-bg);
}

body {
    background-color: var(--rl-bg);
    background-image: radial-gradient(
        circle at 50% 0%,
        #1a0005 0%,
        #050505 80%
    );
    color: var(--rl-text-main);
    font-family: var(--rl-font-body);
    line-height: 1.6;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.top-line {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--rl-primary),
        #bc13fe,
        transparent
    );
    background-size: 200% 100%;
    animation: moveLine 4s linear infinite;
    z-index: 99;
    pointer-events: none;
}

@keyframes moveLine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease backwards;
}

.page-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;

    flex: 1 0 auto;
}

.page-wrapper-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: var(--rl-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-mini {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px var(--rl-primary));
    transition: 0.3s;
}

.nav-logo-mini:hover {
    filter: drop-shadow(0 0 15px var(--rl-primary));
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-family: var(--rl-font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rl-primary);
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-btn span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.mobile-nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: 0.4s ease-in-out;
    z-index: 999;
    border-bottom: 2px solid var(--rl-primary);
}

.mobile-nav.active {
    top: 0;
}

.rl-card,
.auth-card,
.contact-card,
.support-form-container,
.service-card {
    background: var(--rl-card-bg);
    border: var(--rl-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--rl-shadow);
    position: relative;
    overflow: hidden;
}

.rl-card:hover,
.contact-card:hover,
.service-card:hover {
    border-color: var(--rl-primary);
    box-shadow: var(--rl-neon-glow);
    transform: translateY(-5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--rl-font-head);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--rl-primary),
        var(--rl-primary-dark)
    );
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 0, 60, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 60, 0.4);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border-color: var(--rl-primary);
    color: var(--rl-primary);
}

.btn-outline.blue {
    border-color: var(--rl-accent-blue);
    color: var(--rl-accent-blue);
}
.btn-outline.green {
    border-color: var(--rl-accent-green);
    color: var(--rl-accent-green);
}
.btn-outline.gold {
    border-color: var(--rl-accent-gold);
    color: var(--rl-accent-gold);
}
.btn-outline.purple {
    border-color: var(--rl-accent-purple);
    color: var(--rl-accent-purple);
}

.btn-outline:hover {
    background: var(--rl-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3);
}

.btn-outline.blue:hover {
    background: var(--rl-accent-blue);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}
.btn-outline.green:hover {
    background: var(--rl-accent-green);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}
.btn-outline.gold:hover {
    background: var(--rl-accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}
.btn-outline.purple:hover {
    background: var(--rl-accent-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.btn-solid {
    background: var(--rl-primary);
    color: #fff;
}
.btn-solid.blue {
    background: var(--rl-accent-blue);
    color: #000;
}
.btn-solid.green {
    background: var(--rl-accent-green);
    color: #000;
}
.btn-solid.gold {
    background: var(--rl-accent-gold);
    color: #000;
}
.btn-solid.purple {
    background: var(--rl-accent-purple);
    color: #fff;
}

.btn-solid:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.8rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--rl-text-muted);
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--rl-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input-wrapper {
    position: relative;
}

.form-input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.form-input,
.form-textarea,
select.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--rl-font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--rl-primary);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-logo {
    width: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--rl-primary));
}

.auth-title {
    font-family: var(--rl-font-head);
    font-size: 2rem;
    margin-bottom: 30px;
}

.account-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

.profile-aside {
    text-align: center;
    height: fit-content;
}

.avatar-main {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--rl-primary);
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.4);
    margin-bottom: 20px;
    object-fit: cover;
}

.user-name-title {
    font-family: var(--rl-font-head);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.user-tag {
    display: block;
    color: var(--rl-primary);
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.info-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--rl-text-muted);
    font-size: 0.8rem;
}
.info-value {
    font-weight: 600;
}

.btn-logout-aside {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--rl-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    background: rgba(255, 0, 60, 0.1);
}

.btn-logout-aside:hover {
    background: var(--rl-primary);
}

.dashboard-main {
    display: grid;
    gap: 20px;
    align-content: start;
}

.vpn-copy-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #ccc;
    cursor: pointer;
    transition: 0.3s;
    margin: 15px 0;
    word-break: break-all;
}

.vpn-copy-box:hover {
    border-color: var(--rl-primary);
    color: #fff;
    background: rgba(255, 0, 60, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    text-align: center;
    text-decoration: none;
    color: #fff;
    display: block;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--rl-primary);
    margin-bottom: 15px;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--rl-text-muted);
    transition: 0.3s ease-out;
}

.faq-item.active {
    border-color: var(--rl-primary);
}

.faq-item.active .faq-content {
    padding-bottom: 20px;
    max-height: 300px;
}

.lock-container {
    text-align: center;
    padding: 40px 0;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.status-online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}
.status-warn {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}
.status-offline {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.footer {
    text-align: center;
    padding: 30px;
    border-top: var(--rl-border);
    background: rgba(5, 5, 5, 0.95);
    color: var(--rl-text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;

    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--rl-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: var(--rl-font-head);
    transform: translateY(200%);
    transition: 0.5s;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.show {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    .account-wrapper {
        grid-template-columns: 1fr;
    }
    .page-wrapper {
        padding-top: 80px;
    }
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.welcome-card {
    text-align: center;
    max-width: 500px;
    width: 100%;
    /* border-top: 2px solid var(--rl-primary); */
    padding: 50px 40px;
}

.welcome-logo {
    width: 120px;
    filter: drop-shadow(0 0 20px var(--rl-primary));
    margin-bottom: 25px;
    animation: pulse 3s infinite;
}

.welcome-title {
    font-family: var(--rl-font-head);
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1;
}

.welcome-subtitle {
    color: var(--rl-text-muted);
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--rl-primary));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px var(--rl-primary));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--rl-primary));
    }
}
/* --- Cloud Page Specific --- */
.upload-zone {
    border: 2px dashed rgba(0, 210, 255, 0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 210, 255, 0.02);
    margin-bottom: 30px;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--rl-accent-blue);
    background: rgba(0, 210, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.2);
}
.upload-zone h3 {
    font-family: var(--rl-font-head);
    color: var(--rl-accent-blue);
}
.upload-zone .info-label {
    color: var(--rl-text-muted);
    margin-top: 5px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.file-card {
    background: var(--rl-card-bg);
    border: var(--rl-glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.file-card:hover {
    transform: translateY(-5px);
    border-color: var(--rl-accent-blue);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.file-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--rl-accent-blue);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    height: 60px;
    line-height: 60px;
}

.file-info {
    margin-top: auto;
}

.file-name-text {
    color: var(--rl-text-main);
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-all;
    line-height: 1.3;
    max-height: 50px;
    overflow: hidden;
}

.file-size-text {
    font-size: 0.75rem;
    color: var(--rl-text-muted);
    margin-top: 5px;
}

.action-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}
.file-card:hover .action-icons {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    border: var(--rl-glass-border);
    color: #fff;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0; /* Убираем padding для точного центрирования */
}
.action-btn:hover {
    background: var(--rl-accent-blue);
    color: #000;
}
.action-btn.delete:hover {
    background: var(--rl-primary);
    color: #fff;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.progress-fill {
    height: 100%;
    background: var(--rl-accent-blue);
    box-shadow: 0 0 10px var(--rl-accent-blue);
    transition: width 0.5s ease;
}

.modal {
    display: none; /* JS will change this to flex */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}

@keyframes fadeInModal {
    to {
        opacity: 1;
    }
}

.modal .rl-card {
    animation: fadeInUp 0.4s 0.1s backwards;
}

.modal b#delFileName {
    color: var(--rl-primary);
    word-break: break-all;
}

@media (max-width: 500px) {
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .file-card {
        padding: 15px;
    }
}

#upload-progress-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    z-index: 3000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

.upload-progress-item {
    pointer-events: auto;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 15px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(120%);
    opacity: 0;
}

.upload-progress-item.visible {
    transform: translateX(0);
    opacity: 1;
}

.upload-progress-item.is-uploading {
    border-left: 3px solid var(--rl-accent-blue);
}
.upload-progress-item.is-success {
    border-left: 3px solid var(--rl-accent-green);
}
.upload-progress-item.is-error {
    border-left: 3px solid var(--rl-primary);
}

.progress-status-icon {
    font-size: 1.5rem;
    text-align: center;
}
.progress-status-icon .fa-spinner {
    color: var(--rl-accent-blue);
}
.progress-status-icon .fa-check-circle {
    color: var(--rl-accent-green);
}
.progress-status-icon .fa-exclamation-triangle {
    color: var(--rl-primary);
}

.progress-details {
    display: flex;
    flex-direction: column;
}

.progress-filename {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.progress-info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--rl-text-muted);
    margin-bottom: 8px;
}

.progress-bar-upload {
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.progress-fill-upload {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.2s linear;
}
.is-uploading .progress-fill-upload {
    background: var(--rl-accent-blue);
    box-shadow: 0 0 10px var(--rl-accent-blue);
}
.is-success .progress-fill-upload {
    background: var(--rl-accent-green);
    box-shadow: 0 0 10px var(--rl-accent-green);
}
.is-error .progress-fill-upload {
    background: var(--rl-primary);
    box-shadow: 0 0 10px var(--rl-primary);
}

@media (max-width: 500px) {
    #upload-progress-container {
        left: 10px;
        right: 10px;
        bottom: 80px;
        width: auto;
    }
}

#previewModal .preview-card {
    background: var(--rl-card-bg);
    border: var(--rl-border);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--rl-shadow);
    animation: fadeInUp 0.4s 0.1s backwards;
    z-index: 99999;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: var(--rl-glass-border);
    flex-shrink: 0;
}

.preview-filename {
    font-family: var(--rl-font-head);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.preview-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.preview-content pre {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.preview-content .preview-unsupported {
    text-align: center;
    color: var(--rl-text-muted);
}
.preview-content .preview-unsupported i {
    font-size: 3rem;
    color: var(--rl-primary);
    margin-bottom: 15px;
}

.preview-loader {
    font-size: 2.5rem;
    color: var(--rl-accent-blue);
}

.server-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.server-card {
    background: var(--rl-card-bg);
    border: var(--rl-border);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.server-card:hover {
    border-color: var(--rl-primary);
}

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

.server-name {
    font-family: var(--rl-font-head);
    font-weight: 700;
    color: #fff;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px currentColor;
}
.status-online {
    background: #00ff9d;
    color: #00ff9d;
}
.status-offline {
    background: #ff003c;
    color: #ff003c;
}
.status-warn {
    background: #ffaa00;
    color: #ffaa00;
}

.server-desc {
    color: var(--rl-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.server-info {
    font-family: monospace;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
}

.about-hero {
    text-align: center;
    padding: 60px 20px;
}
.about-logo {
    width: 140px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--rl-primary));
}
.about-title {
    font-family: var(--rl-font-head);
    font-size: clamp(2rem, 6vw, 3.5rem);
    background: linear-gradient(45deg, #fff, var(--rl-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.about-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 15px;
    border: var(--rl-border);
}

.error-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.glitch-code {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.glitch-code::before,
.glitch-code::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}
.glitch-code:hover::before {
    left: 3px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    opacity: 0.8;
}
.glitch-code:hover::after {
    left: -3px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
    opacity: 0.8;
}

@keyframes glitch-anim {
    0% {
        clip: rect(15px, 9999px, 71px, 0);
    }
    20% {
        clip: rect(88px, 9999px, 12px, 0);
    }
    40% {
        clip: rect(32px, 9999px, 95px, 0);
    }
    60% {
        clip: rect(66px, 9999px, 44px, 0);
    }
    80% {
        clip: rect(12px, 9999px, 83px, 0);
    }
    100% {
        clip: rect(54px, 9999px, 22px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }
    20% {
        clip: rect(3px, 9999px, 45px, 0);
    }
    40% {
        clip: rect(89px, 9999px, 12px, 0);
    }
    60% {
        clip: rect(22px, 9999px, 88px, 0);
    }
    80% {
        clip: rect(76px, 9999px, 34px, 0);
    }
    100% {
        clip: rect(14px, 9999px, 99px, 0);
    }
}

.error-title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--rl-primary);
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.error-desc {
    color: var(--rl-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.error-icon {
    font-size: 4rem;
    color: rgba(255, 0, 0, 0.5);
    margin-bottom: -20px;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.3));
}
