﻿/* ==========================================================================
   Temp Mail Mate â€” "Pro" UI layer
   Loaded after style.css. Overrides look & feel only; markup/IDs used by
   app.js are untouched. Remove the <link> to roll back.
   ========================================================================== */

:root {
    --tm-ink: #0f172a;
    --tm-muted: #5b6478;
    --tm-surface: #ffffff;
    --tm-surface-2: #f4f2fb;
    --tm-bg: #f7f7fb;
    --tm-border: rgba(15, 23, 42, .09);
    --tm-violet: #059669;
    --tm-violet-2: #34d399;
    --tm-pink: #db2777;
    --tm-orange: #f97316;
    --tm-green: #16a34a;
    --tm-grad: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
    --tm-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px -6px rgba(15, 23, 42, .10);
    --tm-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -18px rgba(15, 23, 42, .25);
    --tm-radius: 18px;

    /* theme variables used by style.css */
    --primary_color: #059669;
    --text_color: #0f172a;
    --text_muted: #5b6478;
    --background_color: #f7f7fb;
    --secondary_color: #0f172a;
    --footer_background_color: #0b1020;
}

html[data-theme="dark"] {
    --tm-ink: #e7e9f3;
    --tm-muted: #9aa3b8;
    --tm-surface: #121c1f;
    --tm-surface-2: #0e171a;
    --tm-bg: #0b1214;
    --tm-border: rgba(255, 255, 255, .08);
    --tm-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --tm-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --text_color: #e7e9f3;
    --text_muted: #9aa3b8;
    --background_color: #0b1214;
    color-scheme: dark;
}

body {
    font-family: 'Plus Jakarta Sans', 'Mulish', system-ui, sans-serif;
    background: var(--tm-bg);
    color: var(--tm-ink);
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4, h5, .h2 { letter-spacing: -.02em; }
.lead { font-weight: 400; }
.text-muted { color: var(--tm-muted) !important; }
::selection { background: rgba(16, 185, 129, .22); }

/* ---------- Navbar ---------- */
.nav .nav-links .nav-link,
.nav .nav-drop-btn { font-weight: 600; opacity: .9; transition: opacity .2s; }
.nav .nav-links .nav-link:hover { opacity: 1; }

.nav .btn { border-radius: 12px; font-weight: 700; }
.nav .btn-secondary {
    background: var(--tm-grad);
    border: 0;
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .7);
}
.nav .btn-secondary:hover { filter: brightness(1.08); color: #fff; }
.nav .btn-outline-light { border-color: rgba(255, 255, 255, .45); }

.nav.nav-sticky {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--tm-border);
}
html[data-theme="dark"] .nav.nav-sticky { background: rgba(11, 18, 20, .82); }
html[data-theme="dark"] .nav.nav-sticky .nav-links a,
html[data-theme="dark"] .nav.nav-sticky .nav-drop-btn,
html[data-theme="dark"] .nav.nav-sticky .btn-outline-light,
html[data-theme="dark"] .nav.nav-sticky .nav-menu-button { color: #e7e9f3 !important; }

/* theme toggle */
.tm-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.tm-theme-toggle:hover { background: rgba(255, 255, 255, .18); transform: rotate(-12deg); }
.tm-theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .tm-theme-toggle .fa-sun { display: inline-block; }
html[data-theme="dark"] .tm-theme-toggle .fa-moon { display: none; }
.nav.nav-sticky .tm-theme-toggle { color: var(--tm-ink); border-color: var(--tm-border); background: var(--tm-surface-2); }
@media (max-width: 1199.98px) {
    .nav-menu .tm-theme-toggle { display: none; }
}

/* ---------- Hero ---------- */
.header {
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(52, 211, 153, .55), transparent 60%),
        radial-gradient(760px 460px at 96% 4%, rgba(245, 158, 11, .22), transparent 62%),
        radial-gradient(700px 500px at 50% 120%, rgba(20, 184, 166, .30), transparent 60%),
        linear-gradient(165deg, #021512 0%, #063b34 52%, #065f46 100%) !important;
}
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
    pointer-events: none;
}
.header .star-bg { opacity: .55; }

