:root {
    --primary: #2b70fa;
    /* Royal Blue */
    --primary-dark: #1a4bd6;
    --secondary: #00d9ff;
    /* Cyan accent */
    --bg-dark: #02040a;
    /* Very dark blue-black */
    --text-light: #f0f7ff;
    --text-dim: #94a9c9;
    --glass-bg: rgba(20, 40, 80, 0.3);
    /* Blue-tinted glass */
    --glass-border: rgba(60, 100, 200, 0.2);
    --card-hover: rgba(43, 112, 250, 0.15);
    --danger: #ff4d4d;
    --success: #00ff88;
    --warning: #ffcc00;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation - Blue Grid */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #02040a;
    background-image:
        linear-gradient(rgba(43, 112, 250, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 112, 250, 0.25) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;

    /* Default position if JS fails/loads late */
    --x: 50vw;
    --y: 50vh;

    /* The spotlight mask */
    mask-image: radial-gradient(circle 600px at var(--x) var(--y), black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle 600px at var(--x) var(--y), black 10%, transparent 70%);
}

/* Optional: Keep a subtle pulse or movement if desired, or remove animation for a static clean grid */
@keyframes bgPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.02);
    }
}

@keyframes bgPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(2, 4, 10, 0.7);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-button-small {
    background: rgba(0, 242, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
}

.cta-button-small:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 15px var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
    /* Navbar offset */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 80%;
}

.platform-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge.coming-soon {
    opacity: 0.7;
    border-style: dashed;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.cta-button,
.secondary-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.5);
    background: #fff;
}

