@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-darker: #0d0203;
    --bg-main: #140406;
    --bg-card: rgba(28, 6, 9, 0.7);
    --bg-card-hover: rgba(43, 9, 14, 0.85);
    --border-card: rgba(255, 46, 76, 0.25);
    --border-hover: rgba(255, 46, 76, 0.6);
    --accent: #ff1e3d;
    --accent-rgb: 255, 30, 61;
    --accent-glow: rgba(255, 30, 61, 0.5);
    --accent-hover: #ff4a63;
    --text-primary: #ffffff;
    --text-secondary: #c9cdd4;
    --success: #00f076;
    --success-glow: rgba(0, 240, 118, 0.3);
    --warning: #ffb800;
    --warning-glow: rgba(255, 184, 0, 0.3);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-ar);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url('assets/info.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Premium Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 30, 61, 0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.glass:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(255, 30, 61, 0.25);
    background: var(--bg-card-hover);
}

.glass:hover::before {
    left: 125%;
}

/* Glow Text */
.glow-text {
    color: #fff;
    text-shadow: 0 0 15px var(--accent-glow), 0 0 30px rgba(255, 30, 61, 0.2);
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Red Accent Glowing Button */
.glow-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #b80d24 100%);
    color: #fff;
    border: 1px solid rgba(255, 30, 61, 0.4);
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 25px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glow-btn:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 35px rgba(255, 30, 61, 0.7);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    border-color: var(--accent-hover);
}

.glow-btn:active {
    transform: scale(0.98);
}

/* Custom Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 6%;
    border-bottom: 2px solid rgba(255, 30, 61, 0.2);
    background: rgba(13, 2, 3, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255, 30, 61, 0.15);
    border: 1px solid rgba(255, 30, 61, 0.3);
    box-shadow: 0 0 15px rgba(255, 30, 61, 0.1);
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 30, 61, 0.08);
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 30, 61, 0.2);
}

.user-profile-nav img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.user-profile-nav span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* App Containers */
.container {
    width: 92%;
    max-width: 1450px;
    margin: 50px auto;
}

/* Dashboard Layout Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 35px;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Profile Card */
.profile-card {
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    border: 1px solid var(--border-card);
    box-shadow: 0 0 25px rgba(255, 30, 61, 0.08);
}

.avatar-container {
    position: relative;
    width: 135px;
    height: 135px;
    margin-bottom: 25px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
    object-fit: cover;
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
}

.status-online {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success-glow);
}

.status-offline {
    background-color: var(--text-secondary);
}

.char-info {
    width: 100%;
    margin-top: 25px;
}

.char-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 30, 61, 0.1);
}

.char-info-row span:first-child {
    color: var(--text-secondary);
    font-size: 14px;
}

.char-info-row span:last-child {
    font-weight: 700;
    font-size: 15px;
}

/* Stats Dashboard widgets */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    border: 1px solid var(--border-card);
    box-shadow: 0 0 20px rgba(255, 30, 61, 0.05);
}

.stat-icon {
    font-size: 34px;
    color: var(--accent);
    background: rgba(255, 30, 61, 0.12);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 30, 61, 0.25);
    filter: drop-shadow(0 0 8px rgba(255, 30, 61, 0.3));
}

/* Dynamic Inventory UI */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.inv-item {
    background: rgba(255, 30, 61, 0.03);
    border: 1px solid rgba(255, 30, 61, 0.15);
    border-radius: 16px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.inv-item:hover {
    border-color: var(--accent);
    background: rgba(255, 30, 61, 0.1);
    box-shadow: 0 8px 25px rgba(255, 30, 61, 0.2);
}

.inv-item img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.item-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Premium Activities (Thefts) Cards */
.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.activity-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid var(--border-card);
    box-shadow: 0 0 20px rgba(255, 30, 61, 0.05);
}

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

