/* STRICKS BR - Gamer Dark Theme */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-hover: #252540;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-muted: #555;
    --blue: #00b4d8;
    --blue-dark: #0096b7;
    --purple: #6c63ff;
    --purple-dark: #5a52d5;
    --green: #00ff88;
    --orange: #ff6b35;
    --yellow: #ffd600;
    --pink: #ff6ec7;
    --red: #ff4444;
    --neon-blue: #00e5ff;
    --neon-purple: #7c4dff;
    --border: rgba(108, 99, 255, 0.2);
    --border-hover: rgba(0, 180, 216, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-neon: 0 0 20px rgba(0, 180, 216, 0.15);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
    color: #fff;
}

.navbar-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 2px;
}

.navbar-brand .logo-text span {
    color: var(--blue);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--blue);
    background: rgba(0, 180, 216, 0.1);
}

.navbar-nav a.active {
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-user .username {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-logout {
    padding: 6px 12px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: var(--red);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(255, 68, 68, 0.2);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    position: relative;
    z-index: 1;
    padding: 88px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-neon);
}

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

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

.card-header .badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-blue {
    background: rgba(0, 180, 216, 0.15);
    color: var(--blue);
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.badge-purple {
    background: rgba(108, 99, 255, 0.15);
    color: var(--purple);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-info .stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.blue { background: rgba(0, 180, 216, 0.15); color: var(--blue); }
.stat-icon.purple { background: rgba(108, 99, 255, 0.15); color: var(--purple); }
.stat-icon.green { background: rgba(0, 255, 136, 0.15); color: var(--green); }
.stat-icon.orange { background: rgba(255, 107, 53, 0.15); color: var(--orange); }
.stat-icon.yellow { background: rgba(255, 214, 0, 0.15); color: var(--yellow); }
.stat-icon.pink { background: rgba(255, 110, 199, 0.15); color: var(--pink); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

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

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
}

.btn-purple:hover {
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--green), #00cc6a);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--red);
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ============================================================
   UPLOAD ZONE
   ============================================================ */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 180, 216, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--blue);
    background: rgba(0, 180, 216, 0.05);
}

.upload-zone .upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-zone p {
    color: var(--text-secondary);
}

.upload-zone .upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.upload-zone input[type="file"] {
    display: none;
}

/* ============================================================
   FILE TYPE TOGGLE
   ============================================================ */
.type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.type-toggle label {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.type-toggle input[type="radio"] {
    display: none;
}

.type-toggle input[type="radio"]:checked + span {
    color: #fff;
}

.type-toggle label.active-apk {
    border-color: var(--green);
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
}

.type-toggle label.active-mod {
    border-color: var(--purple);
    background: rgba(108, 99, 255, 0.1);
    color: var(--purple);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: rgba(0, 180, 216, 0.03);
}

/* ============================================================
   FILE CARDS (APKs / MODs / Products)
   ============================================================ */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.file-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.file-card .file-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.file-type-badge.apk {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.file-type-badge.mod {
    background: rgba(108, 99, 255, 0.1);
    color: var(--purple);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.file-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.file-card .game-name {
    color: var(--blue);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.file-card .file-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-card .file-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.file-card .file-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.category-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-filter .filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-filter .filter-btn:hover,
.category-filter .filter-btn.active {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(0, 180, 216, 0.1);
}

/* ============================================================
   KEY DISPLAY
   ============================================================ */
.key-code {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--green);
    background: rgba(0, 255, 136, 0.05);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: inline-block;
    letter-spacing: 1px;
}

.key-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.key-list-item:hover {
    background: rgba(0, 180, 216, 0.03);
}

.key-used {
    color: var(--red);
    text-decoration: line-through;
    opacity: 0.5;
}

/* ============================================================
   API DOCS
   ============================================================ */
.endpoint-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
}

.endpoint-method {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.endpoint-method.get {
    background: rgba(0, 255, 136, 0.15);
    color: var(--green);
}

.endpoint-method.post {
    background: rgba(0, 180, 216, 0.15);
    color: var(--blue);
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #fff;
}

.endpoint-body {
    padding: 0 20px 20px;
    display: none;
}

.endpoint-body.show {
    display: block;
}

.endpoint-body pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================================
   SWITCH / TOGGLE
   ============================================================ */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked + .switch-slider {
    background: rgba(0, 180, 216, 0.3);
    border-color: var(--blue);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
    background: var(--blue);
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--green);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--red);
}

.alert-info {
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: var(--blue);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 16px;
}

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

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.download-page {
    max-width: 500px;
    margin: 0 auto;
    padding-top: 120px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.download-card .file-icon {
    font-size: 4rem;
    color: var(--blue);
    margin-bottom: 16px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
    }
    
    .navbar-nav.open {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 80px 16px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }
.text-pink { color: var(--pink); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
