:root {
    --app-primary: #0d6efd;
    --app-primary-strong: #0a4fb2;
    --app-ink: #050b16;
    --app-ink-soft: #101b2f;
    --app-ice: #f5f9ff;
    --app-card: #ffffff;
    --app-border: rgba(9, 23, 46, 0.08);
    --app-shadow: 0 18px 45px rgba(5, 11, 22, 0.08);
    --panel-sidebar-width: 320px;
}

/* AGF public experience */
:root {
    --agf-blue: #4263eb;
    --agf-blue-dark: #2446d8;
    --agf-violet: #7c3aed;
    --agf-night: #050719;
    --agf-text: #11162a;
    --agf-muted: #626b7f;
    --agf-line: #dfe5f1;
}

.app-navbar {
    background: rgba(5, 7, 25, 0.97);
}

.app-navbar .navbar-brand img {
    width: 148px;
    height: 76px;
}

.app-navbar .nav-link {
    font-weight: 600;
}

.app-navbar .nav-link.active,
.app-navbar .nav-link:hover {
    color: #8ca2ff !important;
}

.app-navbar .btn-light {
    border-color: #fff;
    background: #fff;
    color: var(--agf-night);
}

.agf-home main,
.agf-plans-page main {
    background: #f7f9fd;
}

.agf-home main > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.agf-hero {
    position: relative;
    min-height: min(720px, calc(100vh - 70px));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: url("../../img/banner.png") center 34% / cover no-repeat;
}

.agf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 7, 25, 0.96) 0%, rgba(5, 7, 25, 0.84) 42%, rgba(5, 7, 25, 0.2) 78%, rgba(5, 7, 25, 0.08) 100%);
}

.agf-hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 92px;
}

.agf-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #aebcff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.agf-eyebrow-blue {
    color: var(--agf-blue-dark);
}

.agf-hero h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(2.65rem, 5.6vw, 5.4rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: 0;
}

.agf-hero h1 span {
    color: #8ca2ff;
}

.agf-hero-content > p {
    max-width: 650px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.18rem;
    line-height: 1.65;
}

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

.agf-btn-primary {
    border-color: var(--agf-blue);
    background: var(--agf-blue);
    color: #fff;
    box-shadow: 0 12px 28px rgba(66, 99, 235, 0.3);
}

.agf-btn-primary:hover,
.agf-btn-primary:focus {
    border-color: var(--agf-blue-dark);
    background: var(--agf-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

.agf-btn-ghost {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(5, 7, 25, 0.22);
    color: #fff;
    backdrop-filter: blur(8px);
}

.agf-btn-ghost:hover {
    border-color: #fff;
    background: #fff;
    color: var(--agf-night);
}

.agf-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 44px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.agf-hero-proof strong {
    color: #fff;
    font-size: 1.12rem;
}

.agf-trust-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(1180px, calc(100% - 48px));
    margin: -36px auto 0;
    position: relative;
    z-index: 2;
    border: 1px solid var(--agf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(21, 31, 61, 0.13);
}

.agf-trust-band > div {
    padding: 26px 30px;
}

.agf-trust-band > div + div {
    border-left: 1px solid var(--agf-line);
}

.agf-trust-band strong,
.agf-trust-band span {
    display: block;
}

.agf-trust-band strong {
    margin-bottom: 4px;
    color: var(--agf-text);
}

.agf-trust-band span {
    color: var(--agf-muted);
    font-size: 0.92rem;
}

.agf-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 100px 0;
}

.agf-section-heading {
    max-width: 680px;
    margin-bottom: 42px;
}

.agf-section h2,
.agf-plans-hero h1,
.agf-final-cta h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.65rem);
    font-weight: 820;
    line-height: 1.05;
    letter-spacing: 0;
}

.agf-section-heading p,
.agf-plans-hero p {
    color: var(--agf-muted);
    font-size: 1.08rem;
}

.agf-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.agf-feature-card {
    min-height: 270px;
    padding: 30px;
    border: 1px solid rgba(140, 162, 255, 0.2);
    border-radius: 8px;
    background: var(--agf-night);
    color: #fff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.agf-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66, 99, 235, 0.45);
    box-shadow: 0 22px 48px rgba(36, 70, 216, 0.13);
}

.agf-feature-number {
    display: block;
    margin-bottom: 36px;
    color: #8ca2ff;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.agf-feature-card h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.agf-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
}

.agf-flow-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: center;
    border-top: 1px solid var(--agf-line);
}

.agf-flow-copy p {
    color: var(--agf-muted);
    line-height: 1.7;
}

.agf-text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--agf-blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.agf-flow-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.agf-flow-list li {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--agf-line);
}

.agf-flow-list li > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--agf-blue);
    color: #fff;
    font-weight: 800;
}

.agf-flow-list strong {
    font-size: 1.08rem;
}

.agf-flow-list p {
    margin: 5px 0 0;
    color: var(--agf-muted);
}

.agf-final-cta {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 90px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 8px;
    background: var(--agf-blue-dark);
    color: #fff;
    box-shadow: 0 24px 55px rgba(36, 70, 216, 0.22);
}

.agf-final-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.agf-plans-page main > .container {
    max-width: 1228px;
}

.agf-plans-hero {
    max-width: 760px;
    margin: 20px auto 58px;
    text-align: center;
}

.agf-plans-hero .agf-eyebrow {
    color: var(--agf-blue-dark);
}

.agf-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.agf-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 510px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--agf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(22, 33, 64, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agf-plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66, 99, 235, 0.5);
    box-shadow: 0 26px 56px rgba(36, 70, 216, 0.15);
}

.agf-plan-featured {
    border: 2px solid var(--agf-blue);
    background: #fbfcff;
    box-shadow: 0 24px 58px rgba(66, 99, 235, 0.2);
}

