/* ==========================================================================
   Mineirinho Achados — Design System & Vitrine Styles
   Tokens -> Semantic Theme (Light / Dark) -> Components -> Responsive Grid
   ========================================================================== */

:root {
    /* Typography */
    --font-heading: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Brand & Marketplace Accents */
    --brand-navy: #0b1324;
    --brand-navy-soft: #142038;
    --brand-yellow: #ffe600;
    --brand-yellow-hover: #f0d700;
    --brand-emerald: #059669;
    --brand-emerald-soft: rgba(5, 150, 105, 0.12);
    --brand-blue: #2563eb;
    --brand-blue-hover: #1d4ed8;
    --brand-urgency: #e11d48;
    --brand-whatsapp: #16a34a;
    --brand-whatsapp-hover: #15803d;
    --brand-telegram: #0284c7;
    --brand-telegram-hover: #0369a1;

    /* Light Surface Palette (default) */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-media: #ffffff;
    --bg-topbar: rgba(255, 255, 255, 0.86);
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --ring: #059669;

    /* Elevation & Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 16px 34px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] {
    --bg-page: #0b1120;
    --bg-surface: #131c31;
    --bg-subtle: #1b2742;
    --bg-media: #ffffff;
    --bg-topbar: rgba(11, 17, 32, 0.85);
    --border-subtle: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --ring: #34d399;
    --shadow-sm: 0 2px 6px rgba(2, 6, 23, 0.35);
    --shadow-card: 0 10px 26px rgba(2, 6, 23, 0.42);
    --shadow-card-hover: 0 20px 40px rgba(2, 6, 23, 0.65);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

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

.is-hidden {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 100;
    background: var(--brand-yellow);
    color: #0f172a;
    font-weight: 800;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: 0.75rem;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Icons */
.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.icon--xs {
    width: 15px;
    height: 15px;
}

.icon--2xs {
    width: 13px;
    height: 13px;
}

/* Sticky Top Navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-topbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 62px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-emerald) 0%, #047857 100%);
    color: var(--brand-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.brand__mark svg {
    width: 19px;
    height: 19px;
}

.brand__text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-pill {
    display: none;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

@media (min-width: 768px) {
    .nav-pill {
        display: inline-flex;
    }
}

.nav-pill:hover {
    transform: translateY(-1px);
}

.nav-pill--whatsapp {
    background: rgba(22, 163, 74, 0.12);
    color: var(--brand-whatsapp);
    border: 1px solid rgba(22, 163, 74, 0.28);
}

.nav-pill--whatsapp:hover {
    background: var(--brand-whatsapp);
    color: #ffffff;
}

.nav-pill--telegram {
    background: rgba(2, 132, 199, 0.12);
    color: var(--brand-telegram);
    border: 1px solid rgba(2, 132, 199, 0.28);
}

.nav-pill--telegram:hover {
    background: var(--brand-telegram);
    color: #ffffff;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.icon-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

html[data-theme="dark"] .icon--sun {
    display: block;
}
html[data-theme="dark"] .icon--moon {
    display: none;
}
html[data-theme="light"] .icon--sun,
html:not([data-theme]) .icon--sun {
    display: none;
}
html[data-theme="light"] .icon--moon,
html:not([data-theme]) .icon--moon {
    display: block;
}

/* Editorial Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 70% at 50% -10%, rgba(16, 185, 129, 0.22), transparent 65%),
        radial-gradient(ellipse 55% 50% at 90% 10%, rgba(255, 230, 0, 0.14), transparent 60%),
        linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-soft) 100%);
    color: #f8fafc;
    padding: 2.25rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 230, 0, 0.14);
    color: var(--brand-yellow);
    border: 1px solid rgba(255, 230, 0, 0.34);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.2vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #ffffff;
}

.hero__subtitle {
    margin: 0.65rem auto 0;
    max-width: 600px;
    color: #cbd5e1;
    font-size: 0.98rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 660px;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.35rem 0.35rem 0.35rem 0.9rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
    border: 2px solid transparent;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-bar:focus-within {
    border-color: var(--brand-yellow);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.38);
}

.search-bar__leading {
    color: #64748b;
    display: inline-flex;
    align-items: center;
}

.search-bar__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 600;
    padding: 0.6rem 0.4rem;
    outline: none;
}

.search-bar__input::placeholder {
    color: #64748b;
    font-weight: 500;
}

.search-bar__clear {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.7rem;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 8px;
}

.search-bar__clear:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.search-bar__submit {
    background: var(--brand-navy);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    min-height: 44px;
    padding: 0 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.search-bar__submit:hover {
    background: var(--brand-blue);
    transform: translateY(-1px);
}

/* Community Buttons */
.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--whatsapp {
    background: #22c55e;
    color: #052e16;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
}

.btn--whatsapp:hover {
    background: #16a34a;
    color: #ffffff;
}

.btn--telegram {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.btn--telegram:hover {
    background: #0284c7;
}

.btn--primary {
    background: var(--brand-blue);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--brand-blue-hover);
}

/* Hero Live Stats */
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.15rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #e2e8f0;
}

