:root {
    --primary-color: #0f0;
    --secondary-color: #000;
    --accent-color: #0ff;
    --text-color: #0f0;
    --success-color: #0f0;
    --warning-color: #ff0;
    --danger-color: #f00;
    --purple-accent: #b00fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', 'Courier New', Consolas, monospace;
    background: #000;
    color: var(--text-color);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    overflow-x: hidden;
}

/* Matrix Rain Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="40"><text x="0" y="20" fill="%230f0" opacity="0.05" font-family="monospace" font-size="14">01</text></svg>');
    animation: matrixRain 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes matrixRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* CRT Screen Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 3px
        );
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Static Noise Animation */
@keyframes staticNoise {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.05; }
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05);
    border: 2px solid #0f0;
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: #0f0; box-shadow: 0 0 30px rgba(0, 255, 0, 0.3); }
    50% { border-color: #0ff; box-shadow: 0 0 50px rgba(0, 255, 255, 0.5); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    animation: textGlitch 3s infinite;
}

@keyframes textGlitch {
    0%, 90%, 100% { transform: translate(0); text-shadow: 0 0 10px #0f0; }
    92% { transform: translate(-2px, 2px); text-shadow: 2px -2px 10px #f00, -2px 2px 10px #0ff; }
    94% { transform: translate(2px, -2px); text-shadow: -2px 2px 10px #f00, 2px -2px 10px #0ff; }
}

.login-header p {
    font-size: 14px;
    opacity: 0.8;
    color: #0ff;
}

.alert {
    padding: 12px;
    border-radius: 0;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid;
    font-family: 'Fira Code', monospace;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border-color: #f00;
    color: #f00;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #0f0;
    color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #0f0;
    border-radius: 0;
    color: #0f0;
    font-size: 16px;
    font-family: 'Fira Code', monospace;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.login-form input:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #0f0;
    border: 2px solid #0f0;
    border-radius: 0;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-btn:hover {
    background: transparent;
    color: #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    transform: translateY(-2px);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    color: #0ff;
}

.login-footer p {
    margin: 5px 0;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.95);
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 2px solid #0f0;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.logo-container {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #0f0;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    margin-bottom: 15px;
    animation: logoGlitch 5s infinite;
}

@keyframes logoGlitch {
    0%, 95%, 100% { 
        filter: none; 
        transform: translate(0) scale(1);
    }
    96% { 
        filter: hue-rotate(90deg) brightness(1.5);
        transform: translate(-3px, 3px) scale(1.05);
    }
    97% { 
        filter: hue-rotate(-90deg) brightness(1.5);
        transform: translate(3px, -3px) scale(0.95);
    }
    98% { 
        filter: hue-rotate(180deg) brightness(2);
        transform: translate(-2px, -2px) scale(1.02);
    }
}

.logo-container h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    letter-spacing: 3px;
    animation: textFlicker 4s infinite;
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    41.99% { opacity: 1; }
    42% { opacity: 0; }
    43% { opacity: 0; }
    45% { opacity: 1; }
}

.logo-container p {
    font-size: 12px;
    opacity: 0.7;
    color: #0ff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    padding: 12px 20px;
    color: #0f0;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-item:hover::before,
.nav-item.active::before {
    opacity: 1;
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateX(5px);
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #0f0;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.top-bar h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
}

.top-bar h1::before {
    content: '> ';
    color: #0ff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #0ff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid #0f0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: borderPulse 3s infinite;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 30px rgba(0, 255, 0, 0.2);
    border-color: #0ff;
}

/* Hex data stream on hover */
.stat-card::after {
    content: attr(data-hex);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    color: #0f0;
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    overflow: hidden;
    word-wrap: break-word;
}

.stat-card:hover::after {
    opacity: 0.3;
}

.stat-icon {
    font-size: 32px;
    filter: hue-rotate(90deg) brightness(1.2);
}

.stat-info h3 {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 5px;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    font-family: 'Fira Code', monospace;
}

.stat-value::after {
    content: '_';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.chart-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 20px rgba(0, 255, 0, 0.05);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.data-panel {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0f0;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 20px rgba(0, 255, 0, 0.05);
}

.data-panel h2 {
    margin-bottom: 15px;
    color: #0f0;
    font-size: 16px;
    text-shadow: 0 0 10px #0f0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.data-panel h2::before {
    content: '> ';
    color: #0ff;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    font-size: 13px;
    font-family: 'Fira Code', monospace;
}

th {
    background: rgba(0, 255, 0, 0.2);
    color: #0f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #0f0;
}

td {
    color: #0ff;
}

tr:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.logs-container {
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #0f0;
    background: rgba(0, 255, 0, 0.05);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.log-entry::before {
    content: '> ';
    color: #0ff;
}

.log-entry.error {
    border-left-color: #f00;
    background: rgba(255, 0, 0, 0.05);
}

.log-entry.success {
    border-left-color: #0f0;
    background: rgba(0, 255, 0, 0.1);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
}

.status-indicator.online {
    background: #0f0;
    box-shadow: 0 0 10px #0f0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #0f0;
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 20px #0f0;
    }
}

/* Settings Page */
.settings-container {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.settings-card {
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border: 2px solid #0f0;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05);
}

.settings-card h2 {
    margin-bottom: 20px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.settings-form input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #0f0;
    color: #0f0;
    font-size: 16px;
    font-family: 'Fira Code', monospace;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.settings-form input:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
}

.settings-btn {
    width: 100%;
    padding: 12px;
    background: #0f0;
    border: 2px solid #0f0;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.settings-btn:hover {
    background: transparent;
    color: #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    transform: translateY(-2px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #0f0;
    box-shadow: 0 0 5px #0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ff;
    box-shadow: 0 0 10px #0ff;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    .sidebar span:not(.icon) {
        display: none;
    }
    .logo-container h2, .logo-container p {
        display: none;
    }
    .main-content {
        margin-left: 80px;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Sound Control Panel */
.sound-control-panel {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #0f0;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    animation: slideDown 0.5s ease-out;
}

.sound-btn {
    background: #0f0;
    border: 2px solid #0f0;
    padding: 8px 20px;
    color: #000;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
}

.sound-btn:hover {
    background: transparent;
    color: #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.sound-btn.muted {
    background: #666;
    border-color: #666;
    color: #f00;
}

.volume-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0f0;
    cursor: pointer;
    box-shadow: 0 0 5px #0f0;
}

.volume-value {
    font-size: 12px;
    color: #0f0;
    min-width: 45px;
}

.alert-history-panel {
    flex: 1;
    min-width: 250px;
}

.alert-history-panel h4 {
    color: #0f0;
    margin-bottom: 10px;
    font-size: 14px;
}

.alert-history-item {
    padding: 5px 10px;
    margin-bottom: 5px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    font-size: 12px;
    display: flex;
    gap: 10px;
    animation: slideInLeft 0.3s ease-out;
    font-family: 'Fira Code', monospace;
}

.alert-time {
    color: #0ff;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
}

.alert-message {
    color: #0f0;
}

.clear-alerts-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #f00;
    padding: 5px 10px;
    color: #f00;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
}

.clear-alerts-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Toast Notifications */
.wolftech-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    border: 2px solid;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    font-family: 'Fira Code', monospace;
}

.wolftech-toast.show {
    transform: translateX(0);
}

.wolftech-toast.toast-telegram {
    border-color: #0f0;
}

.wolftech-toast.toast-urgent {
    border-color: #f00;
}

.wolftech-toast.toast-success {
    border-color: #0f0;
}

.wolftech-toast.toast-info {
    border-color: #0ff;
}

.toast-message {
    flex: 1;
    color: #0f0;
    font-size: 14px;
}

.toast-close {
    cursor: pointer;
    font-size: 20px;
    color: #f00;
    transition: color 0.3s;
}

.toast-close:hover {
    color: #0ff;
}

/* Row animations */
.new-row {
    animation: pulse 0.5s ease-out;
    background: rgba(255, 107, 53, 0.2) !important;
}

@keyframes pulse {
    0% {
        background: rgba(255, 107, 53, 0);
    }
    50% {
        background: rgba(255, 107, 53, 0.4);
    }
    100% {
        background: rgba(255, 107, 53, 0.2);
    }
}

.flash-animation {
    animation: flash 0.5s ease-out;
}

@keyframes flash {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
        transform: scale(1);
    }
}

/* Enhanced status indicator animation */
.status-indicator.online {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Sound wave animation for active alerts */
@keyframes soundWave {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===========================================
   🎣 CAPTURED CREDENTIALS SECTION
   =========================================== */

.credentials-section {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 51, 102, 0.5);
}

.credentials-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credentials-stats {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.cred-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cred-stat-label {
    color: #999;
    font-size: 13px;
}

.cred-stat-value {
    color: var(--danger-color);
    font-size: 18px;
    font-weight: 600;
}

.credentials-controls {
    display: flex;
    gap: 8px;
}

.credentials-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 102, 0.2);
}

.credentials-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.credentials-table thead {
    position: sticky;
    top: 0;
    background: rgba(255, 51, 102, 0.2);
    z-index: 10;
}

.credentials-table th {
    padding: 10px 8px;
    text-align: left;
    color: var(--danger-color);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 51, 102, 0.4);
    font-size: 12px;
}

.credentials-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.credentials-table tbody tr {
    transition: background-color 0.2s;
}

.credentials-table tbody tr:hover {
    background: rgba(255, 51, 102, 0.1);
}

.cred-time {
    color: #999;
    font-size: 11px;
}

.cred-email {
    color: var(--primary-color);
    font-weight: 500;
}

.cred-password-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cred-password {
    font-family: 'Courier New', monospace;
    color: var(--danger-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.cred-password.blurred {
    filter: blur(5px);
    user-select: none;
}

.toggle-password-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-password-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.cred-attempt {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 184, 0, 0.2);
    border-radius: 12px;
    color: var(--warning-color);
    font-size: 11px;
    font-weight: 600;
}

.cred-location {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cred-country {
    font-weight: 500;
}

.cred-city {
    color: #999;
    font-size: 11px;
}

.cred-device {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cred-browser {
    font-size: 12px;
}

.cred-os {
    color: #999;
    font-size: 11px;
}

.cred-details-btn {
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 4px;
    color: #667eea;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.cred-details-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

/* ===========================================
   🗺️ GEOGRAPHIC INTELLIGENCE MAP STYLES
   =========================================== */

/* Map Container */
.map-section {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 18px;
}

.interactive-map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-controls {
    display: flex;
    gap: 10px;
}

.map-btn {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.map-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.map-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Regional Panel */
.regional-panel {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.panel-header h2 {
    color: var(--primary-color);
    font-size: 16px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.toggle-btn:hover {
    background: rgba(255,255,255,0.2);
}

.toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Regional Views */
.regional-view {
    display: none;
}

.regional-view.active {
    display: block;
}

/* Region Cards */
.region-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.region-card {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.region-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(255, 107, 53, 0.2);
}

.region-flag {
    font-size: 32px;
}

.region-info {
    flex: 1;
}

.region-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 14px;
}
    font-size: 16px;
}

.region-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.region-time {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

/* Activity Feed */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.activity-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.activity-icon {
    font-size: 20px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    font-size: 13px;
}

.activity-time {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.activity-subtitle {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

/* Map Popup Styling */
.leaflet-popup-content-wrapper {
    background: rgba(26, 26, 46, 0.95);
    color: white;
    border-radius: 10px;
}

.leaflet-popup-content {
    margin: 10px;
}

.map-popup h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 16px;
}

.map-popup p {
    margin: 5px 0;
    font-size: 12px;
}

.leaflet-popup-tip {
    background: rgba(26, 26, 46, 0.95);
}

/* Cluster Icon Styling */
.custom-cluster {
    background: transparent;
    border: none;
}

.cluster-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35, #FF3366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Custom Marker */
.custom-marker {
    background: transparent;
    border: none;
}

/* Chart Container for Regional Analytics */
#regionalChart {
    height: 300px;
}

/* Table Styling */
.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container thead {
    background: rgba(255, 107, 53, 0.2);
}

.table-container th {
    padding: 12px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 107, 53, 0.5);
}

.table-container td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.table-container tr:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Responsive Design for Maps */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .region-cards {
        grid-template-columns: 1fr;
    }
    
    .map-controls {
        flex-wrap: wrap;
    }
    
    .map-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .interactive-map {
        height: 350px;
    }
}

/* Attribution Footer */
.attribution {
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.attribution a {
    color: var(--primary-color);
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

.attribution-footer {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    padding: 10px 20px;
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    z-index: 100;
}

.attribution-footer p {
    margin: 0;
}

.attribution-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.attribution-footer a:hover {
    color: var(--success-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .attribution-footer {
        left: 0;
    }
}

/* ===========================================
   🎯 CREDENTIAL MODAL STYLES
   =========================================== */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.modal-content {
    position: relative;
    background: linear-gradient(145deg, #1A1A2E 0%, #16213E 100%);
    margin: 5% auto;
    padding: 0;
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.modal-copy-btn:active {
    transform: translateY(0);
}

/* Close Button */
.modal-close {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--danger-color);
    transform: scale(1.2);
}

/* Modal Body */
.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Credential Detail Sections */
.cred-detail-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.cred-detail-section:last-child {
    margin-bottom: 0;
}

.cred-detail-section h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Detail Grid */
.cred-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.cred-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    word-break: break-word;
}

.detail-password {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal Password Styling */
.modal-password {
    font-family: 'Courier New', monospace;
    color: var(--danger-color);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-password.blurred {
    filter: blur(6px);
    user-select: none;
}

/* Scrollbar Styling for Modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #FF8C5F;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .cred-detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-copy-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}
