:root {
    --blue: #0b5ed7;
    --blue-dark: #073b7a;
    --yellow: #ffc928;
    --on-accent: #000000;
    --ink: #172033;
    --muted: #64748b;
    --line: #dbe4f0;
    --bg: #f5f8fc;
    --white: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --section-muted: #eef4fb;
    --topbar-bg: rgba(255, 255, 255, 0.96);
    --footer-bg: #262a31;
    --hero-copy: #e9f2ff;
    --field-bg: #ffffff;
    --badge-bg: #e8f1ff;
    --badge-text: #073b7a;
    --shadow-color: rgba(23, 32, 51, 0.12);
    --soft-shadow-color: rgba(23, 32, 51, 0.06);
    --success: #11845b;
    --danger: #c03221;
    --shadow: 0 12px 36px var(--shadow-color);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --blue: #63a4ff;
    --blue-dark: #d7e8ff;
    --yellow: #ffd84d;
    --on-accent: #000000;
    --ink: #f4f8ff;
    --muted: #b7c5d8;
    --line: #314259;
    --bg: #0d1420;
    --white: #ffffff;
    --surface: #151f2e;
    --surface-soft: #1d2a3d;
    --section-muted: #101b2a;
    --topbar-bg: rgba(13, 20, 32, 0.96);
    --footer-bg: #08101b;
    --hero-copy: #f0f6ff;
    --field-bg: #111b2a;
    --badge-bg: #dcecff;
    --badge-text: #073b7a;
    --shadow-color: rgba(0, 0, 0, 0.38);
    --soft-shadow-color: rgba(0, 0, 0, 0.24);
    --success: #4bd39a;
    --danger: #ff786b;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 136px;
    padding: 0 18px;
    background-color: #050505;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.36)), url("../img/logo-2-banner-site-lava-rapido.jpeg");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid var(--line);
    overflow: visible;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: var(--blue-dark);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    width: 160px;
    height: 120px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 6px 16px var(--shadow-color);
}

.topbar .brand-logo {
    opacity: 0;
    background: transparent;
    box-shadow: none;
}

.menu-toggle,
.theme-toggle {
    position: relative;
    z-index: 3;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 1.35rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: 0;
    width: auto;
    min-width: 128px;
    padding: 0;
    border: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    transition: color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.theme-toggle-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 64px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.03);
}

.theme-toggle-icon {
    position: relative;
    z-index: 2;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1;
}

.theme-toggle-sun {
    color: var(--on-accent);
}

.theme-toggle-moon {
    color: var(--muted);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.22s ease, background 0.22s ease;
}

:root[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(30px);
}

:root[data-theme="dark"] .theme-toggle-sun {
    color: var(--muted);
}

:root[data-theme="dark"] .theme-toggle-moon {
    color: var(--on-accent);
}

.menu-label {
    position: relative;
    z-index: 3;
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--on-accent);
    background: var(--yellow);
    font-weight: 900;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.menu-label::after {
    content: ">";
    display: inline-block;
    transition: transform 0.2s ease;
}

.menu-label:hover {
    color: var(--on-accent);
    background: var(--yellow);
    transform: translateX(2px);
}

.menu-label:hover::after {
    transform: translateX(5px);
}

.menu {
    position: absolute;
    top: 136px;
    left: 0;
    right: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.menu.open {
    display: flex;
}

.menu a,
.menu button {
    padding: 12px;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    border: 0;
    font-weight: 700;
    font: inherit;
    text-align: left;
}

.menu a:hover,
.menu button:hover,
.menu .nav-cta,
.install-app-button {
    background: var(--yellow);
    color: var(--on-accent);
}

.install-app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.install-app-button[hidden] {
    display: none;
}

.install-app-floating {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 30;
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 72px 18px 84px;
    color: var(--white);
    background-image: url("../img/hero-lava-rapido.png");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 201, 40, 0.28), rgba(255, 201, 40, 0.18), rgba(255, 201, 40, 0.08));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
}

.kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 201, 40, 0.18);
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content .kicker {
    color: #000000;
}

.hero h1,
.section-heading h1,
.section-heading h2 {
    margin: 14px 0 10px;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(2.35rem, 2.1rem + 1.4vw, 4rem);
}

.hero p {
    max-width: 560px;
    margin: 0 0 24px;
    color: var(--hero-copy);
    font-size: 1.08rem;
}

