/* Global Styles - Hacking Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

:root {
    /* Black & White Pixel Theme */
    --primary-color: #ffffff;
    --secondary-color: #cccccc;
    --danger-color: #ffffff;
    --success-color: #ffffff;
    --warning-color: #ffffff;
    --info-color: #cccccc;
    --bg-dark: #000000;
    --bg-darker: #000000;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #ffffff;
    --text-white: #ffffff;
    --border-color: #ffffff;
    --border-secondary: #cccccc;
    --shadow: 0 8px 0 0 #333333, 0 0 0 4px #000000;
    --glow-green: 0 0 10px #ffffff, 0 0 20px #ffffff;
    --glow-cyan: 0 0 10px #ffffff, 0 0 20px #ffffff;
    --glow-red: 0 0 10px #ffffff, 0 0 20px #ffffff;
}

body {
    font-family: 'Press Start 2P', 'Courier New', 'Monaco', monospace;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Parallax 3D Background */
.parallax-bg {
    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/aizen.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;
}

/* Matrix-style scanlines overlay */
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); }
}

/* Subtle grid effect */
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;
}

.container {
    max-width: 900px;
    margin: 0 0 0 5%;
    position: relative;
    z-index: 2;
}

/* Header - Hacker Style with Glass Effect */
.header {
    text-align: left;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(15, 20, 16, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 0 0 rgba(0, 51, 0, 0.4),
        0 0 0 4px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
    position: relative;
}

.header::before {
    content: '[ SYSTEM ACCESS ]';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    padding: 0 1rem;
    font-size: 0.625rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    animation: labelBlink 3s ease-in-out infinite;
}

@keyframes labelBlink {
    0%, 90%, 100% { color: var(--text-secondary); }
    95% { color: var(--text-primary); }
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: none;
    color: #000000;
    line-height: 1.8;
}

@keyframes textGlow {
    0%, 100% { 
        text-shadow: 2px 2px 0 #000000, 0 0 10px var(--text-primary), 0 0 20px var(--text-primary); 
    }
    50% { 
        text-shadow: 2px 2px 0 #000000, 0 0 20px var(--text-primary), 0 0 30px var(--text-primary), 0 0 40px var(--text-primary); 
    }
}

.subtitle {
    font-size: 0.625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 8px var(--text-secondary);
    letter-spacing: 1px;
}

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

/* Logout Button */
.logout-btn {
    padding: 0.5rem 1rem;
    border: 3px solid #000000;
    border-radius: 0;
    font-size: 0.5rem;
    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: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: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);
}

/* Header Actions */
.header-actions {
    margin-bottom: 2rem;
    text-align: left;
}

.scanner-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    font-family: 'Press Start 2P', 'Courier New', 'Monaco', monospace;
    font-weight: normal;
    font-size: 0.625rem;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 0 0 #333333,
        0 0 0 3px #000000,
        6px 6px 0 3px rgba(0, 0, 0, 0.3);
    transition: none;
    position: relative;
    overflow: visible;
    border: 3px solid #000000;
    text-transform: uppercase;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    cursor: pointer;
}

/* Pixel button pressed state */
.scanner-link-btn:hover {
    transform: translateY(3px);
    box-shadow: 
        0 3px 0 0 #333333,
        0 0 0 3px #000000,
        6px 6px 0 3px rgba(0, 0, 0, 0.3);
}

.scanner-link-btn:active {
    transform: translateY(6px);
    box-shadow: 
        0 0 0 0 #333333,
        0 0 0 3px #000000,
        6px 6px 0 3px rgba(0, 0, 0, 0.3);
}

/* Pixel highlight on top */
.scanner-link-btn::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 3px;
    background: #cccccc;
    pointer-events: none;
}

/* Pixel shadow on bottom */
.scanner-link-btn::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    height: 3px;
    background: #333333;
    pointer-events: none;
}

.scanner-link-btn .btn-icon {
    font-size: 1rem;
    filter: none;
    image-rendering: pixelated;
    line-height: 1;
    text-shadow: none;
}

