/* ========================================
   HACKER PIXEL SCANNER STYLES
   Retro Cyberpunk Terminal Theme
   ======================================== */

/* Body & Container */
.scanner-body {
    font-family: 'Press Start 2P', 'Courier New', 'Monaco', monospace;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Parallax 3D Background */
.parallax-bg-scanner {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('images/wp5779955.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 0.2s ease-out;
    will-change: transform;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Scanline Animation */
.scanner-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.05) 2px,
            rgba(255, 255, 255, 0.05) 4px
        );
    pointer-events: none;
    z-index: 0;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Grid Background */
.scanner-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.scanner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 2;
}

/* Scanner Grid Layout */
.scanner-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.scanner-main {
    min-width: 0; /* Prevent grid blowout */
}

/* ========================================
   NAVIGATION BAR - HACKER TERMINAL
   ======================================== */
.scanner-navbar {
    background: #000000;
    backdrop-filter: none;
    box-shadow: 
        0 4px 0 0 #ffffff,
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 -4px 20px rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid #ffffff;
    border-top: 4px solid #ffffff;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: normal;
    font-size: 0.75rem;
    color: #ffffff;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 10px #ffffff;
    animation: brandGlow 2s ease-in-out infinite;
}

@keyframes brandGlow {
    0%, 100% { 
        text-shadow: 2px 2px 0 #000000, 0 0 10px #ffffff; 
    }
    50% { 
        text-shadow: 2px 2px 0 #000000, 0 0 20px #ffffff, 0 0 30px #ffffff; 
    }
}

.brand-icon {
    font-size: 1.25rem;
    filter: drop-shadow(2px 2px 0 #000000) drop-shadow(0 0 10px #ffffff);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.brand-text {
    color: #ffffff;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 10px #ffffff;
}

.brand-pro {
    color: #ffffff;
    font-size: 0.5rem;
    vertical-align: super;
    margin-left: 4px;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 8px #ffffff;
    animation: proBlink 2s steps(2) infinite;
}

@keyframes proBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.navbar-menu {
    display: flex;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    color: #cccccc;
    font-weight: normal;
    font-size: 0.625rem;
    transition: none;
    border: 3px solid transparent;
    text-shadow: 2px 2px 0 #000000;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    animation: activeNavPulse 2s ease-in-out infinite;
}

@keyframes activeNavPulse {
    0%, 100% { 
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.5); 
    }
    50% { 
        box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.7); 
    }
}

.nav-icon {
    font-size: 1rem;
    filter: drop-shadow(2px 2px 0 #000000);
}

/* ========================================
   HERO SECTION - TERMINAL STYLE
   ======================================== */
.hero-section {
    text-align: center;
    padding: 3rem 2rem 2rem;
    color: #ffffff;
    position: relative;
}

/* Back Button */
/* Logout Wrapper for Scanner */
.logout-wrapper-scanner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Back Button Wrapper (Centered) */
.back-button-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.back-to-phishing-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-weight: normal;
    font-size: 0.625rem;
    letter-spacing: 2px;
    box-shadow: 
        0 8px 0 0 #333333,
        0 0 0 4px #000000,
        0 0 20px rgba(255, 255, 255, 0.5);
    transition: none;
    position: relative;
    overflow: visible;
    border: 4px solid #000000;
    text-transform: uppercase;
    image-rendering: pixelated;
    cursor: pointer;
    text-shadow: none;
}

.back-to-phishing-btn::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 4px;
    background: #cccccc;
}

.back-to-phishing-btn:hover {
    transform: translateY(4px);
    box-shadow: 
        0 4px 0 0 #333333,
        0 0 0 4px #000000,
        0 0 30px rgba(255, 255, 255, 0.7);
    background: #ffffff;
}

.back-to-phishing-btn:active {
    transform: translateY(8px);
    box-shadow: 
        0 0 0 0 #333333,
        0 0 0 4px #000000,
        0 0 30px rgba(255, 255, 255, 0.7);
}

.back-to-phishing-btn .btn-icon {
    font-size: 1rem;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3));
}

/* Logout Button for Scanner */
.logout-btn-scanner {
    padding: 0.75rem 1.5rem;
    border: 3px solid #000000;
    border-radius: 0;
    font-size: 0.625rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    cursor: pointer;
    background: #ffffff;
    color: #000000;
    text-shadow: none;
    box-shadow: 
        0 4px 0 0 #333333,
        0 0 0 3px #000000,
        0 0 10px rgba(255, 255, 255, 0.5);
    transition: none;
    white-space: nowrap;
}