.tm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 600;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.tm-hero-badge-wrap { text-align: center; margin-top: 18px; }
.tm-hero-badge .tm-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
    animation: tmPulse 2s infinite;
}
@keyframes tmPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.header .header-wrapper { padding-bottom: 110px; }
.header .header-wrapper h1.header-title {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    max-width: 920px;
    margin: 22px auto 18px;
    background: linear-gradient(180deg, #ffffff 30%, #a7f3d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header .header-wrapper p.header-text { color: rgba(255, 255, 255, .78); max-width: 760px; font-size: 1.12rem; }

.mail-wrapper .mail-selection {
    max-width: 780px;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.mail-wrapper .mail-selection .mail-select .mail-input input {
    height: 66px;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    padding-left: 24px;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.mail-wrapper .mail-selection .mail-select .mail-input input:hover { box-shadow: 0 0 0 4px rgba(52, 211, 153, .35), 0 10px 30px -12px rgba(0, 0, 0, .45); }
.mail-wrapper .mail-selection .mail-select .mail-input .mail-input-copy {
    height: 50px;
    width: 56px;
    border-radius: 12px !important;
    border: 0;
    background: var(--tm-grad) !important;
    color: #fff !important;
    opacity: 1;
    box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .8);
}
.mail-wrapper .mail-selection .mail-select .mail-input .mail-input-copy:disabled { filter: grayscale(.6); opacity: .6; }

.mail-actions { gap: 10px; }
.mail-actions .mail-action.btn {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 600;
    transition: background .2s, color .2s, transform .2s;
}
.mail-actions .mail-action.btn:hover:not(:disabled) {
    background: #fff;
    color: var(--tm-violet) !important;
    border-color: #fff;
    transform: translateY(-1px);
}
.mail-actions .mail-action.btn:disabled { opacity: .5; }

.tm-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin: 22px auto 6px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    font-weight: 600;
}
.tm-trust span { display: inline-flex; align-items: center; gap: 8px; }
.tm-trust i { color: #4ade80; }

/* ---------- Sections ---------- */
.section { padding-top: 84px; padding-bottom: 84px; }
.section .section-header { margin-bottom: 44px; }
.section .section-header .section-title-sm {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .1);
    color: var(--tm-violet);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}
.section .section-header .section-title-sm::before { display: none; }
html[data-theme="dark"] .section .section-header .section-title-sm { background: rgba(110, 231, 183, .14); color: #6ee7b7; }
.section .section-header .section-title {
    color: var(--tm-ink) !important;
    font-weight: 800;
    letter-spacing: -.03em;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}
.section .section-header .section-text { color: var(--tm-muted); }
.section.bg-section { background: linear-gradient(180deg, #ecfdf5 0%, var(--tm-bg) 100%); }
html[data-theme="dark"] .section.bg-section { background: linear-gradient(180deg, #0c1f1b 0%, var(--tm-bg) 100%); }

/* ---------- Mailbox ---------- */
.tm-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, .1);
    color: var(--tm-green);
    font-size: 13px;
    font-weight: 700;
}
.tm-live .tm-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: tmPulse 2s infinite; }

.mailbox {
    border-radius: 22px;
    border: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow);
}
.mailbox .mailbox-header {
    background: linear-gradient(90deg, #042f2e 0%, #065f46 60%, #059669 100%);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}
.mailbox .mailbox-body { background: var(--tm-surface); color: var(--tm-ink); }
.mailbox .mailbox-body .mailbox-item { border-bottom: 1px solid var(--tm-border); }
.mailbox .mailbox-body .mailbox-item:nth-child(even) { background: transparent; }
.mailbox .mailbox-body .mailbox-item:hover { background: rgba(16, 185, 129, .05); }
.mailbox .mailbox-body .empty h2 { font-weight: 800; font-size: 1.6rem; }

.mailbox-ctr {
    background: var(--tm-surface);
    color: var(--tm-ink);
    border: 1px dashed rgba(16, 185, 129, .45);
    border-radius: 16px;
    box-shadow: var(--tm-shadow-sm);
}
.mailbox-ctr h5 { font-size: 1rem; font-weight: 600; }
.mailbox-ctr h5 { line-height: 2.2; }
.mailbox-ctr a {
    display: inline-block;
    line-height: 1.4;
    margin-left: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: var(--tm-grad);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------- Feature cards ---------- */
.feat, .feat.h-100 {
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    box-shadow: var(--tm-shadow-sm);
    padding: 34px 30px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feat:hover, .feat.active {
    color: var(--tm-ink);
    background-color: var(--tm-surface) !important;
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, .35);
    box-shadow: var(--tm-shadow);
}
.feat .feat-icon { width: 56px; height: 56px; margin-bottom: 22px; color: #fff; }
.feat .feat-icon i { font-size: 22px; }
.feat .feat-icon::before,
.feat:hover .feat-icon::before,
.feat.active .feat-icon::before {
    background: var(--tm-grad);
    border-radius: 16px;
    opacity: 1;
}
.feat:hover .feat-icon { color: #fff !important; }
.feat .feat-title { font-weight: 800; font-size: 1.25rem; color: var(--tm-ink); }
.feat .feat-text, .feat:hover .feat-text, .feat.active .feat-text { color: var(--tm-muted); font-size: 1rem; }

/* ---------- How it works ---------- */
.tm-steps { counter-reset: tmstep; }
.tm-step {
    position: relative;
    height: 100%;
    padding: 34px 28px 30px;
    border-radius: var(--tm-radius);
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow-sm);
}
.tm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--tm-grad);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px -10px rgba(5, 150, 105, .8);
}
.tm-step h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.tm-step p { color: var(--tm-muted); margin: 0; }
@media (min-width: 992px) {
    .tm-steps .col:not(:last-child) .tm-step::after {
        content: "";
        position: absolute;
        top: 57px;
        right: -26px;
        width: 28px;
        border-top: 2px dashed rgba(16, 185, 129, .35);
    }
}

/* ---------- Use cases ---------- */
.tm-case {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    height: 100%;
    padding: 22px;
    border-radius: 16px;
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    transition: border-color .2s, transform .2s;
}
.tm-case:hover { border-color: rgba(16, 185, 129, .35); transform: translateY(-3px); }
.tm-case-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, .1);
    color: var(--tm-violet);
    font-size: 18px;
}
html[data-theme="dark"] .tm-case-icon { background: rgba(110, 231, 183, .14); color: #6ee7b7; }
.tm-case h3 { font-size: 1.05rem; font-weight: 800; margin: 2px 0 6px; }
.tm-case p { margin: 0; color: var(--tm-muted); font-size: .95rem; }

/* ---------- Comparison ---------- */
.tm-compare {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow);
}
.tm-compare table { width: 100%; margin: 0; border-collapse: collapse; }
.tm-compare th, .tm-compare td { padding: 18px 22px; border-bottom: 1px solid var(--tm-border); }
.tm-compare tr:last-child td { border-bottom: 0; }
.tm-compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--tm-muted); font-weight: 800; }
.tm-compare thead th.tm-us { color: var(--tm-violet); }
.tm-compare td:first-child { font-weight: 600; color: var(--tm-ink); }
.tm-compare td.tm-c, .tm-compare th.tm-c { text-align: center; width: 24%; }
.tm-compare .tm-us { background: rgba(16, 185, 129, .06); }
.tm-yes { color: var(--tm-green); font-size: 20px; }
.tm-no { color: #ef4444; font-size: 20px; opacity: .8; }
.tm-meh { color: var(--tm-muted); font-size: 14px; font-weight: 600; }
@media (max-width: 575.98px) {
    .tm-compare th, .tm-compare td { padding: 14px 12px; font-size: 14px; }
}

/* ---------- FAQ ---------- */
.faqs .accordion {
    --bs-accordion-bg: var(--tm-surface);
    --bs-accordion-color: var(--tm-ink);
    --bs-accordion-btn-bg: var(--tm-surface);
    --bs-accordion-btn-color: var(--tm-ink);
    --bs-accordion-active-bg: var(--tm-surface);
    --bs-accordion-active-color: var(--tm-violet);
}
.faqs .accordion-item,
.faqs .accordion-button,
.faqs .accordion-collapse { background-color: var(--tm-surface) !important; }
.faqs .accordion-item {
    background: var(--tm-surface);
    border: 1px solid var(--tm-border) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: var(--tm-shadow-sm);
}
.faqs .accordion-item:not(:last-child) { margin-bottom: 12px; }
.faqs .accordion-button {
    color: var(--tm-ink) !important;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 20px 22px;
    box-shadow: none !important;
}
.faqs .accordion-button:not(.collapsed) { color: var(--tm-violet) !important; }
html[data-theme="dark"] .faqs .accordion-button:not(.collapsed) { color: #6ee7b7 !important; }
.faqs .accordion-button span { color: inherit !important; }
.faqs .accordion-body { color: var(--tm-muted) !important; padding: 0 22px 22px; }

/* ---------- CTA ---------- */
.question {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 70px 30px;
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(249, 115, 22, .35), transparent 60%),
        radial-gradient(600px 300px at 100% 100%, rgba(20, 184, 166, .4), transparent 60%),
        linear-gradient(135deg, #042f2e 0%, #065f46 100%);
    box-shadow: 0 40px 80px -40px rgba(6, 95, 70, .8);
}
.question h2 { font-weight: 800; letter-spacing: -.03em; }
.question .lead { color: rgba(255, 255, 255, .8); }
.question .btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 30px;
    font-weight: 800;
    background: #fff;
    color: #065f46;
}
.question .btn:hover { background: #d1fae5; color: #065f46; }

/* ---------- Footer ---------- */
.footer { background: #021512; }
.footer .footer-upper { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .footer-links a { color: rgba(255, 255, 255, .7); font-size: 15px; font-weight: 600; transition: color .2s; }
.footer .footer-links a:hover { color: #fff; opacity: 1; }
.footer .footer-lower p { color: rgba(255, 255, 255, .55); font-size: 14px; }

.go-up { background: var(--tm-grad) !important; border-radius: 14px !important; }

/* ---------- Expiry countdown ---------- */
.tm-expiry {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 4px auto 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 600;
}
.tm-expiry[hidden] { display: none; }
.tm-expiry.is-expired { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .4); }

/* ---------- Inbox: code badge + alerts button ---------- */
.tm-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    padding: 3px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(22, 163, 74, .12);
    color: var(--tm-green);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .06em;
    cursor: copy;
}
.tm-code:hover { background: rgba(22, 163, 74, .2); }
.tm-code.tm-copied::after, [data-tm-copy].tm-copied::after { content: " \2713 Copied"; letter-spacing: 0; }

.tm-mailbox-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.tm-mailbox-tools .tm-live { margin-top: 0; }
.tm-alerts, .tm-fwd-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--tm-border);
    background: var(--tm-surface);
    color: var(--tm-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.tm-alerts[hidden] { display: none; }
.tm-alerts.is-on { color: var(--tm-green); border-color: rgba(22, 163, 74, .35); }
.tm-fwd-link:hover, .tm-alerts:hover { border-color: rgba(16, 185, 129, .45); color: var(--tm-violet); }

.tm-lock { font-size: .75em; opacity: .7; margin-left: 4px; }
.mail-actions .tm-compose-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--tm-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .8);
}
.mail-actions .tm-compose-action:hover { filter: brightness(1.08); background: var(--tm-grad) !important; color: #fff !important; }

/* ---------- Buttons ---------- */
.tm-btn, .tm-btn:hover, .tm-btn:focus {
    border: 0;
    border-radius: 12px;
    background: var(--tm-grad);
    color: #fff !important;
    font-weight: 700;
}
.tm-btn:hover { filter: brightness(1.07); }
.tm-btn-outline {
    border-radius: 12px;
    border: 1px solid var(--tm-border);
    background: var(--tm-surface);
    color: var(--tm-ink);
    font-weight: 700;
}
.tm-btn-outline:hover { border-color: var(--tm-violet); color: var(--tm-violet); }
.tm-btn-danger:hover { border-color: #ef4444; color: #ef4444; }

/* ---------- Message view: smart panel + reply ---------- */
.tm-smart {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(249, 115, 22, .06));
    border: 1px solid rgba(16, 185, 129, .25);
}
.tm-smart-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--tm-grad);
    color: #fff;
}
.tm-smart-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.tm-smart-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tm-smart-label { font-weight: 700; color: var(--tm-muted); font-size: 14px; }
.tm-smart-code { font-size: 26px; font-weight: 800; letter-spacing: .18em; color: var(--tm-ink); font-variant-numeric: tabular-nums; }

.tm-reply { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tm-border); }
.tm-reply-form { margin-top: 14px; }
.tm-reply-meta { font-size: 14px; color: var(--tm-muted); margin-bottom: 8px; word-break: break-all; }
.tm-reply-form textarea { border-radius: 14px; }
.tm-reply-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--tm-muted); }
.tm-reply-guest { color: var(--tm-muted); font-size: 15px; }
.tm-reply-guest a { color: var(--tm-violet); font-weight: 700; }