.scanner-link-btn .btn-text {
    font-size: 0.625rem;
    text-shadow: none;
    line-height: 1.5;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.scanner-link-btn .btn-badge {
    background: #ffffff;
    color: #000000;
    padding: 0.375rem 0.625rem;
    border-radius: 0;
    font-size: 0.5rem;
    font-weight: normal;
    letter-spacing: 1px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    box-shadow: 
        0 3px 0 0 #666666,
        0 0 0 2px #000000;
    border: 2px solid #000000;
    text-shadow: none;
    image-rendering: pixelated;
    animation: pixelBlink 1.5s steps(2, end) infinite;
    position: relative;
}

/* Classic arcade blink animation */
@keyframes pixelBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 8-bit coin bounce animation */
@keyframes coinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scanner-link-btn:hover .btn-badge {
    animation: pixelBlink 1.5s steps(2, end) infinite, coinBounce 0.6s ease-in-out infinite;
}

/* Card Styles - Hacker Terminal */
.card {
    background: var(--card-bg);
    border-radius: 0;
    padding: 2rem;
    box-shadow: 
        0 8px 0 0 #333333,
        0 0 0 4px #000000,
        0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    border: 4px solid var(--border-color);
    position: relative;
}

.card::before {
    content: '> TERMINAL_';
    position: absolute;
    top: -12px;
    left: 1rem;
    background: #0a0a0a;
    padding: 0 0.5rem;
    font-size: 0.625rem;
    color: #ffffff;
    animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
    0%, 50% { content: '> TERMINAL_'; }
    51%, 100% { content: '> TERMINAL'; }
}

/* Input Section */
.input-section {
    position: relative;
}

.input-label {
    display: block;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 8px var(--text-tertiary);
    letter-spacing: 1px;
    line-height: 1.8;
}

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

.url-input {
    flex: 1;
    padding: 1rem;
    border: 4px solid rgba(204, 204, 204, 0.6);
    border-radius: 0;
    font-size: 0.75rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    transition: none;
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    box-shadow: 
        inset 0 0 30px rgba(204, 204, 204, 0.2),
        0 0 15px rgba(204, 204, 204, 0.3);
    line-height: 1.6;
}

.url-input::placeholder {
    color: #006666;
    opacity: 1;
}

.url-input:focus {
    border-color: var(--text-secondary);
    box-shadow: 
        inset 0 0 20px rgba(204, 204, 204, 0.2),
        0 0 20px rgba(204, 204, 204, 0.4);
    animation: inputPulse 1.5s ease-in-out infinite;
}

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

.check-btn {
    padding: 1rem 2rem;
    background: #ffffff;
    color: #000000;
    border: 4px solid #000000;
    border-radius: 0;
    font-size: 0.75rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-weight: normal;
    cursor: pointer;
    transition: none;
    box-shadow: 
        0 8px 0 0 #333333,
        0 0 0 4px #000000,
        0 0 20px rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    line-height: 1.6;
}

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

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

.check-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.6);
}

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

/* Professional Loading Animation */
.check-btn:disabled {
    cursor: not-allowed;
    animation: scanningGlow 1.5s ease-in-out infinite;
}

@keyframes scanningGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 0 0 #333333,
            0 0 0 4px #000000,
            0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 
            0 8px 0 0 #333333,
            0 0 0 4px #000000,
            0 0 40px rgba(255, 255, 255, 0.8);
    }
}

.spinner .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background: #ffffff;
    box-shadow: 
        2px 2px 0 #000000,
        0 0 8px rgba(255, 255, 255, 0.6);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.spinner .dot:nth-child(1) {
    animation-delay: 0s;
}

.spinner .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.input-hint {
    font-size: 0.625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 1px;
}

.spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.spinner-dots::before,
.spinner-dots::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffffff;
    box-shadow: 
        2px 2px 0 #000000,
        0 0 8px rgba(255, 255, 255, 0.6);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.spinner-dots::before {
    animation-delay: 0s;
}

.spinner-dots::after {
    animation-delay: 0.7s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Results Section */
.results-section {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-card {
    border: 4px solid rgba(255, 255, 255, 0.6);
    background: rgba(15, 20, 16, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
}

.results-card.safe {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(10, 26, 10, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    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.5);
}

.results-card.safe::before {
    content: '[ SECURE ]';
    position: absolute;
    top: -12px;
    left: 1rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 0.5rem;
    font-size: 0.625rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--text-primary);
}

.results-card.phishing {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(26, 10, 15, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 0 0 rgba(102, 0, 34, 0.4),
        0 0 0 4px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.5);
}

.results-card.phishing::before {
    content: '[ THREAT DETECTED ]';
    position: absolute;
    top: -12px;
    left: 1rem;
    background: #000000;
    padding: 0 0.5rem;
    font-size: 0.625rem;
    color: var(--danger-color);
    text-shadow: 0 0 8px var(--danger-color);
    animation: threatBlink 0.5s steps(2) infinite;
}

@keyframes threatBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 4px solid var(--border-color);
}

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

.result-title h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #000000;
    text-shadow: none;
    line-height: 1.8;
}

