:root {
    --bg-dark: #0a0a1a;
    --bg-card: #0f0f2a;
    --bg-card-hover: #151540;
    --border: #1a1a3e;
    --text: #e0e0ff;
    --text-dim: #8888aa;
    --neon-green: #00ff88;
    --neon-blue: #00aaff;
    --neon-purple: #aa44ff;
    --neon-red: #ff0044;
    --neon-yellow: #ffaa00;
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-blue: 0 0 20px rgba(0, 170, 255, 0.3);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--neon-green);
    cursor: pointer;
    text-shadow: var(--glow-green);
}

.nav-brand i {
    font-size: 1.4rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.08);
}

/* ---- Dropdown nav groups ---- */
.nav-group {
    position: relative;
}

.nav-group-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    color: var(--text-dim);
    background: none;
    border: none;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-group-btn:hover,
.nav-group.active .nav-group-btn {
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.08);
}

.nav-caret {
    font-size: 0.62rem;
    transition: transform 0.2s;
    opacity: 0.6;
}

.nav-group.open .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 28, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    list-style: none;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 200;
    animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-group.open .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.84rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.08);
}

.nav-dropdown li a i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
    font-size: 0.82rem;
}

main {
    position: relative;
    z-index: 1;
    padding-top: 64px;
}

.section {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    font-family: var(--font-mono);
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    margin-bottom: 0.5rem;
}

.section-header h2 i {
    margin-right: 0.5rem;
}

.section-header p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero-content {
    margin-bottom: 3rem;
}

.glitch-wrapper {
    margin-bottom: 1.5rem;
}

.glitch {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: inset(0 0 80% 0);
    color: var(--neon-blue);
}

.glitch::after {
    animation: glitch-2 2s infinite linear alternate-reverse;
    clip-path: inset(80% 0 0 0);
    color: var(--neon-purple);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    color: var(--bg-dark);
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
}

.btn-glow {
    animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.4); }
}

