* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff41;
    --primary-dark: #00aa2e;
    --secondary: #00d4ff;
    --danger: #ff3838;
    --warning: #ffaa00;
    --bg-dark: #0a0e0f;
    --bg-darker: #050707;
    --bg-panel: #0f1419;
    --border-color: rgba(0, 255, 65, 0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #8b9196;
    --glow: rgba(0, 255, 65, 0.4);
    --shadow: rgba(0, 255, 65, 0.2);
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Matrix Rain Background */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Network Grid Background */
.network-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* Scan Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
    z-index: 100;
    pointer-events: none;
    animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shield-logo {
    width: 50px;
    height: 60px;
    filter: drop-shadow(0 0 10px var(--glow));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.logo-text h1 {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
    letter-spacing: 4px;
}

.subtitle-logo {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.status-text {
    color: var(--text-secondary);
}

#systemStatus {
    color: var(--warning);
    font-weight: 600;
}

/* Alert Banner */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.1), rgba(255, 56, 56, 0.1));
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.alert-icon {
    font-size: 2rem;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: rotate(5deg); }
}

.alert-content h2 {
    font-size: 1.3rem;
    color: var(--warning);
    margin-bottom: 5px;
}

.alert-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.alert-code {
    margin-left: auto;
    padding: 8px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.85rem;
}

.code-value {
    color: var(--primary);
    font-weight: 600;
}

/* Terminal Window */
.terminal-window {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px var(--shadow);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

#terminalOutput {
    margin-bottom: 15px;
}

.terminal-line {
    margin: 5px 0;
    color: var(--text-primary);
}

.terminal-line.success {
    color: var(--primary);
}

.terminal-line.error {
    color: var(--danger);
}

.terminal-line.warning {
    color: var(--warning);
}

.terminal-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--primary);
    font-weight: 600;
}

#terminalInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

#terminalInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Panels Grid */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--shadow);
    transform: translateY(-5px);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.panel-icon {
    font-size: 1.5rem;
}

.panel-header h3 {
    flex: 1;
    font-size: 1rem;
    color: var(--primary);
}

.panel-badge {
    padding: 4px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.panel-badge.pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 15px var(--primary); }
}

.panel-body {
    padding: 20px;
}

/* Quiz Panel */
.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-darker);
    border-radius: 5px;
}

.difficulty-selector label {
    color: var(--text-secondary);
    font-weight: 600;
}

.difficulty-selector select {
    flex: 1;
    padding: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.difficulty-selector select:focus {
    border-color: var(--primary);
}

.quiz-question {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.quiz-option {
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 65, 0.05);
    transform: translateX(5px);
}

.quiz-option.correct {
    border-color: var(--primary);
    background: rgba(0, 255, 65, 0.2);
}

.quiz-option.wrong {
    border-color: var(--danger);
    background: rgba(255, 56, 56, 0.2);
}

.quiz-result {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.quiz-result.correct {
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary);
}

.quiz-result.wrong {
    background: rgba(255, 56, 56, 0.2);
    color: var(--danger);
}

.quiz-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.quiz-stats .stat {
    text-align: center;
    padding: 10px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    flex: 1;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

/* Firewall Panel */
.firewall-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.threat-log {
    max-height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8rem;
}

.threat-log::-webkit-scrollbar {
    width: 6px;
}

.threat-log::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.threat-item {
    padding: 8px;
    margin: 5px 0;
    background: var(--bg-darker);
    border-left: 3px solid var(--danger);
    border-radius: 3px;
    font-size: 0.8rem;
}

.threat-time {
    color: var(--text-secondary);
    margin-right: 10px;
}

.threat-message {
    color: var(--text-primary);
}

/* Password Panel */
.password-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.95rem;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.password-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--shadow);
}

.strength-meter {
    width: 100%;
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.password-tips {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.password-tips ul {
    list-style-position: inside;
    margin-top: 10px;
}

/* System Monitor Panel */
.resource-item {
    margin-bottom: 20px;
}

.resource-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.resource-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.resource-fill {
    height: 100%;
    transition: width 0.5s ease;
    position: relative;
    border-radius: 10px;
}

.resource-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cpu-fill {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.mem-fill {
    background: linear-gradient(90deg, var(--secondary), #0099cc);
}

.net-fill {
    background: linear-gradient(90deg, var(--warning), #cc8800);
}

/* Encryption Panel */
.encrypted-message {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: monospace;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 15px;
    word-break: break-all;
    text-align: center;
    letter-spacing: 2px;
}

.decrypt-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    outline: none;
}

.decrypt-input:focus {
    border-color: var(--primary);
}

.decrypt-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 5px;
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.decrypt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow);
}

.decrypt-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.decrypt-result.success {
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary);
}

.decrypt-result.error {
    background: rgba(255, 56, 56, 0.2);
    color: var(--danger);
}

/* Network Canvas */
#networkCanvas {
    width: 100%;
    height: 200px;
    background: var(--bg-darker);
    border-radius: 5px;
}

/* Hash Generator Panel */
.hash-input, .hash-select {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 10px;
    outline: none;
}

.hash-select {
    cursor: pointer;
}

.hash-output {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--primary);
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 10px;
    min-height: 60px;
}

.hash-copy-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 5px;
    color: var(--bg-darker);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hash-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow);
}