.result-url {
    color: var(--text-secondary);
    font-size: 0.625rem;
    word-break: break-all;
    line-height: 1.8;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 5px var(--text-secondary);
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 255, 0.15),
        0 0 15px rgba(255, 255, 255, 0.2);
}

.detail-label {
    font-size: 0.625rem;
    color: #000000;
    font-weight: normal;
    line-height: 1.8;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: normal;
    color: #000000;
    text-shadow: none;
    line-height: 1.4;
}

/* Progress Bar - Pixel Style */
.progress-container {
    height: 16px;
    background: #000000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #ffffff 0px,
        #ffffff 8px,
        #00cc00 8px,
        #00cc00 16px
    );
    transition: none;
    border-radius: 0;
    animation: progressMove 1s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes progressMove {
    0% { background-position: 0 0; }
    100% { background-position: 16px 0; }
}

.results-card.phishing .progress-bar {
    background: repeating-linear-gradient(
        90deg,
        #ffffff 0px,
        #ffffff 8px,
        #333333 8px,
        #333333 16px
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Reason Section */
.reason-section {
    margin-bottom: 1.5rem;
}

.reason-title {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    color: #000000;
    text-shadow: none;
    line-height: 1.8;
}

.reason-text {
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 1rem;
    background: #000000;
    border-radius: 0;
    border: 3px solid var(--border-color);
    font-size: 0.625rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Threat Indicators */
.threat-indicators {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.threat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.625rem;
    font-weight: normal;
    white-space: nowrap;
    border: 3px solid #000000;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.6;
}

.threat-high {
    background: #ffffff;
    color: #ffffff;
    box-shadow: 
        0 4px 0 0 #990000,
        0 0 0 3px #000000,
        0 0 10px rgba(255, 255, 255, 0.4);
    animation: threatBlink 0.5s steps(2) infinite;
}

.threat-medium {
    background: #ffffff;
    color: #000000;
    box-shadow: 
        0 4px 0 0 #999900,
        0 0 0 3px #000000,
        0 0 10px rgba(255, 255, 0, 0.4);
}

.threat-low {
    background: #cccccc;
    color: #000000;
    box-shadow: 
        0 4px 0 0 #006666,
        0 0 0 3px #000000,
        0 0 10px rgba(204, 204, 204, 0.4);
}

.no-threats {
    color: var(--success-color);
    font-weight: normal;
    margin: 0;
    font-size: 0.75rem;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.8;
}

/* Website Status Section */
.website-status-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #0a1a0a;
    border-radius: 0;
    border: 4px solid #ffffff;
    box-shadow: 
        0 8px 0 0 #333333,
        0 0 0 4px #000000,
        0 0 20px rgba(255, 255, 255, 0.3);
}

.status-title {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.8;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.status-item {
    background: #000000;
    padding: 1rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 3px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.status-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.625rem;
    color: var(--text-secondary);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.8;
}

.status-value {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: normal;
    text-shadow: 2px 2px 0 #000000;
    line-height: 1.8;
}

.suspicious-formats {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
    margin-top: 1rem;
}

.suspicious-formats h4 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 0.95rem;
}

#formatList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.format-badge {
    background: white;
    color: #000000;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cccccc;
}

.website-error {
    background: #fee2e2;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
    margin-top: 1rem;
    color: #991b1b;
    font-weight: 500;
}

/* Subdomain Section (Table View) */
.subdomain-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 10px;
    border: 2px solid #bae6fd;
}

.subdomain-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.subdomain-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.subdomain-count-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #0ea5e9;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.15);
}

.count-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
}

.count-label {
    font-size: 0.9rem;
    color: #000000;
    margin-top: 0.5rem;
    font-weight: 600;
}

.domain-info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.5rem;
    align-items: center;
}

.domain-label {
    font-size: 0.875rem;
    color: #000000;
    font-weight: 600;
}

.domain-value {
    font-family: 'Courier New', monospace;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-all;
}

