@font-face {
    font-family: "Biome Light";
    src: url("/fonts/BiomeLight.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root,
[data-theme="light"] {
    --ip-cyan: #00b9d8;
    --ip-cyan-deep: #0095b0;
    --ip-black: #07090a;
    --ip-charcoal: #12181c;
    --ip-slate: #1b242a;
    --ip-steel: #2c363d;
    --ip-gray: #66727a;
    --ip-gray-soft: #5a6870;
    --ip-bg: #f4f7f9;
    --ip-surface: #ffffff;
    --ip-surface-2: #eef2f4;
    --ip-text: #132433;
    --ip-text-muted: #5a6870;
    --ip-border: rgba(19, 36, 51, 0.12);
    --ip-header-bg: rgba(255, 255, 255, 0.92);
    --ip-header-text: #132433;
    --ip-header-border: rgba(0, 185, 216, 0.22);
    --ip-nav-mobile-bg: #ffffff;
    --ip-footer-bg: #eef2f4;
    --ip-footer-text: #5a6870;
    --ip-footer-heading: #132433;
    --ip-footer-border: rgba(19, 36, 51, 0.12);
    --ip-hero-from: #ffffff;
    --ip-hero-to: #dbe9ef;
    --ip-hero-text: #132433;
    --ip-hero-muted: #5a6870;
    --ip-card-title: #132433;
    --ip-section-alt: linear-gradient(180deg, #eef3f6, #e4ebf0);
    --ip-section-alt-border: rgba(0, 185, 216, 0.14);
    --ip-ghost-color: #132433;
    --ip-ghost-border: rgba(19, 36, 51, 0.24);
    --ip-theme-btn-bg: #eef2f4;
    --ip-theme-btn-color: #132433;
    --ip-media-fill: linear-gradient(135deg, #ffffff, #7fd5e6);
    --ip-media-text: #5a6870;
    --ip-btn-neutral: #dfe6ea;
    --ip-btn-neutral-text: #132433;
    --ip-overlay: rgba(19, 36, 51, 0.32);
    --ip-scrim-rgb: 255, 255, 255;
    --ip-carousel-text: #0a1418;
    --ip-carousel-lead: #45525c;
    --ip-carousel-nav-bg: rgba(255, 255, 255, 0.78);
    --ip-carousel-nav-color: #0a1418;
    --ip-carousel-dot: rgba(19, 36, 51, 0.28);
    --ip-admin-side: #ffffff;
    --ip-admin-side-text: #132433;
    --ip-admin-side-muted: rgba(19, 36, 51, 0.72);
    --ip-admin-side-hover: rgba(0, 185, 216, 0.1);
    --ip-logo-plate: #ffffff;
    --ip-stat-bg: linear-gradient(145deg, #e8eef2, #dce5ea);
    --ip-stat-text: #132433;
    --ip-danger: #b42318;
    --ip-danger-bg: #fde8e6;
    --ip-danger-text: #8a1c14;
    --ip-card-shadow: 0 12px 28px rgba(19, 36, 51, 0.08);
    --ip-display: "Exo 2", "Segoe UI", sans-serif;
    --ip-body: "Biome Light", "Segoe UI", sans-serif;
    color-scheme: light;
}

[data-theme="dark"] {
    --ip-cyan: #00b9d8;
    --ip-cyan-deep: #0095b0;
    --ip-black: #07090a;
    --ip-charcoal: #12181c;
    --ip-slate: #1b242a;
    --ip-steel: #2c363d;
    --ip-gray: #8a969e;
    --ip-gray-soft: #c5ced3;
    --ip-bg: #0c1114;
    --ip-surface: #151c21;
    --ip-surface-2: #1c252c;
    --ip-text: #e8eef1;
    --ip-text-muted: #9aa6ae;
    --ip-border: rgba(197, 206, 211, 0.12);
    --ip-header-bg: rgba(7, 9, 10, 0.88);
    --ip-header-text: rgba(232, 238, 241, 0.86);
    --ip-header-border: rgba(0, 185, 216, 0.18);
    --ip-nav-mobile-bg: #07090a;
    --ip-footer-bg: #050708;
    --ip-footer-text: rgba(232, 238, 241, 0.78);
    --ip-footer-heading: #ffffff;
    --ip-footer-border: rgba(255, 255, 255, 0.08);
    --ip-hero-from: #050708;
    --ip-hero-to: #12181c;
    --ip-hero-text: #ffffff;
    --ip-hero-muted: rgba(232, 238, 241, 0.82);
    --ip-card-title: #ffffff;
    --ip-section-alt: linear-gradient(180deg, #10171b, #0c1216);
    --ip-section-alt-border: rgba(0, 185, 216, 0.1);
    --ip-ghost-color: #ffffff;
    --ip-ghost-border: rgba(255, 255, 255, 0.35);
    --ip-theme-btn-bg: rgba(255, 255, 255, 0.08);
    --ip-theme-btn-color: #e8eef1;
    --ip-media-fill: linear-gradient(135deg, #12181c, #00b9d8);
    --ip-media-text: #ffffff;
    --ip-btn-neutral: #2c363d;
    --ip-btn-neutral-text: #ffffff;
    --ip-overlay: rgba(7, 9, 10, 0.55);
    --ip-scrim-rgb: 5, 7, 8;
    --ip-carousel-text: #ffffff;
    --ip-carousel-lead: rgba(232, 238, 241, 0.88);
    --ip-carousel-nav-bg: rgba(5, 7, 8, 0.55);
    --ip-carousel-nav-color: #ffffff;
    --ip-carousel-dot: rgba(255, 255, 255, 0.35);
    --ip-admin-side: #050708;
    --ip-admin-side-text: rgba(255, 255, 255, 0.88);
    --ip-admin-side-muted: rgba(255, 255, 255, 0.55);
    --ip-admin-side-hover: rgba(0, 185, 216, 0.12);
    --ip-logo-plate: #ffffff;
    --ip-stat-bg: linear-gradient(145deg, #151c21, #1c252c);
    --ip-stat-text: #ffffff;
    --ip-danger: #ff8d85;
    --ip-danger-bg: #5c2430;
    --ip-danger-text: #ffb4b0;
    --ip-card-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--ip-body);
    background: var(--ip-bg);
    color: var(--ip-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

#app {
    min-height: 100vh;
}

.app-boot {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 2rem;
    background:
        radial-gradient(circle at 50% 42%, rgba(0, 185, 216, 0.14), transparent 42%),
        var(--ip-bg);
}

.app-boot__mark {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 1rem;
    margin-bottom: 0.35rem;
}

.app-boot__mark span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--ip-cyan);
    animation: app-boot-pulse 1.1s ease-in-out infinite;
}

.app-boot__mark span:nth-child(2) {
    animation-delay: 0.15s;
    background: var(--ip-cyan-deep);
}

.app-boot__mark span:nth-child(3) {
    animation-delay: 0.3s;
}

.app-boot__name {
    margin: 0;
    font-family: var(--ip-display);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ip-text);
    animation: app-boot-fade 1.4s ease-in-out infinite;
}

.app-boot__name span {
    color: var(--ip-cyan);
}

.app-boot__tag {
    margin: 0;
    font-family: var(--ip-display);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ip-text-muted);
}

@keyframes app-boot-pulse {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(-5px); opacity: 1; }
}

@keyframes app-boot-fade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

*, *::before, *::after { box-sizing: border-box; }

h1, h2, h3, h4 {
    font-family: var(--ip-display);
    font-weight: 700;
    letter-spacing: 0.02em;
}

a { color: var(--ip-cyan); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.35rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--ip-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 0.92rem;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--ip-cyan);
    color: #041014 !important;
}

.btn-primary:hover { background: #33c8e1; }

.btn-ghost {
    background: transparent;
    color: var(--ip-ghost-color) !important;
    border: 1px solid var(--ip-ghost-border);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--ip-text) !important;
    border: 1px solid var(--ip-border);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid var(--ip-border);
    background: var(--ip-theme-btn-bg);
    color: var(--ip-theme-btn-color);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--ip-cyan);
    color: var(--ip-cyan);
}

#blazor-error-ui {
    background: #b32121;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    color: #fff;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.validation-message { color: var(--ip-danger); font-size: 0.85rem; }


.form-control {
    width: 100%;
    border: 1px solid var(--ip-border);
    border-radius: 0.45rem;
    padding: 0.7rem 0.8rem;
    font: inherit;
    background: var(--ip-surface-2);
    color: var(--ip-text);
}

.form-check-input {
    margin-right: 0.4rem;
}

.mb-3 { margin-bottom: 1rem; }
.w-100 { width: 100%; }
.text-danger { color: var(--ip-danger); }

.admin-page h1 {
    font-family: var(--ip-display);
    color: var(--ip-text);
    margin-bottom: 0.35rem;
}

.login-page {
    width: min(100% - 2rem, 440px);
    margin: 3.5rem auto 4.5rem;
}

.login-card {
    background: var(--ip-surface);
    border: 1px solid var(--ip-border);
    border-radius: 0.9rem;
    padding: 2rem 1.75rem;
    box-shadow: var(--ip-card-shadow);
}

.login-card__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.login-card__brand img {
    height: 52px;
    width: auto;
    background: var(--ip-logo-plate);
    border-radius: 0.5rem;
    padding: 0.35rem 0.55rem;
    box-shadow: 0 0 0 1px rgba(0, 185, 216, 0.22);
}

.login-card h1 {
    font-size: 1.35rem;
    margin: 0 0 0.4rem;
    text-align: center;
    color: var(--ip-card-title);
}

.login-card__lead {
    text-align: center;
    color: var(--ip-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.login-card .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.login-card .field label {
    font-family: var(--ip-display);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ip-gray-soft);
}

.login-card .field input {
    border: 1px solid var(--ip-border);
    border-radius: 0.45rem;
    padding: 0.75rem 0.85rem;
    font: inherit;
    background: var(--ip-surface-2);
    color: var(--ip-text);
}

.login-card .field input:focus {
    outline: 2px solid rgba(0, 185, 216, 0.35);
    outline-offset: 1px;
    border-color: var(--ip-cyan);
}

.login-card .err {
    background: var(--ip-danger-bg);
    color: var(--ip-danger-text);
    border: 1px solid rgba(180, 35, 24, 0.25);
    border-radius: 0.5rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.login-card .actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.login-card .actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.login-card__back {
    display: block;
    text-align: center;
    color: var(--ip-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-card__back:hover {
    color: var(--ip-cyan);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: var(--ip-overlay);
    backdrop-filter: blur(4px);
    animation: admin-modal-fade 0.18s ease;
}

.admin-modal__dialog {
    width: min(100%, 640px);
    max-height: min(90vh, 820px);
    overflow: auto;
    background: var(--ip-surface);
    color: var(--ip-text);
    border: 1px solid var(--ip-border);
    border-radius: 0.85rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: admin-modal-rise 0.22s ease;
}

.admin-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ip-border);
    position: sticky;
    top: 0;
    background: var(--ip-surface);
    z-index: 1;
}

.admin-modal__head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--ip-card-title);
}

.admin-modal__close {
    border: 0;
    background: var(--ip-surface-2);
    color: var(--ip-text);
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.admin-modal__close:hover {
    background: var(--ip-admin-side-hover);
    color: var(--ip-cyan);
}

.admin-modal__body {
    padding: 1.25rem;
}

.admin-modal__body .editor {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.admin-modal__body .detail {
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0;
}

.admin-summary {
    background: var(--ip-surface);
    border: 1px solid var(--ip-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: var(--ip-card-shadow);
    color: var(--ip-text);
}

.admin-summary p {
    margin: 0.35rem 0;
    color: var(--ip-text-muted);
}

.admin-summary strong {
    color: var(--ip-text);
}

@keyframes admin-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes admin-modal-rise {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal público de produto/serviço — em app.css para não depender do CSS scoped em produção. */
.catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(4, 16, 22, 0.62);
    backdrop-filter: blur(4px);
    animation: catalog-modal-fade 0.22s ease;
}

.catalog-modal__dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: min(90vh, 880px);
    overflow: auto;
    background: var(--ip-surface);
    color: var(--ip-text);
    border: 1px solid var(--ip-border);
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    animation: catalog-modal-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(4, 16, 22, 0.55);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.catalog-modal__media {
    position: relative;
    height: min(70vh, 520px);
    min-height: 280px;
    background: #fff;
    overflow: hidden;
}

.catalog-modal__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.catalog-modal__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-modal__slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #fff;
    padding: 0.75rem;
    box-sizing: border-box;
}

.catalog-modal__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.catalog-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(4, 16, 22, 0.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.catalog-modal__nav--prev { left: 0.55rem; }
.catalog-modal__nav--next { right: 0.55rem; }

.catalog-modal__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.65rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 2;
}

.catalog-modal__dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(4, 16, 22, 0.28);
    cursor: pointer;
}

.catalog-modal__dot.is-active {
    background: var(--ip-cyan);
    transform: scale(1.15);
}

.catalog-modal__ph {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: grid;
    place-items: center;
    font-family: var(--ip-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ip-media-text);
    background: #fff;
}

.catalog-modal__content {
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.catalog-modal__tag {
    align-self: start;
    background: rgba(0, 185, 216, 0.12);
    color: var(--ip-cyan);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-family: var(--ip-display);
    font-weight: 700;
}

.catalog-modal__content h2 {
    margin: 0;
    font-family: var(--ip-display);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    letter-spacing: 0.02em;
    color: var(--ip-card-title);
}

.catalog-modal__area {
    margin: 0;
    color: var(--ip-cyan);
    font-size: 0.9rem;
}

.catalog-modal__desc {
    margin: 0;
    color: var(--ip-text-muted);
    line-height: 1.65;
    white-space: pre-wrap;
    flex: 1;
}

.catalog-modal__brands {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ip-text);
}

.catalog-modal__cta {
    align-self: start;
    margin-top: 0.5rem;
}

@keyframes catalog-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes catalog-modal-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 800px) {
    .catalog-modal__dialog {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    .catalog-modal__media {
        height: 42vh;
        min-height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-modal,
    .catalog-modal__dialog {
        animation: none;
    }

    .catalog-modal__track {
        transition: none;
    }
}

.page-hero {
    background:
        radial-gradient(circle at 80% 0%, rgba(0, 185, 216, 0.18), transparent 40%),
        linear-gradient(145deg, var(--ip-hero-from), var(--ip-hero-to));
    color: var(--ip-hero-text);
    padding: 4rem 1.25rem 3rem;
    border-bottom: 1px solid rgba(0, 185, 216, 0.14);
}

.page-hero h1 {
    color: var(--ip-hero-text);
}

.page-hero p:not(.eyebrow) {
    color: var(--ip-hero-muted);
}
