:root {
    --bg-base: #05050a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1a1a2e 0%, #05050a 100%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: drift 15s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-primary);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-secondary);
    animation-delay: -5s;
    animation-duration: 20s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: rgba(14, 165, 233, 0.4);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: slideDown 0.8s ease-out forwards;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

h1 span {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* Search Section */
.search-section {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-section:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.search-form {
    display: flex;
    gap: 1rem;
}

.input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-group:focus-within .search-icon {
    color: var(--accent-primary);
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-highlight);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    font-size: 1.1rem;
    color: var(--text-main);
    font-family: inherit;
    font-weight: 400;
    transition: all 0.3s ease;
}

input::placeholder {
    color: #475569;
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 16px;
    padding: 0 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px var(--accent-glow);
}

.primary-btn:hover:not(:disabled)::after {
    left: 100%;
}

.primary-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    background: linear-gradient(135deg, #334155, #1e293b);
    box-shadow: none;
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Area */
.results-container {
    position: relative;
    min-height: 400px;
}

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--glass-highlight);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* Threat level indicator */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--danger), #fb923c);
    border-radius: 20px 20px 0 0;
}

.card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-id-pill {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-family: monospace;
    letter-spacing: 1px;
}

.card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.card-alias {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    text-align: right;
}

.flag-icon {
    display: inline-block;
    width: 24px;
    height: 16px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.sanction-badge {
    background: var(--danger-bg);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: auto;
    line-height: 1.4;
}

.sanction-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* System Metrics */
.metrics-container {
    margin-top: 2rem;
    display: inline-flex;
    justify-content: center;
    animation: fadeIn 1s ease-out;
}

.metric-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--success);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Ultra-Premium Login Overlay */
.login-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.95), rgba(5, 5, 10, 0.99));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
    transition: opacity 0.5s ease;
}

.login-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==');
    opacity: 0.5;
    z-index: -1;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 3.5rem 3rem;
    text-align: center;
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.1), 
        inset 0 0 20px rgba(59, 130, 246, 0.05);
    border-radius: 24px;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

/* Glowing Border Animation */
.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.2), transparent);
    transform: skewX(-20deg);
    animation: scannerLine 3s infinite linear;
    pointer-events: none;
}

@keyframes scannerLine {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.login-header {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.login-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), inset 0 0 15px rgba(59, 130, 246, 0.2);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.2); }
    100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), inset 0 0 20px rgba(59, 130, 246, 0.4); }
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.login-form {
    position: relative;
    z-index: 2;
}

.login-form .login-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-form .input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.login-form input {
    width: 100%;
    padding: 1.2rem 1rem 1.2rem 3.5rem;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.login-form input:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 15px rgba(59, 130, 246, 0.3);
}

.login-form input:focus + .input-icon,
.login-form input:not(:placeholder-shown) + .input-icon {
    color: #60a5fa;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

.login-submit-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-submit-btn:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
    transform: translateY(-3px);
    border-color: #93c5fd;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

/* Secondary Button */
.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-highlight);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

/* Side Drawer Styles */
.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.side-drawer:not(.hidden) {
    transform: translateX(0);
}

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

.drawer-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
}

.drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Custom Scrollbar for Drawer */
.drawer-body::-webkit-scrollbar {
    width: 6px;
}
.drawer-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}
.drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.registries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.registry-detail-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.registry-detail-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #60a5fa;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0,0,0,0.5);
}

.registry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.8rem;
}

.registry-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.4;
}

.registry-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.registry-stat {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
}

.registry-stat span:first-child {
    font-weight: 600;
    color: #cbd5e1;
}

.stat-highlight {
    color: #10b981;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.registry-url {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registry-url span {
    font-weight: 600;
    color: #cbd5e1;
    margin-right: 0.5rem;
}

.registry-url a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.registry-url a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.update-list-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.update-list-btn:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Admin Panel & Console */
.admin-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-console-wrapper {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
}

.admin-console-wrapper h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-console {
    height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.85rem;
    color: #a0aec0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-entry {
    padding: 0.25rem 0.5rem;
    border-left: 2px solid transparent;
}

.log-entry.system-msg { border-left-color: var(--accent-secondary); color: var(--accent-secondary); }
.log-entry.success-msg { border-left-color: #10b981; color: #10b981; }
.log-entry.error-msg { border-left-color: #ef4444; color: #ef4444; }
.log-entry.info-msg { border-left-color: #3b82f6; color: #e2e8f0; }

.update-list-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.update-list-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .search-form { flex-direction: column; }
    .primary-btn { padding: 1.25rem; }
    .results-grid { grid-template-columns: 1fr; }
}
/* --- Leaflet Dark Theme Overrides --- */
.leaflet-container {
    background: #0b0f19;
    font-family: 'Outfit', sans-serif;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}
.leaflet-popup-content {
    margin: 15px;
    font-size: 14px;
}
.leaflet-popup-close-button {
    color: var(--text-muted) !important;
}
.leaflet-popup-close-button:hover {
    color: var(--danger-color) !important;
}

.map-popup-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.map-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}
.map-popup-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.map-popup-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.map-popup-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.map-popup-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}
.map-popup-value {
    font-weight: 500;
    text-align: right;
}

/* Floating System Info Button */
.floating-sys-info-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.floating-sys-info-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--accent-primary);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.floating-sys-info-btn svg {
    transition: transform 0.3s ease;
}

.floating-sys-info-btn:hover svg {
    transform: rotate(15deg);
}
