:root {
    --bg-main: #060913;
    --bg-card: rgba(13, 19, 36, 0.6);
    --bg-card-hover: rgba(20, 29, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(0, 71, 255, 0.5);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #0047FF;
    --primary-glow: rgba(0, 71, 255, 0.4);
    --primary-grad: linear-gradient(135deg, #0047FF, #7000FF);
    --accent-grad: linear-gradient(135deg, #00d2ff, #0047FF);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.2);
    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.2);
    --pending: #eab308;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background elements */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(0, 71, 255, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section img {
    height: 42px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

nav a:hover, nav a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

select.lang-selector {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

select.lang-selector option {
    background: #0f172a;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-grad);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-steam-login {
    background: #171a21;
    color: #c5c3c0;
    border: 1px solid #3a3f4c;
    gap: 8px;
}

.btn-steam-login:hover {
    background: #2a303d;
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff 40%, var(--text-muted) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Main Sections */
section {
    padding: 100px 10%;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-grad);
    border-radius: 2px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* Grid Layouts */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.feature-box h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-box ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 14px;
}

.feature-box li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.feature-box li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Trailer Video */
.video-container {
    width: 100%;
    margin-top: 40px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.media-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    cursor: pointer;
}

.media-card svg {
    width: 48px;
    height: 48px;
    fill: var(--text-muted);
    margin-bottom: 16px;
    transition: fill 0.3s ease;
}

.media-card:hover svg {
    fill: #fff;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.media-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
}

/* Contacts Card */
.contacts-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 10%;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ----------------------------------------------------
   PANEL LAYOUT (Account & Admin Pages)
---------------------------------------------------- */
.panel-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    background: rgba(6, 9, 19, 0.6);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.user-badge-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 40px;
}

.user-badge-sidebar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.user-badge-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    word-break: break-all;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-menu li {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu li:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-menu li.active {
    color: #fff;
    background: var(--primary-grad);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.panel-content {
    flex-grow: 1;
    padding: 40px 5%;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: flex;
}

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

/* Status Cards */
.status-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
}

.status-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.status-banner.verified .status-icon-box {
    background: var(--success-light);
    color: var(--success);
}

.status-banner.unverified .status-icon-box {
    background: var(--danger-light);
    color: var(--danger);
}

/* Tables styling */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(13, 19, 36, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: rgba(6, 9, 19, 0.4);
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.badge-status.pending {
    background: rgba(234, 179, 8, 0.2);
    color: var(--pending);
}

.badge-status.accepted {
    background: var(--success-light);
    color: var(--success);
}

.badge-status.denied {
    background: var(--danger-light);
    color: var(--danger);
}

/* Forms styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Metrics widgets */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
}

.metric-card .val {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
}

.metric-card .lbl {
    font-size: 13px;
    color: var(--text-muted);
}

/* Services dashboard */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.running {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.stopped {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.terminal-box {
    background: #02040a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    height: 180px;
    overflow-y: auto;
    color: #38bdf8;
    white-space: pre-wrap;
}

/* Admin Console layout */
.console-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media(max-width: 1024px) {
    .console-grid {
        grid-template-columns: 1fr;
    }
}

/* Autocomplete search results */
.autocomplete-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
}

.search-results li {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.search-results li:hover {
    background: var(--primary);
    color: #fff;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup-box {
    width: 480px;
    max-width: 90%;
    background: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    animation: popupScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.popup-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.popup-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.permission-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 12px;
}

.permission-pill span.remove-btn {
    cursor: pointer;
    color: var(--danger);
    font-weight: 700;
}

.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
}

/* Dynamic Plugin Submenu Styles */
.plugin-submenu {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.plugin-submenu li {
    font-size: 13px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500 !important;
}

.plugin-submenu li:hover, .plugin-submenu li.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

