/* ================================================
   TEMPMAILFREE — Premium UI v3.0
   Font: Inter | Style: Dark Glassmorphism SaaS
================================================ */

/* ---- TOKENS ---- */
:root {
    --bg:         #070b14;
    --bg-1:       #0d1526;
    --bg-2:       rgba(255,255,255,0.03);
    --bg-3:       rgba(255,255,255,0.06);
    --glass:      rgba(13,21,38,0.75);
    --primary:    #4f8ef7;
    --primary-dk: #3b6ecc;
    --accent:     #a78bfa;
    --green:      #34d399;
    --red:        #f87171;
    --text:       #e8edf5;
    --text-2:     #8b9ab3;
    --text-3:     #4a5770;
    --border:     rgba(255,255,255,0.08);
    --border-2:   rgba(255,255,255,0.05);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
    --blur:       blur(20px);
    --r-sm:       8px;
    --r-md:       14px;
    --r-lg:       20px;
    --r-xl:       28px;
    --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================================================
   BACKGROUND ORBS
================================================ */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,142,247,0.25) 0%, transparent 70%);
    top: -180px; left: -180px;
    animation: orbFloat1 18s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 70%);
    top: 30%; right: -160px;
    animation: orbFloat2 22s ease-in-out infinite;
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(52,211,153,0.12) 0%, transparent 70%);
    bottom: 10%; left: 30%;
    animation: orbFloat3 26s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,40px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-30px)} }

main { position: relative; z-index: 1; }

/* ================================================
   NAVBAR
================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    height: 64px;
    background: rgba(7,11,20,0.85);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.logo strong { font-weight: 800; }

.logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79,142,247,0.4);
}
.logo-icon svg { width: 18px; height: 18px; }
.logo-icon.sm { width: 28px; height: 28px; }
.logo-icon.sm svg { width: 14px; height: 14px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: var(--r-sm);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================================
   HERO
================================================ */
.hero-section {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 6% 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79,142,247,0.1);
    border: 1px solid rgba(79,142,247,0.25);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease both;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.6s 0.1s ease both;
}

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

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.7;
    animation: fadeUp 0.6s 0.2s ease both;
}

/* ================================================
   EMAIL CARD
================================================ */
.email-card {
    width: 100%;
    max-width: 680px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
    margin: 0 auto 2.5rem;
    animation: fadeUp 0.6s 0.3s ease both, cardGlow 5s 1s ease-in-out infinite;
    transition: var(--transition);
}
.email-card:hover { border-color: rgba(79,142,247,0.2); }

@keyframes cardGlow {
    0%,100% { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06); }
    50%      { box-shadow: var(--shadow-lg), 0 0 40px rgba(79,142,247,0.1), inset 0 1px 0 rgba(255,255,255,.06); }
}

.email-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.card-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-label svg { color: var(--text-3); }
.card-live {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
}
.live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

.email-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 5px 5px 5px 16px;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.email-display:focus-within, .email-display:hover {
    border-color: rgba(79,142,247,0.35);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.08);
}

.spinner-wrap {
    display: none;
    width: 18px; height: 18px;
    flex-shrink: 0;
}
.spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#email-address {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
    min-width: 0;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    color: white;
    border: none;
    border-radius: var(--r-sm);
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(79,142,247,0.35);
}
.copy-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,142,247,0.5); }
.copy-btn:active { transform: translateY(0); }

.email-card-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--bg-3);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.action-btn:hover { background: var(--bg-2); color: var(--text); border-color: rgba(255,255,255,0.12); }
.action-btn-primary {
    background: rgba(79,142,247,0.1);
    color: var(--primary);
    border-color: rgba(79,142,247,0.2);
}
.action-btn-primary:hover {
    background: rgba(79,142,247,0.18);
    color: var(--primary);
    border-color: rgba(79,142,247,0.4);
}