.btn-danger {
    background: linear-gradient(135deg, var(--neon-red), #ff4466);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 68, 0.3);
}

.btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-safe {
    background: linear-gradient(135deg, #00cc66, var(--neon-green));
    color: var(--bg-dark);
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-safe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.cyber-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-bottom: 0.75rem;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-mono);
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.phishing-container {
    max-width: 700px;
    margin: 0 auto;
}

.email-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-green);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.email-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.email-from {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.email-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.email-sender-info {
    flex: 1;
}

.email-sender-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.email-sender-address {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.email-subject {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.email-body {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.9rem;
}

.email-body a {
    color: var(--neon-blue);
    text-decoration: underline;
}

.email-body .suspicious {
    border-bottom: 2px dashed var(--neon-red);
    cursor: help;
}

.phishing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feedback-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--neon-green);
    animation: fadeIn 0.3s ease;
}

.feedback-box.wrong {
    border-left-color: var(--neon-red);
}

.feedback-box h4 {
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.feedback-box p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feedback-box .suspicious-list {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
}

.feedback-box .suspicious-list li {
    color: var(--neon-yellow);
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.score-display {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--neon-green);
    border-radius: 16px;
    box-shadow: var(--glow-green);
}

.score-display h3 {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
}

.hidden {
    display: none !important;
}

.password-container {
    max-width: 700px;
    margin: 0 auto;
}

.password-input-group {
    margin-bottom: 1.5rem;
}

.terminal-prompt {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    transition: border-color 0.3s;
}

.terminal-prompt:focus-within {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
}

.prompt-symbol {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.terminal-prompt input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    outline: none;
}

.terminal-prompt input::placeholder {
    color: var(--text-dim);
}

.cursor-blink {
    color: var(--neon-green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.password-meter {
    margin-bottom: 2rem;
}

.meter-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.5s ease;
}

.meter-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.password-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.detail-card i {
    font-size: 1.2rem;
    color: var(--neon-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.detail-title {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-value {
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--neon-green);
    font-size: 0.95rem;
}

.password-checklist {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.password-checklist h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.password-checklist ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.password-checklist li {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.password-checklist li i {
    font-size: 0.6rem;
    transition: color 0.3s;
}

.password-checklist li.pass {
    color: var(--neon-green);
}

.password-checklist li.pass i {
    color: var(--neon-green);
}

.password-checklist li.fail {
    color: var(--neon-red);
}

.password-checklist li.fail i {
    color: var(--neon-red);
}

.password-tips {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.password-tips h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-yellow);
    margin-bottom: 1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.tip {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip i {
    color: var(--neon-green);
    font-size: 0.7rem;
}

.scam-container {
    max-width: 700px;
    margin: 0 auto;
}

.scam-input-area {
    margin-bottom: 2rem;
}

.scam-input-area textarea {
    width: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
    line-height: 1.6;
}

.scam-input-area textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

.scam-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.scam-gauge {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gauge-container {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-value {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
}

.gauge-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.scam-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.scam-flag {
    background: rgba(255, 0, 68, 0.1);
    border: 1px solid rgba(255, 0, 68, 0.3);
    color: var(--neon-red);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.scam-flag.safe {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--neon-green);
}

.scam-explanation {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: center;
}

.scam-examples {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.scam-examples h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.example-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.example-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.example-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
}

.example-card i {
    font-size: 1.5rem;
    color: var(--neon-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.example-card span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

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

.quiz-intro {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.quiz-intro-icon {
    font-size: 4rem;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    display: block;
    margin-bottom: 1.5rem;
}

.quiz-intro h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quiz-intro p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.quiz-name-input {
    margin-bottom: 1.5rem;
}

.quiz-name-input input {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: border-color 0.3s;
}

.quiz-name-input input:focus {
    border-color: var(--neon-green);
}

.quiz-header {
    margin-bottom: 2rem;
}

.quiz-header span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-green);
}

.quiz-score-live {
    float: right;
    color: var(--neon-yellow) !important;
}

.quiz-question {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--neon-blue);
    background: var(--bg-card-hover);
}

.quiz-option.correct {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
}

.quiz-option.wrong {
    border-color: var(--neon-red);
    background: rgba(255, 0, 68, 0.1);
}

.quiz-option.disabled {
    pointer-events: none;
}

.quiz-explanation {
    background: var(--bg-card);
    border-left: 4px solid var(--neon-blue);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.results-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.results-card h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
}

.results-score {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    margin-bottom: 1rem;
}

.results-message {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.results-breakdown {
    text-align: left;
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.result-item i {
    margin-top: 0.2rem;
}

.result-item.correct-item i {
    color: var(--neon-green);
}

.result-item.wrong-item i {
    color: var(--neon-red);
}

.bruteforce-container {
    max-width: 800px;
    margin: 0 auto;
}

.bf-setup {
    margin-bottom: 2rem;
}

.bf-input-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
}

.bf-input-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bf-input-row input {
    flex: 1;
    min-width: 150px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.bf-input-row input:focus {
    border-color: var(--neon-green);
}

.bf-display {
    margin-bottom: 2rem;
}

.terminal-window {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.terminal-header {
    background: #1a1a2e;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.prompt-green { color: var(--neon-green); }
.prompt-blue { color: var(--neon-blue); }

.bf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.bf-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.bf-stat i {
    font-size: 1.2rem;
    color: var(--neon-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.bf-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.bf-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--neon-green);
    font-size: 0.9rem;
}

.bf-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.bf-info h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-blue);
    margin-bottom: 0.75rem;
}

.bf-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.bf-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bf-compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
}

.bf-compare-pass {
    font-family: var(--font-mono);
    color: var(--neon-green);
}

.bf-compare-time {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-yellow);
}

.leaderboard-container {
    max-width: 700px;
    margin: 0 auto;
}

.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    min-height: 200px;
}

.podium-item {
    text-align: center;
    width: 140px;
}

.podium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.podium-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.podium-score {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.podium-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
}

.podium-item:nth-child(1) .podium-bar {
    background: linear-gradient(180deg, #c0c0c0, #888);
    height: 100px;
    color: var(--bg-dark);
}

.podium-item:nth-child(2) .podium-bar {
    background: linear-gradient(180deg, #ffd700, #daa520);
    height: 130px;
    color: var(--bg-dark);
}

.podium-item:nth-child(3) .podium-bar {
    background: linear-gradient(180deg, #cd7f32, #8b4513);
    height: 80px;
    color: var(--bg-dark);
}

.podium-item:nth-child(1) .podium-avatar {
    background: linear-gradient(135deg, #c0c0c0, #888);
    color: var(--bg-dark);
}

.podium-item:nth-child(2) .podium-avatar {
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: var(--bg-dark);
}

.podium-item:nth-child(3) .podium-avatar {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: var(--bg-dark);
}

.leaderboard-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.leaderboard-table th {
    background: #1a1a2e;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.leaderboard-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.leaderboard-table tr:hover td {
    background: rgba(0, 255, 136, 0.03);
}

.empty-lb {
    text-align: center;
    color: var(--text-dim);
    padding: 2rem !important;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.rank-1 { background: #ffd700; color: var(--bg-dark); }
.rank-2 { background: #c0c0c0; color: var(--bg-dark); }
.rank-3 { background: #cd7f32; color: var(--bg-dark); }
.rank-other { background: var(--border); color: var(--text-dim); }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.course-progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.course-progress-info h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-green);
    margin-bottom: 0.25rem;
}

.course-progress-info span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.course-progress-percent {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.course-bar {
    height: 10px;
    border-radius: 5px;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lesson-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.lesson-card.unlocked:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-4px);
}

.lesson-card.completed {
    border-color: rgba(0, 255, 136, 0.3);
}

.lesson-card.completed:hover {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
    transform: translateY(-4px);
}

.lesson-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.lesson-card-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    line-height: 1;
}

.lesson-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.lesson-card-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.lesson-card-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

.lesson-card-status.completed {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
}

.lesson-card-status.unlocked {
    background: rgba(0, 170, 255, 0.1);
    color: var(--neon-blue);
}

.lesson-card-status.locked {
    background: rgba(136, 136, 170, 0.1);
    color: var(--text-dim);
}

.lesson-card-lock-msg {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-style: italic;
}

.btn-back {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-back:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.lesson-title-bar {
    margin: 1.5rem 0 2rem;
}

.lesson-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lesson-title-bar h2 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    margin-top: 0.25rem;
}

.lesson-title-bar h2 i {
    margin-right: 0.5rem;
}

.lesson-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.lesson-block-header {
    background: #111130;
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.lesson-block-header.quiz-header-block {
    color: var(--neon-yellow);
}

.lesson-block-body {
    padding: 1.5rem;
}

.lesson-block-body p {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.lesson-block-body p:last-child {
    margin-bottom: 0;
}

.lesson-importance {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 170, 0, 0.06);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 12px;
    margin-top: 0.5rem;
}

.lesson-importance i {
    color: var(--neon-yellow);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.lesson-importance div {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

.lesson-importance strong {
    color: var(--neon-yellow);
}

.lesson-subsection {
    margin-bottom: 1.5rem;
}

.lesson-subsection:last-child {
    margin-bottom: 0;
}

.lesson-subsection h4 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
}

.lesson-text {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 0.9rem;
}

.lesson-text strong {
    color: var(--text);
}

.lesson-text br {
    margin-bottom: 0.25rem;
}

.lesson-example {
    margin-bottom: 1.5rem;
}

.lesson-example h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.lesson-email {
    background: #0d0d1a;
    border: 1px solid var(--neon-red);
    border-radius: 12px;
    overflow: hidden;
}

.lesson-email.safe {
    border-color: var(--neon-green);
}

.lesson-email-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.lesson-email-body {
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.highlight-danger {
    color: var(--neon-red);
    font-weight: 600;
}

.highlight-safe {
    color: var(--neon-green);
    font-weight: 600;
}

.lesson-analysis {
    background: rgba(0, 170, 255, 0.04);
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.lesson-analysis h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 0.75rem;
}

.lesson-analysis ul {
    list-style: none;
    padding: 0;
}

.lesson-analysis li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.lesson-analysis li i {
    color: var(--neon-blue);
    font-size: 0.6rem;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.lesson-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comparison-col {
    background: #0d0d1a;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.comparison-col.danger {
    border-color: rgba(255, 0, 68, 0.3);
}

.comparison-col.safe {
    border-color: rgba(0, 255, 136, 0.3);
}

.comparison-col h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comparison-col.danger h4 {
    color: var(--neon-red);
}

.comparison-col.safe h4 {
    color: var(--neon-green);
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-item code {
    font-family: var(--font-mono);
    color: var(--text);
    font-size: 0.8rem;
}

.comparison-item span {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.lesson-scenario {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.scenario-header {
    padding: 0.75rem 1.25rem;
    background: #111130;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-body {
    padding: 1.25rem;
}

.scenario-body p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.scenario-result {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.scenario-result.danger {
    background: rgba(255, 0, 68, 0.08);
    border: 1px solid rgba(255, 0, 68, 0.2);
    color: var(--neon-red);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 0.4rem 0;
}

.info-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.info-item.danger i {
    color: var(--neon-red);
}

.lesson-tips-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lesson-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #0d0d1a;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.tip-num {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    color: var(--bg-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.lesson-quiz-start {
    text-align: center;
    padding: 1rem 0;
}

.lesson-quiz-start p {
    margin-bottom: 1rem;
}

.results-detail {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.results-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .lesson-comparison {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================
   FORUM STYLES
   ======================== */

.forum-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 80px;
}

.forum-sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
}

.forum-sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.forum-cat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.forum-cat-item:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.forum-cat-item.active {
    background: rgba(0, 170, 255, 0.1);
    color: var(--neon-blue);
}

.forum-cat-item i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.forum-cat-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: var(--bg-dark);
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    color: var(--text-dim);
}

.forum-user-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.forum-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.forum-username-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
}

.forum-change-user {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.forum-change-user:hover {
    color: var(--neon-blue);
}

.forum-login-prompt {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.forum-username-setup {
    display: flex;
    gap: 0.5rem;
}

.forum-input {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.forum-input:focus {
    border-color: var(--neon-blue);
}

.forum-textarea {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    resize: vertical;
    line-height: 1.6;
}

.forum-textarea:focus {
    border-color: var(--neon-blue);
}

.forum-select {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.forum-new-btn {
    width: 100%;
    justify-content: center;
}

.forum-content {
    min-width: 0;
}

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

.forum-section-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-count-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.forum-threads {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forum-thread-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s;
}

.forum-thread-row:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: translateX(4px);
}

.forum-thread-row.pinned {
    border-color: rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.03);
}

.forum-thread-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.forum-thread-info {
    flex: 1;
    min-width: 0;
}

.forum-thread-meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.forum-thread-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.forum-pinned-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-yellow);
    background: rgba(255, 170, 0, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
}

.forum-thread-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-thread-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.forum-thread-meta i {
    margin-right: 0.25rem;
}

.forum-thread-reply-count {
    text-align: center;
    flex-shrink: 0;
}

.forum-reply-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.forum-reply-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
}

.forum-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
}

.forum-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

/* Forum Modal */
.forum-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.forum-modal.hidden {
    display: none;
}

.forum-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    overflow: hidden;
}

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

.forum-modal-header h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.forum-modal-close:hover {
    color: var(--neon-red);
}

.forum-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forum-modal-body label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-green);
    display: block;
}

.forum-error {
    font-size: 0.85rem;
    color: var(--neon-red);
    padding: 0.5rem 0;
}

.forum-submit-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

/* Thread view */
.forum-thread-header {
    margin: 1.5rem 0;
}

.forum-thread-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.forum-thread-view-title {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text);
    line-height: 1.4;
}

.forum-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.forum-post {
    display: flex;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.forum-post.op-post {
    border-color: rgba(0, 170, 255, 0.3);
}

.forum-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.forum-post.op-post .forum-post-avatar {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
}

.forum-post-body {
    flex: 1;
    min-width: 0;
}

.forum-post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.forum-post-author {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.forum-op-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.forum-post-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
}

.forum-post-time i {
    margin-right: 0.3rem;
}

.forum-post-content {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.forum-reply-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.forum-reply-box-header {
    background: #111130;
    padding: 0.9rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-blue);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-reply-box > .forum-login-prompt,
.forum-reply-box > .forum-reply-user,
.forum-reply-box > textarea,
.forum-reply-box > .forum-error,
.forum-reply-box > button,
.forum-reply-box > div {
    padding: 0 1.25rem;
    margin-bottom: 0.75rem;
}

.forum-reply-box > .forum-login-prompt {
    padding-top: 1rem;
    margin-bottom: 0;
}

.forum-reply-box > .forum-reply-user {
    padding-top: 1rem;
}

.forum-reply-box > textarea {
    display: block;
}

.forum-reply-box > button {
    margin-bottom: 1.25rem;
}

.forum-reply-user {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.forum-reply-user strong {
    color: var(--neon-green);
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
}

.forum-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.forum-error-msg {
    text-align: center;
    padding: 2rem;
    color: var(--neon-red);
    font-size: 0.9rem;
}

.forum-thread-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.forum-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.forum-action-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.repost-btn.reposted {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.repost-count {
    font-family: var(--font-mono);
    font-weight: 600;
}

.forum-post-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.post-action-btn:hover {
    background: rgba(0, 170, 255, 0.07);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.like-btn i {
    transition: transform 0.2s, color 0.2s;
}

.like-btn:hover i {
    transform: scale(1.2);
}

.like-btn.liked {
    border-color: #ff4477;
    color: #ff4477;
    background: rgba(255, 68, 119, 0.08);
}

.like-btn.liked i {
    color: #ff4477;
}

.like-count {
    font-family: var(--font-mono);
    font-weight: 600;
}

.forum-post-image {
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    max-width: 480px;
}

.forum-post-image img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    display: block;
}

.forum-post-image img:hover {
    opacity: 0.9;
}

.forum-comments-section {
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.forum-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}

.forum-comment {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 0.4rem 0.75rem;
    background: var(--bg-dark);
    border-radius: 10px;
    font-size: 0.82rem;
}

.forum-comment.new-comment {
    animation: fadeInUp 0.3s ease;
}

.comment-author {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--neon-blue);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comment-content {
    color: var(--text-dim);
    flex: 1;
    word-break: break-word;
}

.comment-time {
    color: var(--text-dim);
    font-size: 0.7rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.no-comments {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    padding: 0.5rem;
    font-style: italic;
}

.comment-loading {
    text-align: center;
    color: var(--text-dim);
    padding: 0.5rem;
    font-size: 0.85rem;
}

.forum-comment-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.forum-image-upload {
    margin-bottom: 0.25rem;
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-dark);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.image-upload-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.hidden-file-input {
    display: none;
}

.img-preview-container {
    margin-bottom: 0.25rem;
}

.img-preview-wrap {
    display: inline-block;
    position: relative;
}

.img-preview-wrap img {
    max-height: 180px;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    border: 1px solid var(--border);
}

.img-preview-wrap button {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s;
}

.img-preview-wrap button:hover {
    background: var(--neon-red);
}

.img-fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
}

.img-fullscreen-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.img-fullscreen-overlay button {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1000;
}

.img-fullscreen-overlay button:hover {
    background: var(--neon-red);
}

.forum-reply-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

.shake { animation: shake 0.4s ease; }

@media (max-width: 768px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }

    .forum-sidebar {
        position: static;
    }

    .forum-thread-reply-count {
        display: none;
    }

    .forum-thread-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .forum-post-image {
        max-width: 100%;
    }
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.terminal-body::-webkit-scrollbar,
.results-breakdown::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track,
.results-breakdown::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb,
.results-breakdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border);
        gap: 0.15rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-group {
        width: 100%;
    }

    .nav-group-btn {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0,255,136,0.03);
        border-left: 2px solid rgba(0,255,136,0.2);
        border-radius: 0 8px 8px 0;
        margin-left: 1rem;
        padding: 0.25rem 0;
        animation: none;
    }

    .nav-group.open .nav-dropdown {
        display: block;
    }

    .glitch {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cyber-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .password-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .password-checklist ul {
        grid-template-columns: 1fr;
    }

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

    .example-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-input-row {
        flex-direction: column;
    }

    .phishing-actions {
        flex-direction: column;
    }

    .section {
        padding: 1.5rem;
    }

    .leaderboard-podium {
        gap: 0.5rem;
    }

    .podium-item {
        width: 100px;
    }

    .stat-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.5rem;
    }

    .cyber-stats {
        grid-template-columns: 1fr;
    }

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

    .bf-stats {
        grid-template-columns: 1fr;
    }

    .example-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================
   EXPUNERI PAGE
   ======================== */

.exposes-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exposes-header-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exposes-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,0,68,0.1);
    border: 1px solid rgba(255,0,68,0.3);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: #ff4466;
    width: fit-content;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff0044;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff0044;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.exposes-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(255, 170, 0, 0.07);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-left: 3px solid #ffaa00;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    font-size: 0.87rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.exposes-alert-banner i {
    color: #ffaa00;
    margin-top: 0.1rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.exposes-alert-banner strong {
    color: #ffaa00;
}

.exposes-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.expose-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.expose-stat-num {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.expose-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.exposes-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.expose-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.expose-filter-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.expose-filter-btn.active {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(0,255,136,0.07);
}

.expose-filter-count {
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 0.1rem 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

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

.expose-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expose-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-blue);
    box-shadow: 0 8px 30px rgba(0,170,255,0.1);
}

.expose-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.expose-card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expose-card-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.expose-severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid currentColor;
}

.expose-severity-badge.lg {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
}

.expose-category-badge {
    background: rgba(0,170,255,0.1);
    border: 1px solid rgba(0,170,255,0.2);
    color: var(--neon-blue);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-mono);
}

.expose-card-title {
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
}

.expose-card-summary {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expose-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.76rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    flex-wrap: wrap;
}

.expose-card-meta i {
    opacity: 0.7;
}

.expose-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: auto;
}

.expose-read-more {
    font-size: 0.8rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.expose-card:hover .expose-read-more {
    gap: 0.7rem;
}

.expose-losses-badge {
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: #ff8800;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ========================
   ARTICLE OVERLAY
   ======================== */

.expose-article-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 20, 0.97);
    z-index: 900;
    overflow-y: auto;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.expose-article-container {
    max-width: 820px;
    width: 100%;
}

.expose-article-close {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.expose-article-close:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.expose-article-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.expose-article-hero-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expose-article-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expose-article-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.expose-article-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
}

.expose-article-summary {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.expose-article-meta-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.expose-article-meta-row strong {
    color: var(--text-main);
}

.expose-article-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.expose-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expose-section-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.expose-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expose-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.expose-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(0,170,255,0.12);
    border: 1px solid rgba(0,170,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.expose-step-text {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
    padding-top: 0.3rem;
}

.expose-flags {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.expose-flag {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
    background: rgba(255,136,0,0.05);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(255,136,0,0.12);
}

.expose-flag i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.real-case-section {
    border-color: rgba(170,68,255,0.25);
    background: rgba(170,68,255,0.04);
}

.expose-real-case {
    position: relative;
    padding-left: 1.5rem;
}

.expose-quote-icon {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-purple);
    opacity: 0.5;
    font-size: 1rem;
}

.expose-real-case p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-style: italic;
}

.prevention-section {
    border-color: rgba(0,255,136,0.2);
    background: rgba(0,255,136,0.03);
}

.prevention-title {
    color: var(--neon-green) !important;
}

.expose-prevention-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.expose-prevention-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.expose-prevention-item i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.expose-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expose-source-tag {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.expose-article-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

@media (max-width: 900px) {
    .exposes-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .exposes-grid {
        grid-template-columns: 1fr;
    }

    .expose-article-hero {
        flex-direction: column;
    }

    .expose-article-meta-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .exposes-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .expose-card-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .exposes-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .expose-article-overlay {
        padding: 1rem 0.5rem;
    }
}

/* ========================
   AUTH GATE & FORMS
   ======================== */

.auth-gate {
    max-width: 480px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-gate-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.auth-gate-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--neon-green);
}

.auth-gate-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.auth-gate-header p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 360px;
}

.auth-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.3rem;
    gap: 0.3rem;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    border-radius: 9px;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    cursor: pointer;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.auth-tab.active {
    background: rgba(0,255,136,0.1);
    color: var(--neon-green);
    box-shadow: inset 0 0 0 1px rgba(0,255,136,0.25);
}

.auth-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.7;
}

.password-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-wrap .forum-input {
    flex: 1;
    padding-right: 2.5rem;
}

.toggle-pass-btn {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem;
    transition: color 0.2s;
}

.toggle-pass-btn:hover { color: var(--neon-blue); }

.pass-strength-bar {
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.35rem;
}

.pass-strength-bar div {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}

.auth-error {
    background: rgba(255,0,68,0.1);
    border: 1px solid rgba(255,0,68,0.3);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.83rem;
    color: #ff4466;
}

.auth-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

.auth-switch-text {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.auth-switch-text a {
    color: var(--neon-blue);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-switch-text a:hover { color: var(--neon-green); }

/* Forum user block */
.forum-user-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.forum-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.forum-user-email {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.forum-user-avatar.sm {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
}

.forum-reply-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.forum-reply-user strong { color: var(--neon-green); }

.forum-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.25rem;
}

.forum-logout-btn:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

/* Lesson list cards */
.lesson-list-card {
    border-radius: 12px;
    padding: 1.25rem;
}

.lesson-list-card.danger {
    background: rgba(255,0,68,0.05);
    border: 1px solid rgba(255,0,68,0.2);
}

.lesson-list-card.safe {
    background: rgba(0,255,136,0.05);
    border: 1px solid rgba(0,255,136,0.2);
}

.lesson-symptom-list, .lesson-protect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lesson-symptom-list li, .lesson-protect-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.87rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.lesson-symptom-list li i { color: #ff8800; margin-top: 0.15rem; flex-shrink: 0; }
.lesson-protect-list li i { color: var(--neon-green); margin-top: 0.15rem; flex-shrink: 0; }

/* ========================
   PROFILE PAGE
   ======================== */

.profile-page {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
}

/* HERO */
.profile-hero {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,136,0.06) 0%, rgba(0,170,255,0.04) 50%, rgba(170,68,255,0.06) 100%);
    pointer-events: none;
}

.profile-hero-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem 2rem 1.25rem;
    flex-wrap: wrap;
}

.profile-avatar-wrap {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-avatar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    box-shadow: 0 0 24px rgba(0,255,136,0.3);
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 1.2rem;
}

.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }

.profile-hero-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-username {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--neon-green);
    margin: 0;
    font-family: var(--font-mono);
}

.profile-bio-display {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.profile-badge.verified {
    background: rgba(0,255,136,0.08);
    border-color: rgba(0,255,136,0.25);
    color: var(--neon-green);
}

.profile-badge.unverified {
    background: rgba(255,170,0,0.08);
    border-color: rgba(255,170,0,0.25);
    color: #ffaa00;
}

.profile-stats-bar {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
}

.profile-stat + .profile-stat {
    border-left: 1px solid var(--border);
}

.profile-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--neon-green);
    line-height: 1;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* GRID */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card.danger-card {
    border-color: rgba(255,0,68,0.2);
    background: rgba(255,0,68,0.03);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.profile-card-header i {
    color: var(--neon-green);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.profile-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* FORM */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-input {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.profile-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 2px rgba(0,255,136,0.1);
}

.profile-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

.profile-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.7;
}

.profile-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-save-btn {
    width: 100%;
    justify-content: center;
}

/* MSG */
.profile-msg {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.83rem;
}

.profile-msg.hidden { display: none; }

.profile-msg-success {
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.25);
    color: var(--neon-green);
    display: block;
}

.profile-msg-error {
    background: rgba(255,0,68,0.08);
    border: 1px solid rgba(255,0,68,0.25);
    color: #ff4466;
    display: block;
}

.profile-msg-info {
    background: rgba(0,170,255,0.08);
    border: 1px solid rgba(0,170,255,0.2);
    color: var(--neon-blue);
    display: block;
}

/* AVATAR SECTION */
.profile-avatar-section {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.profile-avatar-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pap-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    border-radius: 50%;
}

.profile-avatar-options {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.25);
    border-radius: 8px;
    color: var(--neon-green);
    font-size: 0.83rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.profile-upload-btn:hover {
    background: rgba(0,255,136,0.15);
    box-shadow: 0 0 10px rgba(0,255,136,0.15);
}

.profile-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    background: none;
    border: 1px solid rgba(255,0,68,0.3);
    border-radius: 8px;
    color: #ff4466;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s;
}

.profile-remove-btn:hover {
    background: rgba(255,0,68,0.08);
}

/* COLOR GRID */
.profile-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
}

.color-swatch:hover { transform: scale(1.2); }

.color-swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3), 0 0 12px currentColor;
    transform: scale(1.15);
}

/* SECURITY */
.profile-security-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.profile-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-pass-wrap .profile-input {
    padding-right: 2.5rem;
}

.profile-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.profile-cancel-btn {
    padding: 0.55rem 1rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-cancel-btn:hover {
    border-color: var(--text-dim);
    color: var(--text-main);
}

/* ACTIVITY */
.profile-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.profile-activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem;
    border-radius: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
    align-items: flex-start;
}

.profile-activity-item:hover { border-color: rgba(0,255,136,0.25); }

.profile-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.profile-activity-icon.thread {
    background: rgba(0,255,136,0.1);
    color: var(--neon-green);
}

.profile-activity-icon.post {
    background: rgba(0,170,255,0.1);
    color: var(--neon-blue);
}

.profile-activity-icon.comment {
    background: rgba(170,68,255,0.1);
    color: var(--neon-purple);
}

.profile-activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.profile-activity-type {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-activity-text {
    font-size: 0.83rem;
    color: var(--text-main);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.profile-activity-time {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* DANGER ZONE */
.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.danger-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.danger-action-row p { margin: 0.2rem 0 0; }

.profile-danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255,0,68,0.08);
    border: 1px solid rgba(255,0,68,0.3);
    border-radius: 8px;
    color: #ff4466;
    font-size: 0.83rem;
    font-family: var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.profile-danger-btn:hover {
    background: rgba(255,0,68,0.15);
    box-shadow: 0 0 10px rgba(255,0,68,0.2);
}

.profile-danger-btn.delete-btn {
    background: rgba(255,0,68,0.12);
    border-color: rgba(255,0,68,0.5);
}

/* MODAL */
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.profile-modal {
    background: var(--bg-card);
    border: 1px solid rgba(255,0,68,0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.5rem;
}

.profile-modal-icon.danger {
    background: rgba(255,0,68,0.1);
    border: 1px solid rgba(255,0,68,0.3);
    color: #ff4466;
}

.profile-modal h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin: 0;
}

.profile-modal p { font-size: 0.87rem; color: var(--text-dim); text-align: center; }

.delete-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0;
}

.delete-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: #ff4466;
}

.profile-modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-modal-actions .profile-cancel-btn { flex: 1; }
.profile-modal-actions .profile-danger-btn { flex: 1; justify-content: center; }

/* LOADING / GATE */
.profile-loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.5rem;
    color: var(--neon-green);
}

.profile-loading-sm {
    text-align: center;
    padding: 1rem;
    color: var(--text-dim);
}

.profile-gate {
    text-align: center;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-gate-icon {
    width: 72px;
    height: 72px;
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--neon-green);
}

.profile-gate h3 { font-size: 1.3rem; color: var(--text-main); margin: 0; }
.profile-gate p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ACTIVITY ARROW */
.pai-arrow {
    margin-left: auto;
    color: var(--text-dim);
    opacity: 0.4;
    font-size: 0.75rem;
    align-self: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.profile-activity-item:hover .pai-arrow { opacity: 1; color: var(--neon-green); }
.profile-activity-list { max-height: 380px; }

/* ========================
   HERO TOP ROW + LEVEL BADGE
   ======================== */
.profile-hero-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-level-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--lvl-color, #00ff88) 15%, transparent);
    border: 2px solid var(--lvl-color, #00ff88);
    box-shadow: 0 0 16px color-mix(in srgb, var(--lvl-color, #00ff88) 35%, transparent);
    flex-shrink: 0;
    animation: badge-pulse 3s ease-in-out infinite;
    line-height: 1;
    gap: 0;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 16px color-mix(in srgb, var(--lvl-color, #00ff88) 35%, transparent); }
    50%       { box-shadow: 0 0 28px color-mix(in srgb, var(--lvl-color, #00ff88) 60%, transparent); }
}

.plb-lvl {
    font-size: 0.5rem;
    font-weight: 800;
    color: var(--lvl-color, #00ff88);
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.plb-num {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--lvl-color, #00ff88);
    font-family: var(--font-mono);
    line-height: 1;
}

.profile-rank-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ========================
   XP BAR
   ======================== */
.profile-xp-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.25rem 0;
}

.profile-xp-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.profile-xp-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-green);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.profile-xp-next {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.7;
}

.profile-xp-track {
    position: relative;
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.profile-xp-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--neon-green);
    box-shadow: 0 0 10px currentColor;
    position: relative;
}
.profile-xp-fill::after {
    content: '';
    position: absolute;
    top: 1px; right: 2px;
    width: 40%; height: 3px;
    background: rgba(255,255,255,0.35);
    border-radius: 4px;
}

.profile-xp-pct {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-mono);
}

.profile-xp-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* ========================
   AVATAR RING — dynamic color
   ======================== */
.profile-avatar-ring {
    background: linear-gradient(135deg, var(--ring-color, var(--neon-green)), var(--neon-blue)) !important;
    box-shadow: 0 0 28px color-mix(in srgb, var(--ring-color, var(--neon-green)) 45%, transparent) !important;
}

/* ========================
   FULL WIDTH CARD & LESSONS
   ======================== */
.profile-card-full {
    grid-column: 1 / -1;
}

.profile-lessons-card .profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.plp-badge {
    margin-left: auto;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.25);
    color: var(--neon-green);
    font-family: var(--font-mono);
}

.plp-go-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    background: rgba(0,170,255,0.1);
    border: 1px solid rgba(0,170,255,0.3);
    border-radius: 8px;
    color: var(--neon-blue);
    font-size: 0.78rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.plp-go-btn:hover { background: rgba(0,170,255,0.2); }

.plp-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plp-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.plp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 8px;
    transition: width 0.8s ease;
    box-shadow: 0 0 8px rgba(0,255,136,0.4);
}

.plp-pct-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-green);
    font-family: var(--font-mono);
    min-width: 36px;
    text-align: right;
}

.plp-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
}

.plp-lesson {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.plp-lesson.done {
    cursor: pointer;
    border-color: rgba(0,255,136,0.2);
    background: rgba(0,255,136,0.04);
}
.plp-lesson.done:hover {
    border-color: rgba(0,255,136,0.4);
    transform: translateY(-1px);
}

.plp-lesson.unlocked {
    cursor: pointer;
    border-color: rgba(0,170,255,0.2);
}
.plp-lesson.unlocked:hover { border-color: rgba(0,170,255,0.35); }

.plp-lesson.locked {
    opacity: 0.45;
    cursor: default;
}

.plp-lesson-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: var(--text-dim);
}

.plp-lesson.done .plp-lesson-icon { color: var(--neon-green); }
.plp-lesson.unlocked .plp-lesson-icon { color: var(--neon-blue); }

.plp-lesson-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.plp-lesson-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plp-lesson-date {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.plp-xp-chip {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.25);
    color: var(--neon-green);
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-stats-bar { grid-template-columns: repeat(3, 1fr); }
    .profile-stat + .profile-stat:nth-child(4) { border-left: none; border-top: 1px solid var(--border); }
    .profile-stat + .profile-stat:nth-child(odd) { border-left: none; }
    .profile-hero-content { padding: 1.25rem; }
    .profile-avatar-ring { width: 72px; height: 72px; }
    .profile-username { font-size: 1.3rem; }
    .plp-lessons-grid { grid-template-columns: 1fr; }
    .profile-level-badge { width: 44px; height: 44px; }
    .plb-num { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .profile-stats-bar { grid-template-columns: repeat(3, 1fr); }
    .profile-stats-bar .profile-stat:nth-child(4) { border-top: 1px solid var(--border); border-left: none; }
    .profile-stats-bar .profile-stat:nth-child(5) { border-top: 1px solid var(--border); }
    .profile-stats-bar .profile-stat:nth-child(6) { border-top: 1px solid var(--border); }
}

/* ================================================
   AI FEATURES CSS — Internet Safety Lab
   ================================================ */

/* --- Shared AI Components --- */
.ai-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ai-result-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
}

.ai-error {
    background: rgba(255,0,68,0.08);
    border: 1px solid rgba(255,0,68,0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: #ff6688;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-ghost:hover { border-color: var(--neon-blue); color: var(--neon-blue); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.chip-btn {
    background: rgba(0,170,255,0.08);
    border: 1px solid rgba(0,170,255,0.2);
    color: var(--neon-blue);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.chip-btn:hover {
    background: rgba(0,170,255,0.15);
    border-color: var(--neon-blue);
    transform: translateY(-1px);
}

/* --- AI Scam Analyzer --- */
.ai-scam-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-input-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-input-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--neon-blue);
    font-size: 0.95rem;
}

.ai-input-card textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    padding: 1rem;
    resize: vertical;
    min-height: 130px;
    transition: border-color 0.2s;
    line-height: 1.6;
}
.ai-input-card textarea:focus { outline: none; border-color: var(--neon-blue); }

.ai-input-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-examples-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}
.ai-examples-label { font-size: 0.8rem; color: var(--text-dim); margin-right: 0.25rem; }

.ai-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeInUp 0.3s ease;
}

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

.ai-verdict-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid;
    gap: 1rem;
}

.ai-verdict-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-verdict-icon { font-size: 2rem; }

.ai-verdict-label {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}
.ai-verdict-conf { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.2rem; }

.ai-score-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-score-num { font-size: 1.5rem; font-weight: 800; font-family: var(--font-mono); line-height: 1; }
.ai-score-label { font-size: 0.65rem; color: var(--text-dim); }

.ai-score-bar-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.ai-score-bar {
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}
.ai-score-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.ai-score-ticks { display: flex; justify-content: space-between; font-size: 0.72rem; font-family: var(--font-mono); }

.ai-section { display: flex; flex-direction: column; gap: 0.6rem; }
.ai-section h4 {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.9rem; font-weight: 700; color: var(--text);
}

.ai-flags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.ai-flag-chip {
    background: rgba(255,0,68,0.1);
    border: 1px solid rgba(255,0,68,0.25);
    color: #ff6688;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-tactic-chip {
    background: rgba(170,68,255,0.1);
    border: 1px solid rgba(170,68,255,0.25);
    color: #cc88ff;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-explanation {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.ai-recommendation {
    background: rgba(0,170,255,0.06);
    border-left: 3px solid var(--neon-blue);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- AI Cyber Mentor --- */
.mentor-container {
    max-width: 760px;
    margin: 0 auto;
}

.mentor-chat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.mentor-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0,170,255,0.04);
}

.mentor-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00aaff, #aa44ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.mentor-info { flex: 1; }
.mentor-name { font-weight: 700; font-size: 0.95rem; }
.mentor-status { font-size: 0.75rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.4rem; }

.status-dot {
    width: 7px; height: 7px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

.mentor-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.mentor-msg { display: flex; }
.mentor-msg.user { justify-content: flex-end; }
.mentor-msg.bot { justify-content: flex-start; }

.mentor-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.mentor-msg.user .mentor-bubble {
    background: linear-gradient(135deg, rgba(0,170,255,0.2), rgba(170,68,255,0.2));
    border: 1px solid rgba(0,170,255,0.3);
    border-bottom-right-radius: 4px;
    color: var(--text);
}
.mentor-msg.bot .mentor-bubble {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--text-dim);
}
.mentor-msg.bot .mentor-bubble p { margin: 0.25rem 0; }
.mentor-msg.bot .mentor-bubble p:first-child { margin-top: 0; }
.mentor-msg.bot .mentor-bubble p:last-child { margin-bottom: 0; }
.mentor-msg.bot .mentor-bubble strong { color: var(--neon-blue); }

.mentor-typing span {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--text-dim);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing-bounce 1.2s infinite;
}
.mentor-typing span:nth-child(2) { animation-delay: 0.2s; }
.mentor-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

.mentor-quick-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
}

