/* ==========================================================================
   TempMailKu Pro - Modern Glassmorphic Design System
   Aesthetic Dark Mode with Neon Violet & Emerald Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #090d16;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-elevated: #151e2e;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.35);

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);

    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-violet: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere Glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}
body::before {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}
body::after {
    top: 40%;
    right: -200px;
    background: radial-gradient(circle, var(--accent-emerald), transparent 70%);
}

.app-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.brand-info h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.badge-cpanel {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-cpanel::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-violet));
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--primary-glow);
    filter: brightness(1.08);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-emerald {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-emerald-glow);
}
.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-emerald-glow);
}

.btn-icon-only {
    padding: 10px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section - Active Email Generator
   ========================================================================== */
.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-emerald), var(--accent-violet));
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.domain-pill {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* Email Box Main */
.email-display-container {
    display: flex;
    align-items: center;
    background: #0b111e;
    border: 2px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 10px 14px 10px 24px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
    transition: var(--transition);
}
.email-display-container:hover {
    border-color: var(--primary);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.25);
}

.email-address-text {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
}

.email-copy-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action Cluster Bar */
.action-cluster {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Inboxes Multi Tabs (Bisa Buat Email Baru Sekaligus) */
.inboxes-bar {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.inboxes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.inboxes-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inboxes-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.inbox-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12.5px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}
.inbox-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}
.inbox-tab.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}
.inbox-tab-badge {
    background: var(--accent-emerald);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}
.inbox-tab-remove {
    display: inline-flex;
    padding: 2px;
    border-radius: 50%;
    color: var(--text-subtle);
    margin-left: 2px;
}
.inbox-tab-remove:hover {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

/* ==========================================================================
   Control Toolbar (Auto Refresh, Sounds, Push)
   ========================================================================== */
.toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.toolbar-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.refresh-timer-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.timer-circle {
    width: 28px;
    height: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
}
.timer-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.timer-circle circle {
    fill: none;
    stroke-width: 3;
}
.timer-bg {
    stroke: rgba(255, 255, 255, 0.08);
}
.timer-progress {
    stroke: var(--primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s linear;
}

.toolbar-toggles {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.toggle-btn:hover {
    color: var(--text-main);
    background: var(--bg-card-hover);
}
.toggle-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--accent-emerald);
}

/* ==========================================================================
   Workspace Layout (Inbox List + Email Reader)
   ========================================================================== */
.workspace-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    min-height: 580px;
}

.inbox-panel, .reader-panel {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Inbox Header */
.panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 24, 39, 0.4);
}
.panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-count-badge {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Email Item List */
.email-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 620px;
}

.email-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.email-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.email-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.15);
}
.email-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.email-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.email-item-sender {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.email-item-time {
    font-size: 11px;
    color: var(--text-subtle);
}

.email-item-subject {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Quick OTP Badge in list */
.badge-otp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* Empty State / Radar Scanner */
.radar-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    height: 100%;
}

.radar-animation {
    width: 90px;
    height: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: radar-wave 2.6s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.radar-pulse:nth-child(2) {
    animation-delay: 0.8s;
}
.radar-pulse:nth-child(3) {
    animation-delay: 1.6s;
}

.radar-center-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 2;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes radar-wave {
    0% { transform: scale(0.3); opacity: 1; }
    80% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.radar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}
.radar-sub {
    font-size: 12.5px;
    color: var(--text-subtle);
    max-width: 280px;
    line-height: 1.5;
}

/* ==========================================================================
   Email Reader Panel
   ========================================================================== */
.reader-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 40px;
    color: var(--text-muted);
}
.reader-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    margin-bottom: 16px;
}

.reader-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reader-meta-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.4);
}

.reader-subject-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.reader-subject {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
}

.reader-sender-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-violet));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
}
.sender-details {
    display: flex;
    flex-direction: column;
}
.sender-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.sender-meta {
    font-size: 12px;
    color: var(--text-subtle);
}

/* OTP Hero Banner in Reader */
.otp-callout-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 78, 59, 0.3));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 16px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}
.otp-callout-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.otp-callout-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
}
.otp-callout-text h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a7f3d0;
}
.otp-callout-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
}

/* Reader Tabs (HTML vs Plain vs Attachments) */
.reader-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 24px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.2);
}
.reader-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.reader-tab-btn:hover {
    color: var(--text-main);
}
.reader-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.reader-body-container {
    flex: 1;
    position: relative;
    background: #ffffff;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 380px;
}

.reader-iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    display: block;
}

.reader-plain-text {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
    height: 100%;
    overflow-y: auto;
}

.reader-attachments-box {
    padding: 24px;
    background: var(--bg-elevated);
    height: 100%;
}

/* ==========================================================================
   Modals (Custom Email, Bulk Generate, cPanel Guide, QR Code)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 13, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
}
.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
}

/* Form Styles inside Modals */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: #090e17;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.form-input:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.form-select option {
    background: #0f172a;
    color: #fff;
}

/* Custom Email Input Combined Group */
.custom-email-input-group {
    display: flex;
    align-items: center;
    background: #090e17;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.custom-email-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
}
.custom-email-at {
    padding: 0 10px;
    color: var(--text-subtle);
    font-weight: 700;
}
.custom-email-input-group select {
    background: #151e2e;
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 12px 14px;
    color: #a5b4fc;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* QR Code Box */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}
.qr-box {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111827;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
}
.toast.toast-success .toast-icon {
    color: var(--accent-emerald);
}

.toast.toast-error {
    border-color: rgba(244, 63, 94, 0.5);
}
.toast.toast-error .toast-icon {
    color: var(--accent-rose);
}

@keyframes toast-in {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Guide Code Block */
.code-block {
    background: #090e17;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: #38bdf8;
    position: relative;
    margin: 8px 0;
    word-break: break-all;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 980px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .email-display-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    .email-address-text {
        font-size: 18px;
        text-align: center;
    }
    .email-copy-action {
        width: 100%;
    }
    .email-copy-action .btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .hero-card {
        padding: 20px;
    }
    .action-buttons-group {
        width: 100%;
    }
    .action-buttons-group .btn {
        flex: 1;
    }
}
