:root {
    --roxo-950: #1d103e;
    --roxo-900: #281553;
    --roxo-800: #3a1d78;
    --roxo-700: #5530bc;
    --roxo-600: #6b42e8;
    --roxo-500: #7b5af0;
    --roxo-100: #eee9ff;
    --roxo-50: #f7f4ff;
    --ciano-500: #29d7ef;
    --ciano-300: #77e9f7;
    --verde-600: #0f9f6e;
    --verde-100: #dff8ed;
    --amarelo-600: #b77900;
    --amarelo-100: #fff3ce;
    --vermelho-600: #d33b55;
    --vermelho-100: #ffe5ea;
    --azul-600: #2375df;
    --azul-100: #e2efff;
    --tinta: #211a35;
    --texto: #524b65;
    --texto-suave: #756f83;
    --linha: #e3dcf1;
    --fundo: #eee9fb;
    --branco: #ffffff;
    --sombra: 0 18px 55px rgba(42, 24, 85, 0.11);
    --sombra-forte: 0 24px 65px rgba(38, 20, 81, 0.22);
    --raio: 22px;
    --raio-menor: 14px;
    --largura: 1220px;
}

/* =====================================================
   V17 — compra coletiva, Super Promoção e instalação.
===================================================== */
.promotion-builder {
    padding: 18px;
    border: 1px solid rgba(229, 74, 94, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff8f3, #fff1f5);
}

.promotion-head,
.delivery-preview,
.delivery-note,
.complaint-window,
.collective-product-progress,
.promo-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promotion-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.promotion-head h2 {
    margin: 3px 0 0;
}

.super-promo-ribbon {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 7px 9px;
    color: #fff;
    border-radius: 9px;
    background: linear-gradient(135deg, #e3344f, #ff7137);
    box-shadow: 0 8px 22px rgba(215, 40, 69, 0.28);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.035em;
}

.old-price {
    color: var(--texto-suave);
    font-size: 11px;
    text-decoration: line-through;
}

.collective-badge {
    width: fit-content;
    margin-top: 7px;
    padding: 6px 9px;
    color: #3d188e;
    border: 1px solid rgba(86, 39, 185, 0.2);
    border-radius: 9px;
    background: #f0eaff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.collective-product-progress,
.promo-details,
.delivery-note,
.complaint-window,
.delivery-preview {
    margin-top: 9px;
    padding: 10px 11px;
    border-radius: 12px;
    background: #f7f3ff;
    color: var(--texto);
    font-size: 11px;
    line-height: 1.4;
}

.promo-details {
    border: 1px solid rgba(229, 74, 94, 0.2);
    background: #fff5f1;
}

.complaint-window {
    border: 1px solid rgba(235, 176, 35, 0.28);
    background: #fffbeb;
}

.delivery-preview {
    margin: 14px 0;
    border: 1px solid var(--linha);
}

.delivery-preview span {
    display: block;
}

.promo-order-note {
    display: block;
    margin-top: 3px;
    color: #b62842;
    font-size: 10px;
    font-weight: 800;
}

.address-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
}

.address-confirm {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .table-wrap.products-manage-wrap {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }

    .products-manage-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed;
    }

    .products-manage-table tbody,
    .products-manage-table tr,
    .products-manage-table td,
    .products-manage-table .table-product,
    .products-manage-table .inline-actions {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .products-manage-table td > *,
    .products-manage-table .table-product > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .promotion-head {
        flex-direction: column;
    }

    .promotion-builder {
        padding: 13px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 7% 8%, rgba(117, 77, 235, 0.3), transparent 28rem),
        radial-gradient(circle at 94% 13%, rgba(41, 215, 239, 0.25), transparent 25rem),
        radial-gradient(circle at 58% 94%, rgba(255, 186, 73, 0.12), transparent 27rem),
        linear-gradient(rgba(85, 48, 188, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 48, 188, 0.04) 1px, transparent 1px),
        linear-gradient(145deg, #e9e1fb 0%, #f4f0ff 48%, #eaf9fd 100%);
    background-size: auto, auto, auto, 34px 34px, 34px 34px, auto;
    background-attachment: fixed;
    color: var(--tinta);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.menu-aberto {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.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;
}

:focus-visible {
    outline: 3px solid rgba(41, 215, 239, 0.85);
    outline-offset: 3px;
}

/* Cabeçalho e logo oficial */
.app-header {
    position: sticky;
    z-index: 50;
    top: 0;
    color: var(--branco);
    background:
        radial-gradient(circle at 9% -25%, rgba(41, 215, 239, 0.32), transparent 21rem),
        radial-gradient(circle at 79% 160%, rgba(126, 88, 245, 0.55), transparent 28rem),
        linear-gradient(105deg, rgba(30, 13, 68, 0.99), rgba(84, 35, 190, 0.99) 68%, rgba(44, 20, 104, 0.99));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 35px rgba(31, 16, 65, 0.18);
    backdrop-filter: blur(14px);
}

.app-header::after {
    content: "";
    position: absolute;
    right: 4%;
    bottom: 0;
    width: 260px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ciano-500), transparent);
}

.header-inner {
    width: min(calc(100% - 40px), var(--largura));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    color: var(--branco);
    text-decoration: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-icon {
    position: relative;
    width: 54px;
    height: 40px;
    flex: 0 0 54px;
    animation: abastora-flutuar 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(73, 220, 255, 0.45));
}

.logo-icon .elo {
    position: absolute;
    top: 8px;
    width: 35px;
    height: 21px;
    border: 4px solid currentColor;
    border-radius: 50px;
    background: transparent;
    transform-origin: center;
}

.logo-icon .elo1 {
    z-index: 1;
    left: 1px;
    color: #ffffff;
    animation: elo-esquerdo 2.4s ease-in-out infinite;
}

.logo-icon .elo2 {
    z-index: 2;
    right: 1px;
    color: #48dcff;
    animation: elo-direito 2.4s ease-in-out infinite;
}

.logo-icon::after {
    content: "";
    position: absolute;
    z-index: 4;
    left: 23px;
    top: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff, 0 0 16px #48dcff;
    animation: pulso-abastora 1.5s ease-in-out infinite;
}

@keyframes elo-esquerdo {
    0%, 100% { transform: rotate(-28deg) translateX(0); }
    50% { transform: rotate(-28deg) translateX(3px); }
}

@keyframes elo-direito {
    0%, 100% { transform: rotate(28deg) translateX(0); }
    50% { transform: rotate(28deg) translateX(-3px); }
}

@keyframes pulso-abastora {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes abastora-flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header-nav a {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.79);
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.header-nav a:hover,
.header-nav a.ativo {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.header-nav a.ativo {
    box-shadow: inset 0 -2px 0 var(--ciano-500);
}

.header-user {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background: linear-gradient(145deg, var(--ciano-500), #71ecfb);
    color: var(--roxo-950);
    font-weight: 800;
}

.user-copy {
    min-width: 0;
}

.user-copy strong,
.user-copy small {
    display: block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy strong {
    font-size: 13px;
}

.user-copy small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
}

.menu-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

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

.header-action {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: 0.2s ease;
}

.header-action-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.header-action:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.logout-btn {
    min-width: 84px;
    color: var(--roxo-800);
    border-color: rgba(255, 255, 255, 0.75);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(18, 7, 52, 0.22);
    font-size: 12px;
    font-weight: 800;
}

.logout-btn:hover {
    color: var(--roxo-900);
    border-color: #ffffff;
    background: #f4fbff;
}

.header-back-btn {
    min-width: 84px;
    color: #ffffff;
    border-color: rgba(92, 231, 249, 0.42);
    background: rgba(41, 215, 239, 0.14);
}

.interface-icon {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-btn {
    position: relative;
}

.notification-count {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--roxo-800);
    border-radius: 99px;
    color: var(--roxo-950);
    background: var(--ciano-500);
    font-size: 9px;
    font-weight: 900;
}

.admin-document {
    width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
}

.menu-btn {
    display: none;
    margin-left: auto;
    font-size: 20px;
}

.public-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Estrutura */
.page-shell {
    position: relative;
    width: min(calc(100% - 40px), var(--largura));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.page-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 166px;
    margin-bottom: 28px;
    padding: 29px 31px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    background:
        radial-gradient(circle at 83% 5%, rgba(41, 215, 239, 0.35), transparent 20rem),
        radial-gradient(circle at 3% 130%, rgba(150, 107, 255, 0.55), transparent 23rem),
        linear-gradient(120deg, #25104f 0%, #4a20a5 50%, #743ee5 100%);
    box-shadow: 0 24px 60px rgba(40, 21, 83, 0.28);
}

.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.055), transparent 32%, transparent 72%, rgba(41, 215, 239, 0.07));
}

.page-head::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -125px;
    width: 265px;
    height: 265px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.035);
    pointer-events: none;
}

.page-head > *:not(.page-brand-watermark) {
    position: relative;
    z-index: 2;
}

.page-head h1,
.hero-title,
.section-title {
    margin: 0;
    color: var(--tinta);
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.035em;
}

.page-head h1 {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
}

.page-head p {
    max-width: 720px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.page-head .eyebrow {
    color: var(--ciano-300);
}

.page-head .eyebrow::before {
    background: linear-gradient(90deg, #ffffff, var(--ciano-500));
}

.page-brand-watermark {
    position: absolute;
    z-index: 1;
    right: 9%;
    top: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.14;
    pointer-events: none;
    scale: 3.8;
    translate: 0 -50%;
}

.page-brand-watermark .logo-icon {
    animation-duration: 7s;
}

.page-head .btn-primary {
    color: var(--roxo-950);
    background: linear-gradient(135deg, var(--ciano-500), #8af2fb);
    box-shadow: 0 12px 28px rgba(41, 215, 239, 0.2);
}

.page-head .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

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

.page-back {
    position: relative;
    z-index: 3;
    min-height: 44px;
    gap: 9px;
    padding: 0 16px;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.13) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(20, 7, 52, 0.16);
    backdrop-filter: blur(10px);
}

.page-back:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(-2px);
}

.page-back .interface-icon {
    width: 18px;
    height: 18px;
}

.page-head .page-back-auto {
    position: absolute;
    z-index: 4;
    top: 18px;
    right: 20px;
    min-width: 0;
    min-height: 46px;
    padding: 0 17px 0 12px;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(31, 12, 74, 0.58) !important;
    box-shadow: 0 12px 30px rgba(12, 4, 35, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.page-head .page-back-auto:hover {
    border-color: rgba(99, 236, 255, 0.86) !important;
    background: rgba(49, 20, 108, 0.82) !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--roxo-600);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--roxo-600), var(--ciano-500));
}

.section-title {
    font-size: clamp(24px, 3vw, 34px);
}

.section-copy {
    margin: 8px 0 0;
    color: var(--texto-suave);
}

.section-block {
    margin-top: 34px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

/* Botões */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--roxo-700), var(--roxo-500));
    box-shadow: 0 11px 25px rgba(89, 48, 190, 0.23);
}

.btn-cyan {
    color: var(--roxo-950);
    background: linear-gradient(135deg, var(--ciano-500), #83f1fb);
    box-shadow: 0 11px 25px rgba(41, 215, 239, 0.2);
}

.btn-secondary {
    color: var(--roxo-700);
    border-color: var(--linha);
    background: #ffffff;
}

.btn-ghost {
    color: var(--texto);
    border-color: transparent;
    background: transparent;
}

.btn-danger {
    color: var(--vermelho-600);
    border-color: #ffd2db;
    background: var(--vermelho-100);
}

.btn-success {
    color: var(--verde-600);
    border-color: #bcebd7;
    background: var(--verde-100);
}

.btn-small {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
}

.btn-wide {
    width: 100%;
}

/* Cards e estatísticas */
.card {
    border: 1px solid rgba(207, 195, 235, 0.9);
    border-radius: var(--raio);
    background:
        radial-gradient(circle at 100% 0%, rgba(41, 215, 239, 0.1), transparent 13rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 241, 255, 0.97));
    box-shadow: 0 18px 48px rgba(49, 25, 102, 0.13);
}

.card-pad {
    padding: 26px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    --stat-accent: #7040e7;
    --stat-cor: rgba(112, 64, 231, 0.14);
    position: relative;
    min-height: 154px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--stat-accent) 24%, #ffffff);
    border-radius: 20px;
    background:
        radial-gradient(circle at 105% -10%, var(--stat-cor), transparent 9rem),
        linear-gradient(145deg, #ffffff 24%, color-mix(in srgb, var(--stat-cor) 48%, #ffffff) 100%);
    box-shadow: 0 16px 44px rgba(42, 24, 85, 0.14);
}