.mentor-input-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
}

.mentor-input-row input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.mentor-input-row input:focus { outline: none; border-color: var(--neon-blue); }

/* --- Screenshot Detector --- */
.screenshot-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.screenshot-upload-card {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.screenshot-upload-card:hover, .screenshot-upload-card.drag-over {
    border-color: var(--neon-blue);
    background: rgba(0,170,255,0.04);
}
.screenshot-upload-icon { font-size: 3rem; color: var(--text-dim); }
.screenshot-upload-card h3 { color: var(--text-dim); font-weight: 500; }
.screenshot-hint { font-size: 0.8rem; color: var(--text-dim); }
.screenshot-examples-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    background: rgba(0,170,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(0,170,255,0.1);
}

.screenshot-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.screenshot-preview-card img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #05050f;
}
.screenshot-preview-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* --- Daily Challenges --- */
.challenges-container {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.challenge-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
}
.challenge-streak, .challenge-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}
.challenge-streak strong, .challenge-date strong { color: var(--text); }

.challenge-done-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}
.challenge-done-banner h3 { color: var(--neon-green); margin-bottom: 0.25rem; }
.challenge-done-banner p { color: var(--text-dim); font-size: 0.9rem; }

.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.challenge-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.challenge-title-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.challenge-title-row h3 { font-size: 1.1rem; }

