/* ============================================================
 * +FAMOSA — TEMA V2
 * Camada visual clara, colorida e mobile-first.
 * O style.css original continua carregado como compatibilidade.
 * ============================================================ */

:root {
    --fm-bg: #fff9f1;
    --fm-bg-soft: #f8f4ff;
    --fm-surface: #ffffff;
    --fm-surface-strong: #fffdf8;
    --fm-ink: #17151f;
    --fm-ink-soft: #554f61;
    --fm-muted: #756e80;
    --fm-border: rgba(23, 21, 31, 0.10);
    --fm-border-strong: rgba(23, 21, 31, 0.16);
    --fm-pink: #f56687;
    --fm-pink-soft: #ffe2ea;
    --fm-purple: #7667f2;
    --fm-purple-soft: #ebe8ff;
    --fm-cyan: #19c7d8;
    --fm-cyan-soft: #dcf8fb;
    --fm-teal: #318b7a;
    --fm-teal-soft: #dcf1ea;
    --fm-orange: #ffae38;
    --fm-orange-soft: #fff0d3;
    --fm-yellow: #ffd86b;
    --fm-green: #219c6b;
    --fm-green-soft: #dcf5e9;
    --fm-red: #d94a5c;
    --fm-red-soft: #ffe4e8;
    --fm-blue: #3987f6;
    --fm-radius-sm: 14px;
    --fm-radius: 20px;
    --fm-radius-lg: 28px;
    --fm-radius-xl: 36px;
    --fm-shadow-sm: 0 8px 20px rgba(44, 33, 72, 0.07);
    --fm-shadow: 0 18px 48px rgba(44, 33, 72, 0.11);
    --fm-shadow-color: 0 20px 52px rgba(118, 103, 242, 0.18);
    --fm-nav-height: 76px;
}

html {
    background: var(--fm-bg);
}