/* ---------- Forwarding page ---------- */
.tm-panel {
    max-width: 720px;
    padding: 32px;
    border-radius: 22px;
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow);
}
.tm-panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.tm-panel-head h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 6px; }
.tm-panel-head p, .tm-muted { color: var(--tm-muted); }
.tm-note { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.tm-note-warn { background: rgba(249, 115, 22, .1); color: #c2410c; }
html[data-theme="dark"] .tm-note-warn { color: #fdba74; }
.tm-fwd-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--tm-surface-2);
    margin-bottom: 12px;
}
.tm-fwd-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-muted); }
.tm-fwd-email { font-weight: 700; word-break: break-all; }
.tm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tm-pill-on { background: rgba(22, 163, 74, .12); color: var(--tm-green); }
.tm-pill-wait { background: rgba(249, 115, 22, .12); color: #c2410c; }
.tm-pill-off { background: rgba(100, 116, 139, .14); color: var(--tm-muted); }
.tm-fwd-form .form-control { border-radius: 12px; height: 48px; }
.tm-fwd-form .btn { white-space: nowrap; height: 48px; padding: 0 20px; }
.tm-fwd-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--tm-muted); font-size: 14px; }
.tm-fwd-facts i { color: var(--tm-violet); width: 20px; }

/* ---------- Bottom navigation (phones + Android app) ---------- */
.tm-bottom-nav { display: none; }
@media (max-width: 991.98px) {
    .tm-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1035;
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .92);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        backdrop-filter: saturate(160%) blur(14px);
        border-top: 1px solid var(--tm-border);
        box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .25);
    }
    html[data-theme="dark"] .tm-bottom-nav { background: rgba(11, 18, 20, .92); }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .go-up { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
    .cookies { margin-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .sticky-adlobage { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.tm-bn-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
    min-width: 0;
    color: var(--tm-muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.tm-bn-item:hover { color: var(--tm-violet); }
.tm-bn-item.is-active { color: var(--tm-violet); }
html[data-theme="dark"] .tm-bn-item.is-active, html[data-theme="dark"] .tm-bn-item:hover { color: #6ee7b7; }
.tm-bn-icon { position: relative; font-size: 19px; line-height: 1; }
.tm-bn-lock {
    position: absolute;
    top: -4px;
    right: -9px;
    font-size: 9px;
    padding: 2px;
    border-radius: 50%;
    background: var(--tm-surface);
    color: var(--tm-muted);
}
.tm-bn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tm-bn-main .tm-bn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -24px;
    border-radius: 18px;
    background: var(--tm-grad);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 22px -8px rgba(5, 150, 105, .8);
}
.tm-bn-main .tm-bn-lock { top: -3px; right: -3px; }
.tm-bn-main.is-active .tm-bn-icon { box-shadow: 0 0 0 3px rgba(52, 211, 153, .35), 0 10px 22px -8px rgba(5, 150, 105, .8); }

/* ---------- Top bar icons: menu, premium, account ---------- */
#inbox { scroll-margin-top: 90px; }
.tm-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.tm-top-icon:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.tm-top-icon.tm-premium { color: #fbbf24; }
.tm-top-icon.tm-premium:hover { color: #fcd34d; transform: translateY(-1px); }
.tm-top-icon .tm-avatar { width: 30px; height: 30px; border-radius: 9px; }
.tm-drawer-btn { margin-right: 12px; }
.nav.nav-sticky .tm-top-icon { color: var(--tm-ink); border-color: var(--tm-border); background: var(--tm-surface-2); }
.nav.nav-sticky .tm-top-icon.tm-premium { color: #d97706; }
.tm-top-icons { display: inline-flex; align-items: center; gap: 8px; }
.tm-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px -8px rgba(249, 115, 22, .8);
}
.tm-premium-btn:hover { filter: brightness(1.07); }
@media (max-width: 1199.98px) {
    .nav .nav-inner .nav-menu-button,
    .nav-actions-sm .tm-theme-toggle { display: none !important; }
}
@media (max-width: 380px) {
    .tm-top-icon { width: 38px; height: 38px; }
    .tm-drawer-btn { margin-right: 8px; }
}

/* ---------- Side drawer ---------- */
.tm-drawer { position: fixed; inset: 0; z-index: 1060; visibility: hidden; pointer-events: none; }
.tm-drawer.is-open { visibility: visible; pointer-events: auto; }
.tm-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .55);
    opacity: 0;
    transition: opacity .25s ease;
}
.tm-drawer.is-open .tm-drawer-overlay { opacity: 1; }
.tm-drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 86vw);
    display: flex;
    flex-direction: column;
    background: var(--tm-surface);
    color: var(--tm-ink);
    box-shadow: 20px 0 60px -20px rgba(2, 6, 23, .6);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}
.tm-drawer.is-open .tm-drawer-panel { transform: none; }
body.tm-noscroll { overflow: hidden; }
.tm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; }
.tm-drawer-logo img { height: 34px; max-width: 200px; object-fit: contain; }
.tm-drawer-close {
    width: 38px; height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--tm-surface-2);
    color: var(--tm-ink);
    font-size: 18px;
}
.tm-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 14px 10px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(249, 115, 22, .08));
}
.tm-drawer-user .tm-avatar { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.tm-drawer-user-info { display: flex; flex-direction: column; min-width: 0; }
.tm-drawer-user-info span { font-size: 13px; color: var(--tm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-drawer-guest { width: 100%; }
.tm-drawer-guest p { margin: 0 0 10px; font-size: 14px; color: var(--tm-muted); }
.tm-drawer-nav { display: flex; flex-direction: column; padding: 4px 10px; flex: 1; }
.tm-drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--tm-ink);
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    text-decoration: none;
}
.tm-drawer-link > i:first-child { width: 22px; text-align: center; color: var(--tm-violet); }
html[data-theme="dark"] .tm-drawer-link > i:first-child { color: #6ee7b7; }
.tm-drawer-link:hover, .tm-drawer-link.is-active { background: rgba(16, 185, 129, .08); color: var(--tm-violet); }
html[data-theme="dark"] .tm-drawer-link:hover, html[data-theme="dark"] .tm-drawer-link.is-active { color: #6ee7b7; }
.tm-drawer-link-sm { font-size: 14px; font-weight: 600; padding: 9px 12px; }
.tm-drawer-link-sm > i:first-child { color: var(--tm-muted) !important; }
.tm-drawer-lock { margin-left: auto; font-size: 11px; color: var(--tm-muted); }
.tm-drawer-premium > i:first-child { color: #f59e0b !important; }
.tm-drawer-section { margin: 12px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-muted); }
.tm-drawer-foot { padding: 10px; border-top: 1px solid var(--tm-border); }
.tm-drawer-logout > i:first-child { color: #ef4444 !important; }
.tm-theme-switch .fa-sun { display: none; }
html[data-theme="dark"] .tm-theme-switch .fa-sun { display: inline-block; }
html[data-theme="dark"] .tm-theme-switch .fa-moon { display: none; }
.tm-switch {
    position: relative;
    margin-left: auto;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .35);
    transition: background .2s;
}
.tm-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}
html[data-theme="dark"] .tm-switch { background: #10b981; }
html[data-theme="dark"] .tm-switch::after { transform: translateX(18px); }

/* ---------- Mobile "envelope" email card (phones + app) ---------- */
.tm-env-top, .tm-env-caption, .tm-copy-big { display: none; }
@media (max-width: 991.98px) {
    .header .header-wrapper { padding-top: 4px; padding-bottom: 76px; }
    .header .header-wrapper h1.header-title { font-size: 1.3rem; margin: 4px auto 16px; letter-spacing: -.02em; }
    .header .header-wrapper p.header-text, .tm-hero-badge-wrap, .tm-trust { display: none; }
    .mail-wrapper { margin-top: 4px; }
    .mail-wrapper .mail-selection {
        position: relative;
        margin: 0;
        padding: 0 0 18px;
        overflow: hidden;
        border-radius: 30px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
    }
    .tm-env-top {
        display: flex;
        position: relative;
        justify-content: center;
        height: 118px;
        padding-top: 20px;
    }
    .tm-env-top::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
        clip-path: polygon(0 0, 100% 0, 100% 34%, 50% 100%, 0 34%);
    }
    .tm-env-top::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, .14);
        clip-path: polygon(0 34%, 50% 100%, 100% 34%, 100% 35.5%, 50% 101.5%, 0 35.5%);
    }
    .tm-env-badge {
        position: relative;
        z-index: 1;
        width: 74px;
        height: 74px;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 16px 30px -10px rgba(16, 185, 129, .9);
    }
    .tm-env-badge img { width: 100%; height: 100%; display: block; }
    .mail-wrapper .mail-selection .mail-select { padding: 4px 16px 0; }
    .mail-wrapper .mail-selection .mail-select .mail-input input {
        height: 50px !important;
        padding: 0 6px !important;
        background: transparent !important;
        color: #fff !important;
        text-align: center;
        font-size: 20px;
        font-weight: 800;
        box-shadow: none !important;
        text-overflow: ellipsis;
    }
    .mail-wrapper .mail-selection .mail-select .mail-input .mail-input-copy { display: none !important; }
    .tm-env-caption { display: block; margin: 0 0 18px; text-align: center; color: rgba(255, 255, 255, .62); font-size: 14px; }
    .tm-copy-big {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: calc(100% - 32px);
        height: 56px;
        margin: 0 16px 16px;
        border: 0;
        border-radius: 16px;
        background: var(--tm-grad);
        color: #fff;
        font-size: 17px;
        font-weight: 800;
        box-shadow: 0 14px 28px -12px rgba(5, 150, 105, .85);
        transition: transform .15s, filter .2s;
    }
    .tm-copy-big:active { transform: scale(.98); }
    .tm-copy-big:disabled { opacity: .55; box-shadow: none; }
    .tm-copy-big.is-copied { background: linear-gradient(135deg, #16a34a, #22c55e); }
    .mail-actions {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 0 12px;
    }
    .mail-actions .mail-action.btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        margin: 0;
        padding: 10px 2px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .06);
        border-color: rgba(255, 255, 255, .1);
        font-size: 11px;
    }
    .mail-actions .mail-action i { font-size: 17px; }
    .mail-actions .mail-action .mail-action-text { display: block !important; font-size: 11px; line-height: 1.1; }
    .mail-actions .tm-compose-action { display: none !important; }
    .tm-expiry { margin-top: 14px; }
}

