/* ==================== CSS Reset & Variables ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --accent-glow: rgba(37, 99, 235, 0.2);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-glow: rgba(37, 99, 235, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== Utilities ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

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

.center { text-align: center; }

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

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

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

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

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

[data-theme="light"] .header {
    background: rgba(248, 250, 252, 0.85);
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-icon:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(99, 102, 241, 0.06);
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: var(--transition);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

/* Nav User Avatar */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-user:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .nav-user:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 3px var(--accent-primary);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    z-index: 200;
}

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

.nav-dropdown a,
.nav-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-family);
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.nav-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 4px 0;
}

.nav-dropdown .user-info {
    padding: 8px 12px 10px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 4px;
}

.nav-dropdown .user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.nav-dropdown .user-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-dropdown .user-credits {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
}

.nav-dropdown .user-credits svg {
    stroke: var(--accent-primary);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}

.modal-dialog h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-dialog .form-group {
    margin-bottom: 14px;
}

.modal-dialog .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-dialog .form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.modal-dialog .form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex: 1;
}

.modal-btn-cancel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

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

[data-theme="light"] .modal-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.06);
}

.modal-btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.modal-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.lang-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.lang-toggle svg {
    border-radius: 2px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    z-index: 200;
}

.lang-selector.open .lang-dropdown {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-family);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.lang-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    font-weight: 500;
}

.lang-item svg {
    border-radius: 2px;
    flex-shrink: 0;
}

.nav-admin {
    border: 1px solid var(--border-glass);
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #0ea5e9;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(50px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ==================== Email Card ==================== */
.email-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.email-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    min-height: 64px;
}

.email-placeholder {
    color: var(--text-muted);
    font-size: 15px;
}

.email-address {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    word-break: break-all;
    user-select: all;
}

.btn-copy {
    flex-shrink: 0;
}

.email-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-selector {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-selector label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.select-domain {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.select-domain:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.select-domain option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-generate {
    flex-shrink: 0;
}

.email-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 13px;
}

/* ==================== Inbox Section ==================== */
.inbox-section {
    padding: 40px 0 80px;
}

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.section-title svg {
    color: var(--accent-primary);
}

.inbox-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-count {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

/* Message Items */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    animation: slideIn 0.3s ease;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.message-item.unread {
    border-left: 3px solid var(--accent-primary);
}

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

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

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

.message-from {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-subject {
    font-size: 15px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.message-preview {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.otp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}

/* Empty Inbox */
.inbox-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.inbox-empty h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.inbox-empty p {
    font-size: 14px;
}

/* Loading dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* ==================== Message Modal ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-sender {
    font-weight: 600;
    font-size: 15px;
    color: var(--accent-primary);
}

.modal-close {
    color: var(--text-muted);
}

.modal-subject {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-otp {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.otp-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.otp-code {
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
    letter-spacing: 4px;
    font-variant-numeric: tabular-nums;
}

.otp-provider {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    color: var(--success);
    font-weight: 600;
}

.modal-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-body iframe {
    max-width: 100%;
}

/* ==================== Features Section ==================== */
.features {
    padding: 100px 0;
}

.features .section-title {
    justify-content: center;
    margin-bottom: 60px;
    font-size: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--accent-gradient);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.feature-icon svg {
    stroke: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== API Section ==================== */
.api-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.api-section .section-title {
    justify-content: center;
    margin-bottom: 48px;
    font-size: 32px;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.api-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    transition: var(--transition);
}

.api-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.api-method {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.api-method.get {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.api-method.post {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.api-card code {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.api-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

/* ==================== Footer ==================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
}

.footer-inner {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-inner strong {
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .email-card {
        padding: 24px;
    }

    .email-controls {
        flex-direction: column;
    }

    .domain-selector {
        width: 100%;
    }

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

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

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

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

    .api-card {
        flex-wrap: wrap;
    }

    .api-card p {
        margin-left: 0;
        width: 100%;
    }

    .nav-link:not(.nav-admin) {
        display: none;
    }
}

/* ==================== Light Mode Overrides ==================== */
[data-theme="light"] .hero {
    background: var(--bg-primary);
}

[data-theme="light"] .hero::before {
    opacity: 0.03;
}

[data-theme="light"] .email-gen-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .email-display {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .feature-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .message-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .message-item:hover {
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="light"] .inbox-empty {
    color: var(--text-muted);
}

[data-theme="light"] .modal-body {
    background: var(--bg-secondary);
}

[data-theme="light"] .modal-backdrop {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .form-input,
[data-theme="light"] select {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .otp-badge {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .api-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gradient-text {
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .logo-accent {
    -webkit-text-fill-color: transparent;
}