.stat-card:nth-child(4n + 2) {
    --stat-accent: #08a9c7;
    --stat-cor: rgba(26, 204, 231, 0.16);
}

.stat-card:nth-child(4n + 3) {
    --stat-accent: #df8c16;
    --stat-cor: rgba(255, 184, 68, 0.18);
}

.stat-card:nth-child(4n) {
    --stat-accent: #15966c;
    --stat-cor: rgba(35, 190, 139, 0.16);
}

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-accent), color-mix(in srgb, var(--stat-accent) 35%, #8af2fb));
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -34px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--stat-cor);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 12px;
    background: var(--stat-cor, var(--roxo-100));
    font-size: 18px;
}

.stat-card small {
    display: block;
    color: var(--texto-suave);
    font-size: 12px;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 3px;
    color: var(--tinta);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.quick-card {
    --quick-color: #6b42e8;
    --quick-soft: #eee9ff;
    position: relative;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    overflow: hidden;
    color: inherit;
    border: 1px solid color-mix(in srgb, var(--quick-color) 22%, #ffffff);
    border-radius: 19px;
    background:
        radial-gradient(circle at 106% -12%, color-mix(in srgb, var(--quick-color) 20%, transparent), transparent 10rem),
        linear-gradient(145deg, #ffffff 18%, var(--quick-soft) 135%);
    text-decoration: none;
    box-shadow: 0 14px 38px rgba(42, 24, 85, 0.11);
    transition: 0.2s ease;
}

.quick-card:nth-child(3n + 2) {
    --quick-color: #0ca9c4;
    --quick-soft: #e3faff;
}

.quick-card:nth-child(3n) {
    --quick-color: #168c67;
    --quick-soft: #e4f8f0;
}

.quick-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 8px 8px 0;
    background: var(--quick-color);
    opacity: 0.8;
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: #cfc4ef;
    box-shadow: 0 22px 52px color-mix(in srgb, var(--quick-color) 19%, transparent);
}

.quick-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--quick-color, var(--roxo-800));
    background: var(--quick-soft, var(--roxo-100));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--quick-color, var(--roxo-600)) 15%, transparent);
    font-size: 21px;
}

.quick-card h3 {
    margin: 17px 0 4px;
    font-size: 16px;
}

.quick-card p {
    margin: 0;
    color: var(--texto-suave);
    font-size: 13px;
}

.quick-card .seta {
    position: absolute;
    right: 20px;
    top: 23px;
    color: var(--quick-color);
}

/* Painéis principais com fundo forte da marca */
body[data-page^="painel-"] {
    background:
        radial-gradient(circle at 8% 6%, rgba(55, 224, 248, 0.28), transparent 23rem),
        radial-gradient(circle at 92% 28%, rgba(141, 93, 255, 0.55), transparent 34rem),
        radial-gradient(circle at 48% 105%, rgba(33, 210, 189, 0.14), transparent 28rem),
        linear-gradient(135deg, #24104f 0%, #3d187f 43%, #5825b8 72%, #27105b 100%);
    background-attachment: fixed;
}

body[data-page^="painel-"] .page-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 10px -45px 20px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 36px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.035), transparent 45%);
    pointer-events: none;
}

body[data-page^="painel-"] .page-head {
    border-color: rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 83% 0%, rgba(41, 215, 239, 0.32), transparent 19rem),
        linear-gradient(120deg, rgba(29, 11, 66, 0.86), rgba(107, 53, 227, 0.86));
    box-shadow: 0 26px 65px rgba(13, 4, 36, 0.34);
    backdrop-filter: blur(12px);
}

body[data-page^="painel-"] .section-title,
body[data-page^="painel-"] .section-heading > div > h2 {
    color: #ffffff;
}

body[data-page^="painel-"] .section-copy {
    color: rgba(255, 255, 255, 0.7);
}

body[data-page^="painel-"] .section-heading > .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

body[data-page^="painel-"] .empty-state,
body[data-page^="painel-"] .list-card,
body[data-page^="painel-"] .order-card {
    color: var(--tinta);
}

/* Avisos */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 17px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 13px;
}

.alert strong {
    display: block;
    margin-bottom: 2px;
}

.alert-warning {
    color: #75510c;
    border-color: #f2dda3;
    background: var(--amarelo-100);
}

.alert-success {
    color: #08734f;
    border-color: #b9e8d3;
    background: var(--verde-100);
}

.alert-danger {
    color: #a92b42;
    border-color: #ffc8d3;
    background: var(--vermelho-100);
}

.alert-info {
    color: #205d9d;
    border-color: #bfdcff;
    background: var(--azul-100);
}

/* Formulários */
.form-card {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 36px);
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(41, 215, 239, 0.08), transparent 18rem),
        linear-gradient(145deg, #ffffff, #fbf9ff);
}

.form-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--roxo-600), var(--ciano-500));
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label,
.field-label {
    color: var(--tinta);
    font-size: 12px;
    font-weight: 800;
}

.field-hint {
    color: var(--texto-suave);
    font-size: 11px;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--tinta);
    border: 1px solid #ddd7e9;
    border-radius: 12px;
    background: #ffffff;
    transition: 0.18s ease;
}

.textarea {
    min-height: 112px;
    resize: vertical;
}

.input:hover,
.select:hover,
.textarea:hover {
    border-color: #c6bae4;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--roxo-500);
    box-shadow: 0 0 0 4px rgba(107, 66, 232, 0.1);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
    color: var(--texto-suave);
    background: #f1eff5;
}

.check-row,
.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.check-card,
.radio-card {
    flex: 1 1 180px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--linha);
    border-radius: 13px;
    background: linear-gradient(145deg, #ffffff, #faf8ff);
    cursor: pointer;
}

.check-card input,
.radio-card input {
    margin-top: 3px;
    accent-color: var(--roxo-600);
}

.check-card strong,
.radio-card strong {
    display: block;
    font-size: 13px;
}

.check-card small,
.radio-card small {
    display: block;
    margin-top: 2px;
    color: var(--texto-suave);
    font-size: 11px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--linha);
}

.input-group {
    position: relative;
}

.input-group .input {
    padding-right: 46px;
}

.input-action {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
}

.file-drop {
    min-height: 170px;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 2px dashed #cfc5e5;
    border-radius: 16px;
    background: var(--roxo-50);
    text-align: center;
    cursor: pointer;
}

.file-drop:hover {
    border-color: var(--roxo-500);
}

.file-preview {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: #ffffff;
}

/* Filtros */
.toolbar {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid var(--linha);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 255, 0.96));
    box-shadow: 0 10px 28px rgba(42, 24, 85, 0.06);
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box::before {
    content: "⌕";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texto-suave);
    font-size: 20px;
}

.search-box .input {
    padding-left: 41px;
}

.toolbar .select {
    width: auto;
    min-width: 180px;
}

/* Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--linha);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 255, 0.96));
    box-shadow: 0 12px 35px rgba(42, 24, 85, 0.07);
    transition: 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra);
}

.product-image-wrap {
    position: relative;
    height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #faf9fd, #f1eef8);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.product-placeholder {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--roxo-700);
    background: var(--roxo-100);
    font-size: 32px;
}

.favorite-btn {
    position: absolute;
    z-index: 2;
    right: 11px;
    top: 11px;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: var(--texto-suave);
    border: 1px solid rgba(220, 214, 233, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 7px 20px rgba(42, 24, 85, 0.1);
    cursor: pointer;
}

.favorite-btn.ativo {
    color: #e83d67;
    background: #fff0f4;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--texto-suave);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 9px 0 3px;
    font-size: 16px;
    line-height: 1.35;
}

.supplier-name {
    color: var(--texto-suave);
    font-size: 12px;
}

.product-price {
    margin: 14px 0 2px;
    color: var(--roxo-700);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 25px;
    font-weight: 800;
}

.product-unit {
    color: var(--texto-suave);
    font-size: 11px;
}

.product-rules {
    min-height: 36px;
    margin: 10px 0 0;
    color: var(--texto-suave);
    font-size: 11px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}

.qty-control {
    display: inline-grid;
    grid-template-columns: 34px 42px 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--linha);
    border-radius: 11px;
    background: #ffffff;
}

.qty-control button {
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.qty-control input {
    width: 42px;
    height: 36px;
    padding: 0;
    border: 0;
    text-align: center;
    appearance: textfield;
}

.stock-low {
    color: var(--amarelo-600);
}

/* Tabelas e listas */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--linha);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--sombra);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 15px 17px;
    border-bottom: 1px solid #eeeaf5;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--texto-suave);
    background: #fbfafe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.data-table td {
    font-size: 13px;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 11px;
}

.table-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    border-radius: 11px;
    background: #f5f2fa;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.list-stack {
    display: grid;
    gap: 13px;
}

.list-card {
    padding: 19px;
    border: 1px solid var(--linha);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(42, 24, 85, 0.05);
}

.list-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.list-card h3 {
    margin: 0;
    font-size: 16px;
}

.list-card p {
    margin: 4px 0 0;
    color: var(--texto-suave);
    font-size: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.detail-item {
    padding: 12px;
    border-radius: 12px;
    background: #f8f6fc;
}

.detail-item small,
.detail-item strong {
    display: block;
}

.detail-item small {
    color: var(--texto-suave);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-item strong {
    margin-top: 3px;
    font-size: 13px;
}

/* Status */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-success {
    color: var(--verde-600);
    background: var(--verde-100);
}

.badge-warning {
    color: var(--amarelo-600);
    background: var(--amarelo-100);
}

.badge-danger {
    color: var(--vermelho-600);
    background: var(--vermelho-100);
}

.badge-info {
    color: var(--azul-600);
    background: var(--azul-100);
}

.badge-purple {
    color: var(--roxo-700);
    background: var(--roxo-100);
}

.badge-neutral {
    color: #686273;
    background: #eeecf1;
}

/* Pedidos, lotes e negociação */
.order-card {
    overflow: hidden;
}

.order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--linha);
}

.order-number {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.order-total {
    color: var(--roxo-700);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.order-body {
    padding: 20px 22px;
}

.order-items {
    display: grid;
    gap: 8px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--linha);
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--texto);
    font-size: 12px;
}

.lot-box {
    margin-top: 17px;
    padding: 16px;
    border: 1px solid #d8cef4;
    border-radius: 14px;
    background: var(--roxo-50);
}

.progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.progress-track {
    height: 9px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #e3ddf1;
}

.progress-bar {
    height: 100%;
    width: var(--progresso, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--roxo-600), var(--ciano-500));
}

.negotiation-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.history {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 18px 0 0 6px;
    padding-left: 22px;
    border-left: 2px solid #ded7ed;
}

.history-item {
    position: relative;
}

.history-item::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 5px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--roxo-500);
    box-shadow: 0 0 0 2px #d9d0ef;
}

.history-item strong,
.history-item small {
    display: block;
}

.history-item small {
    color: var(--texto-suave);
    font-size: 10px;
}

/* Carrinho e checkout */
.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.summary-card {
    position: sticky;
    top: 100px;
    padding: 23px;
}

.summary-card h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    color: var(--texto);
    font-size: 13px;
}

.summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--linha);
    color: var(--tinta);
    font-size: 16px;
    font-weight: 800;
}

.summary-total strong {
    color: var(--roxo-700);
    font-size: 22px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 17px;
    border-bottom: 1px solid var(--linha);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item img,
.cart-placeholder {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    object-fit: contain;
    border-radius: 14px;
    background: #f5f2fa;
}

.cart-item h3 {
    margin: 0;
    font-size: 14px;
}

.cart-item p {
    margin: 3px 0;
    color: var(--texto-suave);
    font-size: 11px;
}

.cart-value {
    text-align: right;
}

.cart-value strong {
    display: block;
    margin-bottom: 8px;
    color: var(--roxo-700);
}

/* Login e cadastro */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(480px, 1.15fr);
    background: #ffffff;
}

.auth-aside {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 70px);
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(41, 215, 239, 0.18), transparent 18rem),
        linear-gradient(145deg, var(--roxo-950), var(--roxo-700));
}

.auth-aside::before,
.auth-aside::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.auth-aside::before {
    width: 360px;
    height: 360px;
    right: -150px;
    top: 18%;
}

.auth-aside::after {
    width: 220px;
    height: 220px;
    left: -90px;
    bottom: 8%;
}

.auth-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: auto 0;
}

.auth-copy h1 {
    margin: 0 0 18px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.auth-copy p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.auth-benefit span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--roxo-950);
    background: var(--ciano-500);
    font-size: 11px;
    font-weight: 800;
}