/* STATS ROW */
.stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1rem 2rem;
    animation: fadeUp 0.6s 0.5s ease both;
}
.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stat-item strong {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}
.stat-item span { font-size: 0.78rem; color: var(--text-2); font-weight: 500; }
.stat-sep {
    width: 1px; height: 36px;
    background: var(--border);
    margin: 0 1rem;
    flex-shrink: 0;
}

/* ================================================
   INBOX SECTION
================================================ */
.inbox-section {
    padding: 0 6% 5rem;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s 0.6s ease both;
}

.inbox-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* --- Inbox Header --- */
.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    gap: 10px;
    flex-wrap: wrap;
}
.inbox-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.inbox-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inbox-title-wrap h2 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.checkmark {
    width: 17px; height: 17px;
    border: 2px solid var(--text-3);
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-checkbox input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79,142,247,0.25);
}
.custom-checkbox input:checked ~ .checkmark::after {
    content: '';
    display: block;
    width: 5px; height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px,-1px);
}

.msg-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 50px;
    line-height: 1.5;
    animation: badgeBounce 0.4s ease;
}

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

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-3);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.toolbar-btn:hover { background: var(--bg-2); color: var(--text); border-color: rgba(255,255,255,0.12); }

.danger-btn { color: var(--red); border-color: rgba(248,113,113,0.2); }
.danger-btn:hover { background: rgba(248,113,113,0.1); color: var(--red); border-color: rgba(248,113,113,0.3); }

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}
.live-dot-sm {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
.inbox-status-text {
    font-size: 0.8rem;
    color: var(--text-2);
    font-weight: 500;
}

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
    50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

/* --- Email List --- */
.email-list { min-height: 220px; }

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 5rem 2rem;
    text-align: center;
}
.empty-state-icon {
    width: 64px; height: 64px;
    border-radius: var(--r-lg);
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    margin-bottom: 4px;
}
.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text-2); }
.empty-state p { font-size: 0.87rem; color: var(--text-3); max-width: 240px; }

/* Email Row */
.email-row {
    display: grid;
    grid-template-columns: 16px 40px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-2);
    cursor: pointer;
    transition: background 0.15s;
    animation: slideInRow 0.25s ease both;
    position: relative;
}
.email-row:last-child { border-bottom: none; }
.email-row:hover { background: rgba(255,255,255,0.03); }

.email-row.unread .row-sender { font-weight: 700; }
.email-row.unread .row-subject-main { font-weight: 600; }

/* Row checkbox */
.row-cb input[type="checkbox"] {
    width: 15px; height: 15px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
}

/* Avatar */
.row-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(79,142,247,0.3);
}