body.app-public,
body.app-admin {
    font-family: 'Nunito Sans', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--fm-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.app-public {
    background:
        radial-gradient(circle at 4% 8%, rgba(245, 102, 135, 0.11), transparent 24rem),
        radial-gradient(circle at 96% 18%, rgba(25, 199, 216, 0.12), transparent 28rem),
        var(--fm-bg);
}

body.app-public::selection,
body.app-admin::selection {
    color: var(--fm-ink);
    background: var(--fm-yellow);
}

body.app-public :is(h1, h2, h3, h4, strong),
body.app-admin :is(h1, h2, h3, h4, strong) {
    letter-spacing: -0.018em;
}

.app-public a:focus-visible,
.app-public button:focus-visible,
.app-public input:focus-visible,
.app-public select:focus-visible,
.app-public textarea:focus-visible,
.app-admin a:focus-visible,
.app-admin button:focus-visible,
.app-admin input:focus-visible,
.app-admin select:focus-visible,
.app-admin textarea:focus-visible {
    outline: 3px solid rgba(118, 103, 242, 0.55);
    outline-offset: 3px;
}

/* ---------- Texto e superficies herdadas do tema anterior ---------- */
.app-public .text-white,
.app-admin .text-white {
    color: var(--fm-ink) !important;
}

.app-public .text-gray-300,
.app-admin .text-gray-300 {
    color: var(--fm-ink-soft) !important;
}

.app-public .text-gray-400,
.app-admin .text-gray-400 {
    color: var(--fm-muted) !important;
}

.app-public .text-gray-500,
.app-admin .text-gray-500,
.app-public .text-gray-600,
.app-admin .text-gray-600 {
    color: #8d8697 !important;
}

.app-public .text-purple-300,
.app-public .text-purple-400,
.app-admin .text-purple-300,
.app-admin .text-purple-400 {
    color: #6555df !important;
}

.app-public .text-cyan-200,
.app-public .text-cyan-300,
.app-public .text-cyan-400,
.app-admin .text-cyan-200,
.app-admin .text-cyan-300,
.app-admin .text-cyan-400 {
    color: #087f90 !important;
}

.app-public .text-green-200,
.app-public [class~="text-green-200/80"],
.app-public .text-green-300,
.app-public .text-green-400,
.app-admin .text-green-200,
.app-admin [class~="text-green-200/80"],
.app-admin .text-green-300,
.app-admin .text-green-400,
.app-public .text-emerald-400,
.app-admin .text-emerald-400 {
    color: #166534 !important;
}

.app-public .text-amber-50,
.app-public .text-amber-100,
.app-public .text-amber-200,
.app-public .text-amber-300,
.app-public .text-amber-400,
.app-admin .text-amber-50,
.app-admin .text-amber-100,
.app-admin .text-amber-200,
.app-admin .text-amber-300,
.app-admin .text-amber-400 {
    color: #7a4400 !important;
}

.app-public .text-yellow-300,
.app-public .text-yellow-400,
.app-admin .text-yellow-300,
.app-admin .text-yellow-400 {
    color: #9b6500 !important;
}

.app-public .text-red-300,
.app-public .text-red-400,
.app-admin .text-red-300,
.app-admin .text-red-400 {
    color: #bf3649 !important;
}

.app-public [class~="bg-white/5"],
.app-public [class~="bg-white/[0.03]"],
.app-public [class~="bg-white/[0.04]"],
.app-admin [class~="bg-white/5"],
.app-admin [class~="bg-white/[0.03]"],
.app-admin [class~="bg-white/[0.04]"] {
    background-color: rgba(118, 103, 242, 0.055) !important;
}

.app-public [class~="border-white/5"],
.app-public [class~="border-white/10"],
.app-admin [class~="border-white/5"],
.app-admin [class~="border-white/10"] {
    border-color: var(--fm-border) !important;
}

.app-public [class~="bg-[#111827]"],
.app-public [class~="bg-[#0F1420]"],
.app-public [class~="bg-[#0f172a]"],
.app-admin [class~="bg-[#111827]"],
.app-admin [class~="bg-[#0F1420]"],
.app-admin [class~="bg-[#0f172a]"] {
    background-color: var(--fm-surface) !important;
}

/* ---------- Primitivos ---------- */
.app-public .card,
.app-admin .card {
    color: var(--fm-ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    box-shadow: var(--fm-shadow-sm);
}

.app-public .card:hover,
.app-admin .card:hover {
    border-color: rgba(118, 103, 242, 0.25);
    box-shadow: var(--fm-shadow);
}

.app-public .glass,
.app-admin .glass {
    color: var(--fm-ink);
    background: rgba(255, 253, 248, 0.88);
    border-color: rgba(23, 21, 31, 0.08);
    box-shadow: 0 6px 24px rgba(44, 33, 72, 0.06);
}

.app-public .glass-light,
.app-admin .glass-light {
    color: var(--fm-ink);
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--fm-border);
}

.app-public .gradient-primary,
.app-admin .gradient-primary,
.app-public .btn-primary,
.app-admin .btn-primary {
    color: #fff !important;
    border: 0;
    border-radius: var(--fm-radius-sm);
    background: linear-gradient(135deg, var(--fm-purple), #586ff1 42%, var(--fm-cyan));
    box-shadow: 0 10px 24px rgba(93, 100, 237, 0.22);
}

.app-public .btn-primary:hover,
.app-admin .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(93, 100, 237, 0.30);
}

.app-public .btn-secondary,
.app-public .btn-outline,
.app-admin .btn-secondary,
.app-admin .btn-outline {
    color: #5f51d6 !important;
    border: 1px solid rgba(118, 103, 242, 0.28);
    border-radius: var(--fm-radius-sm);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

.app-public .btn-secondary:hover,
.app-public .btn-outline:hover,
.app-admin .btn-secondary:hover,
.app-admin .btn-outline:hover {
    color: #5143ca !important;
    background: var(--fm-purple-soft);
    border-color: rgba(118, 103, 242, 0.48);
}

.app-public .btn-success,
.app-admin .btn-success {
    color: #fff !important;
    border-radius: var(--fm-radius-sm);
    background: linear-gradient(135deg, #229d6c, #2fb98b);
    box-shadow: 0 10px 24px rgba(33, 156, 107, 0.20);
}

.app-public .input-field,
.app-admin .input-field,
.app-public .input-group,
.app-admin .input-group {
    color: var(--fm-ink);
    background: #fff;
    border: 1px solid var(--fm-border-strong);
    border-radius: var(--fm-radius-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.app-public .input-field:focus,
.app-admin .input-field:focus,
.app-public .input-group:focus-within,
.app-admin .input-group:focus-within {
    border-color: var(--fm-purple);
    box-shadow: 0 0 0 4px rgba(118, 103, 242, 0.12);
}

.app-public .input-field::placeholder,
.app-admin .input-field::placeholder {
    color: #aaa4b1;
}

.app-public select.input-field,
.app-admin select.input-field {
    color-scheme: light;
}

.app-public .badge,
.app-admin .badge {
    border-radius: 999px;
    font-weight: 800;
}

.app-public .badge-primary,
.app-admin .badge-primary {
    color: #5a4dd0 !important;
    background: var(--fm-purple-soft);
}

.app-public .badge-info,
.app-admin .badge-info {
    color: #087f90 !important;
    background: var(--fm-cyan-soft);
}

.app-public .badge-success,
.app-admin .badge-success {
    color: #17784f !important;
    background: var(--fm-green-soft);
}

.app-public .badge-warning,
.app-admin .badge-warning {
    color: #976000 !important;
    background: var(--fm-orange-soft);
}

.app-public .badge-error,
.app-admin .badge-error {
    color: #b63749 !important;
    background: var(--fm-red-soft);
}

.app-public .gradient-text,
.app-admin .gradient-text {
    background-image: linear-gradient(105deg, #6d5ce8 0%, #3987f6 45%, #12a997 100%);
}

/* ---------- Cabecalho publico ---------- */
.site-header {
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.app-public .site-header,
.app-admin .site-header {
    border-width: 0 0 1px;
}

.site-logo img {
    filter: drop-shadow(0 8px 14px rgba(62, 83, 220, 0.12));
}

.app-public .desktop-main-nav a,
.app-admin .desktop-main-nav a {
    color: var(--fm-ink-soft) !important;
    border-radius: 999px;
    font-weight: 700;
}

.app-public .desktop-main-nav a:hover,
.app-admin .desktop-main-nav a:hover {
    color: #5b4ed1 !important;
    background: var(--fm-purple-soft) !important;
}

.app-public .site-header button,
.app-admin .site-header button {
    color: var(--fm-ink-soft) !important;
}

.mobile-menu-panel {
    background: rgba(255, 253, 248, 0.98) !important;
    border-color: var(--fm-border) !important;
    box-shadow: var(--fm-shadow);
}

.app-public .mobile-menu-panel nav a,
.app-admin .mobile-menu-panel nav a {
    color: var(--fm-ink-soft) !important;
    border-radius: var(--fm-radius-sm);
}

.app-public .mobile-menu-panel nav a:hover,
.app-admin .mobile-menu-panel nav a:hover {
    color: #5a4dd0 !important;
    background: var(--fm-purple-soft) !important;
}

/* ---------- Navegacao inferior ---------- */
.mobile-bottom-nav {
    position: fixed;
    display: grid;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 46;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: var(--fm-nav-height);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(24, 22, 31, 0.94);
    box-shadow: 0 18px 44px rgba(24, 22, 31, 0.26);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.mobile-bottom-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 18px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.mobile-bottom-nav-item:active {
    transform: scale(.96);
}

.mobile-bottom-nav-item.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(118,103,242,.95), rgba(25,199,216,.86));
}

.mobile-bottom-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.mobile-bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 9px;
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding-inline: 4px;
    border: 2px solid #1b1922;
    border-radius: 999px;
    color: #fff;
    background: var(--fm-pink);
    font-size: .6rem;
    font-weight: 900;
}

/* ---------- Hero ---------- */
.famosa-hero {
    isolation: isolate;
    background:
        linear-gradient(140deg, rgba(255, 231, 237, .94), rgba(255, 249, 224, .90) 48%, rgba(221, 249, 245, .92));
    border-bottom: 1px solid rgba(23,21,31,.06);
}

.famosa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .34;
    background-image: radial-gradient(rgba(118,103,242,.28) 1.2px, transparent 1.2px);
    background-size: 25px 25px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero-organic-shape {
    position: absolute;
    z-index: -1;
    width: 26rem;
    height: 26rem;
    border-radius: 46% 54% 62% 38% / 38% 45% 55% 62%;
    filter: blur(1px);
    opacity: .58;
}

.hero-organic-shape-pink {
    top: -15rem;
    right: 13%;
    background: rgba(245, 102, 135, .20);
    transform: rotate(22deg);
}

.hero-organic-shape-cyan {
    bottom: -19rem;
    left: 35%;
    background: rgba(25, 199, 216, .19);
    transform: rotate(-18deg);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    padding: .58rem .9rem;
    border: 1px solid rgba(118,103,242,.14);
    border-radius: 999px;
    color: #5a4dd0;
    background: rgba(255,255,255,.72);
    box-shadow: var(--fm-shadow-sm);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.hero-greeting {
    margin-bottom: .45rem;
    color: var(--fm-ink-soft);
    font-size: 1rem;
    font-weight: 800;
}

.hero-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.hero-trust-chips span {
    padding: .55rem .8rem;
    border: 1px solid var(--fm-border);
    border-radius: 999px;
    color: var(--fm-ink-soft);
    background: rgba(255,255,255,.70);
    font-size: .78rem;
    font-weight: 800;
}

.famosa-hero-visual {
    position: relative;
    width: min(100%, 29rem);
    margin-inline: auto;
}

.hero-phone-card {
    position: relative;
    display: grid;
    gap: .9rem;
    padding: 1.15rem;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 36px;
    background: rgba(255,255,255,.70);
    box-shadow: 0 26px 60px rgba(62, 50, 97, .17);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-phone-topline {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .35rem .2rem .15rem;
}

.hero-phone-topline span:nth-child(2),
.hero-feature-card div,
.hero-mini-card {
    display: flex;
    flex-direction: column;
}

.hero-phone-topline strong,
.hero-feature-card strong,
.hero-mini-card strong,
.hero-progress-card strong {
    color: var(--fm-ink);
    font-weight: 900;
}

.hero-phone-topline small,
.hero-feature-card small,
.hero-mini-card small,
.hero-progress-card span {
    color: var(--fm-muted);
    font-size: .72rem;
}

.hero-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 15px;
    background: var(--fm-purple-soft);
}

.hero-spark {
    font-size: 1.25rem;
}

.hero-feature-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .8rem;
    min-height: 104px;
    padding: 1rem;
    border-radius: 25px;
}

.hero-feature-instagram {
    background: linear-gradient(135deg, #f67d9b, #b96ce7 62%, #7b79f1);
    box-shadow: 0 15px 34px rgba(213, 91, 157, .22);
}

.hero-feature-instagram :is(strong, small),
.hero-feature-instagram > span {
    color: #fff !important;
}

.hero-mini-card {
    min-height: 118px;
    justify-content: flex-end;
    padding: .9rem;
    border-radius: 23px;
    background: var(--fm-cyan-soft);
}

.hero-mini-card > span {
    margin-bottom: auto;
    font-size: 1.65rem;
}

.hero-mini-card-orange {
    background: var(--fm-orange-soft);
}

.hero-progress-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .9rem 1rem;
    border-radius: 21px;
    background: #1c1a22;
}

.hero-progress-card div {
    display: flex;
    flex-direction: column;
}

.hero-progress-card :is(span, strong) {
    color: #fff !important;
}

.hero-progress-card a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--fm-ink);
    background: var(--fm-yellow);
    font-size: 1.3rem;
    font-weight: 900;
}

.hero-social-bubble {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 4px solid rgba(255,255,255,.8);
    border-radius: 50%;
    box-shadow: var(--fm-shadow);
    font-size: 1.35rem;
}

.hero-social-bubble-one {
    top: -18px;
    right: 15px;
    background: var(--fm-pink-soft);
}

.hero-social-bubble-two {
    bottom: 32px;
    left: -20px;
    background: var(--fm-orange-soft);
}

/* ---------- Home, categorias e servicos ---------- */
.app-public section:not(.famosa-hero) {
    position: relative;
}

.app-public section h2 {
    color: var(--fm-ink);
}

.page-home #platforms-section .card:nth-child(1) { background: var(--fm-purple-soft); }
.page-home #platforms-section .card:nth-child(2) { background: var(--fm-cyan-soft); }
.page-home #platforms-section .card:nth-child(3) { background: var(--fm-orange-soft); }
.page-home #platforms-section .card:nth-child(4) { background: var(--fm-pink-soft); }

.platform-card,
.service-card {
    overflow: hidden;
}

.platform-card::before,
.service-card::before {
    content: '';
    display: block;
    height: 5px;
    margin: -1.25rem -1.25rem 1rem;
    background: linear-gradient(90deg, var(--fm-purple), var(--fm-cyan));
}

[data-platform="instagram"]::before { background: linear-gradient(90deg, #f2688a, #b25ed8, #ffad45); }
[data-platform="tiktok"]::before { background: linear-gradient(90deg, #1ec9d8, #22212a, #f15f7a); }
[data-platform="youtube"]::before { background: linear-gradient(90deg, #ff5e68, #e9343f); }
[data-platform="facebook"]::before { background: linear-gradient(90deg, #559ff7, #2764d8); }
[data-platform="telegram"]::before { background: linear-gradient(90deg, #53baf0, #3f8fe8); }
[data-platform="kwai"]::before { background: linear-gradient(90deg, #ffcd55, #ff8342); }
[data-platform="spotify"]::before { background: linear-gradient(90deg, #48ce7b, #199d58); }

.platform-card .shadow-black\/20 {
    box-shadow: none !important;
}

.service-visual {
    width: 3.15rem;
    height: 3.15rem;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 18px;
    background: var(--fm-purple-soft);
    box-shadow: 0 8px 20px rgba(44,33,72,.10);
}

.service-card .service-card-actions {
    padding-top: .35rem;
}

.filter-btn {
    min-height: 42px;
    color: var(--fm-ink-soft);
    border: 1px solid var(--fm-border);
    background: rgba(255,255,255,.82);
    font-weight: 800;
}

.filter-btn:hover {
    color: #5a4dd0;
    border-color: rgba(118,103,242,.34);
    background: var(--fm-purple-soft);
}

.filter-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--fm-purple), var(--fm-cyan));
    box-shadow: 0 9px 22px rgba(118,103,242,.20);
}

.page-services > .max-w-7xl:first-of-type,
.page-orders > .max-w-7xl:first-of-type,
.page-support > .max-w-7xl:first-of-type,
.page-account > .max-w-5xl:first-of-type,
.page-account > .max-w-7xl:first-of-type {
    position: relative;
}

/* ---------- Produto, carrinho e checkout ---------- */
.product-main-card,
.product-summary-card,
.cart-summary-card,
.checkout-card {
    border-radius: var(--fm-radius-lg) !important;
}

.app-public .service-product-title {
    color: var(--fm-ink);
}

.page-product .product-page > nav {
    scrollbar-width: none;
}

.page-product .product-page > nav::-webkit-scrollbar {
    display: none;
}

.product-layout[data-platform] .product-main-card {
    overflow: hidden;
}

.product-layout[data-platform] .product-main-card::before {
    content: '';
    display: block;
    height: 7px;
    margin: -2rem -2rem 1.5rem;
    background: linear-gradient(90deg, var(--fm-purple), var(--fm-cyan), var(--fm-pink));
}

.product-total-box,
.checkout-payment-result {
    border: 1px solid rgba(25,199,216,.20) !important;
    background: linear-gradient(135deg, var(--fm-cyan-soft), rgba(255,255,255,.78)) !important;
}

.mobile-bottom-action {
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 44px rgba(44,33,72,.20);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.payment-option {
    border-radius: 18px !important;
    background: rgba(118,103,242,.045) !important;
}

.payment-option:hover,
.payment-option.selected,
.payment-option[class*="border-purple"] {
    border-color: rgba(118,103,242,.42) !important;
    background: var(--fm-purple-soft) !important;
}

.step-item {
    color: var(--fm-muted);
    background: #fff;
    border-color: var(--fm-border);
}

.step-item.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--fm-purple), var(--fm-cyan));
}

.step-item.completed {
    color: #fff;
    background: var(--fm-green);
}

/* ---------- Drawer, modal, toast e prova social ---------- */
.app-public .cart-drawer-panel,
.app-public .quick-add-modal,
.app-public .modal-overlay > div,
.app-admin .modal-overlay > div {
    color: var(--fm-ink);
    background: var(--fm-surface) !important;
}

.app-public .cart-drawer-panel {
    border-color: var(--fm-border) !important;
    box-shadow: -20px 0 60px rgba(44,33,72,.16);
}

.quick-add-modal {
    border-radius: 28px !important;
    border-color: rgba(255,255,255,.8) !important;
    box-shadow: 0 30px 80px rgba(44,33,72,.23) !important;
}

.toast {
    color: var(--fm-ink);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--fm-shadow);
}

.social-proof {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    pointer-events: none;
    color: var(--fm-ink);
    border: 1px solid rgba(118,103,242,.17);
    border-radius: 20px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--fm-shadow);
}

.social-proof-close {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.social-proof-eyebrow,
.social-proof-meta {
    color: var(--fm-muted);
}

.social-proof-title {
    color: var(--fm-ink);
}

/* ---------- Conta, pedidos, suporte e autenticacao ---------- */
.page-account .card,
.page-orders .card,
.page-support .card {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ticket-card {
    border-color: var(--fm-border);
    background: rgba(118,103,242,.04);
}

.auth-page {
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(245,102,135,.22), transparent 24rem),
        radial-gradient(circle at 85% 80%, rgba(25,199,216,.22), transparent 25rem),
        linear-gradient(145deg, #fff8ee, #f7f1ff) !important;
}

.auth-page .card {
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(44,33,72,.15);
}

.telegram-miniapp-theme {
    background: linear-gradient(180deg, #fff8ef, #f5f2ff) !important;
}

.telegram-miniapp-theme > main > section:first-child {
    background: linear-gradient(180deg, rgba(255,249,241,.98), rgba(255,249,241,.91), rgba(255,249,241,0)) !important;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,.78);
    border-color: rgba(255,255,255,.08) !important;
    background:
        radial-gradient(circle at 16% 0%, rgba(118,103,242,.34), transparent 30rem),
        radial-gradient(circle at 88% 100%, rgba(25,199,216,.19), transparent 28rem),
        #1b1922 !important;
}

.site-footer .text-white,
.site-footer h4 {
    color: #fff !important;
}

.site-footer .text-gray-400,
.site-footer .text-gray-500,
.site-footer .text-gray-600,
.site-footer a {
    color: rgba(255,255,255,.66) !important;
}

.site-footer a:hover {
    color: #fff !important;
}

.site-footer [class~="bg-white/5"] {
    background: rgba(255,255,255,.08) !important;
}

/* ============================================================
 * ADMIN
 * ============================================================ */
body.app-admin {
    background:
        radial-gradient(circle at 0 0, rgba(118,103,242,.08), transparent 30rem),
        #f4f5fa;
}

.app-admin .admin-page {
    max-width: 1600px;
}

.app-admin .admin-page > div:first-child h1 {
    font-weight: 900;
}

.app-admin .card,
.app-admin [class~="bg-[#111827]"] {
    background: rgba(255,255,255,.94) !important;
    border-color: var(--fm-border) !important;
    box-shadow: 0 8px 24px rgba(44,33,72,.055);
}

.app-admin [class*="bg-purple-500/10"],
.app-admin [class*="bg-purple-500/20"] {
    background-color: var(--fm-purple-soft) !important;
}

.app-admin [class*="bg-cyan-500/10"],
.app-admin [class*="bg-cyan-500/20"] {
    background-color: var(--fm-cyan-soft) !important;
}

.app-admin [class*="bg-green-500/10"],
.app-admin [class*="bg-emerald-500/10"] {
    background-color: var(--fm-green-soft) !important;
}

.app-admin [class*="bg-yellow-500/10"] {
    background-color: var(--fm-orange-soft) !important;
}

.app-admin [class*="bg-red-500/10"] {
    background-color: var(--fm-red-soft) !important;
}

.admin-module-nav {
    position: relative;
    z-index: 30;
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding: .55rem;
    overflow-x: auto;
    border: 1px solid var(--fm-border);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--fm-shadow-sm);
    scrollbar-width: none;
}

.admin-module-nav::-webkit-scrollbar {
    display: none;
}

.admin-module-brand,
.admin-module-tip {
    display: none;
}

.admin-module-items {
    display: flex;
    gap: .4rem;
}

.admin-module-item {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .6rem;
    padding: .65rem .9rem;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--fm-muted);
    background: transparent;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
    transition: .2s ease;
}

.admin-module-item:hover {
    color: #5a4dd0;
    background: var(--fm-purple-soft);
}

.admin-module-item.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--fm-purple), #617be9);
    box-shadow: 0 9px 22px rgba(118,103,242,.22);
}

.admin-module-icon {
    font-size: 1rem;
}

.app-admin table {
    border-collapse: separate;
    border-spacing: 0;
}

.app-admin thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f6f3ff;
}

.app-admin th {
    color: #655d70 !important;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.app-admin tbody tr {
    transition: background .18s ease;
}

.app-admin tbody tr:hover {
    background: rgba(118,103,242,.045);
}

.app-admin tbody td {
    border-color: rgba(23,21,31,.065) !important;
}

.app-admin canvas {
    filter: saturate(.88);
}

/* ---------- Desktop admin sidebar ---------- */
@media (min-width: 1280px) {
    .app-admin .admin-page {
        padding-left: 18rem !important;
        transition: padding-left .24s ease;
    }

    .app-admin .admin-page:has(.admin-module-nav.is-collapsed) {
        padding-left: 7rem !important;
    }

    .admin-module-nav {
        position: fixed;
        top: 6.6rem;
        left: max(1.5rem, calc(50vw - 800px + 1.5rem));
        display: flex;
        width: 15rem;
        max-height: calc(100vh - 8rem);
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: .9rem;
        overflow: visible auto;
        border-radius: 24px;
        transition: width .24s ease;
    }

    .admin-module-nav.is-collapsed {
        width: 4.7rem;
    }

    .admin-module-brand {
        display: grid;
        grid-template-columns: auto minmax(0,1fr) auto;
        align-items: center;
        gap: .7rem;
        min-height: 46px;
        padding: .35rem;
    }

    .admin-module-brand-icon {
        display: grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border-radius: 14px;
        background: var(--fm-orange-soft);
        font-size: 1.15rem;
    }

    .admin-module-brand-copy {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .admin-module-brand-copy strong {
        color: var(--fm-ink);
        font-size: .83rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .admin-module-brand-copy small {
        color: var(--fm-muted);
        font-size: .62rem;
        white-space: nowrap;
    }

    .admin-nav-collapse {
        display: grid;
        width: 28px;
        height: 28px;
        place-items: center;
        border: 1px solid var(--fm-border);
        border-radius: 9px;
        color: var(--fm-muted);
        background: #fff;
        font-size: 1.2rem;
    }

    .admin-module-nav.is-collapsed .admin-module-brand {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .admin-module-nav.is-collapsed .admin-nav-collapse {
        position: absolute;
        top: 3.65rem;
        right: -12px;
    }

    .admin-module-items {
        display: grid;
        gap: .3rem;
    }

    .admin-module-item {
        width: 100%;
        justify-content: flex-start;
        padding: .72rem .8rem;
    }

    .admin-module-nav.is-collapsed .admin-module-item {
        justify-content: center;
        padding-inline: .55rem;
    }

    .admin-module-icon {
        font-size: 1.05rem;
    }

    .admin-module-tip {
        display: flex;
        align-items: flex-start;
        gap: .55rem;
        margin-top: auto;
        padding: .75rem;
        border-radius: 15px;
        color: #725600;
        background: #fff6d8;
        font-size: .68rem;
        line-height: 1.4;
    }
}

/* ============================================================
 * RESPONSIVO
 * ============================================================ */
@media (max-width: 1023px) {
    .famosa-hero-grid {
        text-align: center;
    }

    .hero-trust-chips,
    .famosa-hero-grid > div:first-child > .flex {
        justify-content: center;
    }

    .famosa-hero-grid p.max-w-2xl {
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    body.app-public:not(.auth-page) {
        padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
    }

    .app-public .site-header > div > div {
        height: 4.25rem;
    }

    .site-logo img {
        height: 2.3rem !important;
        max-width: 8.4rem;
        object-fit: contain;
    }

    .app-public .site-header + div,
    .app-admin .site-header + div {
        height: 4.25rem;
    }

    .famosa-hero {
        padding-top: 2rem !important;
        padding-bottom: 2.7rem !important;
    }

    .famosa-hero-grid {
        gap: 2.2rem;
        text-align: left;
    }

    .hero-eyebrow {
        margin-bottom: .8rem;
        padding: .48rem .7rem;
        font-size: .68rem;
    }

    .famosa-hero h1 {
        margin-bottom: 1rem;
        font-size: clamp(2.15rem, 10.6vw, 3rem) !important;
        line-height: 1.02;
    }

    .famosa-hero p.text-lg {
        margin-bottom: 1.25rem;
        font-size: 1rem !important;
        line-height: 1.55;
    }

    .hero-trust-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: .38rem;
        overflow-x: auto;
        padding-bottom: .2rem;
        scrollbar-width: none;
    }

    .hero-trust-chips::-webkit-scrollbar {
        display: none;
    }

    .hero-trust-chips span {
        flex: 0 0 auto;
        padding: .48rem .62rem;
        font-size: .68rem;
    }

    .famosa-hero-grid > div:first-child > .flex {
        justify-content: stretch;
    }

    .famosa-hero-grid > div:first-child > .flex a {
        width: 100%;
        min-height: 52px;
    }

    .famosa-hero-visual {
        width: min(100%, 23rem);
    }

    .hero-phone-card {
        gap: .7rem;
        padding: .85rem;
        border-radius: 29px;
    }

    .hero-feature-card {
        min-height: 88px;
    }

    .hero-mini-card {
        min-height: 104px;
    }

    .hero-social-bubble {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .hero-social-bubble-two {
        left: -8px;
    }

    .app-public section:not(.famosa-hero) {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .app-public section h2,
    .page-services h1,
    .page-orders h1,
    .page-support h1 {
        font-size: 1.8rem !important;
        line-height: 1.05;
    }

    .page-home #platforms-section .grid {
        gap: .75rem;
    }

    .page-home #platforms-section .card {
        min-height: 150px;
        padding: 1rem;
        text-align: left;
    }

    .page-home #platforms-section .card span.text-4xl {
        margin-bottom: .65rem;
        font-size: 1.9rem;
    }

    .platform-card {
        min-height: 150px;
        padding: .95rem !important;
    }

    .platform-card > span {
        width: 3.25rem !important;
        height: 3.25rem !important;
        margin-bottom: .75rem !important;
        border-radius: 17px !important;
    }

    #featured-services-section .flex.flex-wrap.justify-center.gap-3 {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-inline: -1rem;
        padding: .1rem 1rem .55rem;
        scrollbar-width: none;
    }

    #featured-services-section .filter-btn {
        flex: 0 0 auto;
    }

    .service-card {
        padding: 1rem !important;
        border-radius: 19px !important;
    }

    .service-card::before {
        margin: -1rem -1rem .85rem;
    }

    .service-card-actions :is(a, button) {
        min-height: 44px;
        padding-inline: .7rem;
    }

    .product-main-card,
    .product-summary-card,
    .cart-summary-card,
    .checkout-card {
        border-radius: 22px !important;
    }

    .page-product .product-page > nav {
        margin-inline: -.25rem;
        padding-inline: .25rem;
        padding-bottom: .5rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    .product-layout[data-platform] .product-main-card::before {
        margin: -1rem -1rem 1rem;
    }

    .mobile-bottom-action {
        left: .55rem;
        right: .55rem;
        bottom: calc(.55rem + env(safe-area-inset-bottom));
        min-height: 72px;
        padding: .65rem;
    }

    .mobile-bottom-action-btn {
        min-width: 8.4rem;
        min-height: 46px;
        padding-inline: 1rem;
    }

    .app-transactional .site-footer {
        margin-bottom: 1rem;
    }

    .social-proof {
        top: auto;
        left: .75rem;
        right: .75rem;
        bottom: calc(6.2rem + env(safe-area-inset-bottom));
        width: auto;
        height: auto;
        max-width: none;
        padding: .75rem;
        border-radius: 17px;
    }

    .social-proof-title {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .site-footer {
        margin-top: 3rem !important;
    }

    .site-footer > div {
        padding-top: 2.5rem;
        padding-bottom: 7rem;
    }

    .site-footer .grid-cols-2 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }

    .auth-page {
        padding: 1rem;
    }

    .auth-page .card {
        border-radius: 24px;
        padding: 1.35rem !important;
    }

    .admin-module-nav {
        position: sticky;
        top: 4.65rem;
    }

    .app-admin .admin-page {
        padding-top: 1.25rem !important;
    }

    .app-admin .admin-page > div:first-child h1 {
        font-size: 1.8rem !important;
    }

    .app-admin .grid-cols-2 {
        gap: .7rem;
    }

    .app-admin table {
        min-width: 680px;
    }

    .app-admin .overflow-x-auto {
        margin-inline: -.75rem;
        padding-inline: .75rem;
    }
}

@media (min-width: 641px) and (max-width: 1279px) {
    .admin-module-nav {
        position: sticky;
        top: 5.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-organic-shape,
    .hero-social-bubble,
    .service-card,
    .platform-card,
    .mobile-bottom-nav-item {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
