:root {
    --bg-color: #050505;
    --accent-1: #7c3aed;
    --accent-2: #2dd4bf;
    --card-bg: rgba(20, 20, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-blur: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

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

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: move 20s infinite alternate;
}

.blob-1 { background: var(--accent-1); top: -10%; left: -10%; }
.blob-2 { background: var(--accent-2); bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { background: #f43f5e; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.1); }
}

/* Layout */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

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

.logo-icon {
    color: var(--accent-2);
    width: 32px;
    height: 32px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--accent-1);
}

.server-status {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-2);
}

/* Cards */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.generator-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.banner-container {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.banner-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem 2rem;
}

.card-header h2 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.domain-selector select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    outline: none;
}

.address-input-wrapper {
    display: flex;
    gap: 1rem;
}

#currentEmail {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s;
}

#currentEmail:focus {
    border-color: var(--accent-1);
}

.primary-btn, .secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-1), #9333ea);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

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

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

/* Inbox */
.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.inbox-header h3 {
    font-size: 1.2rem;
}

#mailCount {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mail-list {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mail-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
}

.mail-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.from-addr {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.mail-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-secondary);
    text-align: center;
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loader-line {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-line::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 100%;
    background: var(--accent-1);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -40px; }
    100% { left: 100px; }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: #0a0a0a;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.modal-meta {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
}

#closeModal {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