.hero-actions,
.center {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.center {
    justify-content: center;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.98rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
    color: var(--on-accent);
    background: var(--yellow);
    box-shadow: 0 10px 22px rgba(255, 201, 40, 0.28);
}

.btn-secondary,
.btn-light {
    color: var(--blue-dark);
    background: var(--surface);
    border: 1px solid var(--line);
}

.btn-full {
    width: 100%;
}

.btn-small {
    min-height: 38px;
    padding: 0 12px;
    color: var(--white);
    background: var(--blue);
}

.btn.btn-icon {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 1.05rem;
}

.btn-danger {
    color: var(--white);
    background: var(--danger);
}

.btn-whatsapp-confirm {
    white-space: nowrap;
    background: #128c7e;
}

.info-strip {
    display: grid;
    gap: 1px;
    max-width: 1120px;
    margin: -48px auto 0;
    padding: 0 18px;
    position: relative;
    z-index: 2;
}

.info-strip div {
    min-height: 92px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.info-strip div:hover {
    color: var(--on-accent);
    background: var(--yellow);
    border-color: var(--yellow);
    transform: translateY(-3px);
}

.info-strip div:first-child {
    border-radius: 8px 8px 0 0;
}

.info-strip div:last-child {
    border-radius: 0 0 8px 8px;
}

.info-strip strong,
.info-strip span {
    display: block;
}

.info-strip span {
    color: var(--muted);
    transition: color 0.2s ease;
}

.info-strip div:hover span {
    color: var(--on-accent);
}

.section,
.page {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.section {
    padding: 76px 0;
}

.narrow-top {
    padding-top: 36px;
}

.muted {
    width: 100%;
    max-width: none;
    padding-left: max(18px, calc((100vw - 1120px) / 2));
    padding-right: max(18px, calc((100vw - 1120px) / 2));
    background: var(--section-muted);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading.left {
    margin-left: 0;
    text-align: left;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(1.8rem, 1.5rem + 1vw, 2.55rem);
}

.section-heading p {
    color: var(--muted);
}

.cards-grid {
    display: grid;
    gap: 18px;
}

.card,
.form-card,
.success-box,
.login-card,
.admin-panel,
.stat-card,
.tip-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 24px var(--soft-shadow-color);
}

.card {
    padding: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-card h3,
.result-card h3,
.tip-item h3 {
    margin: 0;
}

.service-card p,
.result-card p,
.tip-item p {
    margin: 0;
    color: var(--muted);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    font-weight: 800;
}

.service-meta span:first-child {
    color: var(--blue);
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-form {
    display: grid;
    gap: 10px;
}

.review-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.result-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.partner-carousel {
    --partner-gap: 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
}

.partner-carousel-viewport {
    overflow: hidden;
}

.partner-carousel-track {
    display: flex;
    gap: var(--partner-gap);
    transition: transform 0.28s ease;
}

.partner-carousel-track .partner-card {
    flex: 0 0 100%;
    min-width: 0;
}

.carousel-arrow {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue-dark);
    background: var(--surface);
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 900;
    transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.carousel-arrow:hover:not(:disabled) {
    color: var(--on-accent);
    background: var(--yellow);
    transform: translateY(-1px);
}

.carousel-arrow:disabled {
    cursor: default;
    opacity: 0.35;
}

.partner-logo-box {
    display: grid;
    place-items: center;
    width: 132px;
    height: 92px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.partner-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-logo-box span {
    color: var(--blue-dark);
    font-size: 2.2rem;
    font-weight: 900;
}

.partner-card h3,
.partner-card p {
    margin: 0;
}

.partner-card p {
    color: var(--muted);
}

.partner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.partner-actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
}

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

.before-after img {
    aspect-ratio: 1 / 1;
}

.tag,
.status {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.8rem;
    font-weight: 800;
}

.stars {
    color: var(--blue);
}

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

#dicas {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#dicas::before {
    content: "";
    position: absolute;
    inset: 18px 0;
    z-index: 0;
    background-image: url("../../logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(760px, 92vw) auto;
    opacity: 0.06;
    pointer-events: none;
}

#dicas > * {
    position: relative;
    z-index: 1;
}

.tip-item {
    padding: 18px;
}

.form-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 46px 0 80px;
}

.form-shell.compact {
    padding-top: 20px;
}

.form-card,
.login-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.form-card label,
.login-card label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field-bg);
    color: var(--ink);
    font: inherit;
}

.phone-field {
    display: flex;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field-bg);
}

.phone-field:focus-within {
    outline: 3px solid rgba(11, 94, 215, 0.18);
    border-color: var(--blue);
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 12px;
    border-right: 1px solid var(--line);
    color: var(--blue-dark);
    background: var(--surface-soft);
    white-space: nowrap;
}

.phone-field input {
    min-width: 0;
    border: 0;
    border-radius: 0;
}

.phone-field input:focus {
    outline: 0;
}

textarea {
    resize: vertical;
}

.booking-form {
    align-items: start;
}

.booking-scheduler {
    display: grid;
    gap: 16px;
}