.auth-main {
    position: relative;
    display: grid;
    place-items: center;
    padding: 36px;
    background:
        radial-gradient(circle at 90% 8%, rgba(41, 215, 239, 0.13), transparent 20rem),
        radial-gradient(circle at 8% 92%, rgba(107, 66, 232, 0.13), transparent 22rem),
        linear-gradient(145deg, #f5f1fb, #efebf8);
}

.auth-card {
    width: min(100%, 520px);
    padding: clamp(25px, 4vw, 40px);
    border: 1px solid rgba(222, 213, 241, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 75px rgba(42, 24, 85, 0.14);
    backdrop-filter: blur(16px);
}

.auth-card h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 30px;
}

.auth-card > p {
    margin: 7px 0 24px;
    color: var(--texto-suave);
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form[hidden] {
    display: none;
}

.auth-session-notice {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    color: #ffffff;
    border: 1px solid rgba(92, 230, 247, 0.3);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, rgba(41, 215, 239, 0.24), transparent 8rem),
        linear-gradient(135deg, #291253, #6540c8);
    box-shadow: 0 18px 42px rgba(41, 19, 89, 0.2);
}

.auth-card-session > .eyebrow,
.auth-card-session > h2,
.auth-card-session > p {
    display: none;
}

.auth-card-session > .auth-session-notice {
    margin-bottom: 0;
}

.auth-session-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #142044;
    background: var(--ciano-500);
    font-size: 20px;
    font-weight: 900;
}

.auth-session-copy small,
.auth-session-copy strong,
.auth-session-copy span {
    display: block;
}

.auth-session-copy small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-session-copy strong {
    margin-top: 3px;
    font-size: 16px;
}

.auth-session-copy span {
    margin-top: 2px;
    color: #bff8ff;
    font-size: 11px;
}

.auth-session-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-session-actions .btn {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 10px;
    text-align: center;
}

.auth-session-actions .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.auth-link-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--texto-suave);
    font-size: 12px;
}

.auth-link-row a,
.text-link {
    color: var(--roxo-600);
    font-weight: 800;
    text-decoration: none;
}

.account-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-type {
    position: relative;
}

.account-type input {
    position: absolute;
    opacity: 0;
}

.account-type label {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--linha);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.account-type label strong {
    font-size: 13px;
}

.account-type label small {
    margin-top: 3px;
    color: var(--texto-suave);
    font-size: 10px;
}

.account-type input:checked + label {
    border-color: var(--roxo-500);
    background: var(--roxo-50);
    box-shadow: 0 0 0 3px rgba(107, 66, 232, 0.09);
}

/* Página inicial */
.landing {
    background:
        radial-gradient(circle at 90% 52%, rgba(41, 215, 239, 0.08), transparent 24rem),
        #f6f3fb;
}

.landing .app-header {
    position: relative;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 25%, rgba(41, 215, 239, 0.25), transparent 22rem),
        radial-gradient(circle at 9% 86%, rgba(123, 90, 240, 0.26), transparent 28rem),
        linear-gradient(135deg, #1d103e 0%, #3c1e7f 48%, #5d32c2 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 80px;
    background: #f6f3fb;
    clip-path: polygon(0 78%, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
    width: min(calc(100% - 40px), var(--largura));
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
    align-items: center;
    margin: 0 auto;
    padding: 70px 0 130px;
}

.hero .eyebrow {
    color: var(--ciano-300);
}

.hero-title {
    color: #ffffff;
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.02;
}

.hero-title span {
    color: var(--ciano-500);
}

.hero-copy {
    max-width: 650px;
    margin: 22px 0 29px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 34px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.hero-proof span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--ciano-500);
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
}

.brand-stage {
    position: relative;
    width: min(100%, 480px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.brand-glow {
    position: absolute;
    width: 245px;
    height: 245px;
    border-radius: 50%;
    background: rgba(50, 218, 244, 0.15);
    filter: blur(25px);
}

.brand-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
}

.brand-orbit-one {
    width: 330px;
    height: 330px;
    animation: orbita 18s linear infinite;
}

.brand-orbit-two {
    width: 430px;
    height: 430px;
    border-style: dashed;
    border-color: rgba(114, 229, 255, 0.18);
    animation: orbita 28s linear infinite reverse;
}

.logo-gigante {
    position: relative;
    z-index: 2;
    width: 250px;
    height: 180px;
    animation: abastora-flutuar 3s ease-in-out infinite;
    filter: drop-shadow(0 0 36px rgba(73, 220, 255, 0.45));
}

.logo-gigante .elo {
    position: absolute;
    top: 37px;
    width: 158px;
    height: 95px;
    border: 18px solid currentColor;
    border-radius: 999px;
    background: transparent;
}

.logo-gigante .elo1 {
    z-index: 1;
    left: 4px;
    color: #ffffff;
    animation: elo-grande-esquerdo 2.4s ease-in-out infinite;
}

.logo-gigante .elo2 {
    z-index: 2;
    right: 4px;
    color: #48dcff;
    animation: elo-grande-direito 2.4s ease-in-out infinite;
}

.logo-gigante::after {
    content: "";
    position: absolute;
    left: 105px;
    top: 65px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 4;
    background: #ffffff;
    box-shadow: 0 0 36px #ffffff, 0 0 74px #48dcff;
    animation: pulso-abastora 1.5s ease-in-out infinite;
}

@keyframes elo-grande-esquerdo {
    0%, 100% { transform: rotate(-28deg) translateX(0); }
    50% { transform: rotate(-28deg) translateX(10px); }
}

@keyframes elo-grande-direito {
    0%, 100% { transform: rotate(28deg) translateX(0); }
    50% { transform: rotate(28deg) translateX(-10px); }
}

.brand-chip {
    position: absolute;
    z-index: 3;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(29, 16, 62, 0.54);
    box-shadow: 0 14px 34px rgba(12, 5, 32, 0.22);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-chip-one {
    left: 0;
    top: 24%;
}

.brand-chip-two {
    right: -2%;
    top: 39%;
}

.brand-chip-three {
    left: 13%;
    bottom: 15%;
}

@keyframes orbita {
    to { transform: rotate(360deg); }
}

.mock-window {
    position: absolute;
    inset: 30px 0 0 25px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 35px 80px rgba(15, 5, 38, 0.35);
    backdrop-filter: blur(14px);
    transform: rotate(2deg);
}

.mock-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.mock-toolbar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.mock-content {
    height: 335px;
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 12px;
}

.mock-side,
.mock-main {
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.93);
}

.mock-side {
    padding: 18px 12px;
}

.mock-line {
    height: 9px;
    margin-bottom: 13px;
    border-radius: 99px;
    background: #dfd8ee;
}

.mock-line:nth-child(2n) {
    width: 72%;
}

.mock-main {
    padding: 16px;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.mock-stat {
    height: 74px;
    border-radius: 13px;
    background: linear-gradient(145deg, #f3effb, #ebe5f8);
}

.mock-chart {
    position: relative;
    height: 145px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 14px;
    background: #f6f3fb;
}

.mock-chart::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 8%;
    bottom: 25%;
    height: 50%;
    border-bottom: 5px solid var(--roxo-500);
    border-radius: 50% 60% 0 0;
    transform: skewY(-8deg);
}

.floating-pill {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--tinta);
    box-shadow: 0 18px 40px rgba(15, 5, 38, 0.24);
    font-size: 12px;
    font-weight: 800;
}

.floating-pill.one {
    left: 0;
    top: 0;
}

.floating-pill.two {
    right: -15px;
    bottom: 15px;
}

.landing-section {
    width: min(calc(100% - 40px), var(--largura));
    margin: 0 auto;
    padding: 90px 0;
}

.landing-section.center {
    text-align: center;
}

.landing-section.center .section-copy {
    max-width: 680px;
    margin: 10px auto 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 38px;
}

.value-card {
    --value-accent: #6b42e8;
    position: relative;
    overflow: hidden;
    padding: 27px;
    border: 1px solid var(--linha);
    border-radius: 21px;
    background: linear-gradient(145deg, #ffffff, #f7f2ff);
    text-align: left;
    box-shadow: 0 12px 38px rgba(42, 24, 85, 0.06);
}

.value-card:nth-child(2) {
    --value-accent: #0ca9c4;
    background: linear-gradient(145deg, #ffffff, #effcff);
}

.value-card:nth-child(3) {
    --value-accent: #168c67;
    background: linear-gradient(145deg, #ffffff, #f0fbf6);
}

.value-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--value-accent);
}

.value-card .quick-icon {
    background: linear-gradient(145deg, var(--roxo-100), #e2fafe);
}

.value-card h3 {
    margin: 18px 0 8px;
}

.value-card p {
    margin: 0;
    color: var(--texto-suave);
    font-size: 13px;
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 58px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--roxo-900), var(--roxo-600));
    box-shadow: var(--sombra-forte);
}

.cta-band::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.cta-band h2 {
    max-width: 690px;
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.cta-band p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.7);
}

.landing-footer {
    padding: 38px 20px;
    color: rgba(255, 255, 255, 0.7);
    background: var(--roxo-950);
    text-align: center;
    font-size: 12px;
}

.landing-footer .footer-brand {
    width: max-content;
    margin: 0 auto 13px;
    font-size: 20px;
}

.landing-footer .footer-brand .logo-icon {
    scale: 0.82;
}

.landing-footer p {
    margin: 0;
}

/* IA Abastora — conversa de teste e integração online opcional */
.ai-dock {
    position: fixed;
    z-index: 85;
    right: 22px;
    bottom: 22px;
}

.ai-trigger {
    min-width: 214px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px 8px 9px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background:
        radial-gradient(circle at 15% 15%, rgba(41, 215, 239, 0.22), transparent 5rem),
        linear-gradient(135deg, #281553, #6339d1);
    box-shadow: 0 18px 48px rgba(37, 18, 82, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 58px rgba(37, 18, 82, 0.42);
}

.ai-trigger-mark,
.ai-brand-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    flex: 0 0 47px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
}

.ai-trigger-mark .logo-icon,
.ai-brand-icon .logo-icon {
    scale: 0.72;
}

.ai-trigger-copy {
    display: grid;
    min-width: 86px;
    text-align: left;
}

.ai-trigger-copy strong {
    font-size: 13px;
    line-height: 1.15;
}

.ai-trigger-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
}

.ai-beta {
    margin-left: auto;
    padding: 5px 7px;
    border-radius: 999px;
    color: #bcf8ff;
    background: rgba(41, 215, 239, 0.12);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(420px, calc(100vw - 28px));
    max-height: min(690px, calc(100vh - 110px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(78, 52, 139, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(31, 14, 72, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    transform-origin: bottom right;
    transition: 0.2s ease;
}

.ai-dock.aberto .ai-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 15px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 0%, rgba(41, 215, 239, 0.18), transparent 8rem),
        linear-gradient(125deg, #211045, #5630bc);
}

.ai-panel-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ai-panel-brand strong,
.ai-panel-brand small {
    display: block;
}

.ai-panel-brand strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
}

.ai-panel-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
}

.ai-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 21px;
    cursor: pointer;
}

.ai-panel-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px;
}

.ai-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border: 1px solid #d8cef3;
    border-radius: 999px;
    color: var(--roxo-700);
    background: var(--roxo-50);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ciano-500);
    box-shadow: 0 0 10px rgba(41, 215, 239, 0.8);
}

.ai-chat-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai-chat-intro > p {
    max-width: 235px;
    margin: 0;
    color: var(--texto-suave);
    font-size: 10px;
    line-height: 1.35;
    text-align: right;
}

.ai-messages {
    min-height: 210px;
    height: min(300px, 34vh);
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #e8e1f4;
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(41, 215, 239, 0.08), transparent 10rem),
        #f8f6fc;
    scroll-behavior: smooth;
}

.ai-message {
    display: flex;
}

.ai-message-usuario {
    justify-content: flex-end;
}

.ai-message-bubble {
    max-width: 88%;
    padding: 10px 11px;
    border: 1px solid #e4dcef;
    border-radius: 15px 15px 15px 5px;
    color: var(--texto);
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(55, 31, 101, 0.06);
}

.ai-message-usuario .ai-message-bubble {
    color: #ffffff;
    border-color: transparent;
    border-radius: 15px 15px 5px 15px;
    background: linear-gradient(135deg, var(--roxo-700), #7248dc);
}

.ai-message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.48;
}

.ai-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.ai-message-actions a {
    padding: 6px 8px;
    color: var(--roxo-800);
    border: 1px solid #d9cef1;
    border-radius: 9px;
    background: #f6f1ff;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.ai-quick-prompts {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.ai-quick-prompts button {
    flex: 0 0 auto;
    padding: 7px 9px;
    color: var(--roxo-800);
    border: 1px solid #ded3f2;
    border-radius: 999px;
    background: #fbf9ff;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
}

