/* ========================================================================
   TempMail — 10MinuteMail-Style Dark Theme
   ======================================================================== */

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

:root {
    --bg-deep: #0b0e1a;
    --bg-mid: #111827;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-card-solid: #151d2e;
    --bg-input: rgba(15, 23, 42, 0.9);
    --border: rgba(56, 232, 210, 0.15);
    --border-hover: rgba(56, 232, 210, 0.35);
    --accent: #38e8d2;
    --accent-dim: #2bbfad;
    --accent-glow: rgba(56, 232, 210, 0.25);
    --accent-glow-strong: rgba(56, 232, 210, 0.45);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --danger: #f43f5e;
    --danger-bg: rgba(244, 63, 94, 0.12);
    --success: #10b981;
    --warning: #f59e0b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(56, 232, 210, 0.1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    background: linear-gradient(165deg, #0f1729 0%, #0b0e1a 30%, #101525 60%, #0d1420 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background animated mesh */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 232, 210, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ----- Top Banner ----- */
.top-banner {
    position: relative;
    z-index: 10;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(11, 14, 26, 0.7);
}

.banner-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.brand-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-name {
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
}

.brand-name .accent {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.tagline {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.tagline code {
    font-family: var(--mono);
    font-size: 0.78rem;
    background: rgba(56, 232, 210, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

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

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-live {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-polling {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ----- Main Wrap ----- */
.main-wrap {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 32px;
    gap: 32px;
}

/* ----- Hero Card ----- */
.hero-card {
    position: relative;
    width: 100%;
    max-width: 740px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.hero-glow {
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 120px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ----- Email Row ----- */
.email-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 8px 6px 6px;
    transition: border-color 0.3s ease;
}

.email-row:hover,
.email-row:focus-within {
    border-color: var(--border-hover);
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(56, 232, 210, 0.08);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: rgba(56, 232, 210, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

.email-display {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
    cursor: default;
    min-width: 0;
}

.email-display::selection {
    background: var(--accent);
    color: var(--bg-deep);
}

.inbox-badge-wrap {
    flex-shrink: 0;
}

.btn-inbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(56, 232, 210, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-inbox:hover {
    background: rgba(56, 232, 210, 0.15);
    border-color: var(--border-hover);
    color: var(--text);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--bg-deep);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--mono);
}

/* ----- Countdown Timer ----- */
.timer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.countdown-digits {
    display: flex;
    align-items: center;
    gap: 6px;
}

.digit-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 68px;
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(56, 232, 210, 0.06);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow:
        0 0 15px rgba(56, 232, 210, 0.15),
        inset 0 0 15px rgba(56, 232, 210, 0.05);
    text-shadow: 0 0 10px var(--accent-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.digit-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(56, 232, 210, 0.1);
}

.digit-card.flip {
    animation: digit-flip 0.3s ease;
}

@keyframes digit-flip {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.85); }
    100% { transform: scaleY(1); }
}

.digit-colon {
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    animation: blink-colon 1s step-end infinite;
}

@keyframes blink-colon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

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

.btn-extend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg-deep);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(56, 232, 210, 0.3);
}

.btn-extend:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 232, 210, 0.45);
}

.btn-extend:active {
    transform: translateY(0);
}

.btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(56, 232, 210, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.btn-new:hover {
    background: rgba(56, 232, 210, 0.15);
    border-color: var(--border-hover);
    color: var(--text);
}

.btn-delete-inbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    color: var(--danger);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-inbox:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--danger);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

/* ----- Inbox Container ----- */
.inbox-container {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

/* Messages List */
.messages-list {
    max-height: 400px;
    overflow-y: auto;
}

.messages-list::-webkit-scrollbar {
    width: 4px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}

/* Empty Inbox */
.empty-inbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    gap: 12px;
    text-align: center;
}

.empty-rings {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.ring-outer {
    width: 80px;
    height: 80px;
    animation: ring-pulse 3s ease-in-out infinite;
}

.ring-inner {
    width: 60px;
    height: 60px;
    animation: ring-pulse 3s ease-in-out infinite 0.5s;
}

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

.empty-envelope {
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.empty-inbox h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.empty-inbox p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 300px;
}

.pulse-dot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Message Items */
.message-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(56, 232, 210, 0.06);
    transition: background 0.15s;
}

.message-item:hover {
    background: rgba(56, 232, 210, 0.05);
}

.message-item.active {
    background: rgba(56, 232, 210, 0.1);
    border-left: 3px solid var(--accent);
}

.message-item.unread {
    background: rgba(56, 232, 210, 0.04);
}

.message-item.unread .msg-sender {
    font-weight: 700;
    color: var(--text);
}

.msg-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msg-sender {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.msg-time {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--mono);
    flex-shrink: 0;
}

.msg-subject {
    font-size: 0.82rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg-footer {
    display: flex;
    gap: 8px;
}

.chip-attachment {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(56, 232, 210, 0.08);
    border-radius: 4px;
    color: var(--text-muted);
}

/* ----- Message Viewer ----- */
.message-viewer {
    border-top: 1px solid var(--border);
}

.message-viewer.hidden {
    display: none;
}

.viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--text-dim);
}

.viewer-placeholder svg {
    opacity: 0.4;
}

.viewer-placeholder p {
    font-size: 0.85rem;
}

.viewer-content.hidden {
    display: none;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.viewer-meta {
    flex: 1;
    min-width: 0;
}

.view-subject {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.view-parties {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.party-row {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.party-label {
    color: var(--text-dim);
    font-weight: 600;
    min-width: 38px;
}

.party-val {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.party-val.muted {
    color: var(--text-dim);
}

.viewer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toggle-view-btns {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.btn-toggle {
    padding: 5px 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.btn-toggle.active {
    background: rgba(56, 232, 210, 0.15);
    color: var(--accent);
}

.btn-toggle:hover:not(.active) {
    background: rgba(255,255,255, 0.04);
}

.btn-icon-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-xs);
    background: none;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

/* Attachments */
.attachments-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.attachments-bar.hidden { display: none; }

.attachments-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
}

.attachments-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(56, 232, 210, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.attachment-chip:hover {
    background: rgba(56, 232, 210, 0.15);
    border-color: var(--border-hover);
    color: var(--text);
}

/* Email Body */
.email-body-pane {
    padding: 0;
}

.email-iframe {
    width: 100%;
    min-height: 300px;
    border: none;
    background: #fff;
    border-radius: 0;
}

.email-iframe.hidden { display: none; }

.plain-text-view {
    padding: 18px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
}

.plain-text-view.hidden { display: none; }

/* ----- Info Cards Row ----- */
.info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 740px;
    width: 100%;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.info-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ----- Toast Notifications ----- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    animation: toast-slide 0.3s ease;
}

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

/* ----- Modal ----- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    animation: modal-pop 0.25s ease;
}

@keyframes modal-pop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.btn-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.btn-close:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-body label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    cursor: pointer;
    appearance: none;
}

.form-select:focus {
    border-color: var(--accent);
}

.modal-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.btn-secondary {
    padding: 8px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.btn-primary {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border: none;
    border-radius: var(--radius-xs);
    color: var(--bg-deep);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(56, 232, 210, 0.35);
}

/* ----- Footer ----- */
.footer {
    position: relative;
    z-index: 5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(11, 14, 26, 0.6);
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.footer code {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.75rem;
}

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

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

.footer-links span {
    color: var(--text-dim);
    opacity: 0.4;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .banner-inner {
        justify-content: center;
    }

    .tagline {
        display: none;
    }

    .hero-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .email-display {
        font-size: 0.9rem;
    }

    .digit-card {
        width: 44px;
        height: 54px;
        font-size: 1.5rem;
    }

    .timer-row {
        gap: 14px;
    }

    .timer-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .btn-extend span,
    .btn-new span {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .email-row {
        flex-wrap: wrap;
    }

    .inbox-badge-wrap {
        width: 100%;
    }

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

    .digit-card {
        width: 38px;
        height: 46px;
        font-size: 1.2rem;
    }
}

/* Spin animation for refresh */
.spin-active {
    animation: spin 0.6s linear;
}

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

/* Expiring soon state */
.expiring-soon .digit-card {
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
    animation: danger-pulse 1s ease-in-out infinite;
}

@keyframes danger-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(244, 63, 94, 0.2); }
    50% { box-shadow: 0 0 25px rgba(244, 63, 94, 0.4); }
}