.agf-plan-ribbon {
    position: absolute;
    top: 18px;
    right: -38px;
    width: 160px;
    padding: 8px 0;
    transform: rotate(36deg);
    background: var(--agf-blue);
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.agf-plan-label {
    color: var(--agf-blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.agf-plan-head h2 {
    margin: 10px 0;
    font-size: 1.7rem;
    font-weight: 850;
}

.agf-plan-head p {
    min-height: 48px;
    color: var(--agf-muted);
}

.agf-plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 16px 0 24px;
}

.agf-plan-price small {
    font-weight: 800;
}

.agf-plan-price strong {
    font-size: 2.65rem;
    line-height: 1;
}

.agf-plan-price span {
    color: var(--agf-muted);
}

.agf-plan-features {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    flex: 1;
}

.agf-plan-features li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: #35405a;
}

.agf-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--agf-blue);
    font-weight: 900;
}

.agf-plan-note {
    margin: 36px 0 30px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--agf-line);
    border-radius: 8px;
    background: #fff;
}

.agf-plan-note span {
    color: var(--agf-muted);
    flex: 1;
}

.agf-plan-note a {
    color: var(--agf-blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.agf-empty-state {
    grid-column: 1 / -1;
    padding: 56px;
    border: 1px solid var(--agf-line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--agf-night);
    color: rgba(255, 255, 255, 0.7);
}

.site-footer strong {
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #20b75a;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    animation: agfWhatsPulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-3px);
    animation-play-state: paused;
}

.whatsapp-float svg {
    width: 25px;
    height: 25px;
}

@keyframes agfFeaturedIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes agfWhatsPulse {
    0%, 100% { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(32, 183, 90, 0.35); }
    50% { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(32, 183, 90, 0); }
}

@media (max-width: 991px) {
    .agf-hero {
        min-height: 720px;
        background-position: 58% center;
    }

    .agf-hero-overlay {
        background: rgba(5, 7, 25, 0.78);
    }

    .agf-feature-grid,
    .agf-plans-grid {
        grid-template-columns: 1fr;
    }

    .agf-flow-section {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .agf-plan-card {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .agf-hero-content,
    .agf-trust-band,
    .agf-section,
    .agf-final-cta {
        width: min(100% - 28px, 1180px);
    }

    .agf-hero-content {
        padding: 86px 0 72px;
    }

    .agf-hero h1 {
        font-size: 2.8rem;
    }

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

    .agf-hero-proof {
        gap: 16px;
    }

    .agf-trust-band {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

    .agf-trust-band > div {
        padding: 20px 22px;
    }

    .agf-trust-band > div + div {
        border-top: 1px solid var(--agf-line);
        border-left: 0;
    }

    .agf-section {
        padding: 72px 0;
    }

    .agf-final-cta,
    .agf-plan-note {
        flex-direction: column;
        align-items: stretch;
    }

    .agf-final-cta {
        padding: 30px 24px;
    }

    .agf-plan-card {
        padding: 26px 22px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-float span {
        display: none;
    }
}

/* Keep public navigation aligned with the AGF identity after legacy rules. */
.app-navbar {
    background: rgba(5, 7, 25, 0.97);
}

.app-navbar .navbar-brand img {
    width: 148px;
    height: 76px;
}

@media (prefers-reduced-motion: reduce) {
    .agf-plan-featured,
    .whatsapp-float {
        animation: none;
    }
}

body {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.16), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--app-ink);
    min-height: 100vh;
}

body.panel-mode {
    overflow-x: hidden;
}

body.home-hero-flush {
    overflow-x: clip;
}

.app-navbar {
    background: linear-gradient(90deg, #04071c 0%, #04071c 48%, #060b27 100%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.app-navbar-inner {
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.app-navbar .navbar-brand img {
    width: 160px;
    height: 82px;
    object-fit: contain;
    flex-shrink: 0;
}

.app-navbar .navbar-brand {
    min-width: 0;
    margin-right: 0;
    flex: 0 0 auto;
}

.app-navbar .brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.app-navbar .brand-copy strong {
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-navbar .brand-copy small {
  font-size: 0.78rem;
  margin-top: 0.28rem;
  max-width: 180px;
  line-height: 1.15;
}

.panel-main {
    padding-top: 8px;
}

body.public-menu-mode main {
    padding-top: 0.35rem;
}

body.public-menu-mode {
    overflow-x: clip;
}

body.public-menu-mode main > .container,
body.public-menu-mode main > .container-fluid {
    padding-top: 3.35rem !important;
}

body.home-hero-flush.public-menu-mode main > .container,
body.home-hero-flush.public-menu-mode main > .container-fluid {
    padding-top: 0 !important;
}

body.home-hero-flush.public-menu-mode main {
    padding-top: 0;
}

@media (min-width: 992px) {
    body.public-menu-mode main {
        padding-top: 0;
    }

    body.public-menu-mode main > .container,
    body.public-menu-mode main > .container-fluid {
        padding-top: 1.5rem !important;
    }

    body.home-hero-flush.public-menu-mode main > .container,
    body.home-hero-flush.public-menu-mode main > .container-fluid {
        padding-top: 0 !important;
    }
}

.hero-card,
.content-card,
.dashboard-card,
.glass-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    border-radius: 24px;
}

.hero-card {
    overflow: hidden;
    position: relative;
}

.public-hero-card {
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(120deg, rgba(5, 11, 22, 0.72), rgba(13, 34, 74, 0.42)),
        url("../../img/banner.png") center/cover no-repeat;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.hero-main {
    min-width: 0;
}

.hero-main-banner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    min-height: 100%;
}

.hero-main-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        radial-gradient(circle at top right, rgba(39, 196, 245, 0.14), transparent 30%);
    pointer-events: none;
}

.hero-main-content {
    position: relative;
    z-index: 1;
    padding: 18px 6px 6px;
    max-width: 980px;
}

.hero-main-banner .hero-title,
.hero-main-banner .lead,
.hero-main-banner .fw-semibold,
.hero-main-banner .text-secondary {
    color: #f5f9ff !important;
    text-shadow: 0 2px 12px rgba(5, 11, 22, 0.28);
}

.hero-main-banner .badge-soft {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-main-banner .form-control,
.hero-main-banner .form-select {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-trial-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 24px;
    padding: 26px 30px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff8a00 0%, #ff5f00 56%, #ff6f00 100%);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-trial-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -60%;
    z-index: 0;
    width: 42%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    animation: heroTrialShine 3.4s ease-in-out infinite;
}

.hero-trial-card > * {
    position: relative;
    z-index: 1;
}

.hero-trial-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.hero-trial-card h2,
.hero-trial-card p {
    color: #fff !important;
    text-shadow: none !important;
}

.hero-trial-card h2 {
    font-weight: 900;
}

.hero-trial-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-trial-card .btn {
    border-color: #fff;
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
}

.hero-trial-card .btn:hover {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

@keyframes heroTrialShine {
    0%, 35% {
        left: -60%;
    }

    70%, 100% {
        left: 120%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-trial-card,
    .hero-trial-card::before {
        animation: none;
    }
}

.hero-aside {
    min-width: 0;
}

.hero-title {
    max-width: 820px;
    line-height: 1.02;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -50px -60px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.30) 0%, transparent 72%);
}

.headline-gradient {
    background: linear-gradient(90deg, #050b16 0%, #0d6efd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.public-stat-card,
.public-tone-card,
.public-grid-card,
.public-section-card {
    border-radius: 24px;
    border: 1px solid rgba(9, 23, 46, 0.08);
    box-shadow: 0 18px 38px rgba(13, 28, 61, 0.08);
}

.public-stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
    padding: 1.4rem;
}

.public-stat-card-primary {
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(39, 196, 245, 0.12)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
}

.public-stat-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(16, 27, 47, 0.55);
    margin-bottom: 0.8rem;
}

.public-stat-number {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 0.7rem;
    color: var(--app-ink);
}

.public-tone-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.92));
    padding: 1.6rem;
}

.public-section-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.94));
}

