:root {
    --bg-main: #0d1117;
    --bg-dark: #010409;
    --bg-card: #161b22;
    --bg-hover: #21262d;
    --bg-input: #0d1117;
    --border: #30363d;
    --primary: #00ff41;
    --primary-dim: #00cc33;
    --primary-glow: rgba(0, 255, 65, 0.5);
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #00ff41;
    --error: #ff4444;
    --warning: #ffaa00;
    --success: #00ff41;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 65, 0.02) 51%,
        transparent 52%
    );
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px var(--primary-glow),
        0 0 20px var(--primary-glow),
        0 0 40px var(--primary-glow);
    animation: glitch 3s infinite;
}

.logo-bracket {
    color: var(--primary);
    font-size: 3.5rem;
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: 3px;
}

.logo-highlight {
    color: var(--primary);
}

@keyframes glitch {
    0%, 90%, 100% { 
        text-shadow: 
            0 0 10px var(--primary-glow),
            0 0 20px var(--primary-glow),
            0 0 40px var(--primary-glow);
    }
    92% { 
        text-shadow: 
            2px 2px 10px var(--primary-glow),
            -2px -2px 20px rgba(255, 0, 0, 0.3);
    }
    94% { 
        text-shadow: 
            -2px 2px 10px var(--primary-glow),
            2px -2px 20px rgba(0, 0, 255, 0.3);
    }
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.typing-text::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.terminal-window {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Viền chạy quanh khung */
.terminal-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 20%,
        #00ff41 40%,
        #00ff41 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: borderRun 3s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

@keyframes borderRun {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.terminal-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.btn-close {
    background: #ff5f56;
    box-shadow: 0 0 5px rgba(255, 95, 86, 0.5);
}

.btn-minimize {
    background: #ffbd2e;
    box-shadow: 0 0 5px rgba(255, 189, 46, 0.5);
}

.btn-maximize {
    background: #27c93f;
    box-shadow: 0 0 5px rgba(39, 201, 63, 0.5);
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.terminal-body {
    padding: 25px;
}

.command-line {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.prompt {
    color: var(--primary);
    margin-right: 8px;
}

.command {
    color: var(--text-primary);
}

.email-input-group {
    margin-bottom: 25px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.terminal-input {
    flex: 0 0 200px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 12px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.terminal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.input-at {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.terminal-select {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 12px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.terminal-button,
.terminal-button-secondary {
    padding: 12px 25px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    outline: none;
}

.terminal-button {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--bg-dark);
}

.terminal-button:hover {
    background: var(--primary-dim);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.terminal-button:active {
    transform: translateY(0);
}

.terminal-button-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--primary);
}

.terminal-button-secondary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-icon {
    font-size: 1.1rem;
}

.generated-email {
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: slideIn 0.5s ease;
}

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

.email-display {
    margin-bottom: 15px;
}

.email-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 8px var(--primary-glow);
    }
    50% { 
        opacity: 0.5;
        box-shadow: 0 0 15px var(--primary-glow);
    }
}

.email-value {
    display: flex;
    align-items: center;
    gap: 15px;
}

.email-text {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 5px var(--primary-glow);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.email-info {
    display: flex;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.info-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.status-active {
    color: var(--success);
    text-shadow: 0 0 5px var(--primary-glow);
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.inbox-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
}

.inbox-icon {
    font-size: 1.3rem;
}

.inbox-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.refresh-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.refresh-icon {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

.inbox-container {
    min-height: 300px;
}

/* ═══════════════════════════════════════════
   INBOX CONTAINER — nhất quán với extra-inbox-block
   ═══════════════════════════════════════════ */
.inbox-container {
    min-height: 300px;
}

/* Khi có multi-inbox bên dưới, thu nhỏ inbox chính lại */
.inbox-container.compact {
    min-height: unset;
}

.inbox-container.compact .inbox-empty {
    padding: 20px;
}

.inbox-container.compact .empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.inbox-container.compact .inbox-loading {
    padding: 20px;
}

.inbox-container.compact .loading-spinner {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
}

/* Khi có mail — bọc inbox-list trong khung giống extra-inbox-block */
.inbox-list-wrapper {
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 15px var(--primary-glow);
    animation: slideIn 0.4s ease;
}

.inbox-list-wrapper .inbox-list {
    padding: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.inbox-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

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

.email-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateX(5px);
}

.email-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.email-from {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.email-subject {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.email-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.email-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.email-otp {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 0 5px var(--primary-glow);
}

.email-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 0 50px var(--primary-glow);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.email-meta .meta-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.email-meta .meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    min-width: 100px;
}

.meta-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    flex: 1;
}

.otp-row .meta-value {
    display: flex;
    align-items: center;
    gap: 15px;
}

.otp-value {
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.copy-otp-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-otp-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.email-body {
    margin-top: 25px;
}

.body-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.body-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.body-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.body-tab:hover {
    color: var(--primary);
}

.body-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    text-shadow: 0 0 10px var(--primary-glow);
}

.footer-separator {
    color: var(--border);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .logo-bracket {
        font-size: 2.3rem;
    }
    
    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .terminal-input {
        flex: 1;
    }
    
    .input-at {
        display: none;
    }
    
    .terminal-button,
    .terminal-button-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .email-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =============================================
   INTRO SECTION
   ============================================= */
.intro-section {
    margin-top: 60px;
    padding: 0 0 40px 0;
}

.intro-header {
    text-align: center;
    margin-bottom: 40px;
}

.intro-badge {
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.intro-title {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;
    text-shadow: 0 0 20px rgba(0,255,65,0.2);
}

.intro-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

/* ── FEATURE CARDS ── */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 50px;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-3px);
}

.intro-card:hover::before {
    opacity: 1;
}

.intro-card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.intro-card-title {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.intro-card-desc {
    color: var(--text-secondary);
    font-size: 0.83rem;
    line-height: 1.7;
}

/* ── FAQ ── */
.faq-section {
    margin-bottom: 50px;
}

.faq-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 12px 0 24px 0;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px 20px;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0,255,65,0.4);
}

.faq-q {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.7;
}

.faq-a strong {
    color: var(--text-primary);
}

/* ── STATS BAR ── */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 24px 20px;
    flex-wrap: wrap;
    box-shadow: 0 0 30px var(--primary-glow);
}

.stat-item {
    text-align: center;
    padding: 0 30px;
    flex: 1;
    min-width: 100px;
}

.stat-value {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 15px var(--primary-glow);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-divider {
    color: var(--border);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ── RESPONSIVE INTRO ── */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

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

    .intro-title {
        font-size: 1.2rem;
    }

    .stats-bar {
        gap: 10px;
    }

    .stat-item {
        padding: 10px 15px;
        min-width: 80px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-divider {
        display: none;
    }
}

/* =============================================
   DISCLAIMER BLOCK
   ============================================= */
.disclaimer-block {
    margin-top: 40px;
    background: rgba(13, 17, 23, 0.92);
    border: 1px solid rgba(255, 60, 60, 0.3);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.disclaimer-header {
    background: rgba(255, 60, 60, 0.08);
    border-bottom: 1px solid rgba(255, 60, 60, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-icon {
    color: #ff6b6b;
    font-size: 1.1rem;
    font-weight: 700;
}

.disclaimer-title {
    color: #ff6b6b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.disclaimer-body {
    padding: 20px 24px;
    background: rgba(13, 17, 23, 0.88);
}

.disclaimer-body p {
    color: var(--text-secondary);
    font-size: 0.83rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

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

.disclaimer-body strong {
    color: var(--text-primary);
}

.disclaimer-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
    padding: 16px;
    background: rgba(13, 17, 23, 0.95);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.disclaimer-point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.point-icon {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1px;
}

.disclaimer-point:nth-child(-n+3) .point-icon {
    color: #ff6b6b;
}

.disclaimer-point:nth-child(n+4) .point-icon {
    color: var(--primary);
}

.disclaimer-footer {
    border-top: 1px solid var(--border);
    padding-top: 14px !important;
    font-size: 0.78rem !important;
    opacity: 0.8;
    font-style: italic;
}

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

    .disclaimer-body {
        padding: 16px;
    }
}
/* ── INFO TABLE MODAL ── */
.info-table {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}
.info-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-cell-label {
    background: rgba(0,255,65,0.06);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 14px;
    width: 90px;
    min-width: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
}
.info-cell-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 10px 14px;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: flex;
    align-items: center;
}

/* ── OTP BLOCK ── */
.otp-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,255,65,0.07);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}
.otp-block-label {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}
.otp-block-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-primary);
    user-select: none;
    transition: border-color 0.2s ease;
    z-index: 100;
}
.lang-switcher:hover { border-color: var(--primary); }
.lang-arrow {
    color: var(--text-secondary);
    font-size: 0.75rem;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-option {
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.lang-option:hover {
    background: rgba(0,255,65,0.08);
    color: var(--text-primary);
}
.lang-option.active {
    color: var(--primary);
    background: rgba(0,255,65,0.06);
}
.header { position: relative; }

/* ── OTP QUICK COPY ── */
.otp-quick-copy {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.otp-quick-copy:hover {
    background: rgba(0,255,65,0.1);
    box-shadow: 0 0 8px var(--primary-glow);
}
.email-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
/* =============================================
   HASH PAGES - FULL SCREEN OVERLAY
   ============================================= */
.page-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-dark);
    z-index: 500;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 30px 60px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 10;
    flex-shrink: 0;
}

.page-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.page-back:hover {
    border-color: var(--primary);
    background: rgba(0,255,65,0.08);
    box-shadow: 0 0 10px var(--primary-glow);
}

.page-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.page-body {
    flex: 1;
}

/* ── SECTIONS ── */
.page-section {
    margin-bottom: 20px;
    padding: 24px 28px;
    background: rgba(13, 17, 23, 0.92);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(6px);
}
.page-section:last-child {
    margin-bottom: 0;
}

.page-section-title {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,255,65,0.2);
    text-shadow: 0 0 10px var(--primary-glow);
}

.page-section p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.page-section p:last-child { margin-bottom: 0; }
.page-section strong { color: var(--text-primary); }

.page-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,255,65,0.3);
    transition: border-color 0.2s;
}
.page-link:hover { border-color: var(--primary); }

/* ── LISTS ── */
.page-list {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.9;
    padding-left: 20px;
    margin: 0;
}
.page-list li { margin-bottom: 4px; }
.page-list.no-list { list-style: none; padding-left: 0; }

/* ── TECH GRID ── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    transition: border-color 0.2s;
}
.tech-item:hover { border-color: rgba(0,255,65,0.3); }
.tech-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── CONTACT GRID ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}
.contact-item:hover { border-color: rgba(0,255,65,0.3); }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── PRIVACY TABLE ── */
.privacy-table {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.83rem;
}
.privacy-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.privacy-row:last-child { border-bottom: none; }
.privacy-row > div {
    padding: 10px 14px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border);
}
.privacy-row > div:last-child { border-right: none; }
.privacy-row.header > div {
    background: rgba(0,255,65,0.06);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.privacy-row.highlight > div {
    color: var(--primary);
    background: rgba(0,255,65,0.03);
}

/* ── INFO BOX ── */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 14px;
}
.info-box-title {
    color: var(--primary);
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ── WARNING BOX ── */
.warning-box {
    background: rgba(255,60,60,0.05);
    border: 1px solid rgba(255,60,60,0.25);
    border-radius: 6px;
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}
.warning-box strong { color: #ff6b6b; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .tech-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .privacy-row {
        grid-template-columns: 1fr;
    }
    .privacy-row > div { border-right: none; border-bottom: 1px solid var(--border); }
    .privacy-row > div:last-child { border-bottom: none; }

    .page-title { font-size: 0.9rem; }
    .page-container { padding: 0 14px 30px; }
}

/* ── PAGE CANVAS (matrix background) ── */
.page-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page-container {
    position: relative;
    z-index: 1;
}

.page-header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 4px 4px;
}

.page-section,
.page-body {
    position: relative;
    z-index: 1;
}
.terminal-select {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    max-height: 45px;
    overflow-y: auto;
}

.terminal-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
}

/* Custom scrollable dropdown wrapper */
.select-wrapper {
    position: relative;
    flex: 1;
}

.select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
    font-size: 0.85rem;
}
/* ── SELECT DOMAIN SCROLLABLE ── */
.terminal-select {
    max-height: 200px !important;
}

