/* CSS Design System for Masa7 Gaming Portal */

:root {
    /* Color Palette */
    --bg-darkest: #07090e;
    --bg-darker: #0d1117;
    --bg-card: rgba(22, 28, 38, 0.7);
    --bg-card-hover: rgba(29, 37, 51, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.15);
    
    /* Accents */
    --color-cyan: #00f0ff;
    --color-cyan-glow: rgba(0, 240, 255, 0.4);
    --color-green: #00ff66;
    --color-green-glow: rgba(0, 255, 102, 0.4);
    --color-red: #ff3860;
    --color-red-glow: rgba(255, 56, 96, 0.4);
    --color-yellow: #ffd200;
    --color-yellow-glow: rgba(255, 210, 0, 0.4);
    
    /* Text colors */
    --text-primary: #f5f6f8;
    --text-secondary: #9aa4b7;
    --text-muted: #626e84;

    /* Fonts */
    --font-header: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Background Effects */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: -200px;
    left: -100px;
    background: var(--color-cyan);
    animation: floatingOrb 15s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -200px;
    right: -100px;
    background: var(--color-green);
    animation: floatingOrb 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatingOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.1); }
}

/* Header Styles */
.header {
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-m7 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, #fff 30%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.logo-tag {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -3px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-sub);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.nav-link.active {
    color: var(--color-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}

.auth-area {
    display: flex;
    align-items: center;
}

.auth-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-text-only {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sub);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-text-only:hover {
    color: var(--color-cyan);
}

.user-greeting {
    font-family: var(--font-sub);
    font-size: 1rem;
    color: var(--text-secondary);
}

.user-greeting strong {
    color: var(--color-cyan);
}

/* SPA Sections */
.spa-section {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.spa-section.hidden {
    display: none;
}

/* Layout Containers */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-text-content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.accent-text {
    color: var(--color-green);
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.glow-text {
    color: var(--color-cyan);
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-smooth);
}

.card-cs .card-accent-line {
    background: linear-gradient(90deg, transparent, var(--color-green), transparent);
}

.card-wagods .card-accent-line {
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

.download-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-cs:hover {
    border-color: rgba(0, 255, 102, 0.25);
    box-shadow: 0 12px 30px rgba(0, 255, 102, 0.05);
}

.card-wagods:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.05);
}

.card-icon {
    margin-bottom: 1.5rem;
    width: fit-content;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-cs .card-icon {
    color: var(--color-green);
    text-shadow: 0 0 15px var(--color-green-glow);
}

.card-wagods .card-icon {
    color: var(--color-cyan);
    text-shadow: 0 0 15px var(--color-cyan-glow);
}

.card-title {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-meta {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Download Buttons */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-header);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    letter-spacing: 1px;
}

.btn-green {
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.1), rgba(0, 255, 102, 0.2));
    border: 1px solid var(--color-green);
    color: var(--color-green);
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.1);
}

.btn-green:hover {
    background: var(--color-green);
    color: var(--bg-darkest);
    box-shadow: 0 4px 20px var(--color-green-glow);
    transform: scale(1.02);
}

.btn-cyan {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.2));
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.btn-cyan:hover {
    background: var(--color-cyan);
    color: var(--bg-darkest);
    box-shadow: 0 4px 20px var(--color-cyan-glow);
    transform: scale(1.02);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.stat-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(22, 28, 38, 0.85);
}