.secondary-button {
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

/* Floating Card Animation */
.hero-visual {
    position: relative;
    width: 400px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    width: 100%;
    background: rgba(16, 24, 40, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-20px) rotateX(2deg) rotateY(-2deg);
    }

    100% {
        transform: translateY(0px) rotateX(0) rotateY(0);
    }
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.code-line {
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.cmd {
    color: #c678dd;
}

.id {
    color: #d19a66;
}

.str {
    color: #98c379;
}

.func {
    color: #61afef;
}

.success {
    color: var(--success);
}

.info {
    color: var(--primary);
}

/* Features Section */
.features-section {
    padding: 100px 10%;
}

/* Scroll Animation States */
.feature-card,
.section-title,
.hero-content,
.hero-visual {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger animations for grid items */
.feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.3s;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(180deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-top: -2.0rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    /* Increased padding */
    border-radius: 16px;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Shine Effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(43, 112, 250, 0.1);
}

.icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 12px;
    background: rgba(43, 112, 250, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(43, 112, 250, 0.2);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-dim);
}

/* Executor Section */
.executor-section {
    padding: 100px 10%;
    position: relative;
    z-index: 2;
}

.executor-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(10, 15, 30, 0.6);
    padding: 2px;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

.executor-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    /* Increased height for terminal */
}

.window-topbar {
    background: #252526;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.window-title {
    font-size: 0.9rem;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.win-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.minimize {
    background: #f1fa8c;
}

.maximize {
    background: #50fa7b;
}

.close {
    background: #ff5555;
}

.window-body {
    flex: 1;
    display: flex;
    background: #1e1e1e;
    overflow: hidden;
}

.sidebar {
    width: 50px;
    background: #252526;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    border-right: 1px solid #333;
}

.sidebar-item {
    color: #858585;
    font-size: 1.2rem;
    padding: 15px 0;
    cursor: pointer;
    transition: color 0.3s;
    width: 100%;
    text-align: center;
    border-left: 2px solid transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
    color: var(--text-light);
}

.sidebar-item.active {
    border-left-color: var(--primary);
}

.main-editor-view {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-area {
    flex: 2;
    /* Takes more space than terminal */
    display: flex;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    border-bottom: 1px solid #333;
}

.line-numbers {
    width: 40px;
    background: #1e1e1e;
    color: #858585;
    text-align: right;
    padding: 10px 10px 10px 0;
    line-height: 1.5;
    user-select: none;
    border-right: 1px solid #333;
}

.code-content {
    flex: 1;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 10px;
    outline: none;
    line-height: 1.5;
    white-space: pre;
    overflow: auto;
    caret-color: var(--text-light);
}

/* Terminal Styles */
.terminal-area {
    flex: 1;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #252526;
    color: #cccccc;
    font-size: 0.8rem;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
    font-weight: 600;
}

.terminal-content {
    flex: 1;
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    overflow-y: auto;
    color: #d4d4d4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-info {
    color: #61afef;
}

.log-success {
    color: #98c379;
}

.log-warn {
    color: #e5c07b;
}

/* Toolbar */
.window-toolbar {
    height: 40px;
    background: #007acc;
    /* VS Code blue status bar */
    color: White;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    font-size: 0.9rem;
}

.exec-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.exec-btn:hover {
    color: #fff;
}

.exec-btn.primary {
    font-weight: 600;
    color: #fff;
}

.divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
}

/* Games Hub Section */
.games-section {
    padding: 50px 10%;
    position: relative;
    z-index: 2;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.8), rgba(5, 10, 20, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    /* Important for thumbnail image */
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-dark);
}

.game-thumbnail {
    height: 140px;
    background: linear-gradient(45deg, #1cb5e0, #000851);
    /* Default gradient */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

.game-thumbnail .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(20, 30, 50, 0.8));
}

.game-thumbnail i {
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.game-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.game-status.online {
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.game-status.warning {
    color: var(--warning);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.game-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.3;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.stat {
    color: var(--text-dim);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.join-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--primary-dark);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.join-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.join-btn.disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

/* TOS Section */
.tos-section {
    padding: 100px 10%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.tos-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.tos-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}

.tos-group {
    margin-bottom: 3rem;
}

.tos-group:last-child {
    margin-bottom: 0;
}

.tos-group h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.forbidden h3 {
    color: var(--danger);
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
}

.allowed h3 {
    color: var(--success);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.special h3 {
    color: var(--warning);
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

.tos-group ul {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid var(--glass-border);
}

.tos-group li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 10px;
}

.tos-group li::before {
    content: '';
    position: absolute;
    left: -26px;
    /* Align with border */
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: all 0.3s ease;
}

.forbidden li::before {
    background: var(--danger);
}

.allowed li::before {
    background: var(--success);
}

.special li::before {
    background: var(--warning);
}

.tos-group li:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 10px currentColor;
}

/* Footer */
.footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    background: #02040a;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-visual {
        margin-top: 3rem;
        width: 100%;
        max-width: 350px;
    }

    .platform-badges {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Add JS toggle later if needed, simple for now */
    }

    .mobile-menu-btn {
        display: block;
    }

    .tos-container {
        padding: 1.5rem;
    }
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: rgba(10, 15, 30, 0.7);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.auth-header p {
    color: var(--text-dim);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.7;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.3);
}

.auth-footer {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.auth-footer a,
.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover,
.forgot-link:hover {
    text-decoration: underline;
}

/* Redeem Page Specifics */
.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.security-badge {
    text-align: center;
    color: var(--success);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
}

/* Panel Layout */
.panel-body {
    overflow: hidden;
    /* Prevent scrolling on panel body itself */
}

.panel-layout {
    display: flex;
    height: 100vh;
}

.panel-sidebar {
    width: 260px;
    background: rgba(5, 10, 20, 0.95);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    z-index: 100;
}

.panel-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 40px;
    padding-left: 10px;
}

.panel-logo span {
    color: #fff;
    font-weight: 300;
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 30px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--success);
    text-transform: uppercase;
    font-weight: 700;
}

.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    padding: 12px 15px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 242, 255, 0.1);
    color: #fff;
}

.nav-item.active {
    border-left: 3px solid var(--primary);
}

.nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 10px 0;
}

.nav-item.logout {
    color: var(--danger);
}

.nav-item.logout:hover {
    background: rgba(255, 77, 77, 0.1);
}

.panel-main {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: rgba(16, 24, 40, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--success);
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.stat-details h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.stat-details .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.panel-section-container h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.log-table {
    border-radius: 12px;
    overflow: hidden;
}

.log-header,
.log-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    /* Adjust columns */
    padding: 15px 20px;
    align-items: center;
}

.log-header {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
}

.log-row {
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
}

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

.log-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.status-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-tag.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.status-tag.failed {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
}