.logout-btn-scanner:hover {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 0 #333333,
        0 0 0 3px #000000,
        0 0 15px rgba(255, 255, 255, 0.7);
}

.logout-btn-scanner:active {
    transform: translateY(4px);
    box-shadow: 
        0 0 0 0 #333333,
        0 0 0 3px #000000,
        0 0 20px rgba(255, 255, 255, 0.8);
}

.back-to-phishing-btn .btn-text {
    font-size: 0.625rem;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #000000;
    backdrop-filter: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border: 3px solid #ffffff;
    box-shadow: 
        0 4px 0 0 #996600,
        0 0 0 3px #000000,
        0 0 20px rgba(255, 215, 0, 0.4);
    animation: badgeFloat 3s ease-in-out infinite;
    font-size: 0.625rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.6;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.badge-icon {
    font-size: 1rem;
    filter: drop-shadow(2px 2px 0 #000000);
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 2rem 0 1.5rem;
    line-height: 1.8;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 20px #ffffff,
        0 0 40px #ffffff;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 2px 2px 0 #000000, 0 0 20px #ffffff, 0 0 40px #ffffff; 
    }
    50% { 
        text-shadow: 2px 2px 0 #000000, 0 0 30px #ffffff, 0 0 60px #ffffff, 0 0 80px #ffffff; 
    }
}

.hero-description {
    font-size: 0.625rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #cccccc;
    line-height: 1.8;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 8px #cccccc;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #000000;
    backdrop-filter: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    font-weight: normal;
    border: 3px solid #ffffff;
    font-size: 0.625rem;
    box-shadow: 
        0 4px 0 0 #003300,
        0 0 0 3px #000000,
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 0 #000000;
    color: #ffffff;
    line-height: 1.6;
    animation: featureBlink 4s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.5s);
}

.hero-feature:nth-child(1) { --delay: 0; }
.hero-feature:nth-child(2) { --delay: 1; }
.hero-feature:nth-child(3) { --delay: 2; }
.hero-feature:nth-child(4) { --delay: 3; }

@keyframes featureBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.6; }
}

.feature-check {
    font-size: 0.75rem;
    color: #ffffff;
    filter: drop-shadow(2px 2px 0 #000000);
}

/* ========================================
   SCANNER INPUT SECTION - TERMINAL CARD
   ======================================== */
.scanner-input-section {
    margin-top: -2rem;
    padding: 0 1rem;
}

.input-card {
    background: rgba(15, 20, 16, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    padding: 2.5rem;
    box-shadow: 
        0 8px 0 0 rgba(0, 51, 0, 0.4),
        0 0 0 4px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
    max-width: 900px;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

.input-card::before {
    content: '> SCAN_TERMINAL';
    position: absolute;
    top: -14px;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 0.75rem;
    font-size: 0.625rem;
    color: #cccccc;
    text-shadow: 2px 2px 0 #000000, 0 0 10px #cccccc;
    animation: terminalBlink 2s steps(2) infinite;
}

@keyframes terminalBlink {
    0%, 80%, 100% { opacity: 1; }
    85%, 95% { opacity: 0.5; }
}

.input-header {
    text-align: center;
    margin-bottom: 2rem;
}

.input-title {
    font-size: 1rem;
    font-weight: normal;
    color: #ffffff;
    margin: 0 0 1rem;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 10px #ffffff;
    line-height: 1.8;
}

.input-subtitle {
    color: #cccccc;
    font-size: 0.625rem;
    margin: 0;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.8;
}

.scanner-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #000000;
    border: 4px solid #cccccc;
    border-radius: 0;
    overflow: hidden;
    transition: none;
    box-shadow: inset 0 0 20px rgba(204, 204, 204, 0.1);
}

.input-wrapper:focus-within {
    border-color: #cccccc;
    box-shadow: 
        inset 0 0 30px rgba(204, 204, 204, 0.2),
        0 0 20px rgba(204, 204, 204, 0.4);
    animation: inputGlow 1.5s ease-in-out infinite;
}

@keyframes inputGlow {
    0%, 100% { 
        box-shadow: inset 0 0 30px rgba(204, 204, 204, 0.2), 0 0 20px rgba(204, 204, 204, 0.4); 
    }
    50% { 
        box-shadow: inset 0 0 40px rgba(204, 204, 204, 0.3), 0 0 30px rgba(204, 204, 204, 0.6); 
    }
}

.input-prefix {
    padding: 0 1rem;
    color: #cccccc;
    font-weight: normal;
    font-size: 0.75rem;
    border-right: 3px solid #cccccc;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.6;
}

.scanner-input {
    flex: 1;
    padding: 1.25rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: normal;
    color: #cccccc;
    outline: none;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.6;
}

.scanner-input::placeholder {
    color: #006666;
}

.scanner-btn {
    padding: 1.25rem 2.5rem;
    border: 4px solid #000000;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.6;
}

.scanner-btn.primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 
        0 8px 0 0 #333333,
        0 0 0 4px #000000,
        0 0 20px rgba(255, 255, 255, 0.5);
    text-shadow: none;
    position: relative;
}

.scanner-btn.primary::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 4px;
    background: #cccccc;
}