select.terminal-select option {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    padding: 6px 10px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.85rem !important;
}

/* Custom select container */
.input-wrapper {
    position: relative;
}

.input-wrapper .terminal-select {
    padding-right: 30px;
}

/* ── CUSTOM SELECT DROPDOWN ── */
.custom-select-wrapper {
    flex: 1;
    min-width: 0;
}

.custom-select-display {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 35px 12px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.custom-select-display:hover {
    border-color: var(--primary);
}

.custom-select-arrow {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.custom-select-dropdown {
    display: none;
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8);
    min-width: 250px;
}

.custom-select-dropdown.open {
    display: block;
}

.custom-select-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

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

.custom-select-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.custom-select-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.custom-select-item {
    padding: 10px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border);
}

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

.custom-select-item:hover {
    background: rgba(0,255,65,0.08);
    color: var(--primary);
}

/* ═══════════════════════════════════════════
   MAIL COUNT SELECTOR
   ═══════════════════════════════════════════ */
.mail-count-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 8px 14px;
    transition: border-color 0.3s ease;
}

.mail-count-wrapper:hover {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.mail-count-label {
    color: var(--primary);
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.mail-count-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mail-count-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 28px 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    min-width: 54px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mail-count-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.mail-count-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.mail-count-arrow {
    position: absolute;
    right: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    pointer-events: none;
    line-height: 1;
}

/* ═══════════════════════════════════════════
   MAIL LIMIT MODAL
   ═══════════════════════════════════════════ */
.mail-limit-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-limit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.mail-limit-box {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 2px solid var(--warning);
    border-radius: 8px;
    padding: 36px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 0 40px rgba(255, 170, 0, 0.25),
        0 20px 60px rgba(0, 0, 0, 0.7);
    animation: limitBoxIn 0.25s ease;
}

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

.mail-limit-icon {
    font-size: 2.8rem;
    color: var(--warning);
    margin-bottom: 14px;
    text-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
    animation: warnPulse 1.5s ease infinite;
}

@keyframes warnPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(255,170,0,0.5); }
    50%       { text-shadow: 0 0 30px rgba(255,170,0,0.9); }
}