.difficulty-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.easy {
    background: rgba(0, 240, 118, 0.08);
    color: var(--success);
    border: 1px solid rgba(0, 240, 118, 0.2);
}

.difficulty-badge.medium {
    background: rgba(255, 184, 0, 0.08);
    color: var(--warning);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.difficulty-badge.hard {
    background: rgba(255, 30, 61, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 30, 61, 0.3);
    box-shadow: 0 0 8px rgba(255, 30, 61, 0.15);
}

.activity-details {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-details > div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 30, 61, 0.1);
    padding-bottom: 6px;
}

.activity-details strong {
    color: var(--text-secondary);
}

/* Operation Audit Logs */
.log-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 30, 61, 0.02);
    border: 1px solid rgba(255, 30, 61, 0.1);
    border-right: 4px solid var(--accent);
}

.log-item.success {
    border-right-color: var(--success);
}

.log-item.fail {
    border-right-color: var(--accent);
}

/* Cyber Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 30, 61, 0.05);
    border: 1px solid rgba(255, 30, 61, 0.15);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(255, 30, 61, 0.15);
    border-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(30px);
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Premium Admin Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

th {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

tr.table-row-glass {
    background: rgba(255, 30, 61, 0.02);
    border-radius: 12px;
}

td {
    padding: 16px;
    background: rgba(255, 30, 61, 0.02);
    border-top: 1px solid rgba(255, 30, 61, 0.1);
    border-bottom: 1px solid rgba(255, 30, 61, 0.1);
}

td:first-child {
    border-left: 1px solid rgba(255, 30, 61, 0.1);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

td:last-child {
    border-right: 1px solid rgba(255, 30, 61, 0.1);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Login card update */
.login-card {
    border: 1px solid var(--accent);
    box-shadow: 0 0 50px rgba(255, 30, 61, 0.25);
    background: rgba(13, 2, 3, 0.85);
}

/* CRT Scanline effect for Minigames */
.terminal-hacking {
    position: relative !important;
    overflow: hidden !important;
    background: radial-gradient(circle, rgba(16, 2, 4, 0.98) 0%, rgba(5, 0, 1, 1) 100%) !important;
}

.terminal-hacking::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.04));
    z-index: 20000;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

.terminal-hacking::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 30, 61, 0.01);
    top: 0; left: 0;
    pointer-events: none;
    z-index: 20001;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Premium Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    z-index: 10;
}

.login-card {
    max-width: 440px;
    width: 100%;
    padding: 45px 35px;
    text-align: center;
    border-radius: 24px;
    background: rgba(13, 2, 3, 0.82) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 15px 50px rgba(255, 30, 61, 0.3) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.login-logo {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 12px var(--accent));
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #5865F2; /* Discord Color */
    color: #fff;
    text-decoration: none;
    padding: 15px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 25px;
}

.discord-login-btn:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.6);
}

.discord-login-btn:active {
    transform: translateY(-1px);
}

/* =========================================
   CAR DEALERSHIP STYLES
   ========================================= */

.dealership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.dealership-filter {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 13px;
}

.dealership-filter.active, .dealership-filter:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
    border-color: var(--accent);
}

.car-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.8), rgba(15, 15, 18, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    backdrop-filter: blur(20px);
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.car-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 85, 0.2);
    border-color: rgba(255, 0, 85, 0.3);
}

.car-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    z-index: 1;
}

.car-image-container img {
    max-width: 110%;
    max-height: 110%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.5));
    transition: all 0.5s ease;
}

.car-card:hover .car-image-container img {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.7));
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 2;
}

.car-brand {
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 5px;
}

.car-title {
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    font-family: var(--font-en);
}

.car-specs {
    margin-bottom: 20px;
}

.spec-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.spec-icon {
    width: 20px;
    color: white;
    margin-left: 8px;
}

.spec-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-right: 10px;
    overflow: hidden;
}

