/* HomicMail - Premium Glassmorphism Dark Theme v2 */

/* ============ FONTS & RESET ============ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Base Colors */
    --bg-base: #0a0e1a;
    --bg-surface: #111827;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Vibrant Gradients & Accents */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-color: #8b5cf6;
    --accent-light: #a78bfa;
    
    /* Glassmorphism Panels */
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-bg-hover: rgba(30, 38, 55, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glow-sm: 0 0 15px var(--accent-glow);
    
    /* Spacing & Border */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ ANIMATED BACKGROUND ============ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: floatParticle 25s infinite ease-in-out;
}

.bg-particles::before {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.bg-particles::after {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(3%, 5%) scale(1.05); }
    50% { transform: translate(-2%, 3%) scale(0.95); }
    75% { transform: translate(5%, -2%) scale(1.02); }
}

/* ============ LAYOUT ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ HEADER ============ */
.header {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover {
    transform: translateX(4px);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-sm);
}

.logo-icon i {
    color: white;
    font-size: 1.2rem;
}

.logo strong {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link i {
    font-size: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-surface);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition-slow);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ============ MAIN & HERO ============ */
.main {
    padding: 3rem 0 4rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.hero-badge i {
    color: var(--warning);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 550px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-light);
}

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

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* ============ GLASS CARDS / PANELS ============ */
.card, .panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover, .panel:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg);
}

.card-header, .panel-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

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

.panel-title i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.panel-title h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.panel-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body, .panel-body {
    padding: 1.5rem;
}

/* ============ BADGE ============ */
.badge {
    background: var(--accent-gradient);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-glow-sm);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============ DASHBOARD LAYOUT ============ */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.create-panel {
    animation: slideUp 0.6s ease;
}

.inbox-panel {
    animation: slideUp 0.6s ease 0.1s both;
}

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

/* ============ FORMS & INPUTS ============ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

.form-group label i {
    color: var(--accent-light);
}

.input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

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

.input-with-action {
    display: flex;
    gap: 0.5rem;
}

.input-with-action .input {
    flex: 1;
}

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

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

/* ============ BUTTONS ============ */
.btn {
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon-only {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
    border-color: var(--accent-color);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ DOMAIN DISPLAY ============ */
.domain-display {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.domain-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.domain-main i {
    color: var(--accent-light);
}

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

.domain-info i {
    color: var(--warning);
}

.domain-info strong {
    color: var(--text-secondary);
}

/* ============ CURRENT EMAIL CARD ============ */
.current-email-card {
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease;
}

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

.current-email-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='%23fff' fill-opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

.email-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.email-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-dot.active {
    animation: blink 1.5s infinite;
}

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

.email-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.email-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.email-address-large {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.email-card-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-action {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-action::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.btn-action:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-action-danger:hover {
    background: var(--danger);
}

.email-card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.email-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.email-stat i {
    color: var(--warning);
}

/* ============ AUTO REFRESH TOGGLE ============ */
.auto-refresh-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked + .slider {
    background: var(--accent-gradient);
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

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

/* ============ INBOX LIST ============ */
.inbox-list {
    max-height: 550px;
    overflow-y: auto;
}

.inbox-list::-webkit-scrollbar {
    width: 6px;
}

.inbox-list::-webkit-scrollbar-track {
    background: transparent;
}

.inbox-list::-webkit-scrollbar-thumb {
    background: var(--glass-border-hover);
    border-radius: var(--radius-full);
}

.email-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.email-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.email-item.unread {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(0,0,0,0.2) 100%);
    border-left: 3px solid var(--accent-color);
}

.email-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-glow-sm);
    flex-shrink: 0;
}

.email-content {
    flex: 1;
    min-width: 0;
}

.email-from {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-subject {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.empty-icon i {
    font-size: 2rem;
    color: white;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============ PASTE SECTION ============ */
.paste-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.paste-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.paste-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border-hover);
}

.toggle-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-content i {
    color: var(--accent-light);
}

.toggle-arrow {
    transition: var(--transition);
}

.paste-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.paste-form {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.3s ease;
}

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

/* ============ CREDENTIALS BOX ============ */
.creds-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius);
    margin-top: 1rem;
    overflow: hidden;
}

.creds-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
}

.creds-content {
    padding: 1rem;
}

.creds-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.creds-row:last-child {
    margin-bottom: 0;
}

.creds-key {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 80px;
    font-weight: 500;
}

.creds-val {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--accent-light);
    border: 1px solid var(--glass-border);
}