.mail-limit-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--warning);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.mail-limit-msg {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.mail-limit-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 136, 204, 0.12);
    border: 1px solid rgba(0, 136, 204, 0.4);
    border-radius: 4px;
    padding: 10px 18px;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #29b6f6;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mail-limit-telegram:hover {
    background: rgba(0, 136, 204, 0.25);
    border-color: rgba(0, 136, 204, 0.8);
    box-shadow: 0 0 12px rgba(41, 182, 246, 0.3);
    color: #4fc3f7;
}

.tg-icon {
    font-size: 1.1rem;
}

.mail-limit-btn {
    background: var(--warning);
    border: 2px solid var(--warning);
    color: var(--bg-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    outline: none;
}

.mail-limit-btn:hover {
    background: #ffcc44;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
    transform: translateY(-2px);
}

.mail-limit-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   QUICK LINKS (Thuê Proxy / Nhóm Zalo / Youtube)
   ═══════════════════════════════════════════ */
.quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid transparent;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.quick-link-icon {
    font-size: 1rem;
}

/* Proxy — xanh lá (primary) */
.quick-link-proxy {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.quick-link-proxy:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 14px var(--primary-glow);
    transform: translateY(-2px);
}

/* Zalo — xanh Zalo */
.quick-link-zalo {
    background: transparent;
    border-color: #0068ff;
    color: #4d9fff;
}
.quick-link-zalo:hover {
    background: rgba(0, 104, 255, 0.12);
    box-shadow: 0 0 14px rgba(0, 104, 255, 0.4);
    transform: translateY(-2px);
}

/* Youtube — đỏ Youtube */
.quick-link-youtube {
    background: transparent;
    border-color: #ff4444;
    color: #ff6666;
}
.quick-link-youtube:hover {
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 14px rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* ── EMAIL SLOT NUMBER (số 1, 2 bên cạnh ACTIVE EMAIL) ── */
.email-slot-num {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(0,255,65,0.12);
    border: 1px solid var(--primary);
    border-radius: 3px;
    padding: 1px 7px;
    margin-left: 4px;
}

/* Multi-inbox list nằm sát ngay dưới inbox chính */
.multi-inbox-container {
    margin-top: 0;
    margin-bottom: 8px;
}

.extra-inbox-block {
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--primary-glow);
    animation: slideIn 0.4s ease;
}

.extra-inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,255,65,0.04);
}

