:root {
    --bg: #050607;
    --panel: rgba(10, 15, 20, 0.45);
    --panel-strong: rgba(13, 16, 18, 0.96);
    --accent: #4ba1ff;
    --amber: #ffb341;
    --red: #FF3B5C;
    --text: #f2f6f2;
    --text-dim: #8A9988;
    --border: rgba(255, 255, 255, 0.13);
    --success: #4ba1ff;
    --danger: #FF3B5C;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    background:
        linear-gradient(112deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.90) 48%, rgba(0, 0, 0, 0.98)),
        var(--bg);
    overflow-x: hidden;
}

/* Background overlay layers mirroring game client settings/advertise menu */
.auth-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.68) 100%);
}

.auth-scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.18;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 4px
    );
    animation: auth-scan-move 10s linear infinite;
}

@keyframes auth-scan-move {
    from { transform: translateY(-12px); }
    to { transform: translateY(12px); }
}

/* Layout */
.docs-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 3;
}

/* Sidebar (Pause settings-menu style) */
.sidebar {
    width: 320px;
    background: rgba(5, 7, 9, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px 24px;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    position: relative;
}

.esc-menu-header {
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.esc-menu-logo {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.esc-menu-header p {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-nav {
    margin-top: 10px;
}

/* GTA 5 Settings-style navigation buttons (.esc-nav-btn) */
.esc-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.esc-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.esc-nav-btn {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 12px 16px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.esc-nav-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateX(4px);
}

.esc-nav-btn.active {
    color: #000;
    background: #fff;
    border-color: #fff;
    transform: translateX(8px);
}

.esc-nav-btn.disabled,
.esc-nav-btn.disabled:hover {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    margin-left: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Top bar styled similarly to topbar/header in advertise site */
.topbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
    background-color: rgba(5, 6, 7, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Frosted glass content container mimicking .esc-content in settings menu */
.content-container.esc-content {
    max-width: 960px;
    margin: 40px auto;
    width: calc(100% - 80px);
    flex: 1;
    background: rgba(10, 15, 20, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

/* Tab Views & animations */
.content-section {
    display: none;
    height: 100%;
    flex-direction: column;
    animation: escViewIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.content-section.active-section {
    display: flex;
}

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

/* GTA 5 settings tab style headers (.esc-view-header) */
.esc-view-header {
    padding: 10px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 28px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.esc-view-header h2 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 900;
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.esc-view-header p {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--accent);
    margin: 10px 0 0;
}

/* Custom Scrollbars inside Tab Content bodies */
.esc-view-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(242, 246, 242, 0.82);
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 161, 255, 0.55) rgba(0, 0, 0, 0.35);
}

.esc-view-body::-webkit-scrollbar {
    width: 6px;
}

.esc-view-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}

.esc-view-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(120, 190, 255, 0.95) 0%, var(--accent) 45%, rgba(26, 70, 130, 0.95) 100%);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(75, 161, 255, 0.35);
}

.esc-view-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b8dcff 0%, var(--accent) 50%, #1a5fa8 100%);
}

.esc-view-body h2 {
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 8px;
}

.esc-view-body p {
    margin-bottom: 18px;
}

.lead-text {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Badge chips (.status-chip) similar to advertise panel status */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(75, 161, 255, 0.42);
    background: rgba(75, 161, 255, 0.08);
    color: var(--accent);
    padding: 6px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.status-chip.danger {
    border-color: rgba(255, 59, 92, 0.42);
    background: rgba(255, 59, 92, 0.08);
    color: var(--red);
}

@keyframes pulsing-fx {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.52; }
}

.pulsing {
    animation: pulsing-fx 1.5s infinite;
}

/* Info Box styled like tactical .ops-note */
.ops-note {
    border-left: 3px solid var(--accent);
    background: rgba(75, 161, 255, 0.04);
    padding: 16px 20px;
    margin: 28px 0;
    color: rgba(242, 246, 242, 0.8);
    font-size: 13px;
    line-height: 1.6;
}

.ops-note strong {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Roboto Condensed', sans-serif;
}

.ops-note.highlight-amber {
    border-left-color: var(--amber);
    background: rgba(255, 179, 65, 0.04);
}

.ops-note.highlight-amber strong {
    color: var(--amber);
}

/* Tactical grid stats styled like .ops-stat in game client */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.ops-stat {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(0, 0, 0, 0.28);
    padding: 24px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ops-stat:hover {
    border-color: var(--accent);
    background: linear-gradient(145deg, rgba(75, 161, 255, 0.06), rgba(0, 0, 0, 0.35));
    transform: translateY(-2px);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.42), 0 0 32px rgba(75, 161, 255, 0.08);
}

.ops-stat span {
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ops-stat strong {
    display: block;
    font-family: 'Roboto Condensed', 'Inter', sans-serif;
    font-size: 22px;
    color: var(--accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ops-stat p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(242, 246, 242, 0.7);
    margin: 0;
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--amber);
    padding: 16px 20px;
    background: rgba(255, 179, 65, 0.03);
    font-style: italic;
    margin: 28px 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.7;
}

/* Alert box (for legal notice) */
.alert-danger-box {
    border: 1px solid rgba(255, 59, 92, 0.36);
    background:
        linear-gradient(135deg, rgba(255, 59, 92, 0.05), transparent 42%),
        rgba(0, 0, 0, 0.35);
    padding: 20px;
    margin: 28px 0;
    position: relative;
}

.alert-danger-box::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 59, 92, 0.12);
    pointer-events: none;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.alert-header i {
    font-size: 18px;
}

.alert-danger-box p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(242, 246, 242, 0.76);
    margin: 0;
}

/* Legal text block */
.legal-box {
    background-color: rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    margin-top: 20px;
}

.legal-box p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(242, 246, 242, 0.68);
    margin-bottom: 16px;
}

.legal-box p:last-child {
    margin-bottom: 0;
}

.legal-box strong {
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.05em;
}

/* Button & Social elements */
.now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(75, 161, 255, 0.52);
    background: rgba(75, 161, 255, 0.08);
    color: var(--accent);
    padding: 10px 18px;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.now-btn:hover {
    background: var(--accent);
    color: #050607;
    border-color: var(--accent);
}

.social-icon {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.92);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.social-links-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-btn i {
    font-size: 18px;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.discord-btn {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.4);
    color: #5865F2;
}

.social-btn.discord-btn:hover {
    background: #5865F2;
    color: #050607;
    border-color: #5865F2;
}

.social-btn.twitter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.social-btn.twitter-btn:hover {
    background: #fff;
    color: #050607;
    border-color: #fff;
}

.social-btn.telegram-btn {
    background: rgba(34, 158, 217, 0.1);
    border: 1px solid rgba(34, 158, 217, 0.4);
    color: #229ED9;
}

.social-btn.telegram-btn:hover {
    background: #229ED9;
    color: #050607;
    border-color: #229ED9;
}

.docs-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: var(--text-dim);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Mobile Toggles & Media Queries */
.mobile-menu-btn,
.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.8);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        justify-content: space-between;
        padding: 0 24px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .content-container.esc-content {
        width: calc(100% - 32px);
        padding: 24px;
        margin: 20px auto;
    }
}
