/* 
   DEXTER RPG - COMPLETE DARK THEME
   Responsive: Desktop, Tablet, Mobile
*/

:root {
    --primary: #dc2626;
    --primary-hover: #ef4444;
    --primary-dark: #991b1b;
    --primary-glow: rgba(220, 38, 38, 0.4);
    --dx-red: #dc2626;
    
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --bg-elevated: #111111;
    --bg-hover: #1a1a1a;
    
    --border: #1a1a1a;
    --border-hover: #2a2a2a;
    
    --text: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #666666;
    
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --purple: #8b5cf6;
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    
    --header-height: 64px;
    --sidebar-width: 260px;
    --mobile-nav-height: 70px;
    
    --transition: 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* ==================== DESKTOP LAYOUT ==================== */

.desktop-layout {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-layout {
        display: block;
    }
    
    .mobile-layout,
    .mobile-nav {
        display: none !important;
    }
}

/* Desktop Header */
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    transition: var(--transition);
}

.header-left .logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.header-left .logo:hover {
    color: var(--primary);
}

.header-center .player-stats {
    display: flex;
    gap: 24px;
}

.header-center .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.header-center .stat-item i {
    font-size: 1rem;
}

.header-center .stat-item i.fa-heart { color: #ef4444; }
.header-center .stat-item i.fa-bolt { color: #f59e0b; }
.header-center .stat-item i.fa-moon { color: #8b5cf6; }

.header-center .stat-bar {
    width: 100px;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}

.header-center .stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width var(--transition);
}

.header-center .stat-fill.hp { background: linear-gradient(90deg, #dc2626, #ef4444); }
.header-center .stat-fill.energy { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.header-center .stat-fill.darkness { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }

.header-right .header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right .money {
    font-weight: 700;
    color: var(--success);
    font-size: 0.95rem;
}

.header-right .money i {
    margin-right: 4px;
}

.header-right .notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.header-right .notif-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--border-hover);
}

.header-right .notif-btn.has-notif {
    color: var(--warning);
}

.header-right .notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.header-right .profile-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.header-right .profile-btn:hover {
    border-color: var(--primary);
}

.header-right .profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop Body */
.desktop-body {
    display: flex;
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* Desktop Sidebar */
.desktop-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform var(--transition);
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-item.active {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Desktop Main Content */
.desktop-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px;
    min-width: 0;
}

/* ==================== CARDS ==================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 20px;
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
}

.card-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.card-header h2 i {
    color: var(--primary);
    font-size: 1rem;
}

.card-body {
    padding: 22px;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.btn.secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.btn.success {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white;
}

.btn:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ==================== ALERTS ==================== */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--primary);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

/* ==================== CONTENT GRID ==================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.content-main {
    min-width: 0;
}

.content-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-header h1 i {
    color: var(--primary);
}

/* ==================== FORMS ==================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ==================== TABLES ==================== */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

tbody tr:hover {
    background: var(--bg-hover);
}

/* ==================== BADGES ==================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.badge-primary {
    background: rgba(220, 38, 38, 0.15);
    color: var(--primary);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

/* ==================== PROGRESS BARS ==================== */

.progress {
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar.primary { background: linear-gradient(90deg, var(--primary), var(--primary-hover)); }
.progress-bar.success { background: linear-gradient(90deg, var(--success), #4ade80); }
.progress-bar.warning { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.progress-bar.purple { background: linear-gradient(90deg, var(--purple), #a855f7); }

/* ==================== STATS ==================== */

.stat-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ==================== LISTS ==================== */

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: var(--transition);
}

.list-item:hover {
    border-color: var(--border-hover);
}

.list-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.list-item-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== INFO TEXT ==================== */

.info-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== MINIGAME ==================== */

.minigame-status {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.minigame-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.minigame-rewards span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
}

.minigame-rewards span i {
    color: var(--primary);
}

/* Blood Grid */
.blood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}

.blood-cell {
    aspect-ratio: 1;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: transparent;
    transition: all 0.3s;
}

.blood-cell.flipped {
    background: rgba(161, 0, 0, 0.1);
    border-color: var(--dx-red);
    color: var(--dx-red);
}

.blood-cell.matched {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
    cursor: default;
}

/* ==================== MOBILE LAYOUT ==================== */

.mobile-layout {
    display: none;
    padding-bottom: calc(var(--mobile-nav-height) + 20px);
}

@media (max-width: 1023px) {
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: block;
    }
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.mobile-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.mobile-header .logo i {
    color: var(--primary);
}

.mobile-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-header .icon-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Mobile Content */
.mobile-content {
    padding: 76px 16px 16px;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 100;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius);
}

.mobile-nav-item i {
    font-size: 1.3rem;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* Mobile Sections */
.mobile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.mobile-section-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-section-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-section-header h3 i {
    color: var(--primary);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1023px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .content-side {
        order: -1;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .card-header {
        padding: 14px 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .blood-grid {
        gap: 8px;
        max-width: 100%;
    }
    
    .blood-cell {
        font-size: 1.2rem;
    }
}

/* ==================== UTILITIES ==================== */

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 8px !important; }
.p-2 { padding: 16px !important; }

.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }

.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }

.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* ==================== ADMIN STYLES ==================== */

.admin-page {
    background: var(--bg-dark);
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.admin-nav-item.active {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

.admin-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ==================== AUTH PAGES ==================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--primary);
}

.auth-logo h1 {
    font-size: 1.5rem;
    margin-top: 12px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ==================== LANDING PAGE ==================== */

.landing-page {
    min-height: 100vh;
    background: var(--bg-dark);
}

.landing-container {
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    background: linear-gradient(180deg, rgba(220,38,38,0.05) 0%, transparent 50%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(220,38,38,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px rgba(220,38,38,0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn.large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(220,38,38,0.1);
    border: 2px solid rgba(220,38,38,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--border-hover);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-date i {
    color: var(--primary);
}

.news-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Landing Footer */
.landing-footer {
    padding: 40px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Landing Page Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-logo {
        width: 120px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== DASHBOARD ==================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dash-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-card-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-card-header h2 i {
    color: var(--primary);
}

.dash-card-header a {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.dash-card-header a:hover {
    color: var(--primary);
}

.dash-card-body {
    padding: 20px;
}

/* Map */
.dash-map {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #0a1628 0%, #0d0d0d 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.dash-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 0.7rem;
    transition: var(--transition);
    cursor: pointer;
}

.dash-marker i {
    width: 36px;
    height: 36px;
    background: rgba(220,38,38,0.2);
    border: 2px solid rgba(220,38,38,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary);
}

.dash-marker:hover {
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.dash-marker:hover i {
    background: rgba(220,38,38,0.4);
    border-color: var(--primary);
}

.dash-marker span {
    white-space: nowrap;
    background: rgba(0,0,0,0.7);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Locations List */
.locations-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.location-item:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.loc-icon {
    width: 44px;
    height: 44px;
    background: rgba(220,38,38,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.loc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.loc-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.loc-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.location-item > i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Quest Row */
.quest-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.quest-row:last-child {
    border-bottom: none;
}

.quest-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.quest-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.quest-prog {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quest-bar {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}

.quest-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 3px;
}

/* News Row */
.news-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.news-row:last-child {
    border-bottom: none;
}

.news-row h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.news-row p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.news-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Activity Row */
.activity-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-row span {
    color: var(--text-muted);
}

.activity-row strong {
    color: var(--text);
}

/* Empty Box */
.empty-box {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.empty-box i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-box p {
    margin-bottom: 16px;
}

.small-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.small-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-side {
        grid-template-columns: 1fr;
    }
}

/* ==================== MOBILE GAME STYLES ==================== */

.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.mobile-logo i {
    color: var(--primary);
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-money {
    font-weight: 700;
    color: var(--success);
    font-size: 0.9rem;
}

.mobile-notif {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.mobile-notif.has-notif::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.mobile-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.mobile-avatar {
    position: relative;
}

.mobile-avatar img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
}

.mobile-level {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.mobile-player-info {
    flex: 1;
}

.mobile-username {
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.mobile-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-bar {
    position: relative;
    height: 16px;
    background: var(--bg-hover);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 8px;
}

.mobile-bar-fill.hp {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.mobile-bar-fill.energy {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.mobile-bar span {
    position: relative;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
}

.mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--border-hover);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
}

.action-btn i {
    font-size: 1rem;
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.dash-stat:hover {
    border-color: var(--border-hover);
}

.dash-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(220,38,38,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.dash-stat-info {
    display: flex;
    flex-direction: column;
}

.dash-stat-info .val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.dash-stat-info .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================== ACHIEVEMENTS ==================== */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: var(--transition);
}

.achievement-card:hover {
    border-color: var(--border-hover);
}

.achievement-card.earned {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.achievement-card.locked {
    opacity: 0.7;
}

.ach-icon {
    width: 60px;
    height: 60px;
    background: rgba(220,38,38,0.1);
    border: 2px solid rgba(220,38,38,0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.achievement-card.earned .ach-icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.achievement-card.locked .ach-icon {
    background: var(--bg-hover);
    border-color: var(--border);
    color: var(--text-muted);
}

.ach-info {
    flex: 1;
}

.ach-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.ach-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.ach-rewards {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ach-xp {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
}

.ach-done {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Mobile Achievements */
.mobile-achievements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-ach {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 14px;
    position: relative;
}

.mobile-ach.earned {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.mobile-ach.locked {
    opacity: 0.7;
}

.m-ach-icon {
    width: 50px;
    height: 50px;
    background: rgba(220,38,38,0.1);
    border: 2px solid rgba(220,38,38,0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.mobile-ach.earned .m-ach-icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.mobile-ach.locked .m-ach-icon {
    background: var(--bg-hover);
    border-color: var(--border);
    color: var(--text-muted);
}

.m-ach-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-ach-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.m-ach-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.m-ach-xp {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
}

.m-ach-check {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--success);
    font-size: 1.1rem;
}

/* Mobile Header */
.back-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.mobile-title {
    font-size: 1rem;
    font-weight: 700;
}

.mobile-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== QUESTS ==================== */

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quest-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.quest-card:hover {
    border-color: var(--border-hover);
}

.quest-card.completed {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.quest-card.active {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.quest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.quest-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.quest-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.quest-status.done {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.quest-status.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.quest-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.quest-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.quest-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), #fbbf24);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quest-progress span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.quest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quest-rewards {
    display: flex;
    gap: 16px;
}

.reward {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.reward.xp {
    color: var(--success);
}

.reward.money {
    color: var(--warning);
}

.quest-accept-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.quest-accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Mobile Quests */
.mobile-quest {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.mobile-quest.completed {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.mobile-quest.active {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.m-quest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.m-quest-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.m-quest-done {
    color: var(--success);
    font-size: 1.1rem;
}

.m-quest-prog {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.m-quest-bar {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.m-quest-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), #fbbf24);
    border-radius: 3px;
}

.m-quest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-quest-rewards {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
}

.m-quest-rewards span {
    color: var(--text-secondary);
}

.m-quest-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ==================== SHOP ==================== */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.shop-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.shop-item-image {
    height: 180px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.shop-item-content {
    padding: 16px;
}

.shop-item-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.shop-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.shop-item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.shop-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

.shop-buy-btn {
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.shop-buy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.shop-buy-btn:disabled {
    background: var(--bg-dark);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ==================== PROFILE ==================== */

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-info .username {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ==================== CASES ==================== */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.case-card:hover {
    border-color: var(--border-hover);
}

.case-card.active {
    border-color: rgba(220,38,38,0.5);
    background: rgba(220,38,38,0.05);
}

.case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.case-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.case-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.case-badge.active {
    background: rgba(220,38,38,0.1);
    color: var(--primary);
}

.case-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.case-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.case-progress {
    margin-bottom: 16px;
}

.case-progress-bar {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.case-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 3px;
}

.case-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.case-actions {
    display: flex;
    gap: 10px;
}

/* ==================== KILL LIST ==================== */

.kill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kill-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.kill-item:hover {
    border-color: var(--border-hover);
}

.kill-item.completed {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.kill-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.kill-info {
    flex: 1;
}

.kill-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.kill-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.kill-reward {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

.kill-action {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.kill-action:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ==================== GENERIC COMPONENTS ==================== */

/* Data Tables */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table th {
    background: var(--bg-elevated);
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: left;
}

.data-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table .rank-1 { color: #ffd700; font-weight: 700; }
.data-table .rank-2 { color: #c0c0c0; font-weight: 700; }
.data-table .rank-3 { color: #cd7f32; font-weight: 700; }

/* User Lists */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.user-item:hover {
    border-color: var(--border-hover);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-actions {
    display: flex;
    gap: 8px;
}

/* Settings Forms */
.settings-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.settings-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-card-header {
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
}

.settings-card-header i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-hover);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-success {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    color: var(--success);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-title i {
    color: var(--primary);
}

/* Guestbook */
.guestbook-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guestbook-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.guestbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.guestbook-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guestbook-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.guestbook-name {
    font-weight: 600;
    color: var(--text);
}

.guestbook-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.guestbook-content {
    color: var(--text-secondary);
    line-height: 1.5;
}

.guestbook-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

/* Content Pages */
.content-page {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.content-section {
    margin-bottom: 32px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.content-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.content-section li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary);
}

/* Daily Rewards Grid */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.daily-rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.daily-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.daily-day.claimed {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.daily-day.current {
    border-color: var(--primary);
    background: rgba(220,38,38,0.05);
}

.day-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.day-rewards {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.day-rewards span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.day-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--success);
    font-size: 1rem;
}

.daily-action {
    text-align: center;
    padding: 20px;
}

.daily-wait {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reward-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    text-align: center;
    transition: var(--transition);
}

.reward-day.available {
    border-color: var(--primary);
    background: rgba(220,38,38,0.05);
}

.reward-day.claimed {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.reward-day-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.reward-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.reward-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.claim-btn {
    width: 100%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 8px;
}

.claim-btn:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Notifications */
.notification-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.notification-item:hover {
    border-color: var(--border-hover);
}

.notification-item.unread {
    border-color: var(--primary);
    background: rgba(220,38,38,0.05);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    color: var(--text);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.location-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.location-icon {
    width: 60px;
    height: 60px;
    background: rgba(220,38,38,0.1);
    border: 2px solid rgba(220,38,38,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--primary);
}

.location-name {
    font-weight: 700;
    margin-bottom: 6px;
}

.location-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Mobile Generic */
.mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.mobile-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

/* Page Balance */
.page-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

/* ==================== FRIENDS ==================== */

.friend-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pending-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.pending-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pending-section h2 i {
    color: var(--primary);
}

.pending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pending-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pending-card span {
    font-weight: 600;
    color: var(--text);
}

.accept-btn {
    padding: 6px 16px;
    background: var(--success);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.accept-btn:hover {
    background: #16a34a;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.friend-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.friend-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.friend-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.friend-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.friend-level {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.friend-card i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Friends */
.mobile-section {
    margin-bottom: 24px;
}

.mobile-section-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-section-header h3 i {
    color: var(--primary);
}

.mobile-pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.mobile-pending span {
    font-weight: 600;
    color: var(--text);
}

.m-accept-btn {
    padding: 6px 12px;
    background: var(--success);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
}

.mobile-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.mobile-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.mobile-empty p {
    margin-bottom: 16px;
}

.m-empty-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.mobile-friends {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-friend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
}

.mobile-friend img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.m-friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-friend-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.m-friend-level {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-friend i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==================== AUTH PAGES ==================== */

.dx-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.dx-landing {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.dx-hero-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.dx-auth-box {
    width: 100%;
}

.dx-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
}

.dx-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dx-card-title i {
    color: var(--primary);
}

.dx-auth-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    outline: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dx-auth-input:focus {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.dx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.dx-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.dx-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* ==================== MINI-GAMES ==================== */

/* Combat Arena */
.combat-arena {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
}

.combat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.fighter {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.fighter-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.fighter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fighter-avatar.enemy {
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.fighter-info {
    flex: 1;
}

.fighter-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.fighter-hp {
    position: relative;
    height: 12px;
    background: var(--bg-hover);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

.hp-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.hp-fill.player {
    background: linear-gradient(90deg, var(--success), #4ade80);
}

.hp-fill.enemy {
    background: linear-gradient(90deg, var(--primary), var(--danger));
}

.hp-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.combat-story {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.combat-log {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.log-entry {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.log-entry:last-child {
    border-bottom: none;
}

.attack-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.attack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Story Mode */
.story-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 30px;
    text-align: justify;
}

.story-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.choice-btn:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: translateX(4px);
}

.choice-btn i {
    color: var(--primary);
    font-size: 0.9rem;
}

.choice-btn span {
    flex: 1;
}

/* Mobile Combat/Story */
@media (max-width: 768px) {
    .combat-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .fighter {
        width: 100%;
    }
    
    .fighter-avatar {
        width: 60px;
        height: 60px;
    }
    
    .vs {
        font-size: 1.2rem;
    }
    
    .story-container {
        padding: 20px;
    }
    
    .story-content {
        font-size: 1rem;
    }
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-fadeInUp { animation: fadeInUp 0.4s ease; }
.animate-pulse { animation: pulse 2s infinite; }