/* Inbox tab badge */
.tm-bn-badge {
    position: absolute;
    top: -7px;
    right: -11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--tm-surface);
}
.tm-bn-badge[hidden] { display: none; }
.tm-bn-premium .tm-bn-icon { color: #f59e0b; }

/* ---------- App mode (Android app / installed web app) ---------- */
html.tm-app .footer,
html.tm-app #inbox ~ section,
html.tm-app #inbox ~ .section { display: none !important; }
html.tm-app:not([data-tab="inbox"]) #inbox { display: none; }
html.tm-app[data-tab="inbox"] .header .header-wrapper,
html.tm-app[data-tab="inbox"] .header .custom-shape-divider-bottom-1696181426 { display: none; }
html.tm-app[data-tab="inbox"] .header { padding-bottom: 8px; }
html.tm-app #inbox { padding-top: 22px !important; }
html.tm-app #inbox .section-title-sm,
html.tm-app #inbox .section-text { display: none; }
html.tm-app #inbox .section-header { margin-bottom: 14px; }
html.tm-app #inbox .section-title { font-size: 1.5rem; }
html:not(.tm-app) .tm-pw-app-only, html.tm-app .tm-pw-web-only { display: none !important; }

/* ---------- Premium paywall ---------- */
.tm-pw-section { padding-top: 40px; }
.tm-pw {
    max-width: 560px;
    padding: 28px 22px;
    border-radius: 28px;
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow);
}
.tm-pw-head { text-align: center; margin-bottom: 22px; }
.tm-pw-icon {
    display: inline-block;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 16px 30px -12px rgba(249, 115, 22, .7);
}
.tm-pw-icon img { width: 100%; height: 100%; }
.tm-pw-head h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.tm-pw-head p { color: var(--tm-muted); margin: 0; }
.tm-pw-plans { display: grid; gap: 10px; }
.tm-pw-plan { position: relative; display: block; margin: 0; cursor: pointer; }
.tm-pw-plan input { position: absolute; opacity: 0; pointer-events: none; }
.tm-pw-plan-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--tm-surface-2);
    border: 2px solid transparent;
    transition: border-color .2s, background .2s, transform .15s;
}
.tm-pw-plan:hover .tm-pw-plan-body { border-color: rgba(16, 185, 129, .25); }
.tm-pw-plan input:checked + .tm-pw-plan-body {
    border-color: var(--tm-violet);
    background: rgba(16, 185, 129, .08);
}
.tm-pw-plan input:focus-visible + .tm-pw-plan-body { outline: 3px solid rgba(16, 185, 129, .4); outline-offset: 2px; }
.tm-pw-plan-main { display: flex; flex-direction: column; min-width: 0; }
.tm-pw-save { font-size: 12px; font-weight: 800; color: var(--tm-green); margin-bottom: 2px; }
.tm-pw-plan-name { font-weight: 800; font-size: 1.02rem; }
.tm-pw-per { font-size: 13px; color: var(--tm-muted); }
.tm-pw-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.tm-pw-cta { text-align: center; margin: 22px 0 6px; }
.tm-pw-trial { margin: 0 0 12px; }
.tm-pw-trial[hidden] { display: none; }
.tm-pw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff !important;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 28px -12px rgba(249, 115, 22, .8);
}
.tm-pw-btn:hover { filter: brightness(1.06); }
.tm-pw-btn:disabled { background: var(--tm-surface-2); color: var(--tm-muted) !important; box-shadow: none; cursor: default; }
.tm-pw-fine { margin: 10px 0 0; font-size: 13px; color: var(--tm-muted); }
.tm-pw-why { font-size: 1.15rem; font-weight: 800; text-align: center; margin: 26px 0 12px; }
.tm-pw-features {
    list-style: none;
    margin: 0;
    padding: 8px 18px;
    border-radius: 18px;
    background: var(--tm-surface-2);
}
.tm-pw-features li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-weight: 600; }
.tm-pw-features li + li { border-top: 1px solid var(--tm-border); }
.tm-pw-features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(22, 163, 74, .12);
    color: var(--tm-green);
    font-size: 14px;
}
.tm-pw-account { margin-top: 18px; }