/* Subdomain Table Styles */
.subdomain-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.subdomain-table thead {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.subdomain-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subdomain-table thead th:first-child {
    width: 60px;
    text-align: center;
}

.subdomain-table thead th:last-child {
    width: 140px;
    text-align: center;
}

.subdomain-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.subdomain-table tbody tr:hover {
    background-color: #f0f9ff;
}

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

.subdomain-table tbody td {
    padding: 1rem;
    color: #374151;
}

.row-number {
    text-align: center;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.9rem;
}

.subdomain-name {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.subdomain-full {
    font-family: 'Courier New', monospace;
    color: #4b5563;
    font-size: 0.9rem;
}

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

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.checking {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-badge.online {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.status-badge.offline {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.status-badge.unknown {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.no-data {
    text-align: center;
    padding: 2rem !important;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .subdomain-summary {
        grid-template-columns: 1fr;
    }
    
    .subdomain-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .subdomain-table {
        min-width: 600px;
    }
    
    .subdomain-table thead th,
    .subdomain-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Feature Categories */
.feature-category {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-category:first-child {
    margin-top: 1rem;
}

.category-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Features Details */
.features-details {
    margin-top: 1rem;
}

.features-summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    user-select: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-summary:hover {
    background: var(--border-color);
}

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

.feature-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-color);
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.feature-item:hover {
    border-color: var(--border-color);
    background: white;
}

.feature-name {
    color: #000000;
}

.feature-value {
    font-weight: 600;
    color: #000000;
}

.suspicious-value {
    color: #000000 !important;
    font-weight: 700;
}

/* Error Section */
.error-section {
    animation: slideDown 0.3s ease-out;
}

.error-card {
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(26, 10, 15, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-title {
    color: var(--danger-color);
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.dismiss-btn {
    padding: 0.5rem 1.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.dismiss-btn:hover {
    background: #b91c1c;
}

/* Info Section */
.info-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    margin-bottom: 1rem;
}

.info-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.warning {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    color: #ffffff;
    font-size: 0.625rem;
    line-height: 1.8;
    text-shadow: 
        2px 2px 0 #000000,
        0 0 10px #ffffff;
    box-shadow: 
        0 4px 0 0 rgba(10, 10, 10, 0.4),
        0 0 0 4px rgba(26, 26, 26, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.3);
}

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

/* Footer */
.footer {
    text-align: center;
    color: white;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Advanced Subdomain Scanner Section */
.advanced-scan-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 2px solid #86efac;
    animation: slideDown 0.3s ease-out;
}

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

.scan-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.export-csv-btn {
    padding: 0.75rem 1.5rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-csv-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

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

.scan-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}

.scan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scan-card.primary {
    border-color: var(--primary-color);
}

.scan-card.success {
    border-color: var(--success-color);
}

.scan-card.info {
    border-color: var(--info-color);
}

.scan-card.warning {
    border-color: var(--warning-color);
}

.scan-card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.scan-card-content {
    flex: 1;
}

.scan-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.scan-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    word-break: break-all;
}

.scan-card-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* IP Statistics Section */
.ip-statistics-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid #fbbf24;
}

.ip-statistics-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.ip-stats-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ip-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.ip-stat-address {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.ip-stat-count {
    font-weight: 700;
    color: var(--warning-color);
    background: #fef3c7;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

/* Advanced Subdomain Table */
.advanced-subdomain-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.advanced-subdomain-table thead {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.advanced-subdomain-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.advanced-subdomain-table thead th:first-child {
    width: 60px;
    text-align: center;
}

.advanced-subdomain-table thead th:last-child {
    width: 120px;
    text-align: center;
}

.advanced-subdomain-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.advanced-subdomain-table tbody tr:hover {
    background-color: #f0fdf4;
}

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

.advanced-subdomain-table tbody td {
    padding: 1rem;
    color: #374151;
}

.advanced-subdomain-table tbody td:first-child {
    text-align: center;
    font-weight: 700;
    color: #94a3b8;
}

.advanced-subdomain-name {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
}

.advanced-subdomain-full,
.advanced-subdomain-ip {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #4b5563;
}

.cloudflare-status {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cloudflare-status.on {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.cloudflare-status.off {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Mobile Responsive for Advanced Scanner */
@media (max-width: 768px) {
    .scan-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .scan-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .button-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scan-subdomains-btn {
        width: 100%;
        justify-content: center;
    }
    
    .advanced-subdomain-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .advanced-subdomain-table {
        min-width: 700px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .logout-wrapper {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .logout-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.4rem;
    }
    
    .header-actions {
        margin-bottom: 1.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .scanner-link-btn {
        padding: 1rem 1.5rem;
        font-size: 0.625rem;
        gap: 0.5rem;
    }
    
    .scanner-link-btn .btn-text {
        font-size: 0.625rem;
    }
    
    .scanner-link-btn .btn-icon {
        font-size: 1rem;
    }
    
    .scanner-link-btn .btn-badge {
        font-size: 0.5rem;
        padding: 0.375rem 0.625rem;
    }

    .input-group {
        flex-direction: column;
    }

    .check-btn {
        justify-content: center;
    }

    .result-details {
        grid-template-columns: 1fr;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    .threat-indicators {
        flex-direction: column;
    }

    .threat-badge {
        width: 100%;
        justify-content: center;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .subdomain-info {
        flex-direction: column;
    }

    .subdomain-count-box {
        width: 100%;
    }
}
