:root {
    --bg-color: #0a0a0c;
    --panel-bg: rgba(20, 20, 22, 0.7);
    --accent-red: #e63946;
    --accent-red-glow: rgba(230, 57, 70, 0.4);
    --text-main: #e0e0e0;
    --text-muted: #9aa0a6;
    --border-color: #2a2a2e;
    --success-green: #4caf50;
}

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

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(20, 20, 20, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 20, 0.5) 1px, transparent 1px);
    background-size: 30px 30px;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.store-header .logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
    text-decoration: none;
}

.logo-accent {
    color: var(--accent-red);
}

.store-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.store-header nav a:hover {
    color: var(--accent-red);
}

.nav-login-btn {
    border: 1px solid var(--accent-red);
    padding: 6px 16px;
    border-radius: 4px;
    color: var(--accent-red) !important;
}
.nav-login-btn:hover {
    background-color: rgba(230, 57, 70, 0.1);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 100px 20px 80px;
    background: radial-gradient(circle at center, rgba(230, 57, 70, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 30px;
    background: rgba(230, 57, 70, 0.05);
}

.hero-section h1 {
    font-size: clamp(1.8rem, 8vw, 4rem);
    word-break: break-word;
    margin-bottom: 20px;
    margin-top: 0;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-section h1 span {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-red-glow);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 50px;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
}

/* Mechanics Grid in Hero */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 800px;
    margin-bottom: 60px;
}

.mechanic-item {
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 0.95rem;
    color: #d4d4d4;
    backdrop-filter: blur(5px);
}

.m-icon {
    display: flex;
    align-items: center;
    color: var(--accent-red);
    margin-right: 15px;
}

/* Buttons */
.glow-effect {
    background-color: var(--accent-red);
    color: white;
    padding: 16px 45px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.glow-effect:hover {
    background-color: #c42936;
    box-shadow: 0 0 25px var(--accent-red-glow);
    transform: translateY(-2px);
}

/* Featured Game Section */
.featured-game {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10%;
    background-color: rgba(15, 15, 17, 0.9);
}

.featured-content {
    flex: 1;
    padding-right: 60px;
}

.featured-content h2 {
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    word-break: break-word;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 2px;
    margin-top: 0;
}

.tagline {
    font-size: 1rem;
    color: var(--accent-red);
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.game-description {
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.buy-btn {
    background-color: var(--success-green);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.05rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buy-btn:hover {
    background-color: #45a049;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.price-tag {
    background: rgba(0,0,0,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.demo-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 14px 30px;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    background: var(--panel-bg);
}

.demo-btn:hover {
    border-color: #777;
    background-color: rgba(50, 50, 50, 0.5);
}

/* Dossier Folder Visual */
.featured-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.dossier-folder {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3.8 / 5;
    margin: 0 auto;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.dossier-folder:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.dossier-tab {
    position: absolute;
    top: -30px;
    right: 20px;
    background: #d0c0a0;
    color: #333;
    padding: 8px 20px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 8px 8px 0 0;
    border: 1px solid #a09070;
    border-bottom: none;
    z-index: 1;
}

.dossier-content {
    width: 100%;
    height: 100%;
    background: #e6d8b8;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.4"/></svg>');
    border-radius: 4px;
    border: 1px solid #a09070;
    box-shadow: 
        -10px 10px 30px rgba(0,0,0,0.5),
        inset 0 0 50px rgba(150,130,90,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
}

.stamp-confidential {
    position: absolute;
    top: 40px;
    left: -20px;
    color: var(--accent-red);
    border: 4px solid var(--accent-red);
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    transform: rotate(-25deg);
    opacity: 0.7;
    letter-spacing: 4px;
}

.cover-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 900;
    color: #222;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.2;
    margin-bottom: 20px;
}

.accent-text {
    color: #900;
}

.case-number {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', Courier, monospace;
    color: #444;
    font-size: 1.1rem;
    font-weight: bold;
    border-top: 2px solid #555;
    border-bottom: 2px solid #555;
    padding: 5px 0;
    width: 60%;
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 80px 10%;
    background-color: var(--bg-color);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.section-subtitle {
    display: block;
    color: var(--accent-red);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: bold;
}

.features-section h2 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    word-break: break-word;
    margin-bottom: 60px;
    margin-top: 0;
    color: #fff;
    letter-spacing: 2px;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-card {
    background-color: var(--panel-bg);
    backdrop-filter: blur(5px);
    padding: 25px 30px;
    flex: 1;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-align: left;
}

.evidence-card {
    border-top: 4px solid var(--accent-red);
    position: relative;
    overflow: hidden;
}

.evidence-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 30px;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        rgba(230, 57, 70, 0.03) 10px,
        rgba(230, 57, 70, 0.03) 20px
    );
    pointer-events: none;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.meta-id {
    color: #666;
    letter-spacing: 1px;
}

.meta-status {
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

.meta-status.alert {
    color: var(--accent-red);
}

.meta-status.warning {
    color: #f39c12;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: #444;
    background-color: rgba(30, 30, 35, 0.9);
}

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

.feature-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 8px;
    color: var(--accent-red);
    flex-shrink: 0;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Catalog Section */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.catalog-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.catalog-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.catalog-status {
    position: absolute;
    top: 25px;
    right: -55px;
    width: 200px;
    text-align: center;
    background-color: var(--success-green);
    color: white;
    padding: 7px 0;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(45deg);
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 10;
}

.catalog-status.locked {
    background-color: #555;
    color: #aaa;
}

.catalog-img-placeholder {
    width: 100%;
    height: 180px;
    background: #e6d8b8;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.4"/></svg>');
    border-radius: 4px;
    border: 1px solid #a09070;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    font-size: 1.5rem;
    color: #222;
    text-align: center;
    position: relative;
}

.catalog-img-placeholder.locked {
    background: #1e1e20;
    border-color: #333;
    color: #444;
    background-image: none;
}

.folder-tab {
    position: absolute;
    top: 0;
    left: 0;
    background: #d0c0a0;
    color: #333;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-right: 1px solid #a09070;
    border-bottom: 1px solid #a09070;
    border-radius: 4px 0 4px 0;
    font-weight: bold;
}

.catalog-img-placeholder.locked .folder-tab {
    background: #333;
    color: #777;
    border-color: #444;
}

.catalog-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.catalog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.catalog-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    box-sizing: border-box;
}

.catalog-btn:not(.disabled):hover {
    background-color: var(--accent-red);
    color: #fff;
}

.catalog-btn.disabled {
    border-color: #444;
    color: #666;
    cursor: not-allowed;
}

/* Footer */
.store-footer {
    text-align: center;
    padding: 40px;
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
    color: #555;
    font-family: 'Courier New', Courier, monospace;
}

/* Checkout Page Styles */
.checkout-container {
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
    background-color: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}
.checkout-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}
.checkout-header h2 {
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.checkout-header p {
    color: #d32f2f; /* Using a warning red color matching the theme */
    font-size: 0.9em;
    letter-spacing: 1px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.name-fields {
    display: flex;
    gap: 20px;
    width: 100%;
}
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #888;
    text-transform: uppercase;
}
.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
}
.form-group input:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}
.order-summary {
    background-color: #151515;
    padding: 25px;
    border: 1px dashed #444;
    border-radius: 4px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
    color: #ccc;
}
.total {
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
    white-space: nowrap;
}
.checkout-btn {
    width: 100%;
    padding: 16px;
    background-color: #d32f2f;
    color: white;
    border: none;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 25px;
    transition: all 0.3s ease;
}
.checkout-btn:hover {
    background-color: #b71c1c;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.4);
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #888;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}
.back-link:hover {
    color: #fff;
}
.secure-badge {
    text-align: center;
    font-size: 0.8em;
    color: #555;
    margin-top: 20px;
    line-height: 1.5;
}

/* Auth Pages (Login / Register) */
.auth-container {
    width: 90%;
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.auth-container h2 { text-align: center; margin-bottom: 30px; letter-spacing: 2px; }
.auth-toggle { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.auth-toggle a { color: var(--accent-red); text-decoration: none; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.auth-toggle a:hover { color: #fff; text-decoration: underline; }

/* Profile Page */
.profile-container { max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.profile-header { display: flex; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; margin-bottom: 40px; gap: 30px; }
.profile-avatar { width: 90px; height: 90px; background: rgba(230,57,70,0.05); border: 2px solid var(--accent-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--accent-red); flex-shrink: 0;}
.profile-info h1 { margin: 0 0 10px 0; font-size: 2rem; color: #fff; letter-spacing: 1px;}
.profile-info p { margin: 0; color: var(--text-muted); }
.profile-stats { display: flex; gap: 15px; margin-top: 15px; flex-wrap: wrap; }
.stat-badge { background: #151515; padding: 5px 12px; border-radius: 4px; border: 1px solid #333; font-size: 0.85rem; font-family: 'Courier New', Courier, monospace; color: #ccc;}
.stat-badge strong { color: var(--accent-red); }

.owned-cases h2 { margin-bottom: 25px; border-left: 4px solid var(--accent-red); padding-left: 15px; color: #fff; }
.owned-cases-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 25px; }
.owned-case-card { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 25px; display: flex; flex-direction: column; gap: 15px; transition: all 0.3s; position: relative; overflow: hidden; }
.owned-case-card:hover { border-color: #555; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.owned-case-card h3 { margin: 0; font-size: 1.2rem; color: #fff; }
.case-progress-wrap { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.case-progress-text { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); font-family: 'Courier New', monospace; }
.case-progress { height: 6px; background: #222; border-radius: 3px; overflow: hidden; }
.case-progress-bar { height: 100%; background: var(--success-green); width: 0%; transition: width 0.5s ease; }
.btn-play { background: var(--accent-red); color: #fff; text-align: center; text-decoration: none; padding: 12px; border-radius: 4px; font-weight: bold; letter-spacing: 1px; transition: background 0.3s; border: none; cursor: pointer; text-transform: uppercase; margin-top: auto; }
.btn-play:hover { background: #c42936; }

@media (max-width: 600px) {
    .profile-header { flex-direction: column; text-align: center; }
    .profile-stats { justify-content: center; }
}

/* Адаптивен дизайн (Mobile) */
@media (max-width: 950px) {
    .store-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    .store-header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .store-header nav a {
        margin: 0;
    }
    .featured-game, .features-grid {
        flex-direction: column;
    }
        .featured-image-wrapper {
            justify-content: center;
            margin-top: 40px;
            width: 100%;
            perspective: none;
        }
    .mechanics-grid {
        grid-template-columns: 1fr;
    }
    .featured-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    .action-buttons {
        justify-content: center;
    }
    .dossier-folder {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        transform: none;
    }
    .dossier-folder:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .store-header { padding: 15px; }
    .hero-section { padding-top: 60px; padding-bottom: 50px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 35px; }
    .featured-game { padding: 60px 20px; }
    .game-description { font-size: 0.95rem; }
    .buy-btn, .demo-btn { 
        width: 100%; 
        justify-content: center; 
        text-align: center; 
        font-size: 0.85rem;
        padding: 12px 10px;
        white-space: nowrap;
    }
    .glow-effect { font-size: 0.9rem; padding: 12px 20px; white-space: nowrap; }
    .catalog-btn { font-size: 0.85rem; white-space: nowrap; }
    .checkout-btn { font-size: 0.9rem; padding: 12px; }
    .stamp-confidential {
        font-size: 1.1rem;
        padding: 5px 10px;
        left: 10px;
        top: 25px;
        border-width: 3px;
        letter-spacing: 2px;
    }
    .dossier-tab { top: -26px; right: 10px; font-size: 0.8rem; padding: 5px 10px; }
    .mechanic-item { font-size: 0.85rem; padding: 12px; }
    .action-buttons { gap: 10px; }
    .store-header nav a { font-size: 0.8rem; }
    .features-section { padding: 50px 20px; }
    .feature-card { padding: 20px; }
    .catalog-card { padding: 20px; }
    .store-footer { padding: 20px; font-size: 0.85rem; }
    .checkout-container { padding: 20px; margin: 30px auto; }
    .name-fields {
        flex-direction: column;
        gap: 0;
    }
    .total { font-size: 1.1em; }
}

/* Admin Page Elements */
.admin-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.admin-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.admin-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 0;
}
.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-menu li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.admin-menu li:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.admin-menu li.active { background: rgba(230, 57, 70, 0.1); color: var(--accent-red); border-left-color: var(--accent-red); }
.admin-main { flex-grow: 1; min-width: 0; }
.admin-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.admin-table th, .admin-table td {
    border-bottom: 1px solid #333;
    padding: 15px 12px;
    text-align: left;
}
.admin-table th {
    color: var(--accent-red);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}
.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Admin Modal Styles */
.admin-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.admin-modal-content {
    background: #111;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.admin-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.admin-modal-close:hover { color: var(--accent-red); }