.spec-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, var(--accent));
    border-radius: 10px;
    transition: width 1s ease-out;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.car-price {
    font-size: 24px;
    font-weight: 900;
    color: #4CAF50;
    font-family: var(--font-en);
}

.btn-buy-car {
    background: linear-gradient(135deg, var(--accent), #ff0044);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.3);
    transition: all 0.3s ease;
}

.btn-buy-car:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 85, 0.5);
}

.btn-buy-car:disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
/* --- MODERN MINIGAMES UI OVERHAUL --- */

.terminal-hacking {
    background: radial-gradient(circle at center, #0a0b10 0%, #000000 100%) !important;
    border: 1px solid rgba(0, 255, 204, 0.2) !important;
    box-shadow: inset 0 0 50px rgba(0, 255, 204, 0.05), 0 0 30px rgba(0, 255, 204, 0.1) !important;
    background-image: linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', Courier, monospace;
}

.glitch-text {
    position: relative;
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0,255,204,0.5);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 1px) }
    40% { transform: translate(-1px, -1px) }
    60% { transform: translate(2px, 1px) }
    80% { transform: translate(1px, -1px) }
    100% { transform: translate(0) }
}

.cyber-btn {
    background: rgba(0, 255, 204, 0.05) !important;
    border: 1px solid rgba(0, 255, 204, 0.3) !important;
    color: #00ffcc !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: monospace;
    transition: all 0.2s;
    border-radius: 2px !important;
}
.cyber-btn:hover {
    background: rgba(0, 255, 204, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    transform: scale(1.05);
}

.memory-pad-btn {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    font-family: monospace;
    font-size: 20px !important;
    font-weight: bold;
    border-radius: 4px !important;
    transition: all 0.1s;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.memory-pad-btn:active, .memory-pad-btn.active-press {
    background: #00ffcc !important;
    color: #000 !important;
    box-shadow: 0 0 20px #00ffcc !important;
    transform: scale(0.95);
    border-color: #00ffcc !important;
}
.memory-pad-btn.btn-red {
    color: #ff4444 !important;
}
.memory-pad-btn.btn-red:active, .memory-pad-btn.btn-red.active-press {
    background: #ff4444 !important;
    color: #000 !important;
    box-shadow: 0 0 20px #ff4444 !important;
    border-color: #ff4444 !important;
}
.memory-pad-btn.btn-green {
    color: #00ffcc !important;
}

.simon-block {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
    background: #000;
}
.simon-block.active {
    opacity: 1 !important;
    transform: scale(1.1);
    box-shadow: 0 0 40px currentColor, inset 0 0 20px currentColor !important;
    border-color: currentColor !important;
    background: currentColor;
}

.cyber-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 25px;
}
.cyber-progress-bar {
    height: 100%;
    background: #00ffcc;
    box-shadow: 0 0 15px #00ffcc;
}
.cyber-progress-bar.danger {
    background: #ff4444;
    box-shadow: 0 0 15px #ff4444;
}

.arrow-key-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.6);
    border: 1px solid #333;
    border-radius: 6px;
    margin: 0 5px;
    font-size: 20px;
    color: #fff;
    transition: all 0.2s;
}
.arrow-key-box.success {
    background: rgba(0, 255, 204, 0.2);
    border-color: #00ffcc;
    color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    transform: scale(1.1);
}

/* Mobile responsive utilities */
.mobile-only {
    display: none !important;
}
.desktop-only {
    display: block !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
    .cyber-btn, #minigameActionBtn {
        touch-action: manipulation;
    }
}


/* Navbar Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid var(--accent);
    top: 100%;
    right: 0;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.nav-dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background-color: var(--accent);
    color: white !important;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown:hover .nav-dropbtn {
    background-color: var(--accent) !important;
}

/* ==========================================
   MILITARY MDT TACTICAL UI
   ========================================== */