/* Row content */
.row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.row-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.row-sender {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.row-subject {
    font-size: 0.85rem;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row-subject .snippet { color: var(--text-3); font-weight: 400; }

/* Right side of row */
.row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 60px;
}
.row-time {
    font-size: 0.78rem;
    color: var(--text-2);
    white-space: nowrap;
    font-weight: 500;
}
.row-del {
    opacity: 0;
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.email-row:hover .row-del { opacity: 1; }
.row-del:hover { background: rgba(248,113,113,0.15); }

/* Row animations */
@keyframes slideInRow {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideOutRow {
    from { opacity: 1; transform: translateX(0); max-height: 65px; }
    to   { opacity: 0; transform: translateX(50px); max-height: 0; padding-top:0; padding-bottom:0; }
}
.email-row.deleting {
    animation: slideOutRow 0.32s ease forwards;
    overflow: hidden;
    pointer-events: none;
}

/* --- READER VIEW --- */
.reader-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-3);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 7px 14px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.back-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

.reader-body-wrap {
    padding: 2.5rem 2.5rem;
    animation: readerSlide 0.3s ease both;
}
@keyframes readerSlide {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.reader-subject {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.reader-from-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.sender-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sender-name { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.sender-email { font-size: 0.82rem; color: var(--text-2); }

.reader-time { font-size: 0.8rem; color: var(--text-3); white-space: nowrap; }

.reader-content {
    background: white;
    color: #111;
    padding: 2rem 2.5rem;
    border-radius: var(--r-md);
    font-size: 0.97rem;
    line-height: 1.8;
    min-height: 220px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

/* ================================================
   FEATURES
================================================ */
.features-section {
    padding: 5rem 6%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    text-align: left;
    transition: var(--transition);
    cursor: default;
}
.feature-card:hover {
    background: var(--bg-3);
    border-color: rgba(79,142,247,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.feature-icon {
    width: 44px; height: 44px;
    background: rgba(79,142,247,0.1);
    border: 1px solid rgba(79,142,247,0.2);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card:hover .feature-icon {
    background: rgba(79,142,247,0.18);
    box-shadow: 0 0 20px rgba(79,142,247,0.2);
}

.feature-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.2px;
}
.feature-card p { font-size: 0.87rem; color: var(--text-2); line-height: 1.65; }

/* ================================================
   SEO SECTION
================================================ */
.seo-section {
    padding: 4rem 6% 6rem;
    position: relative;
    z-index: 1;
}

.seo-inner { max-width: 960px; margin: 0 auto; text-align: center; }

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    text-align: left;
    margin-top: 3rem;
}

.seo-block {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
}
.seo-block h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.seo-block p { font-size: 0.87rem; color: var(--text-2); line-height: 1.7; }
.seo-block p strong { color: var(--text); font-weight: 600; }

/* ================================================
   FOOTER
================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 6% 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.footer-logo strong { font-weight: 800; }
.footer-brand p { font-size: 0.85rem; color: var(--text-2); max-width: 240px; }

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-group h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-3);
    margin-bottom: 4px;
}
.footer-links-group a {
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--text-2);
    transition: color 0.2s;
    font-weight: 500;
}
.footer-links-group a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-3);
    max-width: 960px;
    margin: 0 auto;
}

/* ================================================
   TOAST
================================================ */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13,21,38,0.95);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 9999;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    pointer-events: none;
}
.toast.show { animation: toastIn 0.3s ease both; }
.toast.hide { animation: toastOut 0.3s ease both; }

@keyframes toastIn  { from{opacity:0;transform:translate(-50%,12px)} to{opacity:1;transform:translate(-50%,0)} }
@keyframes toastOut { from{opacity:1} to{opacity:0} }

/* ================================================
   SHARED ANIMATIONS
================================================ */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes badgeBounce {
    0%,100%{transform:scale(1)} 40%{transform:scale(1.25)} 70%{transform:scale(.9)}
}
@keyframes rotateSpin { to { transform:rotate(360deg); } }
.spin svg { animation: rotateSpin 0.5s ease; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 5%; }
    .nav-links {
        display: none;
        position: fixed;
        inset: 64px 0 auto 0;
        background: rgba(7,11,20,0.97);
        backdrop-filter: var(--blur);
        border-bottom: 1px solid var(--border);
        padding: 1rem 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        z-index: 400;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 1rem; border-radius: var(--r-sm); }
    .hamburger { display: flex; }

    .hero-section { padding: 3rem 5% 3rem; }
    .stats-row { flex-wrap: wrap; gap: 1rem; padding: 1rem 1.2rem; }
    .stat-sep { display: none; }
    .stat-item { min-width: 80px; }

    .inbox-section { padding: 0 4% 4rem; }
    .reader-body-wrap { padding: 1.5rem; }
    .reader-content { padding: 1.25rem; }
    .reader-subject { font-size: 1.25rem; }

    .email-row {
        grid-template-columns: 16px 36px 1fr auto;
        padding: 10px 14px;
        gap: 10px;
    }

    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

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

@media (max-width: 520px) {
    .email-display { flex-direction: column; padding: 12px; }
    #email-address { text-align: center; font-size: 0.95rem; }
    .copy-btn { width: 100%; justify-content: center; }
    .features-grid, .seo-grid { grid-template-columns: 1fr; }
    .inbox-status-text { display: none; }
    .row-del { display: none; }
}