.stat-pill strong {
    color: var(--brand-yellow);
    font-family: var(--font-heading);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

/* Controls Bar (Filter Chips + Sort + Count) */
.controls-bar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

@media (min-width: 900px) {
    .controls-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.chip:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.chip.is-active {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #ffffff;
}

html[data-theme="dark"] .chip.is-active {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #0f172a;
}

.controls-bar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .controls-bar__right {
        justify-content: flex-end;
    }
}

.toolbar {
    margin-bottom: 1.25rem;
}

.toolbar__count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.toolbar__count strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.sort-select {
    min-height: 44px;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

@media (min-width: 560px) {
    .offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .offers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Offer Card */
@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    animation: cardFadeUp 0.35s ease backwards;
    animation-delay: calc(min(var(--stagger, 0), 10) * 35ms);
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--brand-emerald);
}

.offer-card__media {
    position: relative;
    background: var(--bg-media);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.offer-card__img-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.offer-card:hover .offer-card__img {
    transform: scale(1.05);
}

.offer-card__img-placeholder {
    width: 72px;
    height: 72px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card__img-placeholder svg {
    width: 56px;
    height: 56px;
}

/* Badges */
.badge {
    position: absolute;
    top: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 0.02em;
}

.badge--discount {
    left: 0.65rem;
    background: var(--brand-urgency);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.32);
}

.badge--full {
    right: 0.65rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Card Body */
.offer-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
    min-width: 0;
}

.offer-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.offer-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}

.offer-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-emerald);
    background: var(--brand-emerald-soft);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.offer-card__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.38;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.62rem;
}

.offer-card__title a:hover {
    color: var(--brand-blue);
}

html[data-theme="dark"] .offer-card__title a:hover {
    color: var(--brand-yellow);
}

.offer-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.offer-card__original-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.offer-card__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
}

.offer-card__current-price {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.offer-card__savings {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--brand-emerald);
    background: var(--brand-emerald-soft);
    padding: 0.16rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.offer-card__actions {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-card__cta {
    flex: 1;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--brand-blue);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.offer-card__cta:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-1px);
}

.offer-card__share {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.offer-card__share:hover {
    background: var(--bg-surface);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

/* Empty States */
.empty-state {
    background: var(--bg-surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    max-width: 560px;
    margin: 2rem auto;
    box-shadow: var(--shadow-sm);
}

.empty-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    border-radius: 16px;
    background: var(--bg-subtle);
    color: var(--brand-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state__icon svg {
    width: 28px;
    height: 28px;
}

.empty-state__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state__text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

/* Trust Strip */
.trust-strip {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .trust-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.trust-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.trust-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-emerald-soft);
    color: var(--brand-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-card__icon svg {
    width: 20px;
    height: 20px;
}

.trust-card__title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.trust-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 1.75rem 0;
    text-align: center;
}

.footer__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.footer__disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--brand-navy);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 45;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-blue);
}

/* Toast Notification */
.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 16px);
    background: var(--brand-navy);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