.challenge-diff-badge {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid;
    font-weight: 700;
}

.challenge-xp-badge {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.25);
    color: var(--neon-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.challenge-desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

.challenge-question {
    background: rgba(0,170,255,0.06);
    border: 1px solid rgba(0,170,255,0.15);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.challenge-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.challenge-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.challenge-option:hover:not(:disabled) {
    border-color: var(--neon-blue);
    background: rgba(0,170,255,0.06);
    transform: translateX(4px);
}
.challenge-option.correct { border-color: var(--neon-green); background: rgba(0,255,136,0.1); color: var(--neon-green); }
.challenge-option.wrong { border-color: var(--neon-red); background: rgba(255,0,68,0.08); color: #ff6688; }
.challenge-option:disabled { cursor: default; }

.opt-letter {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(0,170,255,0.1);
    border: 1px solid rgba(0,170,255,0.2);
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.challenge-feedback {
    padding: 1.25rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: fadeInUp 0.3s ease;
}
.challenge-feedback.correct { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25); }
.challenge-feedback.wrong { background: rgba(255,0,68,0.08); border: 1px solid rgba(255,0,68,0.2); }
.challenge-feedback .feedback-icon { font-size: 1.5rem; flex-shrink: 0; }
.challenge-feedback.correct .feedback-icon { color: var(--neon-green); }
.challenge-feedback.wrong .feedback-icon { color: var(--neon-red); }
.challenge-feedback strong { display: block; margin-bottom: 0.3rem; }
.challenge-feedback p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; margin: 0; }

.xp-earned {
    margin-top: 0.5rem;
    color: var(--neon-green);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Extended Simulator --- */
.ext-sim-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ext-sim-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.ext-sim-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    animation: fadeInUp 0.25s ease;
}

.ext-sim-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.03);
}

