:root {
    --bg-dark: #0f0c29;
    --bg-panel: #1a1a2e;
    --primary: #00f2fe;
    /* Cyan Neon */
    --secondary: #4facfe;
    /* Blue Neon */
    --accent: #f50057;
    /* Pink Neon */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, var(--bg-dark), #302b63, #24243e);
    color: var(--text-main);
    font-family: var(--font-stack);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(transparent, rgba(0, 242, 254, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin: 40px 0;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glass Card */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Main Email Display */
.email-box-wrapper {
    padding: 40px;
    text-align: center;
    position: relative;
}

.email-address {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    word-break: break-all;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.email-address:hover {
    color: var(--primary);
    transform: scale(1.02);
}

.toolbar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Timer Bar */
.progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--primary);
}

/* Inbox */
.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.inbox-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.empty-state {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.email-item {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    cursor: pointer;
    transition: 0.2s;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 20px;
    align-items: center;
}

.email-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary);
}

.sender-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 1.2rem;
}

.email-info h4 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1rem;
}

.email-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--bg-panel);
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text-main);
}

.input-group {
    display: flex;
    margin-top: 20px;
}

.form-control {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

.domain-badge {
    background: var(--glass-border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--glass-border);
    border-left: none;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .email-address {
        font-size: 1.4rem;
        word-break: break-all;
    }

    .toolbar {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .email-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sender-avatar {
        display: none;
    }

    .email-time {
        display: none;
    }
}

/* Show modal */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Email Body Content */
.email-body {
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    min-height: 200px;
}