/* =====================================================
   MailDrop — Main Stylesheet
   Clean, Professional, Elegant Email Tool UI
   ===================================================== */

/* ─── RESET & ROOT ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:       #6366f1;
    --primary-light: #818cf8;
    --primary-dark:  #4f46e5;
    --secondary:     #8b5cf6;
    --accent:        #06b6d4;
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;

    --bg:            #09090b;
    --bg-card:       #111113;
    --bg-card-2:     #18181b;
    --bg-hover:      #1f1f23;
    --border:        rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.12);

    --text-primary:  #f4f4f5;
    --text-secondary:#a1a1aa;
    --text-muted:    #71717a;

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

    --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow:0 0 40px rgba(99,102,241,0.15);

    --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── BACKGROUND ORBS ───────────────────────────────── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb-1 {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -200px; left: -200px;
    animation-delay: 0s;
}
.bg-orb-2 {
    width: 500px; height: 500px;
    background: var(--secondary);
    top: 20%; right: -150px;
    animation-delay: -7s;
}
.bg-orb-3 {
    width: 400px; height: 400px;
    background: var(--accent);
    bottom: -100px; left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -40px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── HEADER ────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(9,9,11,0.8);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon svg { width: 36px; height: 36px; filter: drop-shadow(0 4px 12px rgba(99,102,241,0.4)); }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-accent { color: var(--primary-light); }

.header-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
}

.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

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

/* ─── MAIN ──────────────────────────────────────────── */
.main {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-top: 64px;
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
    max-width: 680px;
    margin: 0 auto;
    padding: 72px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.hero-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

/* ─── EMAIL CARD ────────────────────────────────────── */
.email-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.email-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.5;
}

.card-header { display: flex; align-items: center; justify-content: space-between; }
.card-header-left { display: flex; align-items: center; gap: 14px; }

.card-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
}

.card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.card-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Input Group */
.email-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-card-2);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    min-height: 52px;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.input-wrapper.is-valid { border-color: var(--success); }
.input-wrapper.is-error { border-color: var(--danger); }

.input-prefix {
    padding: 0 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0;
    min-width: 0;
    height: 100%;
}

.email-input::placeholder { color: var(--text-muted); font-weight: 400; }

.input-domain {
    padding: 0 14px 0 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.btn-enter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 22px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 52px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    position: relative;
    overflow: hidden;
}

.btn-enter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}

.btn-enter:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.45); }
.btn-enter:hover::before { background: rgba(255,255,255,0.08); }
.btn-enter:active { transform: translateY(0); }
.btn-enter:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Input Hint */
.input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    transition: var(--transition);
}

.input-hint.is-valid { color: var(--success); }
.input-hint.is-error { color: var(--danger); }

/* Email Preview */
.email-preview {
    background: rgba(99,102,241,0.07);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
    pointer-events: none;
}

.email-preview.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

.preview-address {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-light);
    font-family: 'Courier New', monospace;
}

/* ─── FEATURES ROW ──────────────────────────────────── */
.features-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    flex: 1;
    min-width: 150px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--border-strong);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.feature-icon-purple { background: rgba(99,102,241,0.15); color: var(--primary-light); }
.feature-icon-blue   { background: rgba(6,182,212,0.15);  color: var(--accent); }
.feature-icon-green  { background: rgba(16,185,129,0.15); color: var(--success); }

.feature-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.feature-desc  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── LOADING OVERLAY ───────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.loading-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(99,102,241,0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 17px; font-weight: 600; color: var(--text-primary); }
.loading-sub  { font-size: 13px; color: var(--text-muted); }

/* ─── INBOX SECTION ─────────────────────────────────── */
.inbox-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    animation: slideUp 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

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

.inbox-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover { background: var(--bg-hover); color: var(--text-primary); }

.inbox-address-info { }
.inbox-address-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.inbox-address { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.inbox-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inbox-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
}