/* ---------- Delete account page ---------- */
.tm-danger-icon { background: rgba(239, 68, 68, .12) !important; color: #ef4444 !important; }
.tm-dl-h { font-size: 1.05rem; font-weight: 800; margin: 20px 0 8px; }
.tm-dl-list { margin-top: 0; }
.tm-dl-list i { color: #ef4444 !important; }
.tm-dl-steps { padding-left: 20px; color: var(--tm-ink); }
.tm-dl-steps li { margin-bottom: 6px; }
.tm-dl-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--tm-border); }
.tm-dl-form .form-control { border-radius: 12px; height: 48px; }
.tm-btn-delete, .tm-btn-delete:hover, .tm-btn-delete:focus {
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #dc2626;
    color: #fff !important;
    font-weight: 800;
}
.tm-btn-delete:hover { background: #b91c1c; }

/* ---------- Security animations ---------- */
/* hero: secure-scan light sweeping across the email card */
.mail-wrapper .mail-selection { position: relative; overflow: hidden; }
.mail-wrapper .mail-selection::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 35%;
    background: linear-gradient(100deg, transparent, rgba(110, 231, 183, .16), transparent);
    transform: skewX(-18deg);
    animation: tmSweep 7s ease-in-out 1.5s infinite;
    pointer-events: none;
}
@keyframes tmSweep {
    0% { left: -40%; }
    35%, 100% { left: 120%; }
}
/* hero: pulsing shield rings around the envelope badge */
.tm-env-badge::before, .tm-env-badge::after { content: none; }
.tm-env-top .tm-env-badge { overflow: visible; }
.tm-env-top .tm-env-badge img { border-radius: 22px; position: relative; z-index: 1; }
.tm-env-top .tm-env-badge::before,
.tm-env-top .tm-env-badge::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 26px;
    border: 2px solid rgba(52, 211, 153, .55);
    animation: tmRing 2.8s ease-out infinite;
}
.tm-env-top .tm-env-badge::after { animation-delay: 1.4s; }
@keyframes tmRing {
    0% { transform: scale(.9); opacity: .9; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* security section */
.tm-sec { overflow: hidden; }
.tm-sec-visual {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-sec-visual::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, .35), transparent 70%);
    filter: blur(10px);
}
.tm-sec-ring {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, .45);
    animation: tmRing 3.6s ease-out infinite;
}
.tm-sec-ring:nth-child(2) { animation-delay: 1.2s; }
.tm-sec-ring:nth-child(3) { animation-delay: 2.4s; }
.tm-sec-svg { position: relative; width: 82%; height: auto; overflow: visible; }
.tm-sec-orbit, .tm-sec-orbit-dots { transform-origin: 120px 128px; animation: tmSpin 22s linear infinite; }
.tm-sec-orbit-dots { animation-duration: 14s; }
@keyframes tmSpin { to { transform: rotate(360deg); } }
.tm-sec-shield { stroke-dasharray: 640; stroke-dashoffset: 640; }
.tm-sec.is-visible .tm-sec-shield { animation: tmDraw 1.6s ease forwards; }
@keyframes tmDraw { to { stroke-dashoffset: 0; } }
.tm-sec-scan { animation: tmScanMove 3.2s ease-in-out infinite; }
@keyframes tmScanMove {
    0% { transform: translateY(0); }
    50% { transform: translateY(200px); }
    100% { transform: translateY(0); }
}
.tm-sec-shackle { transform: translateY(-12px); }
.tm-sec.is-visible .tm-sec-shackle { animation: tmLock .5s cubic-bezier(.3, 1.6, .5, 1) 1.4s forwards; }
@keyframes tmLock { to { transform: translateY(0); } }
.tm-sec-check { stroke-dasharray: 50; stroke-dashoffset: 50; }
.tm-sec.is-visible .tm-sec-check { animation: tmDrawCheck .5s ease 1.9s forwards; }
@keyframes tmDrawCheck { to { stroke-dashoffset: 0; } }
.tm-sec-spam circle { opacity: 0; }
.tm-sec.is-visible .tm-sec-spam circle { animation: tmSpam 3.4s ease-in infinite; }
.tm-sec.is-visible .tm-sec-spam circle:nth-child(2) { animation-delay: 1.1s; animation-name: tmSpam2; }
.tm-sec.is-visible .tm-sec-spam circle:nth-child(3) { animation-delay: 2.2s; animation-name: tmSpam3; }
@keyframes tmSpam {
    0% { transform: translate(-10px, 40px); opacity: 0; }
    15% { opacity: 1; }
    45% { transform: translate(48px, 90px); opacity: 1; }
    70%, 100% { transform: translate(-6px, 150px); opacity: 0; }
}
@keyframes tmSpam2 {
    0% { transform: translate(250px, 60px); opacity: 0; }
    15% { opacity: 1; }
    45% { transform: translate(196px, 110px); opacity: 1; }
    70%, 100% { transform: translate(250px, 170px); opacity: 0; }
}
@keyframes tmSpam3 {
    0% { transform: translate(120px, -30px); opacity: 0; }
    15% { opacity: 1; }
    40% { transform: translate(120px, 14px); opacity: 1; }
    65%, 100% { transform: translate(170px, -40px); opacity: 0; }
}
.tm-sec-badge {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow);
    color: var(--tm-green);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    animation: tmFloat 4s ease-in-out infinite;
}
@keyframes tmFloat {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}
.tm-sec-card {
    height: 100%;
    padding: 22px;
    border-radius: 18px;
    background: var(--tm-surface);
    border: 1px solid var(--tm-border);
    box-shadow: var(--tm-shadow-sm);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tm-sec-card:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, .4); box-shadow: var(--tm-shadow); }