.extra-inbox-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.extra-inbox-email {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extra-inbox-copy {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.extra-inbox-copy:hover {
    border-color: var(--primary);
    background: rgba(0,255,65,0.08);
}

.extra-inbox-body {
    padding: 12px 16px;
    min-height: unset;
}

.extra-inbox-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 16px 0;
}

.extra-inbox-empty {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    padding: 16px 0;
}

.extra-inbox-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =============================================
   MOBILE RESPONSIVE FIX
   ============================================= */
@media (max-width: 600px) {

    /* ── HEADER ── */
    .header {
        padding-top: 60px !important;
        text-align: center;
    }

    /* Lang switcher nhỏ lại, không đè logo */
    .lang-switcher {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.8rem !important;
    }

    .logo-bracket {
        font-size: 2rem !important;
    }

    .tagline {
        font-size: 0.7rem;
        word-break: break-word;
        text-align: center;
        padding: 0 10px;
    }

    /* ── TERMINAL ── */
    .terminal-body {
        padding: 15px !important;
    }

    .email-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .terminal-input {
        width: 100%;
        box-sizing: border-box;
    }

    .input-at {
        display: none;
    }

    .custom-select-wrapper,
    .custom-select-display {
        width: 100%;
        box-sizing: border-box;
    }

    .terminal-button,
    .terminal-button-secondary {
        width: 100%;
        justify-content: center;
    }

    /* ── MAIL COUNT ── */
    .mail-count-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    /* ── QUICK LINKS ── */
    .quick-links {
        gap: 8px;
    }
    .quick-link-btn {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    /* ── GENERATED EMAIL ── */
    .email-value {
        flex-wrap: wrap;
        gap: 8px;
    }

    .email-text {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .email-info {
        flex-direction: column;
        gap: 8px;
    }

    /* ── INBOX ── */
    .inbox-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .email-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .otp-quick-copy {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    /* ── INTRO ── */
    .intro-grid {
        grid-template-columns: 1fr !important;
    }

    .faq-grid {
        grid-template-columns: 1fr !important;
    }

    .intro-title {
        font-size: 1.1rem !important;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .stat-divider { display: none; }

    .stat-item {
        min-width: 80px;
        padding: 8px 12px;
    }

    .disclaimer-points {
        grid-template-columns: 1fr !important;
    }

    /* ── MODAL ── */
    .modal-content {
        width: 98% !important;
        max-height: 95vh !important;
    }

    /* ── MAIL LIMIT MODAL ── */
    .mail-limit-box {
        padding: 24px 20px;
    }

    .mail-limit-title {
        font-size: 0.9rem;
    }

    .mail-limit-msg {
        font-size: 0.8rem;
    }

    .modal-body {
        padding: 12px !important;
    }

    .info-cell-label {
        width: 70px !important;
        min-width: 70px !important;
        font-size: 0.7rem !important;
    }

    .otp-value {
        font-size: 1.3rem !important;
        letter-spacing: 3px !important;
    }

    /* ── FOOTER ── */
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}