/* Port Scanner Game */
.port-scanner-info {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.port-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.port-item {
    padding: 15px 10px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: monospace;
}

.port-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.port-item.open {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--primary);
}

.port-item.closed {
    background: rgba(255, 56, 56, 0.2);
    border-color: var(--danger);
}

.port-result {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
}

.port-result.success {
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary);
}

/* Binary Converter */
.binary-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.95rem;
    margin-bottom: 10px;
    outline: none;
}

.binary-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.binary-btn {
    padding: 10px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.binary-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary);
}

.binary-output {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--primary);
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    min-height: 60px;
}

/* IP Panel */
.ip-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.95rem;
    margin-bottom: 10px;
    outline: none;
}

.ip-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--secondary), #0099cc);
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.ip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.ip-result {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    min-height: 80px;
}

.ip-result.valid {
    border-color: var(--primary);
}

.ip-result.invalid {
    border-color: var(--danger);
}

/* Virus Game */
.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-darker);
    border-radius: 5px;
    font-weight: 600;
}

.virus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.virus-hole {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.virus-hole.active {
    background: rgba(255, 56, 56, 0.2);
    border-color: var(--danger);
    animation: virusPop 0.5s ease;
}

@keyframes virusPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 5px;
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow);
}

/* Memory Game */
.memory-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-darker);
    border-radius: 5px;
    font-weight: 600;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.memory-card {
    aspect-ratio: 1;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.memory-card.flipped {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary);
}

.memory-card.matched {
    background: rgba(0, 255, 65, 0.3);
    border-color: var(--primary);
    cursor: default;
}

/* Injection Detector */
.injection-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
    resize: vertical;
}

.injection-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--warning), #cc8800);
    border: none;
    border-radius: 5px;
    color: var(--bg-darker);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.injection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.4);
}

.injection-result {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    min-height: 60px;
}

.injection-result.safe {
    border-color: var(--primary);
    color: var(--primary);
}

.injection-result.dangerous {
    border-color: var(--danger);
    color: var(--danger);
}

/* Security Checklist */
.checklist {
    margin-bottom: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin: 8px 0;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: var(--primary);
}

.checklist-item.completed {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary);
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checklist-item.completed .checklist-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.checklist-checkbox::after {
    content: '✓';
    color: var(--bg-darker);
    font-weight: bold;
    display: none;
}

.checklist-item.completed .checklist-checkbox::after {
    display: block;
}

.checklist-text {
    flex: 1;
    font-size: 0.95rem;
}

.checklist-score {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Security Tips Panel */
.tip-display {
    padding: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tip-icon {
    font-size: 2.5rem;
    animation: tipPulse 2s ease-in-out infinite;
}

@keyframes tipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tip-text {
    flex: 1;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.tip-text strong {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 5px;
}

.tip-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tip-btn {
    padding: 10px 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tip-counter {
    color: var(--text-secondary);
    font-weight: 600;
    font-family: monospace;
}

/* Threat Intelligence Feed */
.threat-feed {
    max-height: 250px;
    overflow-y: auto;
}

.threat-feed::-webkit-scrollbar {
    width: 6px;
}

.threat-feed::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.threat-feed-item {
    padding: 12px;
    margin: 8px 0;
    background: var(--bg-darker);
    border-left: 3px solid var(--primary);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.threat-feed-time {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.8rem;
}

.threat-feed-icon {
    font-size: 1.2rem;
}

.threat-feed-text {
    flex: 1;
    color: var(--text-primary);
}

/* Best Practices Panel */
.practices-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.practice-section {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.practice-title {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.practice-items {
    list-style: none;
    padding: 0;
}

.practice-items li {
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.practice-items li:last-child {
    border-bottom: none;
}

/* Upgrade Progress Section */
.upgrade-progress {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.upgrade-progress h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.progress-items {
    margin-bottom: 25px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin: 10px 0;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.progress-item.completed {
    border-left: 4px solid var(--primary);
}

.progress-item.active {
    border-left: 4px solid var(--warning);
    animation: activePulse 2s infinite;
}

.progress-item.pending {
    opacity: 0.6;
}

@keyframes activePulse {
    0%, 100% { background: var(--bg-darker); }
    50% { background: rgba(255, 170, 0, 0.1); }
}

.progress-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.progress-item.completed .progress-icon {
    color: var(--primary);
}

.progress-item.active .progress-icon {
    color: var(--warning);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-item.pending .progress-icon {
    color: var(--text-secondary);
}

.progress-text {
    flex: 1;
    font-size: 0.95rem;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar-container {
    flex: 1;
    height: 30px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 0;
    transition: width 1s ease;
    position: relative;
    border-radius: 15px;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Orbitron', monospace;
    min-width: 50px;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-darker));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-darker);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--glow);
}

.button-arrow {
    font-size: 1.2rem;
    font-weight: 900;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-hint {
    margin-top: 10px;
    color: var(--primary);
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-panel);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalAppear 0.3s ease;
    box-shadow: 0 0 50px var(--glow);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

#modalTitle {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#modalMessage {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .system-status {
        width: 100%;
        justify-content: center;
    }

    .alert-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-code {
        margin-left: 0;
    }

    .panels-grid {
        grid-template-columns: 1fr;
    }

    .firewall-stats {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .shield-logo {
        width: 40px;
        height: 48px;
    }

    .alert-content h2 {
        font-size: 1.1rem;
    }

    .contact-button {
        width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