.stat-number {
    display: block;
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box.accent-green .stat-number {
    color: var(--color-green);
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
}
.stat-box.accent-yellow .stat-number {
    color: var(--color-yellow);
    text-shadow: 0 0 15px rgba(255, 210, 0, 0.15);
}
.stat-box.accent-red .stat-number {
    color: var(--color-red);
    text-shadow: 0 0 15px rgba(255, 56, 96, 0.15);
}

/* Logs Section */
.logs-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

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

/* Controls (Search & Filter) */
.controls-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background-color: rgba(7, 9, 14, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    background-color: rgba(7, 9, 14, 0.9);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dot-green { background-color: var(--color-green); box-shadow: 0 0 6px var(--color-green); }
.dot-yellow { background-color: var(--color-yellow); box-shadow: 0 0 6px var(--color-yellow); }
.dot-red { background-color: var(--color-red); box-shadow: 0 0 6px var(--color-red); }

/* Table Elements */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(7, 9, 14, 0.3);
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.logs-table th {
    background-color: rgba(7, 9, 14, 0.8);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logs-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.logs-table tbody tr {
    transition: var(--transition-fast);
}

.logs-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    width: fit-content;
}

.badge-clean {
    background-color: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: var(--color-green);
}

.badge-warning {
    background-color: rgba(255, 210, 0, 0.08);
    border: 1px solid rgba(255, 210, 0, 0.3);
    color: var(--color-yellow);
}

.badge-cheat {
    background-color: rgba(255, 56, 96, 0.08);
    border: 1px solid rgba(255, 56, 96, 0.3);
    color: var(--color-red);
}

/* Button general */
.btn-primary, .btn-secondary {
    font-family: var(--font-sub);
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-cyan);
    color: var(--bg-darkest);
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--color-cyan-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.btn-inspect {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--color-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-inspect:hover {
    background: var(--color-cyan);
    color: var(--bg-darkest);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.no-results {
    padding: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Simulation Panel styles */
.simulation-panel {
    background: rgba(7, 9, 14, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.panel-header h3 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: var(--color-cyan);
}

.close-panel-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-panel-btn:hover {
    color: var(--text-primary);
}

.sim-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 5px var(--color-cyan-glow);
}

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

/* Info Section */
.info-section {
    margin-bottom: 4rem;
}

.info-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition-fast);
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.info-card h3 {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-cyan);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-darkest);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.glow-link {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

.glow-link:hover {
    text-shadow: 0 0 8px var(--color-cyan-glow);
    color: #fff;
}

/* Modal Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-container {
    background: var(--bg-darker);
    border: 1px solid var(--color-cyan);
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
    overflow: hidden;
    animation: modalReveal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes modalReveal {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    background: rgba(0, 240, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
    margin-right: 1.25rem;
}

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dots .dot.red { background-color: #ff5f56; }
.terminal-dots .dot.yellow { background-color: #ffbd2e; }
.terminal-dots .dot.green { background-color: #27c93f; }

.modal-title {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-cyan);
    flex-grow: 1;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-player-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.modal-player-meta strong {
    color: var(--text-secondary);
}

/* Terminal Styling */
.terminal-screen {
    background-color: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #a4b3c6;
    overflow-y: auto;
    max-height: 280px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.terminal-line {
    margin-bottom: 0.4rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line.system-line {
    color: #5c6d84;
}

.terminal-line.clean-line {
    color: var(--color-green);
}

.terminal-line.warning-line {
    color: var(--color-yellow);
}

.terminal-line.cheat-line {
    color: var(--color-red);
}

.terminal-line.divider {
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: -1px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Toast Messages */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--color-cyan);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    box-shadow: 0 5px 25px rgba(0, 240, 255, 0.2);
    z-index: 300;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: toastSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sub);
    font-weight: 600;
    color: #fff;
}

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

/* Helpers */
.hidden {
    display: none !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .logs-section {
        padding: 1.25rem 1rem;
    }
    
    .controls-container {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-group {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
    
    .logs-table th, .logs-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .modal-player-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ==========================================
   FORUM STYLES
   ========================================== */
.forum-category-card {
    background: rgba(13, 18, 28, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.forum-category-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.15);
    transform: translateY(-2px);
}

.forum-category-info h4 {
    color: var(--color-cyan);
    font-family: var(--font-sub);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.forum-category-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.forum-category-stats {
    display: flex;
    gap: 15px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.forum-category-stats div strong {
    color: var(--text-primary);
    display: block;
    font-size: 1.1rem;
}

.forum-thread-row {
    cursor: pointer;
    transition: background 0.2s;
}

.forum-thread-row:hover {
    background: rgba(0, 168, 255, 0.05);
}

.forum-reply-card {
    background: rgba(13, 18, 28, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
}

.forum-reply-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-reply-author {
    color: var(--color-cyan);
    font-weight: bold;
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.main-footer {
    background: rgba(10, 14, 23, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 20px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--text-primary);
    font-family: var(--font-sub);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-cyan);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-cyan);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Google Auth Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #3c4043;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.30), 0 1px 3px 1px rgba(60,64,67,0.15);
}

/* Mobile Responsive Burger Menu */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 200; }
.mobile-menu-btn span { width: 25px; height: 3px; background: var(--color-cyan); border-radius: 3px; transition: 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) { 
    .mobile-menu-btn { display: flex; } 
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(7, 9, 14, 0.95); padding: 20px 0; border-bottom: 1px solid var(--border-color); } 
    .main-nav.active { display: flex; } 
    .auth-area { display: none; flex-direction: column; width: 100%; margin-top: 10px; background: rgba(7, 9, 14, 0.95); padding: 20px 0; position: absolute; top: calc(100% + 220px); left: 0; border-bottom: 1px solid var(--border-color); } 
    .auth-area.active { display: flex; } 
    .header-container { flex-wrap: wrap; } 
    .logo-area { margin-left: auto; margin-right: auto; } 
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
}

/* User Profile Dropdown Styles */
.user-profile-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    user-select: none;
}

.user-profile-dropdown:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
}

.user-profile-dropdown:hover #dropdownArrow {
    color: var(--color-cyan);
    transform: translateY(1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 170px;
    z-index: 1000;
    overflow: hidden;
    transform-origin: top right;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-menu.hidden {
    display: none !important;
}

.dropdown-item {
    background: none;
    border: none;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    font-family: var(--font-sub);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.dropdown-item:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--color-cyan);
}

.dropdown-item.logout {
    color: var(--accent-red);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item.logout:hover {
    background: rgba(255, 56, 96, 0.08);
    color: var(--accent-red);
}


/* For mobile responsive auth area adjust dropdown position */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }
    .user-profile-dropdown {
        width: 100%;
        justify-content: space-between;
    }
}