.public-section-card-dark {
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(39, 196, 245, 0.22), transparent 28%),
        linear-gradient(160deg, #050918 0%, #071126 45%, #0b1732 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(5, 11, 22, 0.2);
}

.public-section-card-dark .section-title,
.public-section-card-dark strong {
    color: #ffffff;
}

.public-section-card-dark .text-secondary {
    color: rgba(255, 255, 255, 0.72) !important;
}

.public-section-card-dark .public-grid-card strong {
    color: var(--app-ink);
}

.public-section-card-dark .public-grid-card .text-secondary {
    color: rgba(16, 27, 47, 0.68) !important;
}

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

.public-grid-card {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(255, 255, 255, 0.98));
    padding: 1rem 1.05rem;
}

.public-dark-card {
    height: 100%;
    border-radius: 28px;
    padding: 1.5rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(39, 196, 245, 0.18), transparent 30%),
        linear-gradient(160deg, rgba(5, 9, 24, 0.76) 0%, rgba(7, 17, 38, 0.68) 45%, rgba(11, 23, 50, 0.74) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 48px rgba(5, 11, 22, 0.2);
}

.public-dark-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
}

.public-dark-card .list-clean li + li {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.public-dark-card .list-clean li {
    color: rgba(255, 255, 255, 0.88);
}

.public-dark-points {
    display: grid;
    gap: 12px;
}

.public-dark-point {
    display: grid;
    gap: 4px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.public-dark-point strong {
    color: #fff;
}

.public-dark-point span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.4;
}

.search-header-card {
    transition: padding 0.22s ease, box-shadow 0.22s ease;
}

.search-navbar-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    max-width: 980px;
    min-width: 0;
}

.search-navbar-field {
    min-width: 0;
    flex: 1 1 auto;
}

.search-navbar-field:first-child {
    flex: 2 1 310px;
    min-width: 260px;
}

.search-navbar-field-category {
    flex: 0 0 180px;
}

.search-navbar-form .form-control,
.search-navbar-form .form-select {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.search-navbar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.search-navbar-form .form-select {
    color: rgba(255, 255, 255, 0.92);
}

.search-navbar-form .form-select option {
    color: #09172e;
}

.search-navbar-form .form-control:focus,
.search-navbar-form .form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(74, 144, 255, 0.55);
    box-shadow: 0 0 0 0.18rem rgba(74, 144, 255, 0.18);
}

.search-navbar-submit {
    min-width: 96px;
    min-height: 46px;
    border-radius: 14px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.search-navbar-location {
    min-height: 46px;
    border-radius: 14px;
    flex: 0 0 auto;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-size: 0.86rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.app-navbar .navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
    gap: 20px;
}

.app-navbar .navbar-nav {
    flex: 0 0 auto;
    margin-left: auto !important;
}

.search-header-card-compact {
    padding-top: 1.5rem !important;
    padding-bottom: 1.35rem !important;
}

.search-header-card-compact .badge-soft {
    padding: 7px 12px;
    font-size: 0.8rem;
}

.search-header-card-compact .form-control,
.search-header-card-compact .form-select,
.search-header-card-compact .btn {
    min-height: 48px;
}

.sponsored-carousel {
    position: relative;
}

.sponsored-showcase {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1rem, calc((100vw - 1296px) / 2 + 1rem)) !important;
    padding-right: max(1rem, calc((100vw - 1296px) / 2 + 1rem)) !important;
    border: 1px solid rgba(66, 99, 235, 0.2);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #e8efff;
    box-shadow: 0 10px 24px rgba(36, 70, 216, 0.08);
}

.sponsored-showcase-header {
    padding: 0;
}

.sponsored-showcase-header > div > div:first-child {
    line-height: 1.15;
}

.sponsored-showcase-header .text-uppercase {
    font-size: 0.68rem !important;
}

.sponsored-showcase .negocio-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(36, 70, 216, 0.08);
}

.sponsored-carousel-viewport {
    overflow: hidden;
    border-radius: 8px;
}

