/* ===== REQUISITES PAGES STYLING ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
    --green-50: #e8fdf0;
    --green-100: #b8f5d0;
    --green-200: #6eeaa0;
    --green-300: #34d97a;
    --green-400: #00e87b;
    --green-500: #00c96a;
    --green-600: #00a858;
    --green-700: #008a48;
    --green-glow: rgba(0, 232, 123, 0.35);
    --bg-deep: #030805;
    --bg-card: rgba(8, 22, 13, 0.55);
    --bg-card-hover: rgba(12, 34, 20, 0.7);
    --border-subtle: rgba(0, 232, 123, 0.08);
    --border-active: rgba(0, 232, 123, 0.25);
    --text-primary: #e6fcf0;
    --text-secondary: rgba(230, 252, 240, 0.65);
    --text-muted: rgba(230, 252, 240, 0.4);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background system matching main site */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.3;
}

.orb-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--green-400), transparent 70%);
    top: -250px;
    left: -150px;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--green-600), transparent 70%);
    bottom: -200px;
    right: -150px;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0, 232, 123, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 232, 123, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(3, 8, 5, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
}

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

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-brand {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, var(--green-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--green-400);
}

.header-actions {
    display: flex;
    align-items: center;
}

.cta-btn-nav {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 232, 123, 0.08);
    border: 1px solid var(--border-active);
    border-radius: 12px;
    color: var(--green-400);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.cta-btn-nav:hover {
    background: var(--green-400);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--green-glow);
}

/* Content Container */
.content-wrapper {
    position: relative;
    z-index: 10;
    padding: calc(var(--header-height) + 40px) 24px 60px;
    max-width: 900px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Card */
.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.doc-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.doc-content h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.doc-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.doc-content ul, .doc-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.doc-content li {
    margin-bottom: 8px;
}

/* Links List inside main Index page */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

.link-button-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(230, 252, 240, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.link-button-card:hover {
    background: rgba(0, 232, 123, 0.04);
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.link-button-icon {
    font-size: 1.2rem;
    color: var(--green-400);
}

/* Table Style for Requisites */
.requisites-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.requisites-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.requisites-table td.label-td {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.requisites-table td.value-td {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer style duplicated */
.footer {
    padding-top: 60px;
    text-align: center;
}

.footer-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-active), transparent);
    margin: 0 auto 36px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Back Button */
.back-btn-container {
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-200);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.back-btn:hover {
    color: var(--green-400);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Animate burger lines to an X when active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile menu drawer styling */
    .nav-menu {
        display: flex !important; /* Override display: none */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(3, 12, 6, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--border-active);
        padding: 100px 32px 40px;
        gap: 24px;
        z-index: 99;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        align-items: flex-start !important;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 1.2rem;
        font-weight: 700;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 232, 123, 0.05);
    }
    
    body.menu-open {
        overflow: hidden;
    }

    /* Hide header actions in desktop header container on mobile */
    .header-container .header-actions {
        display: none !important;
    }

    /* Style for cloned header actions inside drawer */
    .nav-menu .mobile-actions {
        display: block !important;
        width: 100%;
        margin-top: 16px;
    }

    .nav-menu .mobile-actions .cta-btn-nav,
    .nav-menu .mobile-actions .logout-btn-header {
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .header-container {
        padding: 0 16px;
    }
    .doc-card {
        padding: 24px;
    }
    .requisites-table td {
        display: block;
        width: 100% !important;
        padding: 6px 0;
        border-bottom: none;
    }
    .requisites-table tr {
        border-bottom: 1px solid var(--border-subtle);
        display: block;
        padding: 8px 0;
    }
}

/* ===== FLOATING SERVER STATUS WIDGET ===== */
.server-status-widget {
    position: fixed;
    right: 0;
    top: 30%;
    z-index: 10000;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    pointer-events: auto;
}

.widget-trigger {
    background: rgba(8, 22, 13, 0.85);
    border: 1px solid var(--border-active);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 12px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    transition: all 0.3s ease;
    width: 32px;
}

.widget-trigger:hover {
    background: rgba(12, 34, 20, 0.95);
    box-shadow: -4px 0 20px var(--green-glow);
}

.widget-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.widget-pulse-dot.online {
    background-color: var(--green-400);
    box-shadow: 0 0 8px var(--green-400);
    animation: widgetPulse 2s infinite;
}

@keyframes widgetPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 232, 123, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 232, 123, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 232, 123, 0); }
}

.widget-trigger-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.widget-content {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    background: rgba(4, 12, 6, 0.95);
    border: 1px solid var(--border-active);
    border-right: none;
    border-radius: 16px 0 0 16px;
    padding: 0;
    backdrop-filter: blur(16px);
    box-shadow: -8px 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-status-widget:hover .widget-content {
    width: 250px;
    opacity: 1;
    padding: 20px;
    pointer-events: auto;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-bottom: 4px;
    color: var(--text-primary);
    white-space: nowrap;
}

.widget-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    white-space: nowrap;
}

.widget-info-label {
    color: var(--text-muted);
}

.widget-info-value {
    font-weight: 600;
}

.widget-info-value.text-green {
    color: var(--green-400);
}

.widget-info-value.text-gold {
    color: #ffd700;
}

.widget-ip-copy {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(230, 252, 240, 0.03);
    border: 1px dashed var(--border-active);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.widget-ip-copy:hover {
    background: rgba(0, 232, 123, 0.05);
    border-style: solid;
}

.widget-copy-btn {
    color: var(--green-400);
    font-size: 0.75rem;
    text-transform: uppercase;
}