/* ============ MESSAGE VIEW ============ */
.message-section {
    animation: slideUp 0.4s ease;
}

.message-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    border: 1px solid var(--glass-border);
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sender-info {
    display: flex;
    flex-direction: column;
}

.sender-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sender-email {
    font-weight: 500;
    color: var(--text-primary);
}

.message-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.message-body {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.message-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* ============ FEATURES SECTION ============ */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

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

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

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
}

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

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-sm);
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ============ HOW IT WORKS ============ */
.how-it-works {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    width: 200px;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .step-arrow { display: none; }
    .step { width: 100%; }
}

/* ============ FOOTER ============ */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom p:first-child {
    margin-bottom: 0.3rem;
}

.footer-bottom .small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--glass-bg-hover);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-hover);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    color: #fff;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

.toast-icon.success {
    color: var(--success);
}

.toast-icon.error {
    color: var(--danger);
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-icon {
    font-size: 1.5rem;
    color: var(--warning);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    justify-content: flex-end;
}

/* ============ ADMIN PAGE STYLES ============ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.page-header h1 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

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

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

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card-primary .stat-card-icon {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
}

.stat-card-success .stat-card-icon {
    background: var(--success-bg);
    color: var(--success);
}

.stat-card-accent .stat-card-icon {
    background: var(--info-bg);
    color: var(--info);
}

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

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card-primary .stat-value {
    color: var(--accent-light);
}

.stat-card-success .stat-value {
    color: var(--success);
}

.stat-card-trend {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.stat-card-trend.up {
    background: var(--success-bg);
    color: var(--success);
}

.stat-card-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.indicator-dot.active {
    background: var(--success);
    animation: blink 1.5s infinite;
}

.stat-card-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--info);
    text-align: center;
}

/* Sessions Table */
.sessions-card {
    margin-bottom: 2rem;
}

.card-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box .input {
    padding-left: 2.25rem;
    width: 200px;
}

.filter-dropdown select {
    appearance: none;
    background: rgba(0, 0, 0, 0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    padding-right: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.data-table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    color: var(--text-primary);
}

.data-table th span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.data-table th i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.data-table td {
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
}

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

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.session-id {
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
}

.btn-copy-session {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.btn-copy-session:hover {
    color: var(--accent-light);
}

.email-cell {
    font-family: 'SF Mono', 'Fira Code', monospace;
}

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

.email-display i {
    color: var(--accent-light);
}

.domain-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    font-family: 'SF Mono', monospace;
}

.provider-tag {
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.provider-guerrillamail {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-light);
}

.provider-mailtm {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.provider-custom {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.provider-unknown {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge .status-dot {
    width: 6px;
    height: 6px;
}

.status-active {
    background: var(--success-bg);
    color: var(--success);
}

.status-active .status-dot {
    animation: blink 1.5s infinite;
}

.status-inactive {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
}

.quick-actions h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.quick-actions h3 i {
    color: var(--warning);
}

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

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

.action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.action-card i {
    font-size: 1.2rem;
    color: var(--accent-light);
}

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

@media (max-width: 768px) {
    .hero h1 {
        letter-spacing: -1px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2rem;
    }
    
    .hero-stat-divider {
        width: 60%;
        height: 1px;
    }
    
    .card-header, .panel-header {
        flex-wrap: wrap;
    }
    
    .card-filters {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .search-box .input {
        width: 100%;
    }
    
    .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .message-actions {
        flex-direction: column;
    }
    
    .message-actions .btn {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .header, .footer, .toast, .modal-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card, .panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