/* MDT Specific Variables (Dark Navy Theme) */
:root {
    --mdt-bg: #050b14;
    --mdt-sidebar-bg: rgba(10, 20, 40, 0.8);
    --mdt-card-bg: rgba(16, 32, 64, 0.5);
    --mdt-accent: #00f0ff;
    --mdt-text-primary: #ffffff;
    --mdt-text-secondary: #8b9cb6;
    --mdt-border: rgba(0, 240, 255, 0.2);
}

.mdt-container {
    background-color: var(--mdt-bg) !important;
    color: var(--mdt-text-primary);
    font-family: 'Tajawal', sans-serif !important;
    direction: rtl;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    height: 100%;
    border: none !important;
    padding: 0 !important;
}

.mdt-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.mdt-sidebar {
    width: 260px;
    background: var(--mdt-sidebar-bg);
    border-left: 1px solid var(--mdt-border);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
}

.mdt-brand-area {
    text-align: center;
    margin-bottom: 30px;
}

.mdt-logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--mdt-accent);
    padding: 2px;
    overflow: hidden;
}

.mdt-logo-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mdt-brand-title {
    color: var(--mdt-text-secondary);
    font-size: 16px;
    font-weight: bold;
}

.mdt-nav-btn {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--mdt-text-secondary);
    background: transparent;
    border: none;
    width: 100%;
    text-align: right;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 15px;
}

.mdt-nav-btn:hover {
    color: var(--mdt-accent);
    background: rgba(33, 150, 243, 0.05);
}

.mdt-nav-btn.mdt-btn-active {
    color: var(--mdt-accent);
    border-right: 4px solid var(--mdt-accent);
    background: rgba(33, 150, 243, 0.1);
}

.mdt-nav-btn i {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.mdt-main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.mdt-top-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.mdt-stat-card {
    background: var(--mdt-card-bg);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mdt-stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: inherit;
    transform: rotate(45deg);
}

.mdt-stat-card.red-tab::before { background: #e74c3c; }
.mdt-stat-card.green-tab::before { background: #2ecc71; }
.mdt-stat-card.orange-tab::before { background: #f39c12; }
.mdt-stat-card.blue-tab::before { background: #3498db; }

.mdt-stat-card i {
    font-size: 32px;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 2;
}

.mdt-stat-info {
    text-align: right;
}

.mdt-stat-info h3 {
    font-size: 28px;
    color: var(--mdt-text-primary);
    margin: 0;
    font-weight: bold;
}

.mdt-stat-info p {
    font-size: 14px;
    color: var(--mdt-text-secondary);
    margin: 5px 0 0 0;
}

.mdt-section-title {
    color: var(--mdt-text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mdt-section-title i {
    color: var(--mdt-accent);
}

.mdt-top-cops {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.mdt-cop-card {
    background: var(--mdt-card-bg);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.02);
}

.mdt-cop-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 3px solid var(--mdt-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--mdt-text-primary);
    background: #000;
}

.mdt-cop-name {
    font-size: 16px;
    color: var(--mdt-text-primary);
    font-weight: bold;
    margin-bottom: 8px;
}

.mdt-cop-cases {
    font-size: 13px;
    color: var(--mdt-text-secondary);
}

.mdt-table-container {
    background: var(--mdt-card-bg);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.mdt-table th {
    background: rgba(0,0,0,0.2);
    color: var(--mdt-text-secondary);
    font-size: 13px;
    padding: 15px;
    text-align: right;
    font-weight: normal;
}

.mdt-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--mdt-text-primary);
    font-size: 14px;
}

.mdt-table tr:last-child td {
    border-bottom: none;
}

.mdt-callsign {
    background: var(--mdt-accent);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

.mdt-location {
    color: var(--mdt-accent);
}

.mdt-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.mdt-status-dot.active { background: #2ecc71; box-shadow: 0 0 10px #2ecc71; }

.mdt-input {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--mdt-border);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 14px;
}
.mdt-input:focus {
    outline: none;
    border-color: var(--mdt-accent);
}