.calendar-card,
.time-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.calendar-card {
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-header div {
    display: grid;
    justify-items: center;
    color: var(--blue-dark);
    font-weight: 900;
    text-transform: capitalize;
}

.calendar-header span {
    color: var(--muted);
    font-size: 0.9rem;
}

.calendar-nav {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.calendar-weekdays > span {
    display: grid;
    place-items: center;
    min-width: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.weekday-full {
    display: none;
}

.calendar-day {
    display: inline-grid;
    place-items: center;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.calendar-day:not(.disabled):not(.calendar-day-empty):hover,
.calendar-day.selected {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--on-accent);
}

.calendar-day:not(.disabled):not(.calendar-day-empty):hover {
    transform: translateY(-1px);
}

.calendar-day.disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.calendar-day-empty {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.time-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

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

.time-option {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.time-option:hover,
.time-option.active {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.time-empty {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(11, 94, 215, 0.18);
    border-color: var(--blue);
}

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

.alert {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.alert-sucesso {
    color: #074b34;
    background: #dff8ed;
}

.alert-erro {
    color: #76170d;
    background: #ffe2de;
}

.centered-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.success-box {
    width: min(520px, 100%);
    padding: 28px;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    color: var(--white);
    background: var(--success);
    font-weight: 900;
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--blue);
    font-weight: 800;
}

.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 46px 18px;
    overflow: hidden;
    color: var(--white);
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-family: "Inter", "Montserrat", Arial, Helvetica, sans-serif;
}

.footer-watermark {
    position: relative;
    z-index: 1;
    width: min(220px, 70vw);
    max-height: 110px;
    object-fit: contain;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-bottom: 16px;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-content p {
    margin: 0;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.18rem);
    font-weight: 800;
    letter-spacing: 0;
}

.footer-content span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    font-weight: 600;
}

.empty {
    color: var(--muted);
}

.admin-body {
    min-height: 100vh;
    background: var(--section-muted);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.login-card {
    width: min(420px, 100%);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-dark);
    font-size: 1.25rem;
    font-weight: 800;
    width: fit-content;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.login-brand:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}

.login-card h1,
.login-card p {
    margin: 0;
}

.login-card p,
.login-card small {
    color: var(--muted);
}

.admin-sidebar {
    position: static;
    padding: 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.admin-sidebar nav {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
}

.admin-sidebar nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    color: var(--white);
    background: var(--blue);
}

.admin-sidebar nav a[href="dashboard.php"] {
    --admin-menu-icon: url("../../Icones do site/dashboard.png");
}

.admin-sidebar nav a[href="agendamentos.php"] {
    --admin-menu-icon: url("../../Icones do site/agendamento.png");
}

.admin-sidebar nav a[href="servicos.php"] {
    --admin-menu-icon: url("../../Icones do site/servico concluido.png");
}

.admin-sidebar nav a[href="dicas.php"] {
    --admin-menu-icon: url("../../Icones do site/dicas.png");
}

.admin-sidebar nav a[href="parceiros.php"] {
    --admin-menu-icon: url("../../Icones do site/parceiros.png");
}

.admin-sidebar nav a[href="analise_operacional.php"] {
    --admin-menu-icon: url("../../Icones do site/controle de caixa.png");
}

.admin-sidebar nav a[href="despesas_fixas.php"] {
    --admin-menu-icon: url("../../Icones do site/despesas fixas.png");
}

.admin-sidebar nav a[href="controle_estoque.php"] {
    --admin-menu-icon: url("../../Icones do site/estoque.png");
}

.admin-sidebar nav a[href="../index.php"] {
    --admin-menu-icon: url("../../Icones do site/ver site.png");
}

.admin-sidebar nav a[href="logout.php"] {
    --admin-menu-icon: url("../../Icones do site/sair.png");
}

.admin-main {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 26px 0 60px;
}

.admin-title {
    margin-bottom: 20px;
}

.admin-title h1 {
    margin: 10px 0 0;
}

.stats-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    color: var(--blue-dark);
    font-size: 2rem;
}

.admin-panel {
    margin-bottom: 18px;
    padding: 18px;
}

.admin-panel h2 {
    margin-top: 0;
}

.panel-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-heading-actions h2 {
    margin-bottom: 4px;
}

.panel-note {
    margin: 0;
    color: var(--muted);
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-actions .btn-secondary {
    color: var(--blue-dark);
    background: var(--surface);
    border: 1px solid var(--line);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.table-logo {
    width: 78px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--surface);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--blue-dark);
    background: var(--surface-soft);
    font-size: 0.9rem;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form select {
    min-width: 130px;
}

.muted-text {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.status-pendente {
    background: #fff4c7;
    color: #775800;
}

.status-confirmado {
    background: #dfeeff;
    color: #0a4d91;
}

.status-concluido {
    background: #dff8ed;
    color: #074b34;
}

.status-cancelado {
    background: #ffe2de;
    color: #76170d;
}

.stock-ok {
    background: #dff8ed;
    color: #074b34;
}

.stock-attention {
    background: #fff4c7;
    color: #775800;
}

.stock-critical {
    background: #ffe2de;
    color: #76170d;
}

.admin-form {
    box-shadow: none;
}

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

.compact-filter {
    align-items: end;
}

.analysis-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.report-grid {
    display: grid;
    gap: 16px;
}

.report-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.report-card h3,
.report-card p {
    margin-top: 0;
}

.report-card p:last-child {
    margin-bottom: 0;
}

.report-list {
    display: grid;
    gap: 10px;
}

.report-list div {
    padding: 10px;
    border-radius: 8px;
    background: var(--surface);
}

.report-list strong,
.report-list span {
    display: block;
}

.report-list span {
    color: var(--muted);
}

.compact-list {
    grid-template-columns: 1fr;
}

.contact-section {
    padding-top: 56px;
}

.contact-grid {
    display: grid;
    gap: 18px;
}

.contact-info {
    display: grid;
    gap: 12px;
}

.contact-info div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.contact-info strong,
.contact-info span,
.contact-info a {
    display: block;
}

.contact-info strong {
    color: var(--blue-dark);
}

.contact-info span,
.contact-info a {
    margin-top: 4px;
    color: var(--muted);
}

.map-box {
    min-height: 340px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

@media (min-width: 720px) {
    .menu-toggle {
        display: none;
    }

    .menu-label {
        display: inline-flex;
    }

    .menu {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .menu a,
    .menu button {
        color: #ffffff;
        background: rgba(0, 0, 0, 0.46);
        padding: 9px 12px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    }

    .menu a:hover,
    .menu button:hover,
    .menu a:focus-visible,
    .menu button:focus-visible {
        color: #ffffff;
        background: rgba(0, 0, 0, 0.68);
    }

    .topbar {
        padding: 0 max(24px, calc((100vw - 1120px) / 2));
    }

    .info-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-strip div:first-child {
        border-radius: 8px 0 0 8px;
    }

    .info-strip div:last-child {
        border-radius: 0 8px 8px 0;
    }

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

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

    .partner-carousel-track .partner-card {
        flex-basis: calc((100% - 36px) / 3);
    }

    .form-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 24px;
    }

    .booking-scheduler {
        grid-template-columns: minmax(420px, 1.08fr) minmax(280px, 0.92fr);
        gap: 20px;
        align-items: start;
    }

    .calendar-card,
    .time-card {
        padding: 22px;
    }

    .calendar-header {
        padding-bottom: 4px;
    }

    .calendar-weekdays,
    .calendar-days {
        gap: 8px;
    }

    .calendar-weekdays {
        padding: 8px;
    }

    .calendar-weekdays > span {
        min-height: 32px;
        font-size: 0.78rem;
    }

    .weekday-short {
        display: none;
    }

    .weekday-full {
        display: inline;
    }

    .calendar-day {
        min-height: 56px;
        font-size: 1rem;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

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

    .contact-grid {
        grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    }
}

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

    .admin-body {
        display: grid;
        grid-template-columns: 260px 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .admin-sidebar nav {
        flex-direction: column;
        overflow: visible;
    }

    .admin-main {
        width: min(1180px, calc(100% - 48px));
        padding: 34px 0 70px;
    }
}

@media (max-width: 979px) {
    .admin-sidebar {
        padding: 14px;
    }

    .admin-sidebar .brand {
        justify-content: center;
        width: 100%;
        margin-right: 0;
    }

    .admin-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
    }

    .admin-sidebar nav a {
        position: relative;
        display: grid;
        place-items: center;
        min-height: clamp(104px, 28vw, 132px);
        padding: 4px;
        overflow: hidden;
        border: 1px solid transparent;
        border-radius: 18px;
        background-color: transparent;
        font-size: 0;
        box-shadow: none;
    }

    .admin-sidebar nav a::before {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 16px;
        background-image: var(--admin-menu-icon);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% auto;
    }

    .admin-sidebar nav a.active,
    .admin-sidebar nav a:hover,
    .admin-sidebar nav a:active,
    .admin-sidebar nav a:focus-visible {
        border-color: var(--yellow);
        background-color: transparent;
        outline: none;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        min-width: 64px;
    }

    .theme-toggle-text {
        display: none;
    }

    .hero {
        min-height: 590px;
        padding-top: 56px;
        background-position: 61% center;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
    }
}