.tm-sec-card h3 { font-size: 1.08rem; font-weight: 800; margin: 14px 0 6px; }
.tm-sec-card p { margin: 0; color: var(--tm-muted); font-size: .95rem; }
.tm-sec-card a { color: var(--tm-violet); font-weight: 700; }
.tm-sec-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(16, 185, 129, .12);
    color: var(--tm-violet);
    font-size: 20px;
}
html[data-theme="dark"] .tm-sec-icon, html[data-theme="dark"] .tm-sec-card a { color: #6ee7b7; }
.tm-sec-icon-lock i { animation: tmLockClick 3s ease-in-out infinite; transform-origin: 50% 70%; }
@keyframes tmLockClick {
    0%, 70%, 100% { transform: scale(1) rotate(0); }
    76% { transform: scale(1.18) rotate(-8deg); }
    84% { transform: scale(.95) rotate(4deg); }
}
.tm-sec-icon-timer svg { position: absolute; inset: 7px; width: 36px; height: 36px; transform: rotate(-90deg); }
.tm-sec-icon-timer i { font-size: 13px; }
.tm-sec-timer { stroke-dasharray: 88; stroke-dashoffset: 0; animation: tmTimer 6s linear infinite; }
@keyframes tmTimer { to { stroke-dashoffset: 88; } }
.tm-sec-icon-shield::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    border: 2px solid rgba(16, 185, 129, .5);
    animation: tmRing 2.4s ease-out infinite;
}
.tm-sec-icon-globe i { animation: tmSpin 12s linear infinite; }

