/* ============================================================================
   MTEMPMAIL — 2026 UI REDESIGN
   Loaded AFTER style.css. Overrides only; safe & reversible.
   Palette: deep navy hero + emerald accent. Premium, privacy-trust look.
   ========================================================================== */

:root {
    --rd-navy-900: #0b1120;
    --rd-navy-800: #0f172a;
    --rd-navy-700: #1e293b;
    --rd-emerald:  #10b981;
    --rd-emerald-600: #059669;
    --rd-emerald-700: #047857;
    --rd-emerald-glow: rgba(16, 185, 129, .45);
    --rd-ink:      #0f172a;
    --rd-muted:    #64748b;
    --rd-line:     #e8edf5;
    --rd-bg-soft:  #f6f9fc;
    --rd-radius:   16px;
    --rd-shadow:   0 18px 50px -12px rgba(15, 23, 42, .18);
    --rd-shadow-sm: 0 6px 22px -8px rgba(15, 23, 42, .16);

    /* Re-map the theme's existing tokens so the whole site picks up the new accent */
    --primary_color: #10b981;
    --primary-color: #10b981;
    --primary_opacity: #34d399;
    --secondary_color: #10b981;
}

body {
    color: var(--rd-ink);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ────────────────────────────────────────────────────────────────────────────
   1. HERO / HEADER
   ──────────────────────────────────────────────────────────────────────────── */
.header {
    background:
        radial-gradient(1100px 520px at 78% -8%, rgba(16,185,129,.28) 0%, transparent 55%),
        radial-gradient(900px 480px at 12% 8%, rgba(56,189,248,.16) 0%, transparent 55%),
        linear-gradient(165deg, var(--rd-navy-900) 0%, var(--rd-navy-800) 46%, #10241f 100%)
        !important;
}

/* Bottom wave: tint to match page background instead of harsh white */
.custom-shape-divider-bottom-1696181426 .shape-fill { fill: #fff; }

.header .header-wrapper { padding-top: 8px; padding-bottom: 96px; }

.header .header-wrapper .header-title {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem) !important;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    max-width: 940px;
    margin: 8px auto 0;
    background: linear-gradient(180deg, #ffffff 0%, #d9f6ec 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header .header-wrapper .header-text.lead {
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    color: rgba(226, 240, 248, .82);
    max-width: 660px;
    line-height: 1.7;
}

/* Trust pill above the title (injected via blade) */
.rd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 18px;
    padding: 7px 16px;
    font-size: .8rem;
    font-weight: 600;
    color: #d1fae5;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.32);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
.rd-hero-badge .rd-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 var(--rd-emerald-glow);
    animation: rdPulse 2.2s infinite;
}
@keyframes rdPulse {
    0%   { box-shadow: 0 0 0 0 var(--rd-emerald-glow); }
    70%  { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ────────────────────────────────────────────────────────────────────────────
   2. MAIL WIDGET (the address box + action buttons)
   ──────────────────────────────────────────────────────────────────────────── */
.mail-wrapper {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.mail-wrapper .mail-selection .mail-select .mail-input {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}
.mail-wrapper .mail-selection .mail-select .mail-input input {
    background: #ffffff !important;
    border-radius: 11px !important;
    height: 64px !important;
    font-size: clamp(1rem, 2.4vw, 1.32rem) !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
    color: var(--rd-navy-800);
    padding-left: 22px !important;
    padding-right: 76px !important;
}
.mail-wrapper .mail-selection .mail-select.show .mail-input input { border-radius: 11px 11px 0 0 !important; }

/* Copy button → emerald, prominent */
.mail-input-copy.btn,
.mail-input .mail-input-copy {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--rd-emerald) 0%, var(--rd-emerald-600) 100%) !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 17px;
    box-shadow: 0 6px 18px -4px var(--rd-emerald-glow);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.mail-input-copy.btn:not(:disabled):hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 10px 26px -6px var(--rd-emerald-glow);
}
.mail-input-copy.btn:disabled { opacity: .55; }

/* Action buttons row → glass pills */
.mail-actions { gap: 10px !important; margin-top: 14px; }
.mail-actions .mail-action.btn,
.mail-action.btn-light {
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    color: #eaf2f7 !important;
    border-radius: 11px !important;
    font-weight: 600 !important;
    font-size: .86rem !important;
    padding: 11px 16px !important;
    backdrop-filter: blur(8px);
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.mail-actions .mail-action.btn:not(:disabled):hover {
    background: rgba(16,185,129,.22) !important;
    border-color: rgba(16,185,129,.5) !important;
    transform: translateY(-2px);
    color: #fff !important;
}
.mail-actions .mail-action.btn:disabled { opacity: .5; }
.mail-actions .mail-action.btn i { color: #6ee7b7; }

/* ────────────────────────────────────────────────────────────────────────────
   3. LIVE STATS — make cards sharper on the new dark hero
   ──────────────────────────────────────────────────────────────────────────── */
.live-stat-card {
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 16px !important;
}
.live-stat-card:hover { background: rgba(255,255,255,.13) !important; }
.live-stat-icon { background: rgba(16,185,129,.18) !important; color: #6ee7b7 !important; }

/* ────────────────────────────────────────────────────────────────────────────
   4. MAILBOX (inbox table)
   ──────────────────────────────────────────────────────────────────────────── */
.mailbox {
    border-radius: 20px !important;
    border: 1px solid var(--rd-line) !important;
    box-shadow: var(--rd-shadow) !important;
}
.mailbox .mailbox-header {
    background: var(--rd-bg-soft);
    border-bottom: 1px solid var(--rd-line);
}
.mailbox .mailbox-header .mailbox-header-item p {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--rd-muted);
    margin: 0;
}
.mailbox-body .empty { padding: 46px 20px; }
.mailbox-body .empty h2 { font-size: 1.18rem; font-weight: 700; color: var(--rd-ink); }
.mailbox-body .empty p { color: var(--rd-muted); }

/* ────────────────────────────────────────────────────────────────────────────
   5. SECTION HEADERS — unified modern style
   ──────────────────────────────────────────────────────────────────────────── */
.section { padding-top: 56px; padding-bottom: 56px; }
.section .section-header { text-align: center; max-width: 620px; margin: 0 auto 42px; }
.section .section-header .section-title-sm span {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rd-emerald-600);
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: 999px;
    padding: 5px 15px;
    margin-bottom: 14px;
}
.section .section-header .section-title {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--rd-ink);
}
.section .section-header .section-title span { color: var(--rd-emerald) !important; }
.section .section-header .section-text.lead { color: var(--rd-muted); line-height: 1.7; }

/* ────────────────────────────────────────────────────────────────────────────
   6. REVIEWS — upgrade the inline-bordered cards
   ──────────────────────────────────────────────────────────────────────────── */
.section .section-body .col > .rounded-3.border,
.section .section-body .h-100.p-4.rounded-3.border {
    border: 1px solid var(--rd-line) !important;
    border-radius: var(--rd-radius) !important;
    box-shadow: var(--rd-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.section .section-body .h-100.p-4.rounded-3.border:hover {
    transform: translateY(-4px);
    box-shadow: var(--rd-shadow);
}
.section .section-body .h-100.p-4.rounded-3.border > div[style*="2rem"] { color: var(--rd-emerald) !important; }

/* ────────────────────────────────────────────────────────────────────────────
   7. FAQ ACCORDION
   ──────────────────────────────────────────────────────────────────────────── */
.faqs .accordion-item {
    border: 1px solid var(--rd-line) !important;
    border-radius: 14px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--rd-shadow-sm);
}
.faqs .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--rd-ink);
    padding: 18px 20px;
}
.faqs .accordion-button:not(.collapsed) {
    background: rgba(16,185,129,.06);
    color: var(--rd-emerald-700);
    box-shadow: none;
}
.faqs .accordion-button:focus { box-shadow: none; }
.faqs .accordion-button-icon {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(16,185,129,.1);
    color: var(--rd-emerald-600);
    transition: transform .25s ease;
}
.faqs .accordion-button:not(.collapsed) .accordion-button-icon { transform: rotate(180deg); }
.faqs .accordion-body { color: var(--rd-muted); line-height: 1.7; padding: 4px 20px 20px; }

/* ────────────────────────────────────────────────────────────────────────────
   8. NAVBAR — cleaner links & buttons
   ──────────────────────────────────────────────────────────────────────────── */
.nav .nav-inner .nav-menu .nav-links .nav-link {
    font-weight: 500;
    border-radius: 9px;
    transition: background .15s ease, color .15s ease;
}
.nav .nav-inner .nav-menu .nav-links .nav-link:hover,
.nav .nav-inner .nav-menu .nav-links .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
.btn.btn-secondary {
    background: linear-gradient(135deg, var(--rd-emerald) 0%, var(--rd-emerald-600) 100%) !important;
    border: 0 !important;
    box-shadow: 0 8px 22px -8px var(--rd-emerald-glow);
    font-weight: 600;
}
.btn.btn-secondary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.btn-outline-light { font-weight: 600; }

/* ────────────────────────────────────────────────────────────────────────────
   9. FOOTER
   ──────────────────────────────────────────────────────────────────────────── */
.footer {
    background: linear-gradient(180deg, var(--rd-navy-800) 0%, var(--rd-navy-900) 100%) !important;
}
.footer .footer-upper { padding-top: 46px; padding-bottom: 30px; }
.footer .footer-links a {
    color: rgba(226,240,248,.72);
    font-weight: 500;
    transition: color .15s ease;
}
.footer .footer-links a:hover { color: #6ee7b7; }
.footer .footer-lower { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer .footer-lower p { color: rgba(226,240,248,.6); font-size: .9rem; }

/* ────────────────────────────────────────────────────────────────────────────
   10. GO-UP BUTTON + misc polish
   ──────────────────────────────────────────────────────────────────────────── */
.go-up {
    background: linear-gradient(135deg, var(--rd-emerald) 0%, var(--rd-emerald-600) 100%) !important;
    box-shadow: 0 10px 26px -8px var(--rd-emerald-glow) !important;
    border: 0 !important;
}
::selection { background: rgba(16,185,129,.22); }

/* Smooth focus ring for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--rd-emerald);
    outline-offset: 2px;
}