.ai-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.ai-form textarea {
    width: 100%;
    min-height: 48px;
    max-height: 112px;
    resize: vertical;
    padding: 11px 12px;
    color: var(--texto);
    border: 1px solid #d8cdeb;
    border-radius: 13px;
    background: #ffffff;
    font: inherit;
    font-size: 11px;
    line-height: 1.4;
}

.ai-form textarea:focus {
    border-color: var(--ciano-500);
    outline: 3px solid rgba(41, 215, 239, 0.13);
}

.ai-form button {
    min-height: 48px;
    padding: 0 14px;
    color: #ffffff;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--roxo-700), #7248dc);
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.ai-form button:disabled,
.ai-form textarea:disabled {
    cursor: wait;
    opacity: 0.65;
}

.ai-panel-body h2 {
    margin: 13px 0 7px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 21px;
    line-height: 1.15;
}

.ai-panel-body > p {
    margin: 0;
    color: var(--texto-suave);
    font-size: 12px;
}

.ai-coming-grid {
    display: grid;
    gap: 8px;
    margin-top: 17px;
}

.ai-coming-grid > div {
    display: grid;
    grid-template-columns: 35px 1fr;
    column-gap: 9px;
    padding: 10px;
    border: 1px solid #ebe5f5;
    border-radius: 13px;
    background: linear-gradient(145deg, #ffffff, #faf8ff);
}

.ai-coming-grid > div > span {
    grid-row: 1 / 3;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--roxo-700);
    background: var(--roxo-100);
}

.ai-coming-grid strong {
    font-size: 11px;
}

.ai-coming-grid small {
    margin-top: 1px;
    color: var(--texto-suave);
    font-size: 9px;
}

.ai-note {
    margin-top: 0;
    padding: 10px 11px;
    border-radius: 12px;
    color: #726a83;
    background: #f3f0f8;
    font-size: 9px;
    text-align: center;
}

.ai-import-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ai-import-tools > button {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 8px;
    padding: 9px;
    color: var(--roxo-900);
    border: 1px solid #dbd0ef;
    border-radius: 13px;
    background: linear-gradient(145deg, #ffffff, #f6f1ff);
    text-align: left;
    cursor: pointer;
}

.ai-import-tools > button > span {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--roxo-700), var(--ciano-500));
    font-size: 15px;
}

.ai-import-tools strong,
.ai-import-tools small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-import-tools strong {
    font-size: 10px;
}

.ai-import-tools small {
    align-self: start;
    color: var(--texto-suave);
    font-size: 8px;
}

.ai-review-head .eyebrow {
    display: block;
    margin-bottom: 5px;
}

.ai-review-warning {
    margin-bottom: 16px;
}

.ai-review-list {
    display: grid;
    gap: 14px;
}

.ai-product-review {
    padding: 16px;
    border: 1px solid #ddd2ef;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(41, 215, 239, 0.1), transparent 13rem),
        linear-gradient(145deg, #ffffff, #faf7ff);
    box-shadow: 0 12px 32px rgba(45, 23, 91, 0.08);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.ai-product-review.nao-selecionado {
    opacity: 0.48;
    filter: grayscale(0.65);
}

.ai-product-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.ai-product-review-top label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--roxo-900);
    cursor: pointer;
}