.sponsored-carousel-track {
    display: flex;
    gap: 18px;
    transition: transform 0.42s ease;
    will-change: transform;
}

.sponsored-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 1px solid var(--agf-night);
    border-radius: 999px;
    background: var(--agf-night);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
    text-align: center;
    box-shadow: 0 14px 28px rgba(13, 28, 61, 0.12);
}

.sponsored-carousel-nav:disabled {
    display: none;
}

.sponsored-carousel-nav-prev {
    left: -10px;
}

.sponsored-carousel-nav-next {
    right: -10px;
}

.sponsored-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.sponsored-carousel-dot {
    width: 24px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(9, 23, 46, 0.16);
    transition: background 0.22s ease, transform 0.22s ease;
}

.sponsored-carousel-dot.is-active {
    background: linear-gradient(90deg, #0d6efd 0%, #20c997 100%);
    transform: scaleX(1.08);
}

.sponsored-card {
    min-width: 0;
    flex: 0 0 calc((100% - 54px) / 4);
}

.sponsored-card-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.sponsored-card .search-result-logo {
    width: 76px;
    height: 76px;
    border-radius: 12px;
}

.sponsored-card .search-result-copy {
    min-width: 0;
}

.sponsored-card .search-result-copy h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sponsored-card .search-result-actions .btn {
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
}

.search-results-grid .search-result-card {
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.search-results-grid .search-result-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}

.search-results-grid .search-result-copy h2 {
    font-size: 1.25rem;
}

.search-results-grid .search-result-location {
    font-size: 0.88rem;
    line-height: 1.4;
}

.search-results-grid .search-result-tags {
    margin-bottom: 1rem !important;
}

.search-today-slots {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(9, 23, 46, 0.08);
}

.search-today-slots > strong {
    display: block;
    color: var(--app-ink);
    font-size: 0.78rem;
}

.search-today-slots > small {
    display: block;
    margin-top: 0.35rem;
    color: var(--agf-muted);
    font-size: 0.76rem;
}

.search-today-slots-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.search-today-slots-list span {
    padding: 0.35rem 0.2rem;
    border: 1px solid rgba(66, 99, 235, 0.24);
    border-radius: 6px;
    background: rgba(66, 99, 235, 0.06);
    color: var(--agf-blue-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .sponsored-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .sponsored-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

.negocio-card {
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    border: 1px solid rgba(13, 110, 253, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 16px 30px rgba(13, 28, 61, 0.06);
    min-height: 100%;
}

.negocio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 38px rgba(13, 28, 61, 0.10);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--app-primary-strong);
    font-size: 0.85rem;
    font-weight: 600;
}

.vaccine-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 42px;
    padding: 10px 12px;
    text-align: center;
    line-height: 1.15;
}

.section-title {
    font-size: clamp(1.8rem, 2.4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.metric-number {
    font-size: 2rem;
    font-weight: 800;
}

.dashboard-hero-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(9, 23, 46, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(5, 11, 22, 0.06);
}

.dashboard-hero-compact h1 {
    margin: 2px 0 4px;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
}

.dashboard-kicker {
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-plan-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #657083;
    font-size: 0.9rem;
}

.dashboard-share-bar {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(420px, 1.45fr);
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(66, 99, 235, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(13, 28, 61, 0.07);
}

.dashboard-share-copy {
    display: grid;
    gap: 2px;
}

.dashboard-share-copy span {
    color: var(--app-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-share-copy strong {
    font-size: 0.96rem;
}

.dashboard-share-actions {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 8px;
}

.dashboard-share-actions .form-control,
.dashboard-share-actions .btn {
    min-height: 42px;
}

@media (max-width: 991px) {
    .sponsored-showcase {
        width: auto;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .sponsored-carousel-nav-prev {
        left: 0;
    }

    .sponsored-carousel-nav-next {
        right: 0;
    }

    .search-results-grid .search-result-card {
        min-height: 0;
    }

    .dashboard-share-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .dashboard-share-actions {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-share-actions .form-control {
        grid-column: 1 / -1;
    }
}

.dashboard-metric {
    min-height: 112px;
    padding: 14px 16px;
    border: 1px solid rgba(9, 23, 46, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(5, 11, 22, 0.05);
}

.dashboard-metric-label {
    color: #596579;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-metric-value {
    margin: 5px 0 2px;
    color: #081225;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-metric-note {
    color: #69758a;
    font-size: 0.75rem;
}

.dashboard-metric-primary { border-top: 3px solid #0d6efd; background: #f6f9ff; }
.dashboard-metric-success,
.dashboard-metric-pix { border-top: 3px solid #198754; background: #f3fbf7; }
.dashboard-metric-cyan { border-top: 3px solid #0aa2c0; background: #f2fbfd; }
.dashboard-metric-violet { border-top: 3px solid #7c3aed; background: #faf7ff; }
.dashboard-metric-danger { border-top: 3px solid #dc3545; background: #fff5f6; }
.dashboard-metric-dinheiro { border-top: 3px solid #198754; background: #f3fbf7; }
.dashboard-metric-cartao { border-top: 3px solid #0d6efd; background: #f5f8ff; }
.dashboard-metric-cheque { border-top: 3px solid #6c757d; background: #f8f9fa; }

.dashboard-section-compact {
    padding: 16px;
    border-radius: 8px;
}

.dashboard-professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}

.dashboard-professional-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(9, 23, 46, 0.08);
    border-radius: 8px;
    background: #f8fafc;
}

.dashboard-professional-item img,
.dashboard-professional-fallback {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.dashboard-professional-fallback {
    display: grid;
    place-items: center;
    color: #0a4fb2;
    font-weight: 800;
    background: #e7f1ff;
}

.dashboard-professional-item small {
    display: block;
    color: #6c757d;
}

.table-modern form .form-select-sm {
    width: auto;
    min-width: 118px;
    max-width: 145px;
}

.month-picker-shell {
    position: relative;
    width: 255px;
}

.month-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    text-align: left;
    background: #fff;
}

.month-picker-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1060;
    width: 290px;
    padding: 12px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(5, 11, 22, 0.16);
}

.month-picker-header,
.month-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.month-picker-header {
    margin-bottom: 8px;
}

.month-picker-nav {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 1.4rem;
}

.month-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.month-picker-month {
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #f5f7fa;
    color: #111827;
    text-transform: capitalize;
}

.month-picker-month:hover {
    border-color: #0d6efd;
}

.month-picker-month.active {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
}

.month-picker-footer {
    margin-top: 8px;
}

.receipt-print-area {
    display: none;
    color: #111827;
    background: #fff;
}

.receipt-print-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #111827;
}

.receipt-print-head h1 {
    margin: 4px 0;
    font-size: 24px;
}

.receipt-print-head p {
    margin: 0;
    color: #4b5563;
}

.receipt-print-kicker {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.receipt-print-body {
    padding: 28px 0;
    font-size: 15px;
    line-height: 1.55;
}

.receipt-print-body dl {
    margin: 24px 0 0;
    border-top: 1px solid #d1d5db;
}

.receipt-print-body dl > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #d1d5db;
}

.receipt-print-body dt {
    font-weight: 700;
}

.receipt-print-body dd {
    margin: 0;
}

.receipt-print-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 48px;
    font-size: 13px;
}

.receipt-signature {
    min-width: 280px;
    text-align: center;
}

.receipt-signature span {
    display: block;
    margin-bottom: 8px;
    border-top: 1px solid #111827;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 16mm;
    }

    body.receipt-printing * {
        visibility: hidden !important;
    }

    body.receipt-printing .receipt-print-area,
    body.receipt-printing .receipt-print-area * {
        visibility: visible !important;
    }

    body.receipt-printing .receipt-print-area {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .dashboard-hero-compact {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .dashboard-hero-compact .btn {
        width: 100%;
    }

    .dashboard-metric {
        min-height: 100px;
        padding: 12px;
    }

    .dashboard-professional-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-professional-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .dashboard-professional-item img,
    .dashboard-professional-fallback {
        width: 38px;
        height: 38px;
    }
}

.list-clean {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-clean li + li {
    border-top: 1px solid rgba(5, 11, 22, 0.06);
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.agenda-slot {
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 18px;
    padding: 14px 10px;
    font-weight: 700;
    text-align: center;
    background: #fff;
    transition: 0.2s ease;
    cursor: pointer;
}

.agenda-slot:hover,
.agenda-slot.active {
    background: var(--app-primary);
    color: #fff;
    border-color: var(--app-primary);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.appointment-entry + .appointment-entry {
    border-top: 1px solid rgba(5, 11, 22, 0.06);
}

.appointment-paciente-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.appointment-status-pill {
    padding: 10px 14px;
    min-width: auto;
    justify-content: center;
    font-size: 0.9rem;
    align-self: flex-start;
}

.appointment-entry-head {
    width: 100%;
}

.appointment-entry-main {
    min-width: 0;
}

.appointment-entry-copy {
    min-width: 0;
}

.appointment-entry-copy strong {
    display: block;
    line-height: 1.35;
}

.rating-stars {
    letter-spacing: 2px;
    color: #ffb400;
    font-size: 1.1rem;
}

.table-modern {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(13, 110, 253, 0.03);
}

.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.calendar-shell {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.calendar-column {
    border: 1px solid rgba(5, 11, 22, 0.08);
    border-radius: 24px;
    background: #fff;
    padding: 24px;
}

.paciente-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(13, 110, 253, 0.14);
    box-shadow: 0 10px 24px rgba(5, 11, 22, 0.10);
    background: #fff;
    flex: 0 0 auto;
    padding: 0;
}

.paciente-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--app-primary-strong);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(85, 214, 255, 0.18));
}

.negocio-cover-preview {
    width: 100%;
    height: 140px;
    max-height: 140px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(13, 110, 253, 0.14);
    box-shadow: 0 10px 24px rgba(5, 11, 22, 0.08);
    background: #fff;
}

.negocio-hero-cover-wrap {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 18px 36px rgba(5, 11, 22, 0.10);
    overflow: hidden;
    background: #f6f9ff;
    height: clamp(180px, 24vw, 260px);
}

.negocio-hero-cover-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 11, 22, 0.06), rgba(5, 11, 22, 0.18));
    pointer-events: none;
}

.negocio-hero-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #fff;
}

.glass-card .paciente-avatar {
    width: 96px;
    height: 96px;
}

.negocio-hero-head {
    min-width: 0;
}

.negocio-hero-copy {
    min-width: 0;
}

.negocio-hero-meta span {
    line-height: 1.5;
}

.negocio-hero-sidecard {
    height: 100%;
}

.profissional-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.profissional-choice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.14);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(13, 28, 61, 0.06);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profissional-choice-card:hover,
.profissional-choice-card.active {
    border-color: var(--app-primary);
    box-shadow: 0 18px 32px rgba(13, 110, 253, 0.14);
    transform: translateY(-2px);
}

.profissional-choice-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--app-primary-strong);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(85, 214, 255, 0.18));
    flex: 0 0 auto;
}

.profissional-choice-photo {
    object-fit: cover;
}

.profissional-choice-content {
    min-width: 0;
}

.autocomplete-shell {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(5, 11, 22, 0.08);
    box-shadow: 0 18px 40px rgba(5, 11, 22, 0.12);
}

.autocomplete-result-item {
    border: 0;
    border-radius: 14px;
    background: #f8fbff;
    padding: 12px 14px;
    text-align: left;
    display: grid;
    gap: 2px;
}

.autocomplete-result-item span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.autocomplete-result-item:hover {
    background: rgba(13, 110, 253, 0.08);
}

.appointment-client-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(5, 11, 22, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(5, 11, 22, 0.08);
    padding: 1.35rem;
    height: 100%;
}

.professional-date-form {
    width: 100%;
}

.min-w-0 {
    min-width: 0;
}

.professional-agenda-header {
    padding: 1rem !important;
}

.professional-agenda-header .paciente-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.professional-agenda-header .section-title {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.professional-agenda-shell {
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
    gap: 16px;
}

.professional-agenda-shell .calendar-column {
    padding: 16px;
    border-radius: 18px;
}

.professional-agenda-shell .h4 {
    font-size: 1.12rem;
}

.professional-agenda-shell .table > :not(caption) > * > * {
    padding: 0.55rem 0.45rem;
}

.professional-agenda-shell .appointment-paciente-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.professional-agenda-shell .appointment-client-card {
    padding: 1rem;
    border-radius: 18px;
}

.professional-agenda-shell .d-md-none .appointment-client-card .row.g-3 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 0.65rem !important;
}

.professional-agenda-shell .d-md-none .appointment-client-card .row.g-3 > [class*="col-"] {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    padding: 0;
    font-size: 0.92rem;
    line-height: 1.35;
}

.professional-agenda-shell .d-md-none .appointment-client-card .row.g-3 small.d-block {
    display: inline !important;
    margin-right: 3px;
}

.professional-agenda-shell .d-md-none .appointment-client-card .row.g-3 small.d-block::after {
    content: ":";
}

.professional-agenda-shell .agenda-grid {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
}

.professional-agenda-shell .agenda-slot {
    padding: 10px 8px;
    border-radius: 14px;
}

@media (min-width: 992px) {
    .professional-date-form {
        width: auto;
    }
}

.exam-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.exam-image-card {
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    box-shadow: 0 12px 28px rgba(5, 11, 22, 0.08);
}

.exam-image-card img {
    width: 100%;
    height: 126px;
    object-fit: cover;
    display: block;
}

.consultation-side-summary {
    min-width: min(300px, 100%);
    max-width: 340px;
}

.panel-shell {
    display: block;
}

.panel-menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    right: auto;
    z-index: 1080;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(5, 11, 22, 0.96);
    box-shadow: 0 18px 36px rgba(5, 11, 22, 0.18);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
    transition:
        left 0.28s ease,
        right 0.28s ease,
        border-radius 0.22s ease,
        background 0.22s ease,
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.panel-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.panel-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1070;
    pointer-events: none;
}

.panel-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 22, 0.48);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.panel-sidebar-card {
    position: relative;
    width: var(--panel-sidebar-width);
    max-width: calc(100vw - 24px);
    min-height: 100vh;
    max-height: 100vh;
    background: linear-gradient(180deg, rgba(5, 11, 22, 0.99), rgba(16, 27, 47, 0.99));
    color: #fff;
    padding: 58px 20px 24px;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    box-shadow: 0 22px 48px rgba(5, 11, 22, 0.24);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 27, 47, 0.98) rgba(5, 11, 22, 0.99);
}

.panel-sidebar-card::-webkit-scrollbar {
    width: 10px;
}

.panel-sidebar-card::-webkit-scrollbar-track {
    background: rgba(5, 11, 22, 0.99);
}

.panel-sidebar-card::-webkit-scrollbar-thumb {
    background: rgba(16, 27, 47, 0.98);
    border-radius: 999px;
    border: 2px solid rgba(5, 11, 22, 0.99);
}

.panel-sidebar-card::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 32, 56, 0.98);
}