.status-dot {
    width: 7px; height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.btn-refresh, .btn-copy-email {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh:hover, .btn-copy-email:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-refresh.spinning #refresh-icon { animation: spin 0.8s linear infinite; }

.btn-copy-email { color: var(--primary-light); border-color: rgba(99,102,241,0.25); background: rgba(99,102,241,0.08); }
.btn-copy-email:hover { background: rgba(99,102,241,0.15); }

/* Auto Refresh Bar */
.auto-refresh-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 20px;
}

.refresh-progress {
    flex: 1;
    height: 3px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}

.refresh-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 100%;
    transform-origin: left;
    animation: progressDrain 30s linear;
}

@keyframes progressDrain {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

#refresh-countdown { font-weight: 600; color: var(--primary-light); min-width: 28px; }

/* Inbox Container */
.inbox-container {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

/* Email List */
.email-list { }

.empty-inbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 14px;
    text-align: center;
}

.empty-icon {
    width: 80px; height: 80px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.empty-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.empty-desc  { font-size: 14px; color: var(--text-muted); max-width: 320px; line-height: 1.6; }

.empty-address {
    margin-top: 8px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.empty-address strong { color: var(--primary-light); }

/* Email Item */
.email-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.email-item:last-child { border-bottom: none; }
.email-item:hover { background: var(--bg-hover); }
.email-item.unread { background: rgba(99,102,241,0.04); }

.email-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.email-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.email-from {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-item:not(.unread) .email-from { font-weight: 500; color: var(--text-secondary); }

.email-subject {
    font-size: 13.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

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

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

.email-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.email-item.unread .email-date { color: var(--primary-light); font-weight: 600; }

.unread-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* ─── EMAIL DETAIL ──────────────────────────────────── */
.email-detail {
    animation: slideUp 0.3s ease;
}

.detail-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.btn-back-detail {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-back-detail:hover { color: var(--primary-light); }

.detail-content { padding: 28px 32px; }

.detail-subject {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.detail-meta {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-meta-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.detail-meta-label { color: var(--text-muted); font-weight: 500; min-width: 40px; }
.detail-meta-value { color: var(--text-secondary); word-break: break-all; }

.detail-body {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.detail-body.html-body {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    color: #1a1a1a;
    max-height: 600px;
    overflow-y: auto;
}

.detail-body.html-body a { color: #6366f1; }

/* ─── TOAST ─────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    white-space: nowrap;
}

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

.toast.toast-success .toast-icon::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 16px; }
.toast.toast-error   .toast-icon::before { content: '✕'; color: var(--danger);  font-weight: 700; font-size: 16px; }
.toast.toast-info    .toast-icon::before { content: 'ℹ'; color: var(--primary-light); font-size: 16px; }

/* ─── MODAL OVERLAY ─────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 150;
    backdrop-filter: blur(4px);
}

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-logo svg { color: var(--primary-light); }

.footer-text {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ─── LOADING SKELETON ──────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card-2), var(--bg-hover), var(--bg-card-2));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.skeleton-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.skeleton-info { flex: 1; }
.skeleton-line { height: 13px; margin-bottom: 8px; border-radius: 6px; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-65 { width: 65%; }
.skeleton-line.w-20 { width: 20%; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 640px) {
    .hero { padding: 48px 16px 40px; gap: 28px; }
    .email-card { padding: 22px 18px; border-radius: var(--radius-lg); }
    .email-input-group { flex-direction: column; }
    .btn-enter { min-height: 48px; width: 100%; justify-content: center; }
    .inbox-header { flex-direction: column; align-items: flex-start; }
    .inbox-header-right { width: 100%; }
    .features-row { flex-direction: column; }
    .feature-item { min-width: unset; }
    .detail-content { padding: 20px 16px; }
    .detail-subject { font-size: 18px; }
    .inbox-section { padding: 20px 12px 40px; }
    .email-item { padding: 14px 16px; }
    .inbox-header-right { gap: 8px; }
    .btn-refresh, .btn-copy-email { padding: 8px 12px; font-size: 12px; }
    .auto-refresh-bar { font-size: 11px; gap: 6px; }
    .toast { max-width: calc(100vw - 32px); font-size: 13px; }
}

@media (max-width: 400px) {
    .header-inner { padding: 0 16px; }
    .inbox-address { font-size: 13px; }
}