/* ---------- Blog articles ---------- */
.tm-article { font-size: 1.05rem; line-height: 1.75; color: var(--tm-ink); }
.tm-article h2 { font-size: 1.45rem; font-weight: 800; margin: 32px 0 12px; letter-spacing: -.02em; }
.tm-article h3 { font-size: 1.12rem; font-weight: 800; margin: 22px 0 8px; }
.tm-article p, .tm-article li { color: var(--tm-ink); }
.tm-article ul, .tm-article ol { padding-left: 22px; margin-bottom: 18px; }
.tm-article li { margin-bottom: 6px; }
.tm-article a { color: var(--tm-violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tm-article .table { margin: 10px 0 22px; font-size: .95rem; color: var(--tm-ink); --bs-table-bg: transparent; }
.tm-article .table th { background: rgba(16, 185, 129, .08); font-weight: 800; }
.tm-article .table-wrap { overflow-x: auto; }
.card-blog > img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
html[data-theme="dark"] .card-blog, html[data-theme="dark"] .card-blog .card-body { background: var(--tm-surface); color: var(--tm-ink); }
@media (max-width: 575.98px) {
    .tm-article { font-size: 1rem; }
    .tm-article .table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Legal pages ---------- */
.viewbox-body.v2 h2 { font-size: 1.25rem; font-weight: 800; margin: 28px 0 10px; }
.viewbox-body.v2 h3 { font-size: 1.05rem; font-weight: 800; margin: 18px 0 8px; }
.viewbox-body.v2 p, .viewbox-body.v2 li { line-height: 1.7; color: var(--tm-ink); }
.viewbox-body.v2 ul { padding-left: 20px; }
.viewbox-body.v2 a { color: var(--tm-violet); font-weight: 600; }
.viewbox-body.v2 .table { font-size: 14px; }
html[data-theme="dark"] .viewbox, html[data-theme="dark"] .viewbox-body { background: var(--tm-surface); color: var(--tm-ink); }
html[data-theme="dark"] .viewbox-body.v2 .table { color: var(--tm-ink); --bs-table-bg: transparent; }

/* ---------- Pop-up messages (flasher toasts) ---------- */
.fl-main-container { z-index: 2000 !important; }
.fl-main-container .fl-container {
    min-width: 0 !important;
    max-width: 380px;
    margin-bottom: 10px !important;
    padding: 14px 16px !important;
    border: 1px solid var(--tm-border) !important;
    border-radius: 16px !important;
    background: var(--tm-surface) !important;
    color: var(--tm-ink) !important;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .45) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.fl-main-container .fl-container::before { display: none !important; }
.fl-main-container .fl-content { display: flex !important; align-items: flex-start; gap: 12px; }
.fl-main-container .fl-icon {
    flex-shrink: 0;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}
.fl-main-container .fl-title { font-size: 14px !important; font-weight: 800 !important; color: var(--tm-ink) !important; margin: 2px 0 2px !important; }
.fl-main-container .fl-message { font-size: 14px !important; line-height: 1.45 !important; color: var(--tm-muted) !important; }
.fl-main-container .fl-progress-bar { height: 3px !important; background: transparent !important; }
.fl-main-container .fl-success .fl-icon, .fl-main-container .fl-success .fl-progress { background-color: #16a34a !important; }
.fl-main-container .fl-error .fl-icon, .fl-main-container .fl-error .fl-progress { background-color: #ef4444 !important; }
.fl-main-container .fl-warning .fl-icon, .fl-main-container .fl-warning .fl-progress { background-color: #f59e0b !important; }
.fl-main-container .fl-info .fl-icon, .fl-main-container .fl-info .fl-progress { background-color: #10b981 !important; }
@media (max-width: 575.98px) {
    .fl-main-container {
        top: calc(10px + env(safe-area-inset-top)) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
    }
    .fl-main-container .fl-container { max-width: none; width: 100% !important; }
}

/* ---------- Cookie notice: compact bottom card ---------- */
.cookies {
    left: 16px !important;
    right: auto !important;
    width: calc(100% - 32px) !important;
    max-width: 400px !important;
    padding: 18px 18px 16px !important;
    border: 1px solid var(--tm-border) !important;
    border-radius: 20px !important;
    background: var(--tm-surface) !important;
    color: var(--tm-ink) !important;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .5) !important;
    text-align: left !important;
    z-index: 1040 !important;
}
.cookies.show { bottom: 16px !important; }
.cookies h5 { font-size: 15px !important; font-weight: 800 !important; margin: 0 0 4px !important; }
.cookies h5::before { content: "\1F36A  "; }
.cookies .cookies-text { margin: 0 0 14px !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--tm-muted) !important; }
.cookies .d-flex { gap: 8px; }
.cookies .btn {
    width: auto !important;
    flex: 1 1 0;
    margin: 0 !important;
    height: 42px;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}
.cookies .btn-primary { background: var(--tm-grad) !important; border: 0 !important; color: #fff !important; }
.cookies .btn-danger { background: transparent !important; border: 1px solid var(--tm-border) !important; color: var(--tm-ink) !important; }
@media (max-width: 991.98px) {
    .cookies { left: 12px !important; width: calc(100% - 24px) !important; max-width: none !important; margin-bottom: 0 !important; }
    .cookies.show { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- reCAPTCHA: hide floating badge (attribution shown in page instead) ---------- */
.grecaptcha-badge { visibility: hidden !important; }
.tm-recaptcha-note { margin: 10px auto 0; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .5); }
.tm-recaptcha-note a { color: rgba(255, 255, 255, .7); text-decoration: underline; }

/* ---------- In-app "new email" banner ---------- */
.tm-toast {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    z-index: 2001;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(420px, calc(100% - 24px));
    padding: 12px 12px 12px 14px;
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    background: var(--tm-surface);
    color: var(--tm-ink);
    box-shadow: 0 20px 50px -18px rgba(15, 23, 42, .55);
    transform: translate(-50%, -140%);
    transition: transform .35s cubic-bezier(.2, .9, .2, 1);
    cursor: pointer;
}
.tm-toast.is-shown { transform: translate(-50%, 0); }
.tm-toast-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--tm-grad);
    color: #fff;
    font-size: 17px;
}
.tm-toast-body { flex: 1; min-width: 0; }
.tm-toast-title { font-size: 13px; font-weight: 800; }
.tm-toast-text { font-size: 13px; color: var(--tm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-toast-code { font-weight: 800; letter-spacing: .1em; color: var(--tm-green); }
.tm-toast-open {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(16, 185, 129, .1);
    color: var(--tm-violet);
    font-size: 13px;
    font-weight: 800;
}
html[data-theme="dark"] .tm-toast-open { color: #6ee7b7; background: rgba(110, 231, 183, .14); }

/* ---------- Compact top area on phones + app ---------- */
@media (max-width: 991.98px) {
    .nav { margin-top: 4px; height: 60px; }
    .header .star-bg { height: 260px; }
    .custom-shape-divider-bottom-1696181426 svg { height: 34px; }
    /* inner pages: title-only header */
    .header .header-wrapper > .container { padding-top: 0; }
    .header .header-wrapper > .container .header-title {
        font-size: 1.35rem;
        margin: 2px 0 0;
    }
    .header .header-wrapper:has(> .container) { padding-top: 0; padding-bottom: 38px; }
    /* home page: card sits right under the nav */
    .header .header-wrapper:has(.mail-wrapper) { padding-bottom: 46px; }
    .section { padding-top: 34px; padding-bottom: 40px; }
    .section .section-header { margin-bottom: 22px; }
    .tm-pw-section { padding-top: 14px; }
    #inbox { padding-top: 20px !important; }
}
@media (max-width: 575.98px) {
    .header .header-wrapper > .container .header-title { font-size: 1.2rem; }
}

/* ---------- Dark mode: generic components on other pages ---------- */
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .language-menu,
html[data-theme="dark"] .nav-drop-menu,
html[data-theme="dark"] .cookies {
    background-color: var(--tm-surface);
    color: var(--tm-ink);
    border-color: var(--tm-border);
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: var(--tm-surface-2);
    color: var(--tm-ink);
    border-color: var(--tm-border);
}
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light { background-color: var(--tm-surface) !important; }
html[data-theme="dark"] .text-dark { color: var(--tm-ink) !important; }
html[data-theme="dark"] .btn-close { filter: invert(1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