.panel-sidebar.is-open {
    pointer-events: auto;
}

.panel-sidebar.is-open .panel-sidebar-backdrop {
    opacity: 1;
}

.panel-sidebar.is-open .panel-sidebar-card {
    transform: translateX(0);
}

body.panel-menu-open .panel-menu-toggle {
    left: calc(var(--panel-sidebar-width) + 8px);
    right: auto;
    border-radius: 14px;
    background: rgba(5, 11, 22, 0.96);
    box-shadow: 0 18px 36px rgba(5, 11, 22, 0.24);
    transform: translateX(0);
}

body.panel-menu-open .panel-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.panel-menu-open .panel-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.panel-menu-open .panel-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.panel-sidebar-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-sidebar-top-public-nav {
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.panel-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 62px);
    min-height: 92px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-profile-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.16), rgba(39, 196, 245, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.panel-profile-icon svg {
    width: 30px;
    height: 30px;
    stroke: #dbeafe;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel-profile-icon-image {
    overflow: hidden;
}

.panel-profile-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.panel-profile-icon-logo img {
    object-fit: contain;
    padding: 6px;
}

.panel-profile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.panel-profile-text {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.95rem;
    line-height: 1.35;
}

.panel-sidebar-public .panel-profile-name {
    max-width: 180px;
}

.panel-sidebar-public .panel-profile-text {
    max-width: 190px;
}

.panel-nav-label {
    margin: 2px 0 10px;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.panel-menu-close {
    border: 0;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.6rem;
    line-height: 1;
    display: none;
}

.panel-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    margin-bottom: 6px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.panel-nav .nav-link span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-nav .nav-link.active,
.panel-nav .nav-link:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.92), rgba(18, 171, 180, 0.86));
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.18);
}