/* --- Cyber Safety Score --- */
.css-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.css-header { display: flex; align-items: center; gap: 1.25rem; }

.css-icon-ring {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.css-score-num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}
.css-pts { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.css-rank { font-size: 0.9rem; font-weight: 700; margin-top: 0.25rem; }

.css-progress-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.css-progress-bar { height: 8px; background: var(--bg-dark); border-radius: 4px; overflow: hidden; }
.css-progress-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.css-progress-label { font-size: 0.78rem; color: var(--text-dim); }

.css-breakdown {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.css-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem;
    font-size: 0.82rem;
    border-right: 1px solid var(--border);
    color: var(--text-dim);
    text-align: center;
}
.css-item:last-child { border-right: none; }
.css-item i { color: var(--neon-blue); font-size: 1rem; }
.css-item strong { color: var(--text); font-family: var(--font-mono); font-size: 0.95rem; }

/* --- Achievements --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.ach-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    transition: all 0.2s;
    cursor: default;
}
.ach-card.unlocked {
    border-color: rgba(0,255,136,0.25);
    background: rgba(0,255,136,0.04);
}
.ach-card.unlocked:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.ach-card.locked { opacity: 0.45; }

.ach-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-dim);
    transition: all 0.2s;
}
.ach-title { font-size: 0.85rem; font-weight: 700; }
.ach-desc { font-size: 0.72rem; color: var(--text-dim); line-height: 1.4; }

.achievement-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: var(--bg-card);
    border: 1px solid rgba(0,255,136,0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 300px;
}
.achievement-toast.show { transform: translateX(0); }

.ach-toast-icon { font-size: 1.8rem; flex-shrink: 0; }
.ach-toast-label { font-size: 0.72rem; color: var(--neon-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ach-toast-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }

/* --- Admin Panel --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all 0.2s;
}
.admin-stat-card:hover { border-color: rgba(0,170,255,0.3); transform: translateY(-2px); }

.admin-stat-icon { font-size: 1.4rem; }
.admin-stat-num { font-size: 1.8rem; font-weight: 800; font-family: var(--font-mono); }
.admin-stat-label { font-size: 0.82rem; color: var(--text-dim); }
.admin-stat-sub { font-size: 0.72rem; color: var(--neon-green); }

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}
.admin-card h3 {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-top-list { display: flex; flex-direction: column; gap: 0.6rem; }
.admin-top-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-dark);
    border-radius: 8px;
    font-size: 0.85rem;
}
.admin-rank-num { color: var(--neon-blue); font-family: var(--font-mono); font-weight: 700; width: 24px; }
.admin-author { flex: 1; font-weight: 600; }
.admin-count { color: var(--text-dim); font-size: 0.8rem; }
.admin-empty { color: var(--text-dim); font-size: 0.85rem; text-align: center; padding: 1rem; }

.admin-activity-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 280px; overflow-y: auto; }
.admin-activity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.admin-activity-type {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    white-space: nowrap;
}
.admin-activity-type.thread { background: rgba(0,170,255,0.15); color: var(--neon-blue); }
.admin-activity-type.post { background: rgba(0,255,136,0.12); color: var(--neon-green); }
.admin-activity-content { flex: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity-author { color: var(--neon-blue); font-weight: 600; white-space: nowrap; }

/* --- Nav AI Group badge --- */
.nav-ai-badge {
    background: linear-gradient(135deg, #00aaff, #aa44ff);
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* --- Home feature cards new --- */
.feature-card {
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.feature-card:hover {
    border-color: rgba(0,170,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .admin-grid-2 { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .ai-verdict-banner { flex-direction: column; align-items: flex-start; }
    .challenge-header { flex-direction: column; }
}

@media (max-width: 768px) {
    .mentor-chat-card { height: 520px; }
    .mentor-bubble { max-width: 88%; }
    .css-breakdown { flex-direction: column; }
    .css-item { border-right: none; border-bottom: 1px solid var(--border); }
    .css-item:last-child { border-bottom: none; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ai-input-actions { flex-direction: column; }
    .ai-verdict-label { font-size: 1.1rem; }
    .ai-examples-row { flex-direction: column; align-items: flex-start; }
    .challenge-meta-bar { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}


/* ========================
   RATE LIMIT COUNTDOWN UI
   ======================== */
.ai-rate-limit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255,170,0,0.07);
    border: 1px solid rgba(255,170,0,0.3);
    border-radius: 12px;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.ai-rate-icon {
    font-size: 1.8rem;
    color: #ffaa00;
    animation: hourglass-spin 2s linear infinite;
}
@keyframes hourglass-spin {
    0%,100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}
.ai-rate-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #e0e0ff;
    font-size: 0.95rem;
}
.ai-rate-text strong { color: #ffaa00; font-size: 1rem; }
.ai-rate-count {
    color: #ffaa00;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 1.1em;
}
.ai-rate-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255,170,0,0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.4rem;
}
.ai-rate-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffaa00, #ff6644);
    border-radius: 4px;
    transition: width 0.9s linear;
}
.ai-rate-limit-inline {
    color: #ffaa00 !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