.ai-product-review-top > span {
    padding: 5px 8px;
    color: var(--roxo-700);
    border: 1px solid #dacdf0;
    border-radius: 999px;
    background: var(--roxo-50);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-product-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.ai-product-review-grid .field-full {
    grid-column: 1 / -1;
}

.ai-review-negotiable {
    margin-top: 11px;
}

.ai-review-actions {
    position: sticky;
    z-index: 3;
    bottom: -26px;
    margin: 18px -26px -26px;
    padding: 15px 26px;
    border-top: 1px solid #e7e0f2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

/* Entrada de boas-vindas — aparece uma vez após entrar ou cadastrar */
.welcome-overlay {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 42%, rgba(41, 215, 239, 0.22), transparent 22rem),
        radial-gradient(circle at 8% 12%, rgba(141, 93, 255, 0.38), transparent 27rem),
        linear-gradient(135deg, #190a3b 0%, #3c177e 52%, #642dcc 100%);
    opacity: 0;
    transition: opacity 0.42s ease;
}

.welcome-overlay::before,
.welcome-overlay::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-overlay::before {
    width: min(68vw, 760px);
    height: min(68vw, 760px);
    box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025);
}

.welcome-overlay::after {
    width: min(88vw, 1040px);
    height: min(88vw, 1040px);
    border-style: dashed;
    opacity: 0.55;
    animation: orbita 38s linear infinite;
}

.welcome-overlay.visivel {
    opacity: 1;
}

.welcome-overlay.saindo {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
}

.welcome-brand {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    opacity: 0;
    transform: translateY(14px) scale(0.82);
    transition: opacity 0.45s ease, transform 0.7s cubic-bezier(.2,.82,.22,1);
    will-change: transform;
}

.welcome-overlay.visivel .welcome-brand {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.welcome-brand .logo-icon {
    margin: 0 35px;
    scale: 2.2;
}

.welcome-message {
    max-width: 680px;
    margin-top: 58px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease 0.22s, transform 0.55s ease 0.22s;
}

.welcome-overlay.visivel .welcome-message {
    opacity: 1;
    transform: translateY(0);
}

.welcome-overlay.movendo .welcome-message {
    opacity: 0;
    transform: translateY(12px);
    transition-delay: 0s;
}

.welcome-message small,
.welcome-message strong {
    display: block;
}

.welcome-message small {
    color: var(--ciano-300);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.welcome-message strong {
    margin-top: 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(29px, 5vw, 52px);
    line-height: 1.08;
}

.welcome-message p {
    max-width: 560px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

/* Identidade Abastora — visual unificado dos painéis */
.action-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo {
    position: relative;
    isolation: isolate;
}

.logo-wordmark {
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 18px rgba(12, 5, 34, 0.25);
}

.logo-shine {
    position: absolute;
    z-index: -1;
    left: 38px;
    top: 50%;
    width: 58%;
    height: 30px;
    border-radius: 50%;
    background: rgba(69, 224, 247, 0.24);
    filter: blur(18px);
    translate: 0 -50%;
    opacity: 0.55;
    animation: brilho-marca 3.2s ease-in-out infinite;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 12px rgba(73, 220, 255, 0.75));
}

@keyframes brilho-marca {
    0%, 100% { opacity: 0.32; scale: 0.88; }
    50% { opacity: 0.72; scale: 1.08; }
}

body.abastora-interna {
    --app-deep: #1d0c45;
    --app-mid: #4f20a7;
    --app-bright: #7442e8;
    --app-accent: #39d9f0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 7% 7%, color-mix(in srgb, var(--app-accent) 48%, transparent), transparent 25rem),
        radial-gradient(circle at 94% 25%, color-mix(in srgb, var(--app-bright) 76%, transparent), transparent 38rem),
        radial-gradient(circle at 44% 108%, rgba(58, 231, 206, 0.2), transparent 32rem),
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(138deg, #13052e 0%, var(--app-mid) 48%, #21105b 100%);
    background-size: auto, auto, auto, 42px 42px, 42px 42px, auto;
    background-attachment: fixed;
}

body.abastora-interna[data-app-role="comerciante"] {
    --app-deep: #08143d;
    --app-mid: #2d2ca5;
    --app-bright: #1767e8;
    --app-accent: #37d9ef;
}

body.abastora-interna[data-app-role="fornecedor"] {
    --app-deep: #19043e;
    --app-mid: #5018ad;
    --app-bright: #8b40f4;
    --app-accent: #3bdff4;
}

body.abastora-interna[data-app-role="funcionario"] {
    --app-deep: #131849;
    --app-mid: #34258f;
    --app-bright: #3f87bf;
    --app-accent: #48e8ca;
}

body.abastora-interna[data-app-role="admin"] {
    --app-deep: #200d3f;
    --app-mid: #51205f;
    --app-bright: #a03d83;
    --app-accent: #55e2ef;
}

body.abastora-interna[data-app-role="transportadora"],
body.abastora-interna[data-app-role="entregador"] {
    --app-deep: #082b43;
    --app-mid: #125881;
    --app-bright: #168db2;
    --app-accent: #4ce4bd;
}

.abastora-interna .app-header {
    background:
        radial-gradient(circle at 7% -30%, color-mix(in srgb, var(--app-accent) 46%, transparent), transparent 20rem),
        radial-gradient(circle at 88% 180%, color-mix(in srgb, var(--app-bright) 62%, transparent), transparent 31rem),
        linear-gradient(105deg, color-mix(in srgb, var(--app-deep) 96%, transparent), color-mix(in srgb, var(--app-mid) 97%, transparent));
    box-shadow: 0 14px 40px rgba(12, 5, 38, 0.28);
}

.abastora-interna .page-shell {
    padding-top: 34px;
}

.abastora-interna .page-shell::after {
    content: "";
    position: fixed;
    z-index: -1;
    right: -110px;
    bottom: -130px;
    width: 380px;
    height: 380px;
    border: 1px dashed rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.018), 0 0 0 105px rgba(255, 255, 255, 0.012);
    animation: orbita 55s linear infinite;
    pointer-events: none;
}

.abastora-interna .page-head,
body[data-page^="painel-"] .page-head {
    min-height: 184px;
    border-color: rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 87% 8%, color-mix(in srgb, var(--app-accent) 42%, transparent), transparent 20rem),
        radial-gradient(circle at 3% 130%, color-mix(in srgb, var(--app-bright) 68%, transparent), transparent 24rem),
        linear-gradient(120deg, rgba(20, 7, 54, 0.88), color-mix(in srgb, var(--app-mid) 83%, transparent));
    box-shadow: 0 28px 72px rgba(10, 3, 31, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
}

.abastora-interna .page-head::before {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.09), transparent 27%, transparent 68%, rgba(58, 227, 245, 0.12)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 16px);
}

.abastora-interna .page-brand-watermark {
    right: 10%;
    opacity: 0.28;
    scale: 4.5;
    filter: drop-shadow(0 0 13px color-mix(in srgb, var(--app-accent) 65%, transparent));
}

.abastora-interna .page-brand-watermark::before {
    content: "";
    position: absolute;
    inset: -26px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    animation: orbita 28s linear infinite;
}

.abastora-interna .page-head h1 {
    max-width: 760px;
    text-shadow: 0 6px 24px rgba(13, 4, 38, 0.26);
}

.abastora-interna .section-heading .section-title,
.abastora-interna .section-heading h2 {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(12, 4, 35, 0.2);
}

.abastora-interna .section-heading .section-copy {
    color: rgba(255, 255, 255, 0.7);
}

.abastora-interna .card .section-copy,
.abastora-interna .list-card .section-copy,
.abastora-interna .order-card .section-copy {
    color: var(--texto-suave);
}

.abastora-interna .card,
.abastora-interna .toolbar,
.abastora-interna .table-wrap,
.abastora-interna .list-card,
.abastora-interna .order-card,
.abastora-interna .product-card,
.abastora-interna .empty-state {
    border-color: rgba(255, 255, 255, 0.58);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--app-accent) 13%, transparent), transparent 17rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), color-mix(in srgb, var(--app-bright) 9%, #ffffff));
    box-shadow: 0 22px 58px rgba(11, 4, 35, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.abastora-interna .stat-card {
    min-height: 164px;
    border-color: color-mix(in srgb, var(--stat-accent) 32%, #ffffff);
    box-shadow: 0 20px 52px rgba(12, 5, 36, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--stat-accent) 28%, transparent), transparent 11rem),
        linear-gradient(145deg, #ffffff 20%, color-mix(in srgb, var(--stat-cor) 56%, #ffffff) 115%);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.abastora-interna .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 27px 64px rgba(12, 5, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-icon .action-icon {
    width: 21px;
    height: 21px;
}

.abastora-interna .quick-card {
    min-height: 168px;
    border-color: color-mix(in srgb, var(--quick-color) 32%, #ffffff);
    box-shadow: 0 19px 48px rgba(12, 5, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 104% -8%, color-mix(in srgb, var(--quick-color) 27%, transparent), transparent 11rem),
        linear-gradient(145deg, #ffffff 12%, var(--quick-soft) 120%);
}

.abastora-interna .quick-card:nth-child(6n + 1) {
    --quick-color: #7142e7;
    --quick-soft: #eee8ff;
}

.abastora-interna .quick-card:nth-child(6n + 2) {
    --quick-color: #079fbe;
    --quick-soft: #e1faff;
}

.abastora-interna .quick-card:nth-child(6n + 3) {
    --quick-color: #d77d11;
    --quick-soft: #fff2dc;
}

.abastora-interna .quick-card:nth-child(6n + 4) {
    --quick-color: #128a64;
    --quick-soft: #e2f8ef;
}

.abastora-interna .quick-card:nth-child(6n + 5) {
    --quick-color: #c44079;
    --quick-soft: #ffe8f1;
}

.abastora-interna .quick-card:nth-child(6n) {
    --quick-color: #296fd0;
    --quick-soft: #e6f0ff;
}

.abastora-interna .quick-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -55px;
    width: 128px;
    height: 128px;
    border: 1px solid color-mix(in srgb, var(--quick-color) 18%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 18px color-mix(in srgb, var(--quick-color) 5%, transparent);
    pointer-events: none;
}

.abastora-interna .quick-card:hover {
    transform: translateY(-6px) scale(1.01);
}

.quick-icon .action-icon {
    width: 23px;
    height: 23px;
}

.abastora-interna .page-head .btn-primary {
    color: #1c1240;
    background: linear-gradient(135deg, #38dcf2, #95f3fc);
    box-shadow: 0 14px 34px rgba(41, 215, 239, 0.27);
}

.abastora-interna .page-back {
    padding-left: 11px;
    border-radius: 14px;
}

.abastora-interna .page-back .interface-icon {
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
}

.notification-wrap {
    position: relative;
}

.notification-btn {
    overflow: visible;
    min-width: 92px;
    color: #dcfbff;
    border-color: rgba(95, 235, 255, 0.34);
    background: linear-gradient(145deg, rgba(50, 222, 246, 0.22), rgba(255, 255, 255, 0.07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 24px rgba(8, 3, 30, 0.16);
}

.notification-btn .interface-icon {
    transition: transform 0.2s ease;
}

.notification-btn:hover .interface-icon,
.notification-btn.tem-novas .interface-icon {
    transform: rotate(-8deg);
}

.notification-pulse {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

.notification-btn.tem-novas .notification-pulse {
    background: #63ecff;
    box-shadow: 0 0 0 4px rgba(99, 236, 255, 0.14), 0 0 14px #63ecff;
    animation: pulso-notificacao 1.8s ease-in-out infinite;
}

@keyframes pulso-notificacao {
    50% { scale: 1.35; opacity: 0.72; }
}

.notification-count {
    right: -7px;
    top: -7px;
    border-color: var(--app-mid, var(--roxo-800));
    box-shadow: 0 7px 16px rgba(8, 2, 28, 0.28);
}

.notification-popover {
    position: absolute;
    z-index: 120;
    right: 0;
    top: calc(100% + 14px);
    width: min(410px, calc(100vw - 24px));
    max-height: min(72vh, 620px);
    overflow: hidden;
    color: var(--tinta);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 32px 90px rgba(10, 3, 31, 0.42);
    transform-origin: top right;
    animation: abrir-notificacoes 0.2s ease both;
}

@keyframes abrir-notificacoes {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 0%, rgba(52, 220, 242, 0.3), transparent 9rem),
        linear-gradient(125deg, var(--app-deep, #211045), var(--app-mid, #5630bc));
}

.notification-head strong,
.notification-kicker {
    display: block;
}

.notification-head strong {
    margin-top: 2px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 17px;
}

.notification-kicker {
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.notification-read-all,
.notification-ok {
    padding: 7px 9px;
    color: #d5faff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 9px;
    font-weight: 800;
}

.notification-read-all {
    cursor: pointer;
}

.notification-list {
    max-height: min(60vh, 510px);
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 11px;
    align-items: start;
    padding: 12px;
    color: inherit;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.notification-item + .notification-item {
    border-top: 1px solid #eeeaf6;
}

.notification-item:hover {
    background: #f7f3ff;
    transform: translateX(2px);
}

.notification-item.nova {
    background: linear-gradient(120deg, #f5f0ff, #effcff);
}

.notification-symbol {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--roxo-700);
    border-radius: 13px;
    background: var(--roxo-100);
}

.notification-copy,
.notification-copy strong,
.notification-copy span,
.notification-copy small {
    display: block;
}

.notification-copy strong {
    font-size: 12px;
}

.notification-copy span {
    margin-top: 2px;
    color: var(--texto);
    font-size: 10px;
    line-height: 1.45;
}

.notification-copy small {
    margin-top: 5px;
    color: var(--texto-suave);
    font-size: 9px;
}

.notification-unread {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--ciano-500);
    box-shadow: 0 0 10px rgba(41, 215, 239, 0.7);
}

.notification-empty {
    display: grid;
    justify-items: center;
    padding: 36px 24px;
    text-align: center;
}

.notification-empty .action-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    color: var(--roxo-600);
}

.notification-empty strong {
    font-size: 14px;
}

.notification-empty span {
    max-width: 250px;
    margin-top: 5px;
    color: var(--texto-suave);
    font-size: 11px;
}

.logout-btn {
    border-color: rgba(255, 190, 210, 0.25);
    background: linear-gradient(135deg, rgba(225, 66, 112, 0.22), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(8, 3, 30, 0.16);
}

.logout-btn:hover {
    border-color: rgba(255, 196, 214, 0.48);
    background: linear-gradient(135deg, rgba(225, 66, 112, 0.36), rgba(255, 255, 255, 0.14));
}

.welcome-overlay {
    background:
        radial-gradient(circle at 50% 42%, rgba(41, 215, 239, 0.3), transparent 23rem),
        radial-gradient(circle at 7% 10%, rgba(141, 93, 255, 0.5), transparent 28rem),
        radial-gradient(circle at 94% 84%, rgba(34, 205, 185, 0.2), transparent 24rem),
        linear-gradient(135deg, #160732 0%, #3b147d 50%, #672ed0 100%);
}

.welcome-content::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -100px;
    width: min(80vw, 700px);
    height: 220px;
    border-radius: 50%;
    background: rgba(48, 222, 245, 0.12);
    filter: blur(65px);
    translate: -50% 0;
    pointer-events: none;
}

.welcome-brand {
    text-shadow: 0 10px 35px rgba(9, 2, 30, 0.35);
}

.welcome-brand .logo-icon {
    filter: drop-shadow(0 0 17px rgba(73, 220, 255, 0.72));
}

.welcome-profile {
    display: inline-flex;
    margin-top: 15px;
    padding: 7px 12px;
    color: #d8fbff;
    border: 1px solid rgba(120, 235, 249, 0.28);
    border-radius: 999px;
    background: rgba(23, 7, 58, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-trigger {
    isolation: isolate;
}

.ai-trigger::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -5px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(41, 215, 239, 0.42), rgba(120, 67, 232, 0.28));
    filter: blur(12px);
    opacity: 0.56;
    animation: brilho-marca 3s ease-in-out infinite;
}

.auth-copy #authLogo .logo {
    width: fit-content;
    margin-bottom: 44px;
    font-size: clamp(25px, 3vw, 36px);
}

.auth-copy #authLogo .logo-icon {
    scale: 1.18;
    margin-right: 5px;
}

.auth-aside {
    background:
        radial-gradient(circle at 18% 18%, rgba(41, 215, 239, 0.26), transparent 19rem),
        radial-gradient(circle at 98% 75%, rgba(129, 83, 241, 0.54), transparent 25rem),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 18px),
        linear-gradient(145deg, #190a3b, #4e20aa 67%, #26105a);
}

.auth-card {
    border-color: rgba(221, 211, 244, 0.95);
    background:
        radial-gradient(circle at 100% 0%, rgba(41, 215, 239, 0.1), transparent 16rem),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 34px 90px rgba(42, 24, 85, 0.2);
}

/* Modal, mensagens e carregamento */
.modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(23, 13, 48, 0.64);
    backdrop-filter: blur(6px);
}

.modal {
    width: min(100%, 580px);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(18, 8, 42, 0.35);
}

.modal-large {
    width: min(100%, 820px);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.modal-head h2 {
    margin: 0;
    font-size: 22px;
}

.modal-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 10px;
    background: #f1eef6;
    cursor: pointer;
}

.toast-stack {
    position: fixed;
    z-index: 200;
    right: 20px;
    bottom: 20px;
    width: min(calc(100% - 40px), 380px);
    display: grid;
    gap: 9px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    color: #ffffff;
    border-radius: 13px;
    background: var(--roxo-950);
    box-shadow: 0 18px 45px rgba(18, 8, 42, 0.3);
    animation: toast-in 0.25s ease both;
    font-size: 12px;
}

.toast.sucesso {
    background: #087752;
}

.toast.erro {
    background: #a92b42;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.empty-state,
.loading-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 35px;
    border: 1px dashed #d7d0e4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--texto-suave);
    text-align: center;
}

.empty-state strong,
.loading-state strong {
    display: block;
    color: var(--tinta);
    font-size: 16px;
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 18px;
    color: var(--roxo-700);
    background: var(--roxo-100);
    font-size: 25px;
}

.spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 13px;
    border: 4px solid #e1dbea;
    border-top-color: var(--roxo-600);
    border-radius: 50%;
    animation: girar 0.8s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
}

.pagination button {
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--linha);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.pagination button.ativo {
    color: #ffffff;
    border-color: var(--roxo-600);
    background: var(--roxo-600);
}

/* Responsivo */
@media (max-width: 1100px) {
    .header-nav {
        position: fixed;
        inset: 82px 0 0 auto;
        width: min(88vw, 360px);
        height: calc(100vh - 82px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 20px;
        background: var(--roxo-950);
        box-shadow: -20px 20px 60px rgba(18, 8, 42, 0.32);
        transform: translateX(105%);
        transition: transform 0.24s ease;
    }

    .menu-aberto .header-nav {
        transform: translateX(0);
    }

    .header-nav a {
        padding: 13px 14px;
        font-size: 14px;
    }

    .menu-btn {
        display: inline-grid;
    }

    .header-user {
        margin-left: 0;
    }

    .stats-grid,
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-inner {
        grid-template-columns: 1fr 0.8fr;
    }
}

@media (max-width: 860px) {
    .stats-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-grid,
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: auto;
        padding: 30px;
    }

    .auth-copy {
        display: block;
        margin: 0 auto;
    }

    .auth-copy > h1,
    .auth-copy > p,
    .auth-copy > .auth-benefits {
        display: none;
    }

    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 55px;
    }

    .hero-visual {
        max-width: 620px;
        width: 100%;
        min-height: 350px;
        margin: 0 auto;
    }

    .brand-stage {
        scale: 0.88;
    }

    .cta-band {
        padding: 38px 28px;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .page-shell,
    .hero-inner,
    .landing-section {
        width: min(calc(100% - 24px), var(--largura));
    }

    .header-inner {
        min-height: 70px;
        gap: 10px;
    }

    .logo {
        gap: 5px;
        font-size: 15px;
        letter-spacing: 0.8px;
    }

    .logo-icon {
        width: 54px;
        height: 40px;
        flex-basis: 54px;
        margin-inline: -7px;
        transform-origin: center;
        scale: 0.76;
    }

    .header-nav {
        inset: 70px 0 0 auto;
        height: calc(100vh - 70px);
    }

    .user-copy,
    .user-avatar {
        display: none;
    }

    .header-user {
        gap: 0;
        padding-left: 0;
        border-left: 0;
    }

    .header-actions {
        gap: 5px;
    }

    .header-action {
        min-width: 36px;
        width: 36px;
        height: 36px;
        padding: 0 8px;
        border-radius: 11px;
    }

    .notification-btn .header-action-label {
        display: none;
    }

    .header-back-btn {
        width: 36px;
        min-width: 36px;
    }

    .header-back-btn .header-action-label {
        display: none;
    }

    .logout-btn {
        width: auto;
        min-width: 64px;
    }

    .notification-popover {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 78px;
        width: auto;
        max-height: calc(100vh - 92px);
        border-radius: 20px;
    }

    .notification-list {
        max-height: calc(100vh - 175px);
    }

    .page-shell {
        padding-top: 25px;
    }

    .page-head {
        min-height: 0;
        padding: 78px 21px 24px;
        border-radius: 21px;
    }

    .page-head .page-back-auto {
        top: 15px;
        right: 15px;
        min-height: 45px;
    }

    .page-brand-watermark {
        right: 12%;
        top: 28%;
        opacity: 0.09;
        scale: 2.7;
    }

    .page-head,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-actions,
    .page-actions .btn {
        width: 100%;
    }

    .stats-grid,
    .quick-grid,
    .products-grid,
    .value-grid,
    .form-grid,
    .account-types,
    .negotiation-prices {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 132px;
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar .select {
        width: 100%;
    }

    .product-image-wrap {
        height: 210px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .list-card-head,
    .order-head {
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
    }

    .cart-item img,
    .cart-placeholder {
        width: 60px;
        height: 60px;
    }

    .cart-value {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .auth-main {
        padding: 18px 12px 35px;
    }

    .auth-aside {
        padding: 20px 18px;
    }

    .hero-title {
        font-size: 43px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-proof {
        display: grid;
        gap: 8px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .brand-stage {
        scale: 0.76;
    }

    .brand-chip-one {
        left: -3%;
    }

    .brand-chip-two {
        right: -3%;
    }

    .mock-window {
        inset: 25px 0 0;
    }

    .mock-content {
        grid-template-columns: 1fr;
    }

    .mock-side {
        display: none;
    }

    .floating-pill.two {
        right: 0;
    }

    .landing-section {
        padding: 68px 0;
    }

    .public-actions .btn-secondary {
        display: none;
    }

    .modal {
        padding: 21px;
    }

    .ai-dock {
        right: 12px;
        bottom: 12px;
    }

    .ai-trigger {
        min-width: 58px;
        width: 58px;
        height: 58px;
        justify-content: center;
        padding: 5px;
        border-radius: 18px;
    }

    .ai-trigger-copy,
    .ai-beta {
        display: none;
    }

    .ai-trigger-mark {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }

    .ai-panel {
        bottom: 68px;
        max-height: calc(100vh - 94px);
    }

    .ai-chat-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .ai-chat-intro > p {
        max-width: none;
        text-align: left;
    }

    .ai-messages {
        min-height: 180px;
        height: min(290px, 37vh);
    }

    .welcome-brand {
        gap: 10px;
        font-size: 25px;
        letter-spacing: 0.08em;
    }

    .welcome-brand .logo-icon {
        margin: 0 19px;
        scale: 1.55;
    }

    .welcome-message {
        margin-top: 38px;
    }

    .welcome-message small {
        font-size: 10px;
    }

    .welcome-message p {
        font-size: 13px;
    }

    .welcome-profile {
        margin-top: 12px;
        font-size: 9px;
    }
}

@media (max-width: 390px) {
    .header-inner {
        gap: 6px;
    }

    .header-inner > .logo > span:last-child {
        display: none;
    }

    .header-inner > .logo .logo-wordmark,
    .header-inner > .logo .logo-shine {
        display: none;
    }

    .menu-btn {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Acesso fechado para testes pela internet */
.private-access-page {
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 15% 18%, rgba(41, 215, 239, 0.28), transparent 25rem),
        radial-gradient(circle at 85% 80%, rgba(123, 90, 240, 0.42), transparent 29rem),
        linear-gradient(145deg, #180b39 0%, #3a197f 52%, #21104b 100%);
}

.private-access-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.private-access-card {
    position: relative;
    width: min(100%, 520px);
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
        rgba(27, 12, 61, 0.82);
    box-shadow: 0 30px 90px rgba(7, 3, 25, 0.48);
    backdrop-filter: blur(22px);
    text-align: center;
}

.private-access-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, #29d7ef, #8c66ff, transparent);
}

.private-access-brand {
    position: relative;
    width: 132px;
    height: 105px;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
}

.private-access-halo {
    position: absolute;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(119, 233, 247, 0.34);
    border-radius: 50%;
    box-shadow: inset 0 0 35px rgba(41, 215, 239, 0.14);
    animation: private-halo 3.6s ease-in-out infinite;
}

.private-access-logo {
    position: relative;
    z-index: 2;
    width: 112px;
    height: auto;
    filter: drop-shadow(0 0 17px rgba(72, 220, 255, 0.56));
    animation: logo-v9-flutuar-grande 3.2s ease-in-out infinite !important;
}

.private-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(119, 233, 247, 0.3);
    border-radius: 999px;
    color: #aaf4fb;
    background: rgba(41, 215, 239, 0.1);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.private-access-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #55e8f7;
    box-shadow: 0 0 12px #55e8f7;
}

.private-access-card h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.private-access-card > p {
    max-width: 430px;
    margin: 16px auto 25px;
    color: rgba(255, 255, 255, 0.75);
}

.private-access-form {
    text-align: left;
}

.private-access-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 800;
}

.private-access-input-row {
    position: relative;
    margin-bottom: 14px;
}

.private-access-input-row .input {
    height: 56px;
    padding-right: 90px;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.private-access-input-row .input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.private-access-input-row .input:focus {
    border-color: #62e6f5;
    box-shadow: 0 0 0 4px rgba(41, 215, 239, 0.13);
}

.private-access-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-height: 40px;
    padding: 0 12px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: #aaf4fb;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.private-access-toggle:hover {
    background: rgba(41, 215, 239, 0.1);
}

.private-access-message {
    min-height: 24px;
    margin: 12px 2px 0;
    color: #ffb7c4;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.private-access-message.sucesso {
    color: #8ef4cc;
}

.private-access-note {
    display: flex;
    flex-direction: column;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

.private-access-note strong {
    color: rgba(255, 255, 255, 0.83);
}

@keyframes private-halo {
    0%, 100% { transform: scale(0.92); opacity: 0.55; }
    50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 560px) {
    .private-access-shell {
        padding: 18px 12px;
    }

    .private-access-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .private-access-brand {
        height: 92px;
        transform: scale(0.9);
    }
}

/* =====================================================
   LOGO ORIGINAL ABASTORA — V9
   Arquivo vetorial próprio para não sofrer interferência
   das regras antigas de .elo usadas em páginas diferentes.
===================================================== */
.logo-original-v9 {
    display: block;
    object-fit: contain;
    object-position: center;
    user-select: none;
    pointer-events: none;
    transform-origin: center;
    will-change: transform, filter;
    animation: logo-v9-flutuar 3.2s ease-in-out infinite !important;
}

.logo-icon.logo-original-v9 {
    width: 54px;
    height: 40px;
    flex: 0 0 54px;
    filter:
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.28))
        drop-shadow(0 0 10px rgba(54, 221, 255, 0.54));
}

.logo-gigante.logo-original-v9 {
    width: 300px;
    height: 220px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.28))
        drop-shadow(0 0 34px rgba(44, 222, 255, 0.55));
    animation: logo-v9-flutuar-grande 3.2s ease-in-out infinite !important;
}

.welcome-brand .logo-original-v9 {
    filter:
        drop-shadow(0 0 9px rgba(255, 255, 255, 0.38))
        drop-shadow(0 0 20px rgba(44, 222, 255, 0.72));
}

@keyframes logo-v9-flutuar {
    0%, 100% {
        transform: translateY(0) rotate(0.001deg);
    }
    50% {
        transform: translateY(-3px) rotate(0.001deg);
    }
}

@keyframes logo-v9-flutuar-grande {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.018);
    }
}

.version-confirmation {
    position: fixed;
    z-index: 1200;
    left: 22px;
    bottom: 22px;
    display: grid;
    gap: 2px;
    min-width: 235px;
    padding: 13px 16px 13px 48px;
    color: #ffffff;
    border: 1px solid rgba(109, 239, 255, 0.34);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0 50%, rgba(39, 220, 242, 0.25), transparent 7rem),
        rgba(23, 8, 59, 0.94);
    box-shadow: 0 18px 45px rgba(15, 4, 43, 0.32);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.version-confirmation::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #112041;
    border-radius: 50%;
    background: #55e3f7;
    translate: 0 -50%;
    font-size: 14px;
    font-weight: 900;
}

.version-confirmation strong,
.version-confirmation span {
    display: block;
}

.version-confirmation strong {
    font-size: 13px;
}

.version-confirmation span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.version-confirmation.visivel {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 620px) {
    .auth-session-actions,
    .ai-product-review-grid {
        grid-template-columns: 1fr;
    }

    .ai-product-review-grid .field-full {
        grid-column: auto;
    }

    .ai-review-actions {
        bottom: -21px;
        margin: 16px -21px -21px;
        padding: 13px 21px;
    }

    .logo-gigante.logo-original-v9 {
        width: 245px;
        height: 175px;
    }

    .version-confirmation {
        right: 12px;
        left: 12px;
        bottom: 12px;
        min-width: 0;
    }
}

/* A logo continua se movendo porque o usuário pediu explicitamente a marca animada. */
@media (prefers-reduced-motion: reduce) {
    .logo-original-v9 {
        animation: logo-v9-flutuar 3.2s ease-in-out infinite !important;
    }

    .logo-gigante.logo-original-v9 {
        animation: logo-v9-flutuar-grande 3.2s ease-in-out infinite !important;
    }
}

.private-access-logo.logo-original-v9 {
    width: 112px;
    height: auto;
    animation: logo-v9-flutuar-grande 3.2s ease-in-out infinite !important;
}

/* =====================================================
   V13 — experiência móvel, acesso remoto e contas
   Mantém o visual aprovado e amplia toque, câmera e IA.
===================================================== */
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

.table-wrap,
.ai-messages,
.notification-list {
    -webkit-overflow-scrolling: touch;
}

@supports (min-height: 100dvh) {
    body,
    .private-access-page,
    .private-access-shell,
    .welcome-overlay {
        min-height: 100dvh;
    }
}

/* Em notebooks comuns, o menu recolhe antes de apertar Voltar, Avisos e Sair. */
@media (min-width: 761px) and (max-width: 1450px) {
    .header-nav {
        position: fixed;
        inset: 82px 0 0 auto;
        width: min(88vw, 360px);
        height: calc(100vh - 82px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 20px;
        overflow-y: auto;
        background: var(--roxo-950);
        box-shadow: -20px 20px 60px rgba(18, 8, 42, 0.32);
        transform: translateX(105%);
        transition: transform 0.24s ease;
    }

    .menu-aberto .header-nav {
        transform: translateX(0);
    }

    .header-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 13px 14px;
        font-size: 14px;
    }

    .menu-btn {
        display: inline-grid;
    }
}

@media (max-width: 760px) {
    body {
        background-attachment: scroll;
    }

    body.ai-aberta {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .app-header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .header-inner {
        width: min(calc(100% - 20px), var(--largura));
        min-height: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px 10px;
        padding: 7px 0 8px;
    }

    .header-inner > .logo {
        grid-column: 1 / 3;
        min-width: 0;
    }

    .menu-btn {
        grid-column: 3;
        width: 44px;
        height: 44px;
        margin-left: 0;
        border-radius: 13px;
    }

    .header-user {
        grid-column: 1 / -1;
        width: 100%;
    }

    .user-copy,
    .user-avatar {
        display: none;
    }

    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .header-action,
    .header-back-btn,
    .logout-btn {
        width: 100%;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        gap: 6px;
        padding: 0 9px;
        border-radius: 13px;
    }

    .header-action-label,
    .notification-btn .header-action-label,
    .header-back-btn .header-action-label {
        display: inline !important;
        font-size: 11px;
    }

    .notification-wrap,
    .notification-wrap .notification-btn {
        width: 100%;
        min-width: 0;
    }

    .header-nav {
        inset: calc(112px + env(safe-area-inset-top, 0px)) 0 0 auto;
        height: auto;
        max-height: none;
        padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .header-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .notification-popover {
        position: fixed;
        inset: calc(120px + env(safe-area-inset-top, 0px)) 8px auto;
        width: auto;
        max-height: calc(100dvh - 130px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        border-radius: 18px;
    }

    .notification-list {
        max-height: calc(100dvh - 214px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .page-shell {
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    .btn,
    .input-action,
    .favorite-btn,
    .qty-control button {
        min-height: 48px;
    }

    .input,
    .select,
    .textarea,
    .ai-form textarea,
    .private-access-input-row .input {
        font-size: 16px;
    }

    .table-wrap {
        scroll-snap-type: x proximity;
        overscroll-behavior-inline: contain;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #ffffff;
        box-shadow: 8px 0 15px rgba(35, 18, 72, 0.06);
    }

    .data-table th:first-child {
        background: #fbfafe;
    }

    .ai-dock {
        right: calc(10px + env(safe-area-inset-right, 0px));
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .ai-trigger {
        width: 60px;
        min-width: 60px;
        height: 60px;
        border-radius: 19px;
    }

    .ai-panel {
        position: fixed;
        inset:
            calc(8px + env(safe-area-inset-top, 0px))
            calc(8px + env(safe-area-inset-right, 0px))
            calc(8px + env(safe-area-inset-bottom, 0px))
            calc(8px + env(safe-area-inset-left, 0px));
        width: auto;
        height: auto;
        max-height: none;
        border-radius: 22px;
        transform-origin: bottom right;
    }

    .ai-panel-head {
        min-height: 68px;
        padding: 12px 14px;
    }

    .ai-close {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border-radius: 13px;
    }

    .ai-panel-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .ai-chat-intro {
        flex: 0 0 auto;
    }

    .ai-messages {
        flex: 1 1 auto;
        min-height: 110px;
        height: auto;
        overscroll-behavior: contain;
    }

    .ai-message-bubble p {
        font-size: 13px;
    }

    .ai-quick-prompts {
        flex: 0 0 auto;
        scroll-snap-type: x proximity;
    }

    .ai-quick-prompts button {
        min-height: 42px;
        scroll-snap-align: start;
        font-size: 11px;
    }

    .ai-import-tools {
        flex: 0 0 auto;
    }

    .ai-import-tools > button {
        min-height: 58px;
        padding: 10px;
    }

    .ai-import-tools strong {
        font-size: 11px;
    }

    .ai-import-tools small {
        font-size: 9px;
    }

    .ai-form {
        flex: 0 0 auto;
        grid-template-columns: minmax(0, 1fr) 78px;
    }

    .ai-form textarea {
        min-height: 52px;
        max-height: 104px;
        resize: none;
    }

    .ai-form button {
        min-height: 52px;
        padding-inline: 12px;
        font-size: 12px;
    }

    .ai-note {
        flex: 0 0 auto;
    }

    .modal-backdrop {
        align-items: end;
        padding: env(safe-area-inset-top, 0px) 0 0;
    }

    .modal,
    .modal-large {
        width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px));
        padding: 21px 17px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 24px 24px 0 0;
        scroll-padding-bottom: 88px;
    }

    .ai-review-actions {
        bottom: calc(-18px - env(safe-area-inset-bottom, 0px));
        margin: 16px -17px calc(-18px - env(safe-area-inset-bottom, 0px));
        padding: 13px 17px calc(13px + env(safe-area-inset-bottom, 0px));
    }

    .private-access-page,
    .private-access-shell {
        min-height: 100dvh;
    }

    .private-access-shell {
        padding:
            calc(14px + env(safe-area-inset-top, 0px))
            calc(12px + env(safe-area-inset-right, 0px))
            calc(14px + env(safe-area-inset-bottom, 0px))
            calc(12px + env(safe-area-inset-left, 0px));
    }

    .private-access-card {
        max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        padding: 24px 18px;
        overflow-y: auto;
    }

    .private-access-form .btn {
        min-height: 52px;
    }

    .welcome-overlay {
        min-height: 100dvh;
        padding:
            calc(24px + env(safe-area-inset-top, 0px))
            calc(16px + env(safe-area-inset-right, 0px))
            calc(24px + env(safe-area-inset-bottom, 0px))
            calc(16px + env(safe-area-inset-left, 0px));
    }

    .toast-stack {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        left: calc(12px + env(safe-area-inset-left, 0px));
        width: auto;
    }
}

@media (max-width: 390px) {
    .header-inner {
        width: calc(100% - 16px);
        gap: 7px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-action,
    .header-back-btn,
    .logout-btn {
        padding-inline: 6px;
    }

    .header-action-label,
    .notification-btn .header-action-label,
    .header-back-btn .header-action-label {
        font-size: 10px;
    }

    .ai-panel-brand small,
    .ai-note {
        display: none;
    }
}

/* =====================================================
   V13 — entrada e troca de contas corrigidas no celular
   O cabeçalho público mantém as duas ações visíveis e a
   escolha de conta ocupa uma área própria, sem sobreposição.
===================================================== */
@media (max-width: 760px) {
    body.landing .header-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding-block: 8px 10px;
    }

    body.landing .header-inner > .logo {
        grid-column: 1;
        grid-row: 1;
        width: fit-content;
        min-width: 0;
    }

    body.landing .public-actions {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin: 0;
    }

    body.landing .public-actions .btn,
    body.landing .public-actions .btn-secondary {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        display: inline-flex;
        padding-inline: 10px;
        white-space: normal;
        text-align: center;
    }

    .auth-page {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow-x: clip;
    }

    .auth-aside {
        min-height: 88px;
        flex: 0 0 auto;
        padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 16px;
    }

    .auth-copy #authLogo .logo {
        margin-bottom: 0;
    }

    .auth-main {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        display: block;
        padding:
            18px
            calc(12px + env(safe-area-inset-right, 0px))
            calc(28px + env(safe-area-inset-bottom, 0px))
            calc(12px + env(safe-area-inset-left, 0px));
    }

    .auth-card {
        width: min(100%, 520px);
        min-width: 0;
        margin: 0 auto;
        padding: 22px 18px;
        border-radius: 22px;
    }

    .auth-page.auth-session-open .auth-aside {
        display: none;
    }

    .auth-page.auth-session-open .auth-main {
        min-height: 100dvh;
        display: grid;
        place-items: center;
        padding-top: calc(18px + env(safe-area-inset-top, 0px));
    }

    .auth-session-notice {
        position: relative;
        isolation: isolate;
        width: 100%;
        min-width: 0;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        margin: 0;
        padding: 16px;
        overflow: hidden;
    }

    .auth-session-icon {
        width: 42px;
        height: 42px;
    }

    .auth-session-copy {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .auth-session-actions {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .auth-session-actions .btn {
        position: relative;
        z-index: 1;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 10px 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 12px;
        line-height: 1.3;
    }

    .auth-link-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    body.landing .header-inner > .logo .logo-wordmark {
        display: inline;
    }

    body.landing .public-actions .btn {
        padding-inline: 7px;
        font-size: 11px;
    }

    .auth-card {
        padding-inline: 15px;
    }

    .auth-session-notice {
        padding: 14px;
    }
}

/* =====================================================
   V15 — aplicativo instalável e celular compacto
   Preserva o desktop aprovado e reduz a rolagem móvel.
===================================================== */
.btn-install,
.header-nav-install {
    color: #1d103e;
    border-color: rgba(72, 220, 255, 0.7);
    background: linear-gradient(135deg, #48dcff, #9af5ff);
    box-shadow: 0 10px 26px rgba(41, 215, 239, 0.2);
}

.header-nav-install {
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(72, 220, 255, 0.7);
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.pwa-install-help {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin: 18px 0 22px;
    padding: 16px;
    border: 1px solid var(--linha);
    border-radius: 18px;
    background: var(--roxo-50);
}

.pwa-install-help img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(35, 16, 80, 0.2);
}

.pwa-steps {
    margin: 0;
    padding-left: 20px;
    color: var(--texto);
    font-size: 13px;
}

.pwa-steps li + li {
    margin-top: 8px;
}

@media (display-mode: standalone) {
    [data-pwa-install] {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 14px;
        line-height: 1.45;
    }

    .header-inner {
        width: calc(100% - 14px);
        gap: 5px 7px;
        padding: 5px 0 6px;
    }

    .header-inner > .logo {
        height: 38px;
    }

    .logo {
        gap: 3px;
        font-size: 14px;
    }

    .logo-icon {
        margin-inline: -9px;
        scale: 0.68;
    }

    .menu-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-action,
    .header-back-btn,
    .logout-btn {
        height: 40px;
        min-height: 40px;
        padding-inline: 7px;
        border-radius: 11px;
    }

    .header-action-label,
    .notification-btn .header-action-label,
    .header-back-btn .header-action-label {
        font-size: 10px;
    }

    .interface-icon {
        width: 17px;
        height: 17px;
    }

    .header-nav {
        inset: calc(94px + env(safe-area-inset-top, 0px)) 0 0 auto;
        padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .header-nav a,
    .header-nav-install {
        min-height: 43px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .notification-popover {
        inset: calc(99px + env(safe-area-inset-top, 0px)) 7px auto;
        max-height: calc(100dvh - 108px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .notification-list {
        max-height: calc(100dvh - 192px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .page-shell,
    .hero-inner,
    .landing-section {
        width: calc(100% - 16px);
    }

    .page-shell {
        padding-top: 14px;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .page-head,
    body[data-page^="painel-"] .page-head {
        min-height: 0;
        margin-bottom: 15px;
        padding: 58px 16px 17px;
        border-radius: 18px;
    }

    .page-head h1,
    .abastora-interna .page-head h1 {
        font-size: clamp(24px, 7.5vw, 28px);
        line-height: 1.08;
    }

    .page-head p {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.4;
    }

    .page-head .eyebrow {
        margin-bottom: 7px;
        font-size: 9px;
    }

    .page-head .page-back-auto {
        top: 10px;
        right: 10px;
        min-height: 38px;
        padding: 0 12px 0 9px;
        font-size: 11px;
    }

    .page-brand-watermark {
        right: 8%;
        scale: 2.2;
    }

    .page-actions {
        gap: 7px;
    }

    .btn,
    .input-action,
    .favorite-btn,
    .qty-control button {
        min-height: 42px;
    }

    .btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .section-block {
        margin-top: 21px;
    }

    .section-heading {
        gap: 9px;
        margin-bottom: 11px;
    }

    .section-title,
    .section-heading h2 {
        font-size: 21px;
        line-height: 1.15;
    }

    .section-copy {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.4;
    }

    .stats-grid,
    .quick-grid,
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-card {
        min-height: 96px;
        padding: 13px;
        border-radius: 15px;
    }

    .stat-icon {
        width: 31px;
        height: 31px;
        margin-bottom: 8px;
        border-radius: 10px;
        font-size: 15px;
    }

    .stat-card small {
        font-size: 10px;
        line-height: 1.25;
    }

    .stat-card strong {
        font-size: 22px;
    }

    .quick-card {
        min-height: 118px;
        padding: 13px;
        border-radius: 15px;
    }

    .quick-card::before {
        top: 13px;
        bottom: 13px;
        width: 3px;
    }

    .quick-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .action-icon {
        width: 20px;
        height: 20px;
    }

    .quick-card h3 {
        margin: 10px 0 3px;
        font-size: 13px;
        line-height: 1.2;
    }

    .quick-card p {
        font-size: 10.5px;
        line-height: 1.32;
    }

    .quick-card .seta {
        right: 12px;
        top: 14px;
        font-size: 13px;
    }

    .card-pad,
    .form-card,
    .list-card,
    .order-card,
    .summary-card {
        padding: 14px;
        border-radius: 16px;
    }

    .list-stack {
        gap: 9px;
    }

    .detail-grid {
        gap: 7px;
        margin-top: 10px;
    }

    .detail-item {
        padding: 9px;
    }

    .alert {
        gap: 9px;
        margin-bottom: 13px;
        padding: 11px 12px;
        font-size: 11.5px;
    }

    .form-grid {
        gap: 12px;
    }

    .field {
        gap: 5px;
    }

    .input,
    .select,
    .textarea {
        min-height: 44px;
        padding: 10px 11px;
        border-radius: 10px;
    }

    .textarea {
        min-height: 90px;
    }

    .check-card,
    .radio-card {
        padding: 11px;
    }

    .form-actions {
        gap: 7px;
        margin-top: 16px;
        padding-top: 14px;
    }

    .toolbar {
        gap: 8px;
        margin-bottom: 13px;
        padding: 10px;
        border-radius: 13px;
    }

    .products-grid {
        gap: 11px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-image-wrap {
        height: 145px;
    }

    .product-image {
        padding: 12px;
    }

    .product-body {
        padding: 14px;
    }

    .product-price {
        margin-top: 9px;
        font-size: 22px;
    }

    .data-table th,
    .data-table td {
        padding: 11px 12px;
    }

    .hero-inner {
        gap: 13px;
        padding: 30px 0 70px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 39px);
        line-height: 1.03;
    }

    .hero-copy {
        margin: 14px 0 17px;
        font-size: 14px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .hero-proof {
        gap: 7px;
        margin-top: 17px;
        font-size: 10px;
    }

    .hero-visual {
        min-height: 210px;
    }

    .brand-stage {
        scale: 0.54;
    }

    .landing-section {
        padding: 42px 0;
    }

    .value-card {
        padding: 14px;
        border-radius: 16px;
    }

    .value-card h3 {
        font-size: 14px;
    }

    .value-card p {
        font-size: 11px;
    }

    .auth-aside {
        min-height: 70px;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    }

    .auth-main {
        padding: 10px 8px calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .auth-card {
        padding: 17px 14px;
        border-radius: 18px;
    }

    .account-type label {
        min-height: 72px;
        padding: 10px;
    }

    .ai-panel {
        inset:
            calc(4px + env(safe-area-inset-top, 0px))
            calc(4px + env(safe-area-inset-right, 0px))
            calc(4px + env(safe-area-inset-bottom, 0px))
            calc(4px + env(safe-area-inset-left, 0px));
        border-radius: 18px;
    }

    .ai-panel-head {
        min-height: 58px;
        padding: 8px 10px;
    }

    .ai-brand-icon {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
    }

    .ai-close {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .ai-panel-body {
        gap: 7px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .ai-chat-intro > p {
        display: none;
    }

    .ai-messages {
        padding: 9px;
        border-radius: 13px;
    }

    .ai-message-bubble {
        padding: 8px 9px;
    }

    .ai-import-tools > button {
        min-height: 48px;
        padding: 7px;
    }

    .ai-form textarea,
    .ai-form button {
        min-height: 48px;
    }

    .pwa-install-help {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        margin: 13px 0 16px;
        padding: 12px;
    }

    .pwa-install-help img {
        width: 64px;
        height: 64px;
        border-radius: 15px;
    }

    .pwa-steps {
        font-size: 11.5px;
    }
}

@media (max-width: 390px) {
    .hero-actions {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: 112px;
        padding: 11px;
    }

    .quick-card p {
        display: none;
    }
}

/* =====================================================
   V15 — IA conectada aos produtos e celular estabilizado
   Painel lateral, botão móvel e revisão utilizável no telefone.
===================================================== */
.ai-trigger {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.ai-dock.arrastando .ai-trigger {
    cursor: grabbing;
    transition: none;
}

.ai-dock.lado-esquerdo {
    right: auto;
    left: 22px;
}

.ai-panel {
    position: fixed;
    inset:
        calc(92px + env(safe-area-inset-top, 0px))
        calc(16px + env(safe-area-inset-right, 0px))
        calc(16px + env(safe-area-inset-bottom, 0px))
        auto;
    width: min(420px, calc(100vw - 32px));
    height: auto;
    max-height: none;
    transform: translateX(18px) scale(0.98);
    transform-origin: center right;
}

.ai-dock.lado-esquerdo .ai-panel {
    right: auto;
    left: calc(16px + env(safe-area-inset-left, 0px));
    transform: translateX(-18px) scale(0.98);
    transform-origin: center left;
}

.ai-dock.aberto .ai-panel,
.ai-dock.lado-esquerdo.aberto .ai-panel {
    transform: translateX(0) scale(1);
}

.ai-window-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ai-side-toggle {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.ai-review-error {
    width: 100%;
    flex: 1 0 100%;
    margin: 0;
}

.products-manage-table tr.produto-importado {
    background: linear-gradient(90deg, rgba(41, 215, 239, 0.12), rgba(238, 233, 255, 0.48));
    box-shadow: inset 4px 0 0 var(--ciano-500);
}

.page-shell,
.page-head > *,
.header-inner > *,
.form-grid > *,
.detail-grid > *,
.stats-grid > *,
.quick-grid > * {
    min-width: 0;
}

@media (max-width: 760px) {
    .ai-dock,
    .ai-dock.lado-esquerdo {
        right: calc(8px + env(safe-area-inset-right, 0px));
        left: auto;
    }

    .ai-dock.lado-esquerdo {
        right: auto;
        left: calc(8px + env(safe-area-inset-left, 0px));
    }

    .ai-panel {
        inset:
            auto
            calc(6px + env(safe-area-inset-right, 0px))
            calc(6px + env(safe-area-inset-bottom, 0px))
            auto;
        width: min(410px, calc(100vw - 12px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
        height: min(78dvh, 720px);
        max-height: calc(100dvh - 104px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        border-radius: 20px;
        transform: translateX(14px) scale(0.98);
    }

    .ai-dock.lado-esquerdo .ai-panel {
        right: auto;
        left: calc(6px + env(safe-area-inset-left, 0px));
        transform: translateX(-14px) scale(0.98);
    }

    .ai-dock.aberto .ai-panel,
    .ai-dock.lado-esquerdo.aberto .ai-panel {
        transform: translateX(0) scale(1);
    }

    .ai-side-toggle {
        min-height: 40px;
        padding-inline: 10px;
        font-size: 10px;
    }

    .ai-product-review-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .ai-product-review {
        padding: 12px;
        border-radius: 15px;
    }

    .ai-product-review-top {
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .ai-product-review-grid .input,
    .ai-product-review-grid .select,
    .ai-product-review-grid .textarea {
        width: 100%;
        max-width: 100%;
    }

    .ai-review-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-review-actions .btn {
        width: 100%;
    }

    .products-manage-wrap {
        overflow: visible;
    }

    .products-manage-table,
    .products-manage-table tbody,
    .products-manage-table tr,
    .products-manage-table td {
        display: block;
        width: 100%;
    }

    .products-manage-table thead {
        display: none;
    }

    .products-manage-table tbody {
        display: grid;
        gap: 11px;
    }

    .products-manage-table tr {
        overflow: hidden;
        border: 1px solid var(--linha);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(42, 24, 85, 0.1);
    }

    .products-manage-table tr.produto-importado {
        border-color: rgba(41, 215, 239, 0.65);
    }

    .products-manage-table td,
    .products-manage-table td:first-child {
        position: static;
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 11px 12px;
        border: 0;
        border-bottom: 1px solid #eee9f6;
        box-shadow: none;
        text-align: left;
    }

    .products-manage-table td:last-child {
        border-bottom: 0;
    }

    .products-manage-table td::before {
        content: attr(data-label);
        color: var(--texto-suave);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .products-manage-table .table-product {
        min-width: 0;
    }

    .products-manage-table .table-product strong,
    .products-manage-table .table-product small {
        overflow-wrap: anywhere;
    }

    .products-manage-table .inline-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .products-manage-table .inline-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .page-head > .page-back:not(.page-back-auto) {
        max-width: 100%;
    }
}

@media (max-width: 390px) {
    .ai-side-toggle span:last-child {
        display: none;
    }

    .ai-side-toggle {
        width: 40px;
        justify-content: center;
        padding: 0;
        font-size: 16px;
    }

    .products-manage-table td,
    .products-manage-table td:first-child {
        grid-template-columns: 66px minmax(0, 1fr);
        padding-inline: 10px;
    }
}
 
/* =====================================================
   V16 — celular sem sobreposição e IA escrita
   Consolida a última camada móvel e bloqueia estouro lateral.
===================================================== */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body > *,
#appHeader,
main,
.app-header,
.header-inner,
.page-shell,
.page-head,
.card,
.table-wrap,
.modal-backdrop,
.modal,
.modal-large {
    max-width: 100%;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

.ai-dock.aberto .ai-trigger {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.82);
}

.ai-enter-hint {
    display: block;
    margin: -5px 2px 0;
    color: var(--texto-suave);
    font-size: 8.5px;
    text-align: right;
}

.written-list-form {
    display: grid;
    gap: 12px;
}

.written-list-input {
    width: 100%;
    min-height: 250px;
    resize: vertical;
    line-height: 1.55;
}

.written-list-example {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    color: var(--texto-suave);
    border: 1px solid #e2d8f2;
    border-radius: 12px;
    background: #faf8fe;
    font-size: 11px;
}

.written-list-example strong {
    color: var(--roxo-800);
}

@media (min-width: 761px) {
    .ai-import-tools > [data-ai-lista] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    html,
    body,
    body.abastora-interna,
    body.landing,
    body.auth-page {
        min-width: 0;
        overflow-x: clip !important;
        touch-action: pan-y;
    }

    body.ai-aberta {
        touch-action: none;
    }

    .header-inner,
    .page-shell,
    .hero-inner,
    .landing-section {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-inline: auto;
    }

    .header-inner > *,
    .header-user,
    .header-actions,
    .page-head > *,
    .page-actions,
    .toolbar > *,
    .form-grid > *,
    .detail-grid > *,
    .list-card-head > *,
    .order-head > *,
    .cart-item > *,
    .modal-head > *,
    .ai-panel-head > *,
    .ai-panel-body > * {
        min-width: 0;
        max-width: 100%;
    }

    .page-head,
    body[data-page^="painel-"] .page-head,
    .abastora-interna .page-head {
        align-items: stretch;
        gap: 14px;
        padding: 58px 16px 17px;
    }

    .page-head h1,
    .page-head p,
    .section-heading h2,
    .section-copy,
    .card,
    .list-card,
    .order-card,
    .alert {
        overflow-wrap: anywhere;
    }

    .page-head > .page-back:not(.page-back-auto),
    .page-head > .btn:not(.page-back-auto) {
        position: relative;
        inset: auto;
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .form-grid,
    .detail-grid,
    .negotiation-prices,
    .account-types {
        grid-template-columns: minmax(0, 1fr);
    }

    .field,
    .field-full,
    .input,
    .select,
    .textarea,
    .check-card,
    .radio-card {
        min-width: 0;
        max-width: 100%;
    }

    .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ai-dock,
    .ai-dock.lado-esquerdo {
        top: auto !important;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100% - 16px);
    }

    .ai-panel,
    .ai-dock.lado-esquerdo .ai-panel {
        position: fixed;
        inset:
            auto
            calc(6px + env(safe-area-inset-right, 0px))
            calc(6px + env(safe-area-inset-bottom, 0px))
            calc(6px + env(safe-area-inset-left, 0px));
        width: auto;
        min-width: 0;
        height: min(82dvh, 720px);
        max-height: calc(100dvh - 82px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        transform: translateY(18px) scale(0.985);
        transform-origin: bottom center;
    }

    .ai-dock.aberto .ai-panel,
    .ai-dock.lado-esquerdo.aberto .ai-panel {
        transform: translateY(0) scale(1);
    }

    .ai-panel-head {
        gap: 8px;
    }

    .ai-panel-brand {
        min-width: 0;
        gap: 8px;
    }

    .ai-panel-brand > div:last-child {
        min-width: 0;
    }

    .ai-panel-brand strong,
    .ai-panel-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ai-window-actions {
        flex: 0 0 auto;
    }

    .ai-panel-body {
        min-width: 0;
        overflow: hidden;
    }

    .ai-quick-prompts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        max-height: none;
        overflow: visible;
    }

    .ai-quick-prompts button {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 7px 8px;
        white-space: normal;
    }

    .ai-import-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .ai-import-tools > button {
        min-height: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 7px 4px;
        text-align: center;
    }

    .ai-import-tools > button > span {
        grid-row: auto;
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    .ai-import-tools strong {
        width: 100%;
        overflow: hidden;
        font-size: 9.5px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ai-import-tools small,
    .ai-enter-hint,
    .ai-note {
        display: none;
    }

    .ai-form {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 76px;
        gap: 6px;
    }

    .ai-form textarea,
    .ai-form button {
        min-width: 0;
        max-width: 100%;
    }

    .modal-backdrop {
        width: 100%;
        overflow-x: clip;
    }

    .modal,
    .modal-large {
        min-width: 0;
        overflow-x: hidden;
    }

    .modal-head {
        align-items: flex-start;
        gap: 10px;
    }

    .written-list-input {
        min-height: 38dvh;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .quick-grid,
    .value-grid,
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card,
    .quick-card {
        min-height: 0;
    }

    .header-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-action,
    .header-back-btn,
    .logout-btn {
        padding-inline: 5px;
    }

    .header-action-label,
    .notification-btn .header-action-label,
    .header-back-btn .header-action-label {
        font-size: 9px;
    }

    .ai-side-toggle span:last-child {
        display: inline;
    }

    .ai-side-toggle {
        width: auto;
        min-width: 64px;
        padding-inline: 8px;
        font-size: 10px;
    }
}

/* =====================================================
   V18 — preço por regime e transparência de nota fiscal.
===================================================== */
.tax-profile-heading {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--linha);
}

.tax-profile-heading h3 {
    margin: 4px 0 2px;
}

.tax-builder {
    border-color: rgba(35, 117, 223, 0.25);
    background: linear-gradient(145deg, #f8fbff, #eef6ff);
}

.tax-notice,
.tax-estimate {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding: 10px 12px;
    color: var(--texto);
    border: 1px solid var(--linha);
    border-radius: 12px;
    background: var(--roxo-50);
    font-size: 12px;
    line-height: 1.4;
}

.tax-notice strong,
.tax-estimate strong {
    color: var(--tinta);
}

.tax-notice-danger {
    color: #8d2336;
    border-color: rgba(211, 59, 85, 0.25);
    background: var(--vermelho-100);
}

.tax-notice-warning {
    color: #765000;
    border-color: rgba(183, 121, 0, 0.25);
    background: var(--amarelo-100);
}

.tax-notice-success,
.tax-estimate {
    color: #08734e;
    border-color: rgba(15, 159, 110, 0.24);
    background: var(--verde-100);
}

.tax-notice .btn {
    width: fit-content;
    margin-top: 5px;
}

.tax-request {
    margin-top: 10px;
}

.fiscal-key {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 620px) {
    .tax-notice .btn {
        width: 100%;
    }
}