.scanner-btn.primary:hover {
    transform: translateY(4px);
    box-shadow: 
        0 4px 0 0 #333333,
        0 0 0 4px #000000,
        0 0 30px rgba(255, 255, 255, 0.7);
    background: #ffffff;
}

.scanner-btn.primary:active {
    transform: translateY(8px);
    box-shadow: 
        0 0 0 0 #333333,
        0 0 0 4px #000000,
        0 0 30px rgba(255, 255, 255, 0.7);
}

.scanner-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none !important;
    background: #333333;
    color: #666666;
    box-shadow: 
        0 8px 0 0 #1a1a1a,
        0 0 0 4px #000000;
}

.btn-icon {
    font-size: 1.25rem;
    filter: drop-shadow(2px 2px 0 #000000);
}

.input-hints {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    font-size: 0.625rem;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.8;
}

.hint-icon {
    font-size: 0.875rem;
    filter: drop-shadow(2px 2px 0 #000000);
}

/* ========================================
   LOADING SECTION
   ======================================== */
.loading-section {
    margin-top: 3rem;
}

.loading-card {
    background: rgba(15, 20, 16, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    padding: 3rem;
    box-shadow: 
        0 8px 0 0 rgba(0, 51, 0, 0.4),
        0 0 0 4px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.3);
    text-align: center;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.loading-animation {
    margin-bottom: 2rem;
}

.radar-scanner {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #cccccc;
    border-radius: 50%;
    animation: radarPulse 2s ease-out infinite;
}

.radar-circle:nth-child(1) {
    width: 50px;
    height: 50px;
}

.radar-circle:nth-child(2) {
    width: 90px;
    height: 90px;
    animation-delay: 0.3s;
}

.radar-circle:nth-child(3) {
    width: 130px;
    height: 130px;
    animation-delay: 0.6s;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 65px;
    background: linear-gradient(to top, #cccccc, transparent);
    transform-origin: bottom center;
    animation: radarSweep 2s linear infinite;
}

@keyframes radarPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes radarSweep {
    0% { transform: translate(-50%, -100%) rotate(0deg); }
    100% { transform: translate(-50%, -100%) rotate(360deg); }
}

.loading-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.loading-subtitle {
    color: #64748b;
    margin: 0 0 2rem;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cccccc 0%, #666666 100%);
    border-radius: 50px;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.scanning-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.scan-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.scan-step.active {
    background: #ede9fe;
    border-color: #cccccc;
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    font-weight: 800;
    color: #cccccc;
    border: 2px solid #cccccc;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.step-description {
    font-size: 0.875rem;
    color: #64748b;
}

.step-status {
    font-size: 1.25rem;
}

/* ========================================
   ERROR SECTION
   ======================================== */
.error-section {
    margin-top: 3rem;
}

.error-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 3px solid #fecaca;
}

.error-icon-wrapper {
    margin-bottom: 1.5rem;
}

.error-icon {
    font-size: 5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #666666;
    margin: 0 0 1rem;
}

.error-message {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.retry-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results-section {
    margin-top: 3rem;
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    color: #000000;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.75rem;
}

.success-icon {
    width: 20px;
    height: 20px;
    background: white;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
}

.results-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ff0000;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(15, 20, 16, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: 
        0 4px 0 0 rgba(0, 51, 0, 0.4),
        0 0 0 3px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: none;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.metric-card.primary {
    border-color: #cccccc;
}

.metric-card.success {
    border-color: #ffffff;
}

.metric-card.info {
    border-color: #cccccc;
}

.metric-card.warning {
    border-color: #f59e0b;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.metric-icon {
    font-size: 1.75rem;
    opacity: 0.9;
}

.metric-trend {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.metric-trend.up {
    background: #d1fae5;
    color: #065f46;
}

.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    word-break: break-all;
    line-height: 1.2;
}

.metric-value.small {
    font-size: 1.125rem;
}

.metric-subtext {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.375rem;
    font-weight: 600;
}

/* ========================================
   STATISTICS OVERVIEW
   ======================================== */
.stats-overview {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.stats-header {
    margin-bottom: 1rem;
}

.stats-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 1.25rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #cccccc;
    transform: translateX(3px);
}

.stat-icon {
    font-size: 1.75rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

/* ========================================
   IP DISTRIBUTION
   ======================================== */
.ip-distribution-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-distribution-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ip-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    border: 2px solid #fbbf24;
    transition: all 0.3s ease;
}

.ip-stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.ip-stat-address {
    font-weight: 700;
    color: #92400e;
    font-size: 0.9rem;
}

.ip-stat-count {
    font-weight: 800;
    color: #78350f;
    background: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

/* ========================================
   DATA TABLE SECTION
   ======================================== */
.data-table-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.data-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-count {
    background: #e0e7ff;
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.data-table thead th {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table thead th.col-number {
    width: 60px;
    text-align: center;
}

.data-table thead th.col-cf {
    width: 110px;
    text-align: center;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 0.625rem 0.75rem;
    color: #000000;
}

.data-table tbody td:first-child {
    text-align: center;
    font-weight: 800;
    color: #000000;
    font-size: 0.75rem;
}

.advanced-subdomain-name {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.advanced-subdomain-full,
.advanced-subdomain-ip {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #000000;
    font-weight: 600;
}

.cloudflare-status {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cloudflare-status.on {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cloudflare-status.off {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   FOOTER - PIXEL STYLE
   ======================================== */
.scanner-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: #ffffff;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: #000000;
    border: 4px solid #ffffff;
    box-shadow: 
        0 8px 0 0 #003300,
        0 0 0 4px #000000,
        0 0 20px rgba(255, 255, 255, 0.3);
}

.footer-text {
    font-size: 0.75rem;
    font-weight: normal;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 10px #ffffff;
    line-height: 1.8;
    flex-wrap: wrap;
}

.footer-text strong {
    color: #ffffff;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 10px #ffffff;
}

.footer-icon {
    font-size: 1.25rem;
    filter: drop-shadow(2px 2px 0 #000000);
}

.footer-meta {
    font-size: 0.625rem;
    opacity: 1;
    margin: 0;
    color: #cccccc;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 8px #cccccc;
    line-height: 1.8;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-table tbody tr {
    animation: fadeInUp 0.3s ease-out;
}

.metric-card {
    animation: fadeInUp 0.5s ease-out;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .scanner-container {
        padding: 0 1.5rem 3rem;
    }
}

@media (max-width: 1200px) {
    .scanner-grid {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .scanner-grid {
        grid-template-columns: 1fr;
    }
    
    .scan-history-sidebar {
        position: relative;
        top: 0;
        max-height: 500px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logout-wrapper-scanner {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .logout-btn-scanner {
        padding: 0.5rem 1rem;
        font-size: 0.5rem;
    }
    
    .back-button-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .back-to-phishing-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.625rem;
    }
    
    .navbar-container {
        padding: 1rem;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .hero-section {
        padding: 3rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-card {
        padding: 1.75rem;
    }
    
    .scanner-input-group {
        flex-direction: column;
    }
    
    .scanner-btn {
        width: 100%;
        justify-content: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .data-table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 1rem 0.75rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .loading-card {
        padding: 2rem;
    }
    
    .scanning-steps {
        padding: 0;
    }
    
    .scan-step {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .input-title {
        font-size: 1.5rem;
    }
    
    .input-prefix {
        padding: 0 0.75rem;
        font-size: 0.85rem;
    }
    
    .scanner-input {
        font-size: 0.9rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    .table-title {
        font-size: 1.25rem;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   SCAN HISTORY SIDEBAR
   ======================================== */
.scan-history-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin: 2rem auto;
    max-width: 900px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 6px 6px 0 0;
}

.history-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-icon {
    font-size: 1rem;
}

.clear-history-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.375rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.clear-history-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Empty State */
.history-empty {
    text-align: center;
    padding: 2rem 0.75rem;
    color: #cccccc;
}

.empty-icon {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.empty-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.375rem;
}

.empty-hint {
    font-size: 0.625rem;
    margin: 0;
}

/* History Item */
.history-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.625rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.history-domain {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.7rem;
    word-break: break-all;
    flex: 1;
}

.history-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.125rem;
    color: #ffffff;
    opacity: 0;
    transition: all 0.3s ease;
}

.history-item:hover .history-delete {
    opacity: 0.6;
}

.history-delete:hover {
    opacity: 1 !important;
}

.history-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.history-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #64748b;
}

.stat-icon {
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    color: #1e293b;
}

.history-time {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.time-icon {
    font-size: 0.85rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #cccccc 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