.panel-nav-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.panel-nav-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel-profile-switch-form {
    margin: 10px 0 0;
}

.panel-nav .panel-profile-switch-button {
    width: 100%;
    border: 1px solid rgba(39, 196, 245, 0.24);
    background: rgba(39, 196, 245, 0.08);
    text-align: left;
}

.panel-nav-logout {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.panel-content {
    padding-top: 56px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.search-location-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mobile-search-dock {
    display: none;
}

.search-result-head,
.search-result-copy {
    min-width: 0;
}

.search-result-location,
.search-result-description {
    line-height: 1.55;
}

.search-result-mobile-meta {
    display: none;
}

@media (min-width: 992px) {
    .panel-menu-toggle {
        top: 20px;
        left: 20px;
        right: auto;
    }

    body.panel-menu-open .panel-menu-toggle {
        left: calc(var(--panel-sidebar-width) + 10px);
        right: auto;
    }

    .panel-content {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 52px;
    }
}

@media (max-width: 991px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-trial-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 16px;
    }

    .hero-trial-card .btn {
        width: 100%;
    }

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

    .calendar-shell {
        grid-template-columns: 1fr;
    }

    .calendar-column {
        padding: 18px;
        border-radius: 22px;
    }

    .appointment-entry {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .appointment-entry-head {
        flex-direction: column;
        gap: 14px !important;
    }

    .appointment-entry-main {
        align-items: flex-start;
        gap: 14px !important;
        width: 100%;
    }

    .appointment-paciente-avatar {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        flex-shrink: 0;
    }

    .appointment-entry-copy {
        width: 100%;
    }

    .appointment-entry-copy .small {
        line-height: 1.45;
    }

    .appointment-status-pill {
        align-self: flex-start;
        padding: 8px 14px;
        font-size: 0.88rem;
    }

    .appointment-entry-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
    }

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

    .panel-sidebar-card {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        padding-top: 58px;
    }

    body.panel-menu-open .panel-menu-toggle {
        left: auto;
        right: 12px;
    }

    .panel-content {
        padding-top: 50px;
    }

    body.public-menu-mode main > .container,
    body.public-menu-mode main > .container-fluid {
        padding-top: 3rem !important;
    }

    body.search-mobile-docked.public-menu-mode main > .container,
    body.search-mobile-docked.public-menu-mode main > .container-fluid {
        padding-top: 7.6rem !important;
    }

    .negocio-card {
        padding: 1.4rem !important;
    }

    .mobile-search-dock {
        display: block;
        position: fixed;
        top: 12px;
        left: 74px;
        right: 12px;
        z-index: 1045;
    }

    .mobile-search-dock-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(9, 23, 46, 0.08);
        box-shadow: 0 16px 36px rgba(5, 11, 22, 0.12);
        backdrop-filter: blur(12px);
    }

    .mobile-search-dock-copy {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .mobile-search-dock-copy strong,
    .mobile-search-dock-copy span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-search-dock-copy strong {
        font-size: 0.96rem;
        font-weight: 700;
        color: var(--app-ink);
    }

    .mobile-search-dock-copy span {
        font-size: 0.78rem;
        color: rgba(16, 27, 47, 0.7);
    }

    .mobile-search-dock .btn {
        min-height: 40px;
        padding-inline: 14px;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    .mobile-search-dock .collapse,
    .mobile-search-dock .collapsing {
        margin-top: 10px;
    }

    .mobile-search-dock-panel {
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(5, 11, 22, 0.12);
    }

    .mobile-search-dock-panel .form-control,
    .mobile-search-dock-panel .form-select,
    .mobile-search-dock-panel .btn {
        min-height: 48px;
    }

    .search-header-card-mobile-hidden {
        display: none;
    }

    .search-result-header {
        align-items: flex-start !important;
    }

    .search-result-head {
        flex-direction: row;
        align-items: flex-start !important;
        gap: 0.95rem !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .search-result-logo {
        width: 76px;
        height: 76px;
        border-radius: 22px;
        flex: 0 0 76px;
    }

    .search-result-copy {
        width: auto;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .search-result-copy h2 {
        font-size: 1.9rem;
        line-height: 1.04;
    }

    .search-result-location {
        margin-bottom: 0 !important;
        font-size: 1rem;
    }

    .search-result-mobile-meta {
        display: block;
        width: 100%;
        margin-top: -0.2rem;
        margin-bottom: 1rem;
    }

    .search-result-badge {
        align-self: flex-start !important;
    }

    .search-result-rating {
        align-items: flex-start !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem !important;
        margin-bottom: 0 !important;
    }

    .search-result-rating-score {
        font-size: 1.05rem;
        line-height: 1;
        color: #10213f;
        font-weight: 700;
    }

    .search-result-rating small {
        font-size: 0.95rem;
        width: auto;
    }

    .search-result-tags {
        gap: 0.55rem !important;
        width: 100%;
        justify-content: flex-start;
    }

    .search-result-mobile-meta .search-result-tags .badge {
        font-size: 0.82rem;
        padding: 0.55rem 0.85rem;
    }

    .search-result-tags .badge {
        font-size: 0.82rem;
        padding: 0.55rem 0.75rem;
    }

    .search-result-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .search-result-actions .btn {
        width: 100%;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .sponsored-carousel-track {
        gap: 14px;
    }

    .sponsored-card {
        flex-basis: calc((100% - 14px) / 2);
    }

    .sponsored-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }

    .sponsored-carousel-nav-prev {
        left: -6px;
    }

    .sponsored-carousel-nav-next {
        right: -6px;
    }

    .sponsored-card {
        flex-basis: 100%;
    }

    .sponsored-carousel-nav {
        top: 42%;
    }

    .negocio-hero-cover-wrap {
        height: clamp(140px, 38vw, 220px);
        margin-bottom: 1.2rem !important;
    }

    .negocio-hero-grid {
        gap: 1.25rem !important;
    }

    .negocio-hero-head {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .negocio-hero-logo {
        width: 80px;
        height: 80px;
        border-radius: 22px;
    }

    .negocio-hero-copy {
        width: 100%;
    }

    .negocio-hero-copy .badge-soft {
        margin-bottom: 0.9rem !important;
    }

    .negocio-hero-copy .section-title {
        font-size: clamp(2rem, 8vw, 2.6rem);
        line-height: 1.02;
    }

    .negocio-hero-copy p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .negocio-hero-meta {
        gap: 0.7rem !important;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .negocio-hero-sidecard {
        padding: 1.35rem !important;
    }

    .negocio-hero-sidecard .btn {
        min-height: 50px;
    }
}

/* Final public-brand overrides. */
.app-navbar {
    background: rgba(5, 7, 25, 0.97);
}

.app-navbar .navbar-brand img {
    width: 148px;
    height: 76px;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .app-navbar {
        padding: 0.2rem 0;
    }

    .app-navbar-inner {
        align-items: center;
        gap: 8px;
    }

    .app-navbar .navbar-brand img {
        width: 108px;
        height: 60px;
    }

    .app-navbar .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
    }

    .app-navbar .navbar-nav {
        order: 2;
        margin-left: auto !important;
        gap: 0 !important;
        flex: 0 0 auto;
    }

    .app-navbar .search-navbar-form {
        order: 1;
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0 10px !important;
        gap: 6px;
    }

    .app-navbar .search-navbar-field:first-child {
        flex: 2 1 180px;
        min-width: 0;
    }

    .app-navbar .search-navbar-field-category {
        flex: 0 1 145px;
        min-width: 118px;
    }

    .app-navbar .search-navbar-location {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        font-size: 0.8rem;
    }

    .app-navbar .search-navbar-submit {
        min-width: 80px;
    }

    .app-navbar .navbar-nav .nav-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .sponsored-showcase {
        width: auto;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .sponsored-carousel-nav-prev {
        left: 0;
    }

    .sponsored-carousel-nav-next {
        right: 0;
    }

    .sponsored-card {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100% !important;
    }
}
.business-verification-code {
    max-width: 15rem;
    margin-inline: auto;
    font-size: 1.75rem;
    font-weight: 800;
}

.service-association-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 5.25rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-card);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-association-card:hover,
.service-association-card:has(input:checked) {
    border-color: var(--app-primary);
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.12);
    transform: translateY(-1px);
}

.service-association-card span {
    display: grid;
    gap: 0.25rem;
}

.service-association-card small {
    color: var(--app-primary-strong);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .mobile-appointment-list {
        width: 100%;
    }

    .mobile-appointment-summary {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto auto;
        gap: 0.625rem;
        align-items: center;
        width: 100%;
        min-height: 3.75rem;
        padding: 0.625rem 0.75rem;
        border: 1px solid var(--app-border);
        border-radius: 8px;
        background: var(--app-card);
        color: var(--app-ink);
        text-align: left;
        box-shadow: 0 6px 18px rgba(5, 11, 22, 0.05);
    }

    .mobile-appointment-summary .appointment-paciente-avatar {
        width: 42px;
        height: 42px;
    }

    .mobile-appointment-summary strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-appointment-summary .mobile-completed-label {
        display: inline-block;
        margin-left: 0.35rem;
        color: #16834a;
        font-size: 0.68rem;
        font-weight: 800;
        vertical-align: middle;
    }

    .mobile-completed-appointments-card {
        border-color: rgba(22, 131, 74, 0.24);
        background: #f2fbf6;
    }

    .mobile-appointment-summary-completed {
        border-color: rgba(22, 131, 74, 0.22);
        background: #ffffff;
    }

    .mobile-appointment-summary > span:not(.appointment-paciente-avatar) {
        color: #6b7280;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .mobile-appointment-summary > b {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .mobile-appointment-detail-modal .modal-dialog {
        align-items: center;
        width: calc(100% - 1rem);
        min-height: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .mobile-appointment-detail-modal .modal-content {
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        border-radius: 8px;
    }

    .mobile-appointment-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .mobile-appointment-detail-grid > span {
        display: grid;
        gap: 0.125rem;
        padding: 0.625rem;
        border: 1px solid var(--app-border);
        border-radius: 6px;
    }

    .mobile-appointment-detail-grid small {
        color: #6b7280;
        font-size: 0.7rem;
    }

    .mobile-appointment-detail-grid strong {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .mobile-detail-wide {
        grid-column: 1 / -1;
    }

    .mobile-appointment-detail-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .mobile-appointment-detail-actions form {
        flex: 1 1 14rem;
    }

    .professional-mobile-appointment {
        display: grid;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .professional-mobile-appointment .appointment-paciente-avatar {
        width: 42px;
        height: 42px;
    }

    .professional-mobile-meta {
        display: grid;
        grid-template-columns: auto auto 1fr;
        gap: 0.5rem;
        align-items: center;
        padding-top: 0.625rem;
        border-top: 1px solid var(--app-border);
    }

    .professional-mobile-meta span {
        display: grid;
        gap: 0.125rem;
    }

    .professional-mobile-meta small {
        color: #6b7280;
        font-size: 0.7rem;
    }

    .professional-mobile-service {
        min-width: 0;
    }

    .professional-mobile-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .professional-mobile-finish {
        flex: 1 1 13rem;
    }

    .professional-mobile-finish .form-select {
        min-width: 0;
    }

    .agenda-business-card-table {
        overflow: visible;
    }

    .agenda-business-card-table table,
    .agenda-business-card-table tbody {
        display: block;
        width: 100%;
    }

    .agenda-business-card-table thead {
        display: none;
    }

    .agenda-business-card-table tr {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.625rem 0.75rem;
        margin-bottom: 0.75rem;
        padding: 0.875rem;
        border: 1px solid var(--app-border);
        border-radius: 8px;
        background: var(--app-card);
        box-shadow: 0 8px 22px rgba(5, 11, 22, 0.06);
    }

    .agenda-business-card-table td {
        display: block;
        padding: 0 !important;
        border: 0;
    }

    .agenda-business-card-table td:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .agenda-business-card-table td:nth-child(1) {
        grid-column: 1;
        grid-row: 2;
    }

    .agenda-business-card-table td:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }

    .agenda-business-card-table td:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
    }

    .agenda-business-card-table td:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .agenda-business-card-table td:nth-child(6) {
        grid-column: 1 / -1;
        grid-row: 4;
        text-align: left !important;
    }

    .agenda-business-card-table td:nth-child(6) > div {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }

    .agenda-business-card-table td:nth-child(6) form {
        flex: 1 1 14rem;
    }

    .agenda-business-card-table .agenda-cancel-action {
        display: block;
        flex: 0 0 100%;
        padding-top: 0.125rem;
    }
}
