:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --ink: #0b1730;
    --text: #16233f;
    --muted: #5d6d85;
    --primary: #3255d7;
    --primary-dark: #243b9d;
    --teal: #5468ea;
    --green: #16a34a;
    --green-soft: #e9f8ef;
    --amber: #b45309;
    --amber-soft: #fef3e2;
    --red: #dc2626;
    --red-soft: #fdecec;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.16);
    --shadow-sm: 0 10px 28px rgba(16, 30, 60, 0.07);
    --shadow-md: 0 20px 48px rgba(16, 30, 60, 0.11);
    --shadow-lg: 0 34px 80px rgba(16, 30, 60, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1180px; }

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
}

.scroll-progress i {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    transition: width 0.08s linear;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.astravex-nav {
    min-height: 84px;
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: none;
    transition: min-height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.astravex-nav.is-scrolled {
    min-height: 66px;
    background: #fff;
    backdrop-filter: none;
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.astravex-nav .navbar-brand,
.astravex-nav .nav-link,
.astravex-nav .login-link,
.astravex-nav .navbar-toggler {
    color: #fff;
    transition: color 0.3s ease;
}

.astravex-nav .nav-link::after { background: #fff; }

.astravex-nav:not(.is-scrolled) .nav-link:hover,
.astravex-nav:not(.is-scrolled) .nav-link.active { color: #fff; }

.astravex-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.astravex-nav.is-scrolled .navbar-brand,
.astravex-nav.is-scrolled .login-link,
.astravex-nav.is-scrolled .navbar-toggler { color: var(--ink); }

.astravex-nav.is-scrolled .nav-link { color: var(--ink); }
.astravex-nav.is-scrolled .nav-link:hover,
.astravex-nav.is-scrolled .nav-link.active { color: var(--ink); }
.astravex-nav.is-scrolled .nav-link::after { background: var(--primary); }
.astravex-nav.is-scrolled .navbar-toggler { border-color: var(--border-strong); }

.navbar-collapse.show {
    margin-top: 0.6rem;
    padding: 1rem 1.1rem 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.astravex-nav .navbar-collapse.show .nav-link,
.astravex-nav .navbar-collapse.show .login-link { color: var(--muted); }
.astravex-nav .navbar-collapse.show .nav-link:hover,
.astravex-nav .navbar-collapse.show .nav-link.active { color: var(--ink); }
.astravex-nav .navbar-collapse.show .nav-link::after { background: var(--primary); }

.navbar-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-weight: 900;
}

.footer-brand { color: #fff; }

.brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 12px 26px rgba(50, 85, 215, 0.24);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-toggler {
    color: var(--ink);
    border: 1px solid var(--border-strong);
}

.nav-link {
    position: relative;
    margin: 0 0.18rem;
    color: var(--muted);
    font-weight: 750;
}

.nav-link:hover,
.nav-link.active { color: var(--ink); }

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.25rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--primary);
    transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.2rem;
}

.login-link {
    color: var(--ink);
    font-weight: 800;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.18);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-button:hover,
.login-button:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(15, 23, 42, 0.32);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    outline: 0;
    transform: translateY(-1px);
}

.astravex-nav.is-scrolled .login-button,
.business-nav .login-button,
.navbar-collapse.show .login-button {
    color: var(--ink);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.astravex-nav.is-scrolled .login-button:hover,
.astravex-nav.is-scrolled .login-button:focus-visible,
.business-nav .login-button:hover,
.business-nav .login-button:focus-visible,
.navbar-collapse.show .login-button:hover,
.navbar-collapse.show .login-button:focus-visible {
    color: var(--primary);
    border-color: rgba(50, 85, 215, 0.4);
    background: #eef3ff;
    box-shadow: 0 10px 24px rgba(50, 85, 215, 0.13);
}

.pet-profile-dropdown { min-width: 0; }

.pet-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.35rem 0.55rem 0.35rem 0.4rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(11, 23, 48, 0.2);
    font: inherit;
    text-align: left;
    transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.pet-profile-trigger:hover,
.pet-profile-trigger:focus-visible,
.pet-profile-trigger[aria-expanded="true"] {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(11, 23, 48, 0.34);
    box-shadow: 0 12px 30px rgba(11, 23, 48, 0.15);
    outline: none;
}

.pet-profile-avatar {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: var(--primary);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(11, 23, 48, 0.13);
}

.pet-profile-copy,
.pet-profile-menu-head > span:last-child,
.pet-profile-menu .dropdown-item > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.pet-profile-copy small {
    color: currentColor;
    opacity: 0.72;
    font-size: 0.62rem;
    line-height: 1.1;
    font-weight: 700;
}

.pet-profile-copy strong {
    max-width: 112px;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pet-profile-chevron {
    margin-left: 0.15rem;
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.pet-profile-trigger[aria-expanded="true"] .pet-profile-chevron { transform: rotate(180deg); }

.astravex-nav.is-scrolled .pet-profile-trigger,
.business-nav .pet-profile-trigger,
.navbar-collapse.show .pet-profile-trigger {
    color: var(--ink);
    border-color: var(--border-strong);
    background: #fff;
}

.astravex-nav.is-scrolled .pet-profile-trigger:hover,
.astravex-nav.is-scrolled .pet-profile-trigger:focus-visible,
.astravex-nav.is-scrolled .pet-profile-trigger[aria-expanded="true"],
.business-nav .pet-profile-trigger:hover,
.business-nav .pet-profile-trigger:focus-visible,
.business-nav .pet-profile-trigger[aria-expanded="true"] {
    color: var(--ink);
    border-color: rgba(50, 85, 215, 0.34);
    background: #f8faff;
}

.pet-profile-menu {
    width: min(310px, calc(100vw - 2rem));
    margin-top: 0.65rem !important;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.pet-profile-menu-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.6rem 0.75rem;
}

.pet-profile-menu-head small,
.pet-profile-menu .dropdown-item small {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
}

.pet-profile-menu-head strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pet-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem;
    color: var(--text);
    border: 0;
    border-radius: 7px;
    background: transparent;
    white-space: normal;
}

.pet-profile-menu .dropdown-item > i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: var(--primary);
    border-radius: 7px;
    background: #eef3ff;
}

.pet-profile-menu .dropdown-item strong { color: var(--ink); font-size: 0.79rem; }
.pet-profile-menu .dropdown-item:hover,
.pet-profile-menu .dropdown-item:focus { background: #f3f6fc; }
.pet-profile-menu .dropdown-divider { margin: 0.35rem 0; border-color: var(--border); }
.pet-profile-menu form { margin: 0; }
.pet-profile-menu .pet-profile-logout > i { color: var(--red); background: var(--red-soft); }
.pet-profile-menu .pet-profile-logout:hover,
.pet-profile-menu .pet-profile-logout:focus { background: var(--red-soft); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
    transition: opacity 0.2s ease;
}

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

.btn.is-pressing,
.flow-step.is-pressing,
.time-slots button.is-pressing { transform: translateY(1px) scale(0.98); }

.btn-primary-glow {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 16px 34px rgba(50, 85, 215, 0.25);
}

.btn-primary-glow:hover,
.btn-primary-glow:focus {
    color: #fff;
    box-shadow: 0 20px 44px rgba(84, 104, 234, 0.28);
}

.btn-ghost {
    color: var(--ink);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.82);
}

.business-nav {
    min-height: 66px;
    border-bottom-color: var(--border);
    background: #fff;
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
}

.business-nav,
.business-nav.is-scrolled {
    min-height: 66px;
    border-bottom-color: var(--border);
    background: #fff;
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
}

.business-nav .navbar-brand,
.business-nav .nav-link,
.business-nav .login-link,
.business-nav .navbar-toggler,
.business-nav:not(.is-scrolled) .nav-link:hover,
.business-nav:not(.is-scrolled) .nav-link.active {
    color: var(--ink);
}

.business-nav .nav-link { color: var(--ink); }

.astravex-nav .nav-link > .fa-house {
    margin-right: 0.34rem;
    font-size: 0.78rem;
}

.business-nav .nav-link:hover,
.business-nav .nav-link.active {
    color: var(--ink);
}

.business-nav .nav-link::after,
.business-nav:not(.is-scrolled) .nav-link::after {
    background: var(--primary);
}

.business-nav .navbar-toggler {
    border-color: var(--border-strong);
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 110px 0 56px;
    overflow: hidden;
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    animation: heroVideoZoom 16s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroVideoZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video { animation: none; }
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 11, 26, 0.62) 0%, rgba(9, 16, 38, 0.32) 46%, rgba(9, 16, 38, 0.52) 100%);
}

.hero-copy {
    position: relative;
    z-index: 5;
}

.hero-copy-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: clamp(0px, 2vw, 24px);
}

.hero-badge,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 850;
}

.hero-badge {
    color: #fff;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.section-eyebrow {
    color: var(--primary-dark);
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(50, 85, 215, 0.18);
    background: rgba(50, 85, 215, 0.07);
}

.hero-copy h1 {
    max-width: 860px;
    margin: 1rem 0;
    color: #fff;
    font-size: clamp(2.3rem, 4.4vw, 3.9rem);
    line-height: 1.14;
    font-weight: 900;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.72;
}

.search-panel {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1.1fr 1fr auto;
    align-items: stretch;
    gap: 0.65rem;
    width: min(720px, 100%);
    margin-top: 2rem;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(3, 8, 24, 0.4);
}

.search-field {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus-within {
    border-color: rgba(50, 85, 215, 0.4);
    box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.12);
}

.search-field span {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.search-field span i { color: var(--primary); font-size: 0.72rem; }

.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    outline: 0;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.7rem 0.6rem;
    border-radius: 15px;
    font-size: 0.92rem;
}

.quick-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.quick-links a {
    padding: 0.62rem 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    font-size: 0.88rem;
    font-weight: 800;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-links a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.trust-strip {
    position: relative;
    z-index: 3;
    margin-top: -38px;
    padding-bottom: 36px;
}

.trust-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.25rem;
    border-right: 1px solid var(--border);
}

.trust-item:last-child { border-right: 0; }

.trust-item i {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
}

.trust-item strong,
.trust-item small { display: block; }
.trust-item strong { color: var(--ink); font-weight: 900; }
.trust-item small { margin-top: 0.14rem; color: var(--muted); font-size: 0.8rem; }

.section-pad { padding: 90px 0; }

.section-heading {
    max-width: 760px;
    margin: 0 auto 3rem;
}

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

.section-heading h2 {
    margin: 1rem 0 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    font-weight: 900;
}

.section-heading p {
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.pet-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pet-service-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 156px;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.pet-service-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.pet-service-card:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.pet-service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 15px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.pet-service-card strong,
.pet-service-card small { display: block; }
.pet-service-card strong { color: var(--ink); font-size: 1.05rem; font-weight: 900; }
.pet-service-card small { margin-top: 0.4rem; color: var(--muted); line-height: 1.55; }

.service-arrow {
    margin-left: auto;
    color: var(--accent);
}

.how-section { background: var(--surface-soft); }

.trust-confidence-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: center;
}

.confidence-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.confidence-list span,
.owner-benefits span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-weight: 850;
}

.confidence-list i,
.owner-benefits i {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--green);
    font-size: 0.78rem;
}

.how-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.how-flow-line {
    position: absolute;
    top: 38px;
    left: 10%;
    right: 10%;
    z-index: 0;
    height: 2px;
    background-image: linear-gradient(90deg, var(--border-strong) 0, var(--border-strong) 60%, transparent 60%);
    background-size: 14px 2px;
}

.how-flow-line i {
    display: block;
    width: 12%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    transition: width 0.6s ease;
}

.flow-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.25rem 1.25rem 1.7rem;
    overflow: visible;
    color: var(--ink);
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.flow-step::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: 4px;
    border-radius: 18px 0 0 18px;
    background: var(--flow-color);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.flow-step:hover,
.flow-step.is-active {
    border-color: color-mix(in srgb, var(--flow-color) 40%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.flow-step.is-active {
    background: color-mix(in srgb, var(--flow-color) 6%, var(--surface));
}

.flow-step.is-active::before { opacity: 1; }

.flow-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.flow-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--flow-color);
    font-size: 0.86rem;
    font-weight: 900;
    transition: transform 0.24s ease;
}

.flow-step.is-active .flow-number { transform: scale(1.1); }

.flow-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--flow-color);
    border-radius: 11px;
    background: color-mix(in srgb, var(--flow-color) 14%, transparent);
    transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.flow-step:hover .flow-icon { transform: rotate(-6deg) scale(1.06); }

.flow-step.is-active .flow-icon {
    color: #fff;
    background: var(--flow-color);
}

.flow-step strong,
.flow-step small { position: relative; z-index: 2; display: block; }
.flow-step strong { margin-bottom: 0.35rem; font-weight: 900; }
.flow-step small { color: var(--muted); line-height: 1.55; }

.flow-step:has(.flow-pet-busca) strong,
.flow-step:has(.flow-pet-busca) small { max-width: 41%; }

.flow-step:has(.flow-pet-compara) strong,
.flow-step:has(.flow-pet-compara) small { max-width: 54%; }

.flow-step:has(.flow-pet-reserva) strong,
.flow-step:has(.flow-pet-reserva) small { max-width: 58%; }

.flow-pet {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 0;
    height: auto;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.flow-step.is-active .flow-pet {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.flow-pet-busca { width: 58%; right: -4px; }
.flow-pet-compara { width: 42%; }
.flow-pet-reserva { width: 38%; }

@media (prefers-reduced-motion: reduce) {
    .flow-pet { transition: opacity 0.3s ease; transform: none !important; }
}

.flow-progress {
    position: absolute;
    z-index: 3;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0.85rem;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--flow-color) 14%, transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.flow-step.is-active .flow-progress { opacity: 1; }

.flow-progress i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: var(--flow-color);
}

.flow-progress i.is-filling {
    width: 100%;
    transition: width 3s linear;
}

.categories-section { background: var(--surface); }

.anchor-offset {
    position: relative;
    top: -96px;
    display: block;
    visibility: hidden;
}

.scroll-grow-video {
    display: flex;
    justify-content: center;
    width: 100vw;
    margin-top: 2.4rem;
    margin-bottom: 2.8rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.scroll-grow-video-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 32px;
    background: #0b1730;
    box-shadow: 0 30px 70px rgba(10, 20, 50, 0.22);
    transform: scale(0.55);
    will-change: transform, border-radius;
}

.scroll-grow-video-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.scroll-grow-video-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-grow-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6, 11, 26, 0.62) 0%, rgba(6, 11, 26, 0.42) 40%, rgba(6, 11, 26, 0.7) 100%);
}

.scroll-grow-video-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    padding: 0 clamp(20px, 5vw, 60px);
}

.scroll-grow-video-content .section-heading {
    max-width: 720px;
    margin: 0 auto 2.4rem;
}

.scroll-grow-video-content .section-eyebrow {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.scroll-grow-video-content .section-heading h2 {
    color: #fff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.scroll-grow-video-content .section-heading p {
    color: rgba(255, 255, 255, 0.82);
}

.scroll-grow-video-content .pet-category-pill {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.scroll-grow-video-content .pet-category-pill i {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.scroll-grow-video-content .pet-category-pill.is-featured {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.scroll-grow-video-content .pet-category-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.26);
}

.pet-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.pet-category-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 74px;
    padding: 1rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f9fbff;
    font-weight: 850;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pet-category-pill i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--primary);
    border-radius: 13px;
    background: rgba(50, 85, 215, 0.09);
}

.pet-category-pill.is-featured {
    color: var(--ink);
    border-color: rgba(50, 85, 215, 0.22);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pet-category-pill:hover {
    color: var(--primary-dark);
    border-color: rgba(50, 85, 215, 0.3);
    transform: translateY(-3px);
}

.business-owner-section {
    background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.owner-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(50, 85, 215, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(50, 85, 215, 0.08), rgba(22, 163, 74, 0.07)),
        #fff;
    box-shadow: var(--shadow-lg);
}

.owner-copy h2 {
    margin: 1rem 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 900;
}

.owner-copy p {
    max-width: 570px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.owner-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.final-cta { padding: 0; }

.final-cta-inner {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(84, 104, 234, 0.38), transparent 40%),
        linear-gradient(135deg, #0b1730, #12224a);
}

.final-cta-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.final-cta-copy {
    max-width: 560px;
}

.final-cta-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    line-height: 1.08;
    font-weight: 900;
}

.final-cta-copy p {
    max-width: 520px;
    margin: 0 0 1.8rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.final-cta-visual {
    display: flex;
    justify-content: center;
}

.final-cta-photo-frame {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: 4 / 3;
    padding: 6px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(94, 124, 255, 0.95), rgba(236, 72, 153, 0.75));
    box-shadow: 0 40px 80px rgba(4, 10, 30, 0.45);
    animation: ctaPhotoFloat 6s ease-in-out infinite;
}

.final-cta-photo-frame::before {
    content: '';
    position: absolute;
    inset: -22%;
    z-index: 0;
    background: radial-gradient(circle, rgba(94, 124, 255, 0.45), transparent 62%);
    filter: blur(36px);
}

.final-cta-photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    transition: transform 0.5s ease;
}

.final-cta-photo-frame:hover .final-cta-photo {
    transform: scale(1.05);
}

@keyframes ctaPhotoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .final-cta-photo-frame { animation: none; }
}

.faq-section {
    background:
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

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

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 1.15rem 1.25rem;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
    line-height: 1.35;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary i { transform: rotate(180deg); }

.faq-item p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 767px) {
    .final-cta-grid { grid-template-columns: 1fr; text-align: center; }
    .final-cta-copy { max-width: 100%; margin: 0 auto; }
    .final-cta-copy p { margin: 0 auto 1.8rem; }
    .final-cta-visual { order: -1; }

    .scroll-grow-video { margin-top: 0; margin-bottom: 0; }

    .scroll-grow-video-frame {
        display: block;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .scroll-grow-video-visual {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 3 / 4;
    }

    .scroll-grow-video-visual .scroll-grow-video-media {
        object-position: left center;
    }

    .scroll-grow-video-overlay {
        background: linear-gradient(180deg, rgba(6, 11, 26, 0.2) 0%, rgba(6, 11, 26, 0.1) 55%, rgba(6, 11, 26, 0.92) 100%);
    }

    .scroll-grow-video-content {
        position: static;
        z-index: auto;
        max-width: 100%;
        padding: 2.4rem 1.25rem 2.8rem;
        background: #0b1730;
    }

    .scroll-grow-video-content .section-heading {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

.footer {
    padding: 54px 0 32px;
    color: rgba(255, 255, 255, 0.72);
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, 0.8fr);
    gap: 2rem;
}

.footer p,
.footer a,
.footer-bottom { color: rgba(255, 255, 255, 0.64); }

.footer strong,
.footer a {
    display: block;
    margin-bottom: 0.65rem;
}

.footer strong { color: #fff; }
.footer a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom div {
    display: flex;
    gap: 1rem;
}

.footer-bottom a { margin-bottom: 0; }

.floating-controls {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}

.floating-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.2rem;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: var(--shadow-md);
    font-weight: 850;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-contact.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-top {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.floating-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-top:hover {
    color: #fff;
    background: var(--primary);
}

.business-register-hero {
    position: relative;
    overflow: hidden;
    min-height: 74vh;
    display: flex;
    align-items: center;
    padding: 110px 0 72px;
}

.business-register-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg);
}

.business-register-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 86%;
    object-fit: contain;
    object-position: 82% 100%;
}

.business-register-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 26%, rgba(245, 248, 252, 0.6) 42%, rgba(245, 248, 252, 0) 60%);
}

.business-register-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.business-register-copy h1 {
    max-width: 680px;
    margin: 1rem 0;
    color: var(--ink);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.02;
    font-weight: 900;
}

.business-register-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.business-register-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.business-register-preview {
    position: relative;
    min-height: 450px;
}

.operator-card,
.profile-card,
.metric-card {
    position: absolute;
    z-index: 1;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);
}

.operator-card {
    right: 28px;
    top: 30px;
    width: min(310px, calc(100% - 56px));
    padding: 1.2rem;
}

.operator-card small,
.operator-card strong,
.profile-card strong,
.profile-card small,
.metric-card strong,
.metric-card small {
    display: block;
}

.operator-card small {
    color: #0f6b33;
    font-weight: 900;
}

.operator-card strong {
    margin: 0.75rem 0 1rem;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 900;
}

.profile-card {
    right: 28px;
    bottom: 42px;
    display: flex;
    max-width: 330px;
    gap: 0.9rem;
    padding: 1.1rem;
}

.metric-badge,
.profile-badge {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.metric-badge {
    right: -16px;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.95rem;
}

.profile-badge {
    right: -14px;
    bottom: -14px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--green);
    font-size: 0.85rem;
}

.profile-card i {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--green);
    border-radius: 15px;
    background: var(--green-soft);
}

.profile-card strong {
    color: var(--ink);
    font-weight: 900;
}

.profile-card small,
.metric-card small {
    color: var(--muted);
    line-height: 1.5;
}

.metric-card {
    padding: 0.9rem 1rem;
}

.metric-card strong {
    color: var(--primary-dark);
    font-weight: 900;
}

.metric-one {
    right: 22px;
    top: 46%;
    max-width: 220px;
    padding: 0.9rem 1.3rem 0.9rem 1rem;
    transform: translateY(-50%);
}

.register-success-section {
    padding: 0 0 32px;
}

.register-success-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    color: #0f6b33;
    border: 1px solid rgba(22, 163, 74, 0.24);
    border-radius: 18px;
    background: var(--green-soft);
    box-shadow: var(--shadow-sm);
}

.register-success-card i {
    font-size: 1.4rem;
}

.register-success-card strong,
.register-success-card p {
    display: block;
    margin: 0;
}

.register-success-card strong {
    color: var(--ink);
    font-weight: 900;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.offer-grid article {
    min-height: 190px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.offer-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(50, 85, 215, 0.25);
    box-shadow: var(--shadow-md);
}

.offer-grid i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--primary);
    border-radius: 15px;
    background: rgba(50, 85, 215, 0.1);
}

.offer-grid strong,
.offer-grid span {
    display: block;
}

.offer-grid strong {
    margin: 1rem 0 0.45rem;
    color: var(--ink);
    font-size: 1.04rem;
    font-weight: 900;
}

.offer-grid span {
    color: var(--muted);
    line-height: 1.6;
}

.business-pricing-section {
    background:
        linear-gradient(180deg, rgba(50, 85, 215, 0.04), rgba(255, 255, 255, 0)),
        #fff;
}

.business-pricing-grid {
    /* Dos planes: se centran en vez de estirarse a lo ancho del contenedor. */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    max-width: 780px;
    margin: 0 auto;
    align-items: stretch;
}

.business-price-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.business-price-card.is-featured {
    border-color: rgba(50, 85, 215, 0.35);
    box-shadow: 0 20px 55px rgba(50, 85, 215, 0.16);
    transform: translateY(-8px);
}

.business-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.42rem 0.65rem;
    color: var(--primary);
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 999px;
    background: rgba(50, 85, 215, 0.08);
    font-size: 0.72rem;
    font-weight: 900;
}

.business-price-head span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 900;
}

.business-price-head span i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: rgba(50, 85, 215, 0.1);
}

.business-price-head strong {
    display: block;
    margin-top: 1rem;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 950;
    line-height: 1;
}

.business-price-head strong small {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.business-price-head p {
    margin: 0.8rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.business-price-card ul {
    display: grid;
    gap: 0.72rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.business-price-card li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--ink);
    font-weight: 750;
}

.business-price-card li i {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--green);
    font-size: 0.7rem;
}

.business-price-card .btn {
    margin-top: auto;
}

.business-pricing-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    color: var(--muted);
    border: 1px solid rgba(50, 85, 215, 0.14);
    border-radius: 18px;
    background: rgba(50, 85, 215, 0.06);
    font-weight: 750;
}

.business-pricing-note i {
    color: var(--primary);
}

.business-operation-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: center;
}

.operation-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.operation-list span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-weight: 850;
}

.operation-list i {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--green);
    font-size: 0.78rem;
}

.register-owner-panel {
    background:
        linear-gradient(135deg, rgba(50, 85, 215, 0.08), rgba(84, 104, 234, 0.08)),
        #fff;
}

.business-register-modal .modal-content {
    display: flex;
    flex-direction: row;
    max-height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.business-register-modal .modal-dialog {
    max-width: 1180px;
    height: calc(100dvh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.register-modal-visual {
    position: relative;
    flex: 0 0 320px;
    overflow: hidden;
    color: #fff;
}

.register-modal-visual-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

.register-modal-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 23, 48, 0.35) 0%, rgba(11, 23, 48, 0.22) 42%, rgba(11, 23, 48, 0.9) 100%);
}

.register-modal-visual-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
}

.register-modal-visual-content .pet-login-mark {
    margin-bottom: auto;
}

.register-modal-visual-content strong {
    display: block;
    margin-top: 1.1rem;
    font-size: 1.32rem;
    line-height: 1.22;
    font-weight: 900;
}

.register-modal-visual-content > small {
    display: block;
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.6;
}

.register-modal-visual-points {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.3rem 0 0;
    padding: 0;
    list-style: none;
}

.register-modal-visual-points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    font-weight: 750;
}

.register-modal-visual-points i {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.6rem;
}

.register-modal-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.business-register-modal form {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.business-register-modal[data-register-step="form"] [data-register-step-panel="verify"],
.business-register-modal[data-register-step="verify"] [data-register-step-panel="form"] {
    display: none;
}

.register-step-panel {
    animation: registerStepIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes registerStepIn {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.business-register-modal .modal-header,
.business-register-modal .modal-footer {
    padding: 1.25rem 1.5rem;
    border-color: var(--border);
    background: #f8fbff;
}

.business-register-modal .modal-title {
    margin-top: 0.75rem;
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 900;
}

.business-register-modal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.business-register-modal .modal-header,
.business-register-modal .modal-footer {
    flex: 0 0 auto;
}

.register-form-section {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.register-section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.register-section-title > i {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary);
    border-radius: 14px;
    background: rgba(50, 85, 215, 0.1);
}

.register-section-title strong,
.register-section-title small {
    display: block;
}

.register-section-title strong {
    color: var(--ink);
    font-weight: 900;
}

.register-section-title small {
    color: var(--muted);
}

.register-form-section .form-label {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
}

.register-form-section .form-control,
.register-form-section .form-select {
    min-height: 48px;
    border-color: var(--border-strong);
    border-radius: 14px;
}

.register-input {
    position: relative;
    display: block;
}

.register-input > i {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    z-index: 2;
    color: var(--primary);
    font-size: 0.92rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.register-input .form-control,
.register-input .form-select {
    width: 100%;
    padding-left: 2.65rem;
}

.register-input .form-select {
    padding-right: 2.6rem;
}

.register-input-textarea > i {
    top: 1.05rem;
    transform: none;
}

.register-password-input .form-control {
    padding-right: 3rem;
}

.register-password-input button {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    z-index: 3;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: transparent;
    transform: translateY(-50%);
}

.register-password-input button:hover,
.register-password-input button:focus-visible {
    color: var(--primary);
    background: rgba(50, 85, 215, 0.08);
    outline: none;
}

.register-input .form-control:focus,
.register-input .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(50, 85, 215, 0.14);
}

.register-form-section .invalid-feedback {
    display: block;
}

.register-ajax-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.45;
}

.register-ajax-alert.is-success {
    color: #14532d;
    border-color: rgba(22, 163, 74, 0.26);
    background: rgba(22, 163, 74, 0.08);
}

.register-ajax-alert.is-danger {
    color: #9f1239;
    border-color: rgba(220, 38, 38, 0.26);
    background: rgba(220, 38, 38, 0.08);
}

.register-field-error {
    display: block;
    margin-top: 0.32rem;
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 750;
}

.register-input .form-select:disabled {
    color: var(--muted);
    background-color: #f1f5fb;
    opacity: 1;
}

.register-form-section textarea.form-control {
    min-height: 76px;
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
}

.register-verification-card {
    display: grid;
    gap: 0.75rem;
    max-width: 560px;
    margin: 1rem auto;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(50, 85, 215, 0.07), rgba(50, 85, 215, 0)),
        #fff;
}

.register-verification-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 0.25rem;
    place-items: center;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #16a34a);
    box-shadow: 0 14px 30px rgba(50, 85, 215, 0.24);
}

.register-verification-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.7rem;
    font-weight: 900;
}

.register-verification-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.register-code-input {
    max-width: 280px;
    margin: 0.35rem auto 0;
    text-align: left;
}

.register-code-input .form-control {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.18rem;
    text-align: center;
}

.register-code-footer {
    flex-wrap: wrap;
    justify-content: center;
}

.register-resend-link {
    width: 100%;
    color: var(--primary-dark);
    font-weight: 850;
    text-decoration: none;
}

.branch-fields {
    display: none;
}

.branch-fields.is-visible {
    display: block;
}

.branch-card {
    padding: 1rem;
    margin-top: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbff;
}

.branch-card > strong {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--ink);
    font-weight: 900;
}

.policy-box {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(50, 85, 215, 0.16);
    border-radius: 18px;
    background: rgba(50, 85, 215, 0.05);
}

.policy-box .form-check {
    margin: 0;
}

.policy-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.policy-box a {
    color: var(--primary-dark);
    font-weight: 900;
}

.legal-register-section {
    background: var(--surface);
}

.legal-register-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.legal-register-grid article {
    padding: 1.3rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #f9fbff;
    box-shadow: var(--shadow-sm);
}

.legal-register-grid i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--primary);
    border-radius: 15px;
    background: rgba(50, 85, 215, 0.1);
}

.legal-register-grid strong,
.legal-register-grid p {
    display: block;
}

.legal-register-grid strong {
    margin: 1rem 0 0.45rem;
    color: var(--ink);
    font-weight: 900;
}

.legal-register-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.pet-login-modal .modal-dialog {
    max-width: 840px;
}

.pet-login-modal .modal-content {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: modalLift 0.32s ease both;
}

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

.pet-login-visual {
    position: relative;
    display: flex;
    min-height: 500px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.6rem;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.78) 100%),
        url('/images/perritos-cta.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pet-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 42px 42px;
}

.pet-login-mark,
.pet-login-visual strong,
.pet-login-visual small {
    position: relative;
    z-index: 1;
}

.pet-login-mark {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 1.2rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.pet-login-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-login-visual strong {
    max-width: 280px;
    margin-top: auto;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 900;
}

.pet-login-visual small {
    max-width: 280px;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.pet-login-panel {
    min-width: 0;
}

.pet-login-panel .modal-header,
.pet-login-panel .modal-footer {
    padding: 1.4rem 1.5rem;
    border-color: var(--border);
}

.pet-login-panel .modal-title {
    margin-top: 0.75rem;
    color: var(--ink);
    font-size: 1.65rem;
    font-weight: 900;
}

.pet-login-panel .modal-body {
    padding: 1.5rem;
}

.pet-login-field {
    position: relative;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.pet-account-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.pet-account-switch label {
    position: relative;
    cursor: pointer;
}

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

.pet-account-switch span {
    display: grid;
    min-height: 108px;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pet-account-switch i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--primary);
    border-radius: 13px;
    background: rgba(50, 85, 215, 0.1);
}

.pet-account-switch strong,
.pet-account-switch small {
    display: block;
}

.pet-account-switch strong {
    color: var(--ink);
    font-weight: 900;
}

.pet-account-switch small {
    color: var(--muted);
    line-height: 1.35;
}

.pet-account-switch input:checked + span {
    border-color: rgba(50, 85, 215, 0.42);
    background: #fff;
    box-shadow: 0 16px 34px rgba(50, 85, 215, 0.13);
    transform: translateY(-2px);
}

.pet-account-switch input:checked + span i {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--teal));
}

.pet-login-field span {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
}

.pet-login-field i {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: var(--primary);
}

.pet-login-field input {
    width: 100%;
    min-height: 54px;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    color: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: #f8fbff;
    font: inherit;
    font-weight: 750;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pet-login-field input:focus {
    border-color: rgba(50, 85, 215, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(50, 85, 215, 0.1);
}

.pet-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.pet-login-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-weight: 800;
}

.pet-login-options a {
    color: var(--primary-dark);
    font-weight: 900;
}

.pet-dashboard-shell {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: var(--bg);
}

.pet-dashboard-hero {
    max-width: 760px;
    margin-bottom: 2rem;
}

.pet-dashboard-hero h1 {
    margin: 1rem 0;
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 900;
}

.pet-dashboard-hero p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pet-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pet-dashboard-grid article {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pet-dashboard-grid i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--primary);
    border-radius: 15px;
    background: rgba(50, 85, 215, 0.1);
}

.pet-dashboard-grid strong,
.pet-dashboard-grid span {
    display: block;
}

.pet-dashboard-grid strong {
    margin: 1rem 0 0.35rem;
    color: var(--ink);
    font-weight: 900;
}

.pet-dashboard-grid span {
    color: var(--muted);
}

@media (max-width: 991px) {
    .navbar-collapse { padding: 1rem 0 1.25rem; }

    .nav-actions {
        align-items: stretch;
        margin: 1rem 0 0;
    }

    .pet-account-actions,
    .pet-profile-dropdown,
    .pet-profile-trigger { width: 100%; }

    .pet-profile-trigger { justify-content: flex-start; }
    .pet-profile-chevron { margin-left: auto; }
    .pet-profile-copy strong { max-width: min(52vw, 260px); }
    .pet-profile-menu { width: 100%; }

    .hero-section {
        padding-top: 96px;
    }

    .search-panel { grid-template-columns: 1fr 1fr; width: min(480px, 100%); }
    .search-button { min-height: 58px; }

    .trust-strip-inner,
    .pet-category-grid { grid-template-columns: repeat(2, 1fr); }

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

    .trust-item:nth-child(2) { border-right: 0; }

    .pet-service-grid { grid-template-columns: repeat(2, 1fr); }

    .trust-confidence-grid,
    .owner-panel { grid-template-columns: 1fr; }

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

    .business-register-grid,
    .business-operation-grid {
        grid-template-columns: 1fr;
    }

    .business-register-hero { min-height: 0; }

    .business-register-media::after {
        background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 42%, rgba(245, 248, 252, 0.55) 60%, rgba(245, 248, 252, 0) 78%);
    }

    .business-register-preview {
        min-height: 410px;
    }

    .offer-grid,
    .business-pricing-grid,
    .operation-list,
    .legal-register-grid,
    .pet-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-price-card.is-featured {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero-section { padding: 96px 0 48px; }
    .hero-copy h1 { font-size: clamp(2.25rem, 12vw, 3.1rem); }
    .hero-copy p { font-size: 1rem; }
    .search-panel { grid-template-columns: 1fr; border-radius: 22px; }

    .search-button,
    .owner-actions .btn {
        width: 100%;
        min-height: 56px;
    }

    .quick-links {
        flex-wrap: nowrap;
        margin-right: -0.75rem;
        padding-bottom: 0.4rem;
        overflow-x: auto;
    }

    .quick-links a { white-space: nowrap; }

    .trust-strip { margin-top: 0; }

    .trust-strip-inner,
    .pet-service-grid,
    .business-pricing-grid,
    .how-flow,
    .confidence-list,
    .owner-benefits,
    .faq-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .pet-category-grid { grid-template-columns: repeat(2, 1fr); }

    .pet-category-pill {
        align-items: flex-start;
        flex-direction: column;
        min-height: 118px;
    }

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .trust-item:last-child { border-bottom: 0; }
    .section-pad { padding: 66px 0; }

    .how-flow-line { display: none; }

    .flow-pet-busca { width: 40%; right: 6px; }
    .flow-pet-compara { width: 32%; }
    .flow-pet-reserva { width: 28%; }

    .flow-step:has(.flow-pet-busca) strong,
    .flow-step:has(.flow-pet-busca) small,
    .flow-step:has(.flow-pet-compara) strong,
    .flow-step:has(.flow-pet-compara) small,
    .flow-step:has(.flow-pet-reserva) strong,
    .flow-step:has(.flow-pet-reserva) small { max-width: 100%; }

    .footer-bottom { flex-direction: column; }

    .floating-controls {
        right: 14px;
        bottom: 96px;
    }

    .business-register-hero {
        padding: 56px 0 48px;
    }

    .business-register-copy h1 {
        font-size: clamp(2.2rem, 11vw, 3.1rem);
    }

    .business-register-actions .btn {
        width: 100%;
    }

    .business-register-preview {
        min-height: 360px;
    }

    .operator-card {
        right: 16px;
        top: 18px;
    }

    .profile-card {
        right: 16px;
        bottom: 20px;
        max-width: calc(100% - 32px);
    }

    .metric-one {
        display: none;
    }

    .offer-grid,
    .operation-list,
    .legal-register-grid,
    .pet-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pet-login-modal .modal-content {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .pet-login-visual {
        min-height: 210px;
        justify-content: flex-end;
    }

    .pet-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .pet-account-switch {
        grid-template-columns: 1fr;
    }

    .business-register-modal .modal-header,
    .business-register-modal .modal-footer,
    .business-register-modal .modal-body {
        padding: 1rem;
    }

    .business-register-modal .modal-dialog {
        height: calc(100dvh - 0.75rem);
        margin: 0.375rem;
    }

    .business-register-modal .modal-content {
        flex-direction: column;
    }

    .register-modal-visual {
        flex: 0 0 140px;
    }

    .register-modal-visual-content {
        padding: 1rem;
    }

    .register-modal-visual-content .pet-login-mark {
        width: 44px;
        height: 44px;
        margin-bottom: 0;
    }

    .register-modal-visual-content strong {
        margin-top: 0.6rem;
        font-size: 1.05rem;
    }

    .register-modal-visual-content > small,
    .register-modal-visual-points {
        display: none;
    }

    .register-modal-panel {
        min-height: 0;
        overflow: hidden;
    }
}

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

.business-register-copy .hero-badge {
    color: var(--primary-dark);
    border-color: rgba(50, 85, 215, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
}

.business-register-copy .hero-badge i {
    color: var(--primary);
}

.business-register-preview .time-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.business-register-preview .time-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 0.52rem 0.72rem;
    color: #0f6b33;
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: 999px;
    background: var(--green-soft);
    font-weight: 900;
}

/* ==========================================================================
   Business dashboard (biz-*) — visual-only demo panel for the veterinary /
   pet-business account. No real data or business logic lives here.
   ========================================================================== */

.biz-shell {
    --biz-sidebar-w: 264px;
    position: relative;
    min-height: 100vh;
    background: var(--bg);
}

.biz-shell.is-profile-spotlight::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(9, 18, 38, 0.56);
    backdrop-filter: blur(3px);
    animation: profileSpotlightFade 0.24s ease both;
    pointer-events: none;
}

@keyframes profileSpotlightFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.biz-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 500;
    width: var(--biz-sidebar-w);
    border-right: 1px solid var(--border);
    background: #fff;
    transition: width 0.28s ease, transform 0.28s ease;
}

.biz-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.1rem;
    overflow-y: auto;
}

.biz-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    padding: 0 0.4rem;
    color: var(--ink);
    font-weight: 900;
}

.biz-brand .brand-mark {
    width: 70px;
    height: 70px;
}

.biz-brand-text { display: grid; min-width: 0; gap: 0.08rem; }
.biz-brand-topline { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; }
.biz-brand-copy { flex: 0 0 auto; }
.biz-brand-separator { color: #a6b2c8; font-size: 0.9rem; }
.biz-brand-business { display: block; min-width: 0; overflow: hidden; color: var(--muted); font-size: 0.76rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.biz-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.biz-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    color: var(--muted);
    border: 0;
    border-radius: 13px;
    background: transparent;
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.biz-nav-link i {
    width: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
    transition: color 0.2s ease;
}

.biz-nav-link:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.biz-nav-link.is-active {
    color: var(--primary-dark);
    background: rgba(50, 85, 215, 0.1);
}

.biz-nav-link.is-active i { color: var(--primary); }

.biz-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.biz-nav-logout { width: 100%; }

.biz-sidebar-collapse {
    position: absolute;
    top: 22px;
    right: -18px;
    z-index: 2;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.24);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.biz-sidebar-collapse:hover,
.biz-sidebar-collapse:focus-visible {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 10px 26px rgba(50, 85, 215, 0.25);
    outline: 0;
    transform: scale(1.05);
}

.biz-sidebar-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 600;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.biz-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 490;
    border: 0;
    background: rgba(11, 23, 48, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.biz-main {
    margin-left: var(--biz-sidebar-w);
    padding: 2.4rem clamp(1.25rem, 4vw, 3rem) 4rem;
    transition: margin-left 0.28s ease;
}

.biz-shell.is-sidebar-restoring .biz-sidebar,
.biz-shell.is-sidebar-restoring .biz-main {
    transition: none;
}

.biz-main-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.biz-main-inner:has(.agenda-workspace) {
    max-width: 1360px;
}

@media (min-width: 992px) {
    .biz-shell.is-sidebar-collapsed {
        --biz-sidebar-w: 84px;
    }

    .biz-shell.is-sidebar-collapsed .biz-sidebar-inner {
        align-items: center;
        padding: 1.5rem 0.6rem;
    }

    .biz-shell.is-sidebar-collapsed .biz-brand {
        justify-content: center;
        padding: 0;
    }

    .biz-shell.is-sidebar-collapsed .biz-brand-text,
    .biz-shell.is-sidebar-collapsed .biz-nav-link span {
        display: none;
    }

    .biz-shell.is-sidebar-collapsed .biz-nav,
    .biz-shell.is-sidebar-collapsed .biz-sidebar-footer {
        width: 100%;
    }

    .biz-shell.is-sidebar-collapsed .biz-nav-link,
    .biz-shell.is-sidebar-collapsed .biz-sidebar-footer .biz-nav-link {
        justify-content: center;
        padding: 0.75rem;
    }

    .biz-shell.is-sidebar-collapsed .biz-nav-link i {
        width: auto;
        font-size: 1.05rem;
    }

    .biz-shell.is-sidebar-collapsed .biz-main-inner {
        max-width: none;
    }
}

.biz-banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.biz-banner i { font-size: 1.3rem; }

.biz-banner-copy { display: flex; flex-direction: column; gap: 0.2rem; }
.biz-banner-copy strong { color: var(--ink); font-weight: 900; }
.biz-banner-copy span { color: var(--muted); font-size: 0.92rem; }

.biz-banner-pending { border-color: rgba(180, 83, 9, 0.22); background: var(--amber-soft); }
.biz-banner-pending i { color: var(--amber); }

.biz-banner-success { border-color: rgba(22, 163, 74, 0.22); background: var(--green-soft); }
.biz-banner-success i { color: var(--green); }

.biz-banner-warning { border-color: rgba(220, 38, 38, 0.2); background: var(--red-soft); }
.biz-banner-warning i { color: var(--red); }

.biz-banner-badge {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.4rem 0.85rem;
    color: var(--amber);
    border: 1px solid rgba(180, 83, 9, 0.25);
    border-radius: 999px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 850;
}

.biz-banner-action { flex: 0 0 auto; margin-left: auto; }

/* Banner de expediente incompleto: lista lo que falta y lleva a resolverlo. */
.biz-banner-checklist {
    display: block;
    position: relative;
    padding: 1.15rem 1.35rem;
}

.biz-shell.is-profile-spotlight [data-biz-profile-spotlight] {
    z-index: 2002;
    box-shadow: 0 24px 70px rgba(9, 18, 38, 0.32), 0 0 0 4px rgba(255, 255, 255, 0.65);
}

.biz-profile-coach {
    /* En flujo, encima del banner: antes se superponia al recuadro destacado */
    position: relative;
    z-index: 2003;
    display: none;
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    color: #14213d;
    border: 1px solid rgba(50, 85, 215, 0.2);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(9, 18, 38, 0.22);
    animation: profileCoachIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.biz-profile-coach::before {
    content: "";
    position: absolute;
    bottom: -0.58rem;
    left: 2rem;
    width: 1.1rem;
    height: 1.1rem;
    background: #fff;
    border-right: 1px solid rgba(50, 85, 215, 0.2);
    border-bottom: 1px solid rgba(50, 85, 215, 0.2);
    transform: rotate(45deg);
}

.biz-shell.is-profile-spotlight .biz-profile-coach {
    display: grid;
    gap: 0.5rem;
}

@keyframes profileCoachIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.biz-profile-coach > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.biz-profile-coach strong {
    padding-right: 2rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.25;
}

.biz-profile-coach p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.biz-profile-coach .btn {
    width: max-content;
    margin-top: 0.15rem;
}

.biz-profile-coach-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    border: 0;
    border-radius: 10px;
    background: rgba(50, 85, 215, 0.08);
}

.biz-profile-coach-close:hover,
.biz-profile-coach-close:focus-visible {
    color: var(--primary);
    background: rgba(50, 85, 215, 0.14);
    outline: none;
}

.biz-banner-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.biz-banner-progress { margin-top: 1rem; }

.biz-banner-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.biz-banner-progress-head strong { color: var(--ink); font-weight: 900; }

.biz-banner-missing { margin-top: 1rem; }

.biz-banner-missing-title {
    margin: 0 0 0.55rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 850;
}

.biz-banner-missing-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.biz-banner-missing-list a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.biz-banner-missing-list a:hover {
    border-color: var(--amber);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.biz-banner-missing-list i { font-size: 0.95rem; }
.biz-banner-missing-list a > i:first-child { color: var(--amber); }
.biz-banner-missing-list a > i:last-child { margin-left: auto; color: var(--muted); font-size: 0.8rem; }

.biz-banner-missing-copy { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.biz-banner-missing-copy strong { font-size: 0.9rem; font-weight: 850; }
.biz-banner-missing-copy small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }

.biz-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.biz-banner-actions form { margin: 0; }

.biz-admin-notice {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 12px;
    background: #fffaf0;
    color: var(--ink);
}

.biz-admin-notice > div {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.biz-admin-notice i { color: var(--amber); }
.biz-admin-notice strong { display: block; font-weight: 900; }
.biz-admin-notice small { color: var(--muted); font-size: 0.78rem; }
.biz-admin-notice p { margin: 0; line-height: 1.55; color: #4b5563; }

.biz-admin-notice em {
    margin-left: auto;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.biz-admin-notice em.is-open {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
}

.biz-admin-notice em.is-replied {
    color: #0f6b33;
    background: var(--green-soft);
}

.biz-admin-response {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.07);
}

.biz-admin-response strong { color: #0f6b33; }

.biz-admin-reply-context {
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 10px;
    background: #fffaf0;
}

.biz-admin-reply-context strong { display: block; margin-bottom: 0.35rem; font-weight: 900; }
.biz-admin-reply-context p { margin: 0; color: #4b5563; line-height: 1.5; }

.biz-map-fields,
.biz-digital-presence {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.biz-map-fields legend,
.biz-digital-presence legend {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 900;
}

.biz-map-fields legend small,
.biz-map-fields > p,
.biz-digital-presence legend small,
.biz-digital-presence > p {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.biz-map-fields > p,
.biz-digital-presence > p {
    grid-column: 1 / -1;
    margin: 0;
}

.biz-map-preview {
    overflow: hidden;
    min-height: 260px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #e5e7eb;
}

.biz-map-preview iframe {
    width: 100%;
    height: 260px;
    border: 0;
}

@media (max-width: 767.98px) {
    .biz-map-fields,
    .biz-digital-presence { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .biz-banner-main { align-items: flex-start; }
    .biz-banner-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Modal de verificación de correo del negocio. */
.biz-email-modal .modal-content {
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg, 0 24px 60px rgba(15, 23, 42, 0.18));
}

.biz-email-modal .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.5rem 0.75rem;
    border-bottom: 0;
}

.biz-email-modal .modal-title { margin: 0.35rem 0 0; font-size: 1.25rem; font-weight: 900; color: var(--ink); }
.biz-email-modal .modal-body { padding: 0.5rem 1.5rem 1.5rem; }

.biz-email-sent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 14px;
    background: var(--green-soft);
}

.biz-email-sent i { color: var(--green); font-size: 1.1rem; margin-top: 0.15rem; }
.biz-email-sent p { margin: 0; font-size: 0.92rem; color: var(--ink); line-height: 1.5; }

.biz-email-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(180, 83, 9, 0.22);
    border-radius: 12px;
    background: var(--amber-soft);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.biz-email-warning i { color: var(--amber); margin-top: 0.1rem; }

.biz-email-code-form { margin-top: 1.15rem; }
.biz-email-code-form > label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    font-weight: 850;
    color: var(--ink);
}

.biz-code-boxes {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    max-width: 340px;
}

.biz-code-boxes input {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.biz-code-boxes input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.biz-email-actions { margin-top: 1.1rem; }
.biz-email-actions .btn { width: 100%; justify-content: center; }

.biz-email-resend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--muted);
}

.biz-email-note {
    margin: 0.9rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

.biz-email-modal.is-shaking .modal-dialog { animation: bizShake 0.4s ease; }

@keyframes bizShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@media (max-width: 575.98px) {
    .biz-code-boxes { gap: 0.35rem; max-width: none; }
    .biz-code-boxes input { height: 48px; font-size: 1.2rem; }
}

.biz-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.biz-topbar h1 {
    margin: 0 0 0.3rem;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 900;
}

.biz-topbar p { margin: 0; color: var(--muted); }

.biz-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.biz-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-weight: 750;
    font-size: 0.88rem;
}

.biz-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.biz-stat-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.biz-stat-icon {
    display: grid;
    width: 40px;
    height: 40px;
    margin-bottom: 0.85rem;
    place-items: center;
    border-radius: 12px;
    font-size: 0.98rem;
}

.biz-tone-primary .biz-stat-icon { color: var(--primary); background: rgba(50, 85, 215, 0.1); }
.biz-tone-teal .biz-stat-icon { color: var(--teal); background: rgba(84, 104, 234, 0.12); }
.biz-tone-amber .biz-stat-icon { color: var(--amber); background: var(--amber-soft); }
.biz-tone-green .biz-stat-icon { color: var(--green); background: var(--green-soft); }
.biz-tone-red .biz-stat-icon { color: var(--red); background: var(--red-soft); }

.biz-stat-value {
    display: block;
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
}

.biz-stat-label {
    display: block;
    margin-top: 0.3rem;
    color: var(--text);
    font-weight: 800;
    font-size: 0.9rem;
}

.biz-stat-hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.biz-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.biz-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.biz-card-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 900;
}

.biz-card-head p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.biz-card-action { flex: 0 0 auto; white-space: nowrap; }

.biz-preview-notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 8px;
    background: #f4f7ff;
}

.biz-preview-notice > i {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary);
    border-radius: 8px;
    background: #fff;
}

.biz-preview-notice strong,
.biz-preview-notice span {
    display: block;
}

.biz-preview-notice strong {
    color: var(--ink);
    font-weight: 900;
}

.biz-preview-notice span {
    color: var(--muted);
    font-size: 0.86rem;
}

.biz-public-preview-card {
    margin-bottom: 1.5rem;
}

.service-gallery-open.is-preview {
    cursor: default;
}

.biz-preview-actions {
    display: grid;
    gap: 0.55rem;
}

.biz-preview-actions .btn {
    justify-content: center;
    pointer-events: none;
}

.biz-preview-actions .is-disabled {
    opacity: 0.72;
}

.biz-preview-help {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.biz-primary-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.biz-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.biz-schedule-row {
    display: grid;
    grid-template-columns: 56px 40px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.6rem;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.biz-schedule-row:hover { background: var(--surface-soft); }

.biz-schedule-time {
    color: var(--ink);
    font-weight: 900;
    font-size: 0.92rem;
}

.biz-schedule-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--primary);
    border-radius: 50%;
    background: rgba(50, 85, 215, 0.1);
}

.biz-schedule-pet { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.biz-schedule-pet strong { color: var(--ink); font-weight: 850; }
.biz-schedule-pet small { color: var(--muted); }

.biz-schedule-row-available {
    grid-template-columns: 56px 1fr;
    background: var(--surface-soft);
}

.biz-schedule-slot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    font-weight: 750;
    font-size: 0.9rem;
}

.biz-schedule-slot i { font-size: 0.6rem; }

.biz-status-pill {
    justify-self: end;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
    white-space: nowrap;
}

.biz-status-pill.is-confirmed { color: #0f6b33; background: var(--green-soft); }
.biz-status-pill.is-pending { color: var(--amber); background: var(--amber-soft); }
.biz-status-pill.is-cancelled { color: var(--red); background: var(--red-soft); }

.biz-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.biz-request-item {
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.biz-request-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.biz-request-info { display: flex; flex-direction: column; gap: 0.18rem; margin-bottom: 0.75rem; }
.biz-request-info strong { color: var(--ink); font-weight: 850; }
.biz-request-info strong span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}
.biz-request-info small { color: var(--muted); }
.biz-request-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 0.75rem;
    margin-top: 0.45rem;
}
.biz-request-meta small,
.biz-request-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.biz-request-meta i,
.biz-request-phone i { color: var(--primary); }
.biz-request-phone { margin-top: 0.25rem; }

.biz-request-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
}
.biz-request-actions form { margin: 0; }

.biz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 42px;
    flex: 1;
    padding: 0.55rem 0.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: #fff;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.biz-btn-confirm {
    color: #0f6b33;
    border-color: rgba(22, 163, 74, 0.3);
    background: var(--green-soft);
}

.biz-btn-propose {
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, 0.24);
    background: #eef5ff;
    list-style: none;
}

.biz-btn-propose::-webkit-details-marker { display: none; }

.biz-btn-reject {
    color: var(--red);
    border-color: rgba(220, 38, 38, 0.22);
    background: var(--red-soft);
}

.biz-request-proposal {
    position: relative;
}

.biz-request-proposal[open] {
    grid-column: 1 / -1;
}

.biz-request-proposal[open] .biz-btn-propose {
    margin-bottom: 0.7rem;
}

.biz-request-proposal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.biz-request-proposal-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.biz-request-proposal-form input,
.biz-request-proposal-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    color: var(--ink);
    font: inherit;
}

.biz-request-proposal-form .span-2 {
    grid-column: 1 / -1;
}

.biz-empty { margin: 0; color: var(--muted); font-size: 0.9rem; }

.biz-secondary-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.biz-weekly-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.biz-weekly-stat {
    padding: 0.85rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    text-align: center;
}

.biz-weekly-stat strong {
    display: block;
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 900;
}

.biz-weekly-stat span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.biz-ops-card { margin-bottom: 1.5rem; }

.biz-ops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.biz-ops-grid .biz-stat-card {
    box-shadow: none;
    background: var(--surface-soft);
}

.biz-top-services {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.biz-top-services > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.biz-top-services strong {
    color: var(--ink);
    font-weight: 900;
}

.biz-top-services span {
    color: var(--muted);
    font-size: 0.84rem;
}

.biz-top-services ol {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.biz-top-services li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.biz-top-services li span {
    min-width: 0;
    color: var(--text);
    font-weight: 800;
}

.biz-top-services li strong {
    flex: none;
    color: var(--primary-dark);
    font-size: 0.86rem;
}

.biz-chart-label {
    margin: 0 0 0.85rem;
    color: var(--text);
    font-weight: 800;
    font-size: 0.88rem;
}

.biz-chart-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 0.6rem;
    height: 120px;
}

.biz-chart-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.5rem;
}

.biz-chart-bar {
    display: block;
    width: 100%;
    max-width: 26px;
    height: var(--bar-height, 10%);
    min-height: 4px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, var(--primary), var(--teal));
}

.biz-chart-bar-wrap small { color: var(--muted); font-size: 0.76rem; font-weight: 750; }

.biz-profile-identity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.biz-profile-identity strong { color: var(--ink); font-size: 1.05rem; font-weight: 900; }

.biz-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    color: #0f6b33;
    border-radius: 999px;
    background: var(--green-soft);
    font-size: 0.76rem;
    font-weight: 850;
}

.biz-profile-copy {
    margin: 0 0 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.biz-progress { margin-bottom: 1.1rem; }

.biz-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
}

.biz-progress-head span { color: var(--muted); }
.biz-progress-head strong { color: var(--ink); }

.biz-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.biz-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--teal));
}

.biz-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 1.3rem;
    padding: 0;
    list-style: none;
}

.biz-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 750;
}

.biz-checklist li i {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-size: 0.62rem;
}

.biz-checklist li.is-done i { color: #0f6b33; background: var(--green-soft); }
.biz-checklist li.is-pending i { color: var(--amber); background: var(--amber-soft); }

.biz-next-step {
    display: grid;
    gap: 0.48rem;
    margin: 0 0 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 8px;
    background: #f4f7ff;
}

.biz-next-step > span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 900;
}

.biz-next-step > strong {
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 900;
}

.biz-next-step > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.biz-next-step .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.15rem;
}

.biz-next-step.is-ready {
    border-color: #cde8db;
    background: #effbf5;
}

.biz-next-step.is-ready > span {
    color: #15915e;
}

.biz-activation-checklist li {
    align-items: flex-start;
    padding: 0.62rem 0;
    border-bottom: 1px solid #edf1f7;
}

.biz-activation-checklist li:last-child {
    border-bottom: 0;
}

.biz-activation-checklist li > span {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.biz-activation-checklist li > span strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.biz-activation-checklist li > span small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.biz-activation-checklist li > a {
    margin-left: auto;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.biz-activation-checklist li > a:hover {
    color: var(--primary-dark);
}

.biz-profile-actions { display: flex; gap: 0.6rem; }
.biz-profile-actions .btn { flex: 1; justify-content: center; }
.biz-profile-actions form { display: flex; flex: 1; margin: 0; }
.biz-profile-actions form .btn { width: 100%; }

.biz-review-email {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #cad6ff;
    border-radius: 8px;
    background: #f4f7ff;
}
.biz-review-email > strong { color: var(--ink); }
.biz-review-email > p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.biz-review-email form { margin: 0; }
.biz-code-form { display: grid; grid-template-columns: auto minmax(7rem, 1fr) auto; align-items: center; gap: 0.5rem; }
.biz-code-form label { color: var(--ink); font-size: 0.78rem; font-weight: 850; }
.biz-code-form input {
    min-width: 0;
    height: 42px;
    border: 1px solid #c9d3e2;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.team-license-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.35rem; }
.team-license-upload label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.42rem 0.7rem;
    border: 1px solid #c9d3e2;
    border-radius: 7px;
    background: #fff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}
.team-license-upload input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.biz-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.biz-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 0.75rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
    font-weight: 800;
    font-size: 0.88rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.biz-quick-action i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.biz-quick-action:hover {
    color: var(--primary-dark);
    border-color: rgba(50, 85, 215, 0.3);
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .biz-sidebar-collapse { display: none; }
    .biz-shell { --biz-sidebar-w: 84px; }
    .biz-sidebar-inner { padding: 1.5rem 0.6rem; align-items: center; }
    .biz-brand { justify-content: center; padding: 0; }
    .biz-brand-text { display: none; }
    .biz-nav-link { justify-content: center; padding: 0.75rem; }
    .biz-nav-link span { display: none; }
    .biz-nav-link i { width: auto; font-size: 1.05rem; }
    .biz-sidebar-footer .biz-nav-link { justify-content: center; }

    .biz-stats { grid-template-columns: repeat(2, 1fr); }
    .biz-ops-grid { grid-template-columns: repeat(2, 1fr); }
    .biz-primary-grid { grid-template-columns: 1fr; }
    .biz-secondary-grid { grid-template-columns: 1fr; }
    .biz-quick-actions-grid { grid-template-columns: repeat(2, 1fr); }

    .biz-profile-coach::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .biz-sidebar {
        transform: translateX(-100%);
        width: min(300px, 84vw);
        box-shadow: var(--shadow-lg);
    }

    .biz-sidebar-inner { align-items: stretch; padding: 1.5rem 1.1rem; }
    .biz-brand { justify-content: flex-start; padding: 0 0.4rem; }
    .biz-brand-text { display: grid; }
    .biz-brand-business { max-width: 190px; }
    .biz-nav-link { justify-content: flex-start; padding: 0.7rem 0.85rem; }
    .biz-nav-link span { display: inline; }
    .biz-nav-link i { width: 18px; font-size: 0.95rem; }
    .biz-sidebar-footer .biz-nav-link { justify-content: flex-start; }

    .biz-shell.is-sidebar-open .biz-sidebar { transform: translateX(0); }
    .biz-shell.is-sidebar-open .biz-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .biz-sidebar-backdrop { display: block; }
    .biz-sidebar-toggle { display: flex; }

    .biz-main { margin-left: 0; padding: 5.5rem 1.1rem 3rem; }

    .biz-topbar { flex-direction: column; align-items: stretch; }
    .biz-topbar-actions { flex-direction: column; align-items: stretch; }
    .biz-date { justify-content: center; }
    .biz-topbar-actions .btn { justify-content: center; }

    .biz-stats { grid-template-columns: repeat(2, 1fr); }
    .biz-ops-grid { grid-template-columns: 1fr; }
    .biz-top-services > div,
    .biz-top-services li { align-items: flex-start; flex-direction: column; }

    .biz-schedule-row { grid-template-columns: 48px 34px 1fr; row-gap: 0.35rem; }
    .biz-status-pill { grid-column: 1 / -1; justify-self: start; margin-top: 0.3rem; }
    .biz-request-meta { grid-template-columns: 1fr; }
    .biz-request-actions { grid-template-columns: 1fr; }
    .biz-request-proposal[open] { grid-column: auto; }
    .biz-request-proposal-form { grid-template-columns: 1fr; }
    .biz-request-proposal-form .span-2 { grid-column: auto; }

    .biz-weekly-stats { grid-template-columns: repeat(2, 1fr); }
    .biz-chart-bars { height: 100px; }

    .biz-profile-actions { flex-direction: column; }
    .biz-code-form { grid-template-columns: 1fr; }
    .biz-quick-actions-grid { grid-template-columns: repeat(2, 1fr); }

    .biz-card-head { flex-direction: column; align-items: flex-start; }
    .biz-card-action { align-self: stretch; text-align: center; }
}

.biz-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.biz-alert-success {
    color: #0f6b33;
    border: 1px solid rgba(36, 176, 95, 0.22);
    background: #ecfff4;
}

.biz-alert-error {
    color: #9a3412;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: #fff7ed;
}

.biz-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

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

.biz-form-grid label,
.biz-inline-form select,
.biz-inline-form input,
.biz-form-grid input,
.biz-form-grid select,
.biz-form-grid textarea {
    width: 100%;
}

.biz-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.biz-form-grid input,
.biz-form-grid select,
.biz-form-grid textarea,
.biz-inline-form input,
.biz-inline-form select,
.biz-list-item select {
    min-height: 44px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 0.72rem 0.8rem;
    font: inherit;
    font-weight: 750;
}

.biz-form-grid textarea {
    min-height: 104px;
    resize: vertical;
}

.biz-form-grid .span-2 { grid-column: 1 / -1; }

.team-form-errors {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    color: #a91b1b;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fff1f2;
    font-size: 0.86rem;
    font-weight: 800;
}

.team-member-form label > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.team-member-form label > span:first-child i {
    color: var(--primary);
}

.biz-field-error {
    color: #b42318;
    font-size: 0.76rem;
    font-weight: 750;
}

.biz-setting-note {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    margin-top: 0.42rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.45;
}

.biz-setting-note i {
    margin-top: 0.08rem;
    color: var(--primary);
}

.form-submit-guard-notice {
    grid-column: 1 / -1;
    margin: 0.1rem 0 0;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.account-password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.account-password-input > i {
    position: absolute;
    left: 0.85rem;
    z-index: 1;
    color: var(--muted);
    pointer-events: none;
}

.account-password-input input { width: 100%; padding-left: 2.4rem; padding-right: 3rem; }
.account-password-input button {
    position: absolute;
    right: 0.45rem;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}
.account-password-input button:hover,
.account-password-input button:focus-visible { color: var(--primary); background: var(--surface-soft); outline: none; }
.account-security-help { margin: -0.15rem 0 0; color: var(--muted); font-size: 0.8rem; }
.account-security-help i { color: var(--primary); }
.account-security-help button { padding: 0; color: var(--primary); border: 0; background: transparent; font: inherit; font-weight: 850; text-decoration: underline; cursor: pointer; }
.account-modal-copy { margin-top: 0; color: var(--muted); line-height: 1.55; }
.account-modal-fields { display: grid; gap: 0.9rem; }
.account-modal-field { display: grid; gap: 0.42rem; margin-top: 0.95rem; color: var(--ink); font-size: 0.82rem; font-weight: 850; }
.account-modal-fields .account-modal-field { margin-top: 0; }
.account-modal-field > small { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.account-modal-field code { padding: 0.12rem 0.28rem; color: #b42318; border-radius: 4px; background: #fff1f2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.account-modal-input { position: relative; display: flex; align-items: center; }
.account-modal-input > i { position: absolute; left: 0.85rem; z-index: 1; color: var(--primary); pointer-events: none; }
.account-modal-input input { width: 100%; min-height: 46px; padding-left: 2.4rem; color: var(--ink); border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); font: inherit; transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.account-modal-input input:focus { border-color: var(--primary); outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.15); }
.account-modal-input.is-danger > i { color: #b42318; }
.account-modal-input.is-danger input { color: #7f1d1d; border-color: rgba(180, 35, 24, 0.28); background: #fff8f8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 750; }
.account-modal-input.is-danger input::placeholder { color: #b45353; opacity: 0.72; }
.account-modal-input.is-danger input:focus { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.account-modal-field .account-password-input { width: 100%; }
.account-modal-field .account-password-input > i { color: var(--primary); }
.account-modal-field .account-password-input input { min-height: 46px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.account-modal-field .account-password-input input:focus { border-color: var(--primary); outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.15); }
.account-modal-field .account-password-input button { right: 0.45rem; }
.biz-danger-zone { border-color: rgba(180, 35, 24, 0.28); }
.btn.is-danger { color: #b42318; border-color: rgba(180, 35, 24, 0.28); }
.btn.is-danger:hover { color: #fff; border-color: #b42318; background: #b42318; }
.pet-password-reset-page { display: grid; min-height: calc(100vh - 82px); padding: 4rem 1.25rem; place-items: center; background: #f4f7fb; }
.pet-password-reset-card { width: min(100%, 520px); padding: 2rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow-md); }
.pet-password-reset-card h1 { margin: 0.5rem 0; color: var(--ink); font-size: 1.8rem; }
.pet-password-reset-card > p { margin: 0; color: var(--muted); line-height: 1.6; }
.pet-password-reset-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.pet-password-reset-form label { display: grid; gap: 0.42rem; color: var(--ink); font-size: 0.84rem; font-weight: 850; }
.pet-password-reset-form label > small { color: #b42318; }
.pet-password-field { position: relative; display: flex; align-items: center; }
.pet-password-field > i { position: absolute; left: 0.85rem; color: var(--muted); pointer-events: none; }
.pet-password-field input { width: 100%; padding-left: 2.4rem; padding-right: 3rem; }
.pet-password-field button { position: absolute; right: 0.45rem; width: 34px; height: 34px; padding: 0; color: var(--muted); border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.pet-password-field button:hover { color: var(--primary); background: var(--surface-soft); }
.pet-password-hint { margin: -0.2rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

.team-photo-picker {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.85rem;
    padding: 1rem;
    border: 1px dashed #9fb4ec;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7faff, #edf3ff);
}

.team-photo-preview,
.team-member-avatar {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 50%;
}

.team-photo-preview {
    display: grid;
    grid-row: span 2;
    place-items: center;
    overflow: hidden;
    color: var(--primary);
    background: #e4ebff center / cover no-repeat;
    font-size: 1.5rem;
}

.team-photo-preview.has-image {
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #c7d2fe;
}

.team-photo-content {
    display: grid;
    min-width: 0;
    gap: 0.3rem;
}

.team-photo-content > strong {
    color: var(--ink);
    font-weight: 850;
}

.team-photo-content > strong i { color: var(--primary); }

.team-photo-content > span,
.team-photo-content > small {
    color: var(--muted);
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-photo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    gap: 0.45rem;
    margin-top: 0.2rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #b7c8fb;
    border-radius: 7px;
    color: var(--primary-dark);
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 850;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.team-photo-action:hover,
.team-photo-action:focus-within {
    border-color: var(--primary);
    background: #eef3ff;
    transform: translateY(-1px);
}

.team-photo-action input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.team-photo-error {
    grid-column: 1 / -1;
}

.team-active-check {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
}

.team-active-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid #d8e2f3;
    border-radius: 8px;
    background: #f8faff;
}

.profile-photo-grid legend { width: 100%; padding: 0; color: var(--ink); font-size: 0.92rem; font-weight: 900; }
.profile-photo-grid legend i { color: var(--primary); }
.profile-photo-grid legend small { color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.profile-photo-grid > p { grid-column: 1 / -1; margin: -0.25rem 0 0.1rem; color: var(--muted); font-size: 0.8rem; }

.profile-photo-picker {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    padding: 0.85rem;
    border: 1px dashed #aebfeb;
    border-radius: 8px;
    background: #fff;
}

.profile-photo-preview {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    color: var(--primary);
    background: #e8efff center / cover no-repeat;
    font-size: 1.4rem;
}

.profile-photo-preview.has-image { border: 2px solid #fff; box-shadow: 0 0 0 2px #c7d2fe; }
.profile-photo-content { display: grid; min-width: 0; gap: 0.25rem; }
.profile-photo-content > strong { color: var(--ink); font-size: 0.84rem; }
.profile-photo-content > span,
.profile-photo-content > small { overflow: hidden; color: var(--muted); font-size: 0.73rem; text-overflow: ellipsis; white-space: nowrap; }

.profile-photo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    gap: 0.4rem;
    margin-top: 0.2rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #b7c8fb;
    border-radius: 7px;
    color: var(--primary-dark);
    background: #fff;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 850;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-photo-action:hover,
.profile-photo-action:focus-within { border-color: var(--primary); background: #eef3ff; transform: translateY(-1px); }
.profile-photo-action input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.team-directory-item {
    gap: 0.8rem;
}

.team-member-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    object-fit: cover;
    color: var(--primary-dark);
    background: #dfe8ff;
    font-size: 1.15rem;
    font-weight: 900;
}

.team-member-details {
    flex: 1 1 auto;
    min-width: 0;
}

.team-member-details span {
    display: block;
    overflow-wrap: anywhere;
}

.team-directory-actions {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
}

.team-status-action {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #d8dfed;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 850;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.team-status-action.is-disable { color: #a52b23; }
.team-status-action.is-disable:hover { border-color: #efb5ae; background: #fff2f0; }
.team-status-action.is-enable { color: #087a54; }
.team-status-action.is-enable:hover { border-color: #91ddbd; background: #effcf5; }
.team-status-action:disabled { opacity: 0.6; cursor: wait; }

.team-member-details span i {
    width: 1rem;
    color: var(--primary);
}

.biz-check {
    flex-direction: row !important;
    align-items: center;
    color: var(--ink) !important;
}

.biz-check input {
    width: auto;
    min-height: auto;
}

.biz-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.biz-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.biz-slot-grid span,
.biz-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.biz-pill.is-active,
.biz-slot-grid span {
    color: var(--primary-dark);
    border-color: rgba(50, 85, 215, 0.22);
    background: #eef2ff;
}

.biz-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

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

.biz-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.biz-table th,
.biz-table td {
    padding: 0.85rem 0.65rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.biz-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.appointments-page-grid { grid-template-columns: minmax(0, 1fr); }
.appointments-page-grid > .biz-card { overflow: hidden; border-color: #dce5f2; box-shadow: 0 12px 32px rgba(32, 57, 101, 0.07); }
.appointments-list-head { align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid #e5ebf5; }
.appointments-list-head h2 { letter-spacing: 0; }
.appointments-list-head .biz-pill { padding: 0.4rem 0.68rem; border-radius: 7px; }
.appointments-table-tools { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; margin: 1rem 0; padding: 0.78rem; border: 1px solid #e1e8f3; border-radius: 8px; background: #f8faff; }
.appointments-status-filter { display: inline-flex; align-items: center; gap: 0.48rem; min-width: 228px; color: var(--ink); font-size: 0.78rem; font-weight: 850; white-space: nowrap; }
.appointments-status-filter > span { display: inline-flex; align-items: center; gap: 0.35rem; color: #526684; }
.appointments-status-filter > span i { color: var(--primary); }
.appointments-status-filter select { min-height: 38px; flex: 1 1 auto; padding: 0.45rem 2rem 0.45rem 0.7rem; border: 1px solid #b9c9e9; border-radius: 7px; color: var(--primary-dark); background: #fff; font: inherit; font-weight: 850; box-shadow: 0 2px 6px rgba(50, 85, 215, 0.05); cursor: pointer; }
.appointments-status-filter select:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.14); }
.appointments-status-filter small { color: var(--primary); font-size: 0.7rem; }
.appointments-search { display: flex; align-items: center; flex: 1 1 320px; max-width: 520px; gap: 0.6rem; padding: 0.64rem 0.75rem; border: 1px solid #cbd8ec; border-radius: 7px; background: #fff; box-shadow: 0 2px 5px rgba(28, 49, 90, 0.03); transition: border-color 160ms ease, box-shadow 160ms ease; }
.appointments-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.12); }
.appointments-search i { color: var(--primary); font-size: 0.85rem; }
.appointments-search input { width: 100%; min-height: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 0.86rem; }
.appointments-page-size { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.78rem; font-weight: 850; white-space: nowrap; }
.appointments-page-size select { min-height: 36px; padding: 0.35rem 1.8rem 0.35rem 0.6rem; border-color: #cbd8ec; border-radius: 7px; color: var(--ink); background-color: #fff; font-weight: 850; }
.appointments-page-grid .biz-table-wrap { margin: 0 -1.25rem; padding: 0 1.25rem; }
.appointments-table { min-width: 980px; border-collapse: separate; border-spacing: 0 0.42rem; }
.appointments-table thead th { padding: 0.46rem 0.72rem; color: #6b7d99; border: 0; background: transparent; font-size: 0.68rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.appointments-table tbody tr { box-shadow: 0 2px 10px rgba(35, 56, 97, 0.035); transition: transform 160ms ease, box-shadow 160ms ease; }
.appointments-table tbody tr:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(35, 56, 97, 0.09); }
.appointments-table tbody td { padding: 0.78rem 0.72rem; border-top: 1px solid #e0e7f1; border-bottom: 1px solid #e0e7f1; background: #fff; vertical-align: middle; }
.appointments-table tbody td:first-child { border-left: 3px solid #5674e7; border-radius: 7px 0 0 7px; }
.appointments-table tbody td:last-child { border-right: 1px solid #e0e7f1; border-radius: 0 7px 7px 0; }
.appointments-table th button { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; text-transform: inherit; cursor: pointer; }
.appointments-table th button:hover { color: var(--primary); }
.appointments-table td > strong,
.appointments-table td > span,
.appointments-table td > small { display: block; }
.appointments-table td > span { margin-top: 0.16rem; color: var(--muted); font-size: 0.78rem; }
.appointments-table td > small { margin-top: 0.2rem; color: #71829d; font-size: 0.72rem; }
.appointment-status-control { position: relative; display: flex; align-items: center; min-width: 174px; }
.appointment-status-control > i { position: absolute; left: 0.72rem; z-index: 1; color: var(--primary); font-size: 0.72rem; pointer-events: none; }
.appointments-table .appointment-status-control select {
    min-width: 174px;
    min-height: 38px;
    padding: 0.45rem 2rem 0.45rem 1.95rem;
    border: 1px solid #b9c9e9;
    border-radius: 8px;
    color: var(--primary-dark);
    background-color: #f7f9ff;
    font-size: 0.8rem;
    font-weight: 850;
    box-shadow: 0 2px 6px rgba(50, 85, 215, 0.06);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.appointments-table .appointment-status-control select:hover { border-color: #8fa9ed; background-color: #fff; }
.appointments-table .appointment-status-control select:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.14); }
.appointments-table .appointment-status-control select:disabled { opacity: 0.72; cursor: not-allowed; }
.appointment-status-saving { display: block; margin-top: 0.35rem; color: var(--primary); font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.appointment-complete-alert { max-width: 500px; padding: 1.7rem; border-radius: 10px; }
.appointment-completion-dialog { color: #526684; text-align: left; line-height: 1.5; }
.appointment-completion-dialog > p { margin: 0.7rem 0 0.8rem; }
.appointment-completion-dialog > div { display: flex; gap: 0.65rem; margin: 0.8rem 0; padding: 0.8rem; border: 1px solid #cde8db; border-radius: 8px; color: #176b4d; background: #effbf5; font-size: 0.84rem; }
.appointment-completion-dialog > div i { margin-top: 0.16rem; color: #15915e; }
.appointment-completion-dialog > small { display: block; color: #71829d; font-size: 0.76rem; }
.appointment-completion-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 8px; color: #fff; background: #15915e; font-size: 1.5rem; }
.appointment-complete-alert .swal2-actions { gap: 0.6rem; margin-top: 1.3rem; }
.appointment-detail-button { display: inline-flex; align-items: center; min-height: 34px; gap: 0.38rem; padding: 0.38rem 0.55rem; border: 1px solid #c7d4ed; border-radius: 7px; color: var(--primary-dark); background: #f7f9ff; font: inherit; font-size: 0.75rem; font-weight: 850; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.appointment-detail-button:hover { border-color: var(--primary); background: #eef3ff; transform: translateY(-1px); }
.appointment-detail-modal .modal-header { align-items: flex-start; }
.appointment-detail-hero { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; padding: 0.9rem; border: 1px solid #d9e3f4; border-radius: 8px; background: #f7f9ff; }
.appointment-detail-hero > span:first-child { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 8px; color: #fff; background: var(--primary); }
.appointment-detail-hero > div { flex: 1 1 auto; min-width: 0; }
.appointment-detail-hero strong { display: block; color: var(--ink); }
.appointment-detail-hero p { margin: 0.16rem 0 0; color: var(--muted); font-size: 0.82rem; }
.appointment-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.appointment-detail-grid article { display: flex; gap: 0.65rem; min-width: 0; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.appointment-detail-grid article > i { width: 20px; color: var(--primary); text-align: center; }
.appointment-detail-grid article div { min-width: 0; }
.appointment-detail-grid small { display: block; margin-bottom: 0.18rem; color: var(--muted); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.appointment-detail-grid strong,
.appointment-detail-grid span { display: block; overflow-wrap: anywhere; }
.appointment-detail-grid strong { color: var(--ink); font-size: 0.84rem; }
.appointment-detail-grid span { margin-top: 0.13rem; color: var(--muted); font-size: 0.76rem; }
.appointment-detail-notes { margin-top: 0.8rem; padding: 0.85rem; border-radius: 8px; background: #f8faff; }
.appointment-detail-notes small { color: var(--primary-dark); font-weight: 850; }
.appointment-detail-notes p { margin: 0.42rem 0 0; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }
.appointments-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.7rem; padding-top: 0.9rem; border-top: 1px solid #e5ebf5; color: var(--muted); font-size: 0.78rem; }
.appointments-pagination { display: inline-flex; gap: 0.35rem; }
.appointments-pagination button { min-width: 32px; min-height: 32px; border: 1px solid #d3ddec; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 0.78rem; font-weight: 850; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.appointments-pagination button:hover { color: var(--primary-dark); border-color: #9bb1e8; background: #f4f7ff; }
.appointments-pagination button.is-active { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 5px 12px rgba(50, 85, 215, 0.24); }

@media (max-width: 700px) {
    .appointments-table-tools,
    .appointments-table-footer { align-items: stretch; flex-direction: column; }
    .appointments-status-filter { width: 100%; }
    .appointments-search { max-width: none; }
    .appointments-pagination { flex-wrap: wrap; }
    .appointment-detail-grid { grid-template-columns: 1fr; }
}

.biz-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.biz-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.biz-list-item.align-start {
    align-items: flex-start;
}

.biz-list-item strong {
    display: block;
    color: var(--ink);
    font-weight: 900;
}

.biz-list-item span,
.biz-list-item p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.biz-list-item form {
    flex: 0 0 150px;
}

.services-page-grid {
    align-items: start;
}

.service-list-item {
    justify-content: flex-start;
}

.service-list-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.16);
    border-radius: 8px;
    background: #fff;
}

.service-list-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.service-list-meta,
.service-list-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.service-list-meta {
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.service-list-meta small {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 850;
}

.service-list-actions {
    flex: 0 0 auto;
}

.service-edit-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.2);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.service-edit-button:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-1px);
}

.service-money-input,
.service-duration-input {
    position: relative;
    display: flex;
    align-items: center;
}

.service-money-input i {
    position: absolute;
    left: 0.9rem;
    color: var(--muted);
    pointer-events: none;
}

.service-money-input input {
    padding-left: 2rem;
}

.service-duration-input b {
    position: absolute;
    right: 0.9rem;
    color: var(--muted);
    font-size: 0.78rem;
    pointer-events: none;
}

.service-duration-input input {
    padding-right: 3rem;
}

.service-edit-modal .modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    animation: modalLift 0.28s ease both;
}

.service-edit-modal .modal-header,
.service-edit-modal .modal-body,
.service-edit-modal .modal-footer {
    padding: 1.2rem 1.35rem;
    border-color: var(--border);
}

.service-edit-modal .modal-title {
    margin-top: 0.45rem;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.biz-empty {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

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

@media (max-width: 767px) {
    .biz-form-grid,
    .biz-inline-form { grid-template-columns: 1fr; }
    .biz-list-item { align-items: flex-start; flex-direction: column; }
    .biz-list-item form { width: 100%; flex-basis: auto; }
    .service-list-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); }
    .service-list-actions { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
}

.service-search-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #eef4fb 0%, #f8fbff 42%, #ffffff 100%);
}

.service-search-toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.service-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.service-filter-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0 2.1rem 0 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-filter-pill:focus-within {
    border-color: rgba(50, 85, 215, 0.42);
    box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.12);
}

.service-filter-pill > i:first-child {
    color: var(--primary);
    font-size: 0.9rem;
}

.service-filter-pill select,
.service-filter-pill input {
    min-width: 140px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    outline: 0;
    appearance: none;
}

.service-filter-pill-search {
    flex: 1 1 220px;
}

.service-filter-pill-search input {
    width: 100%;
    min-width: 0;
}

.service-filter-caret {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.7rem;
    pointer-events: none;
}

.service-search-hero {
    padding: 46px 0 34px;
    background:
        radial-gradient(circle at 12% 18%, rgba(50, 85, 215, 0.14), transparent 28%),
        radial-gradient(circle at 86% 22%, rgba(84, 104, 234, 0.12), transparent 32%);
}

.service-search-hero h1 {
    max-width: 780px;
    margin: 1rem 0 0.8rem;
    color: var(--ink);
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.1;
    font-weight: 950;
}

.service-search-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.service-mobile-filter {
    display: none;
}

.service-results-section {
    padding: 2rem 0 4.5rem;
}

.service-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-results-toolbar strong {
    display: block;
    color: var(--ink);
    font-size: 1.2rem;
}

.service-results-toolbar span {
    color: var(--muted);
    font-weight: 750;
}

.service-live-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: min(340px, 100%);
    min-height: 48px;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-live-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.12);
}

.service-live-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}

.service-live-search input {
    width: 100%;
    min-height: 46px;
    padding-left: 2.35rem;
    padding-right: 0.9rem;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--ink);
    font: inherit;
    outline: 0;
}

.service-live-search input::placeholder {
    color: #64748b;
    opacity: 1;
}

.service-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-result-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.5rem;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-result-row:hover {
    transform: translateY(-2px);
    border-color: rgba(50, 85, 215, 0.22);
    box-shadow: var(--shadow-md);
}

.service-result-row.is-hidden {
    display: none;
}

.service-result-left {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.service-result-left::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 72%, rgba(255, 255, 255, 0.7) 100%);
    pointer-events: none;
}

.service-result-left > :not(.service-result-business-photo) {
    position: relative;
    z-index: 1;
}

.service-result-business-photo {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    pointer-events: none;
}

.service-result-top {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.service-result-avatar {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--primary), var(--teal));
    font-size: 1.4rem;
    box-shadow: 0 10px 22px rgba(50, 85, 215, 0.28);
}

.service-result-avatar img { width: 100%; height: 100%; object-fit: cover; }

.service-result-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin-bottom: 0.4rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.service-badge-verified {
    color: #0f6b33;
    background: var(--green-soft);
}

.service-badge-plain {
    color: var(--muted);
    background: var(--surface-soft);
}

.service-result-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 950;
}

.service-result-type {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.service-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.service-link-btn:hover {
    text-decoration: underline;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.service-rating-stars {
    color: #f0ad2f;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.service-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.service-social-links a {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--primary);
    border: 1px solid rgba(50, 85, 215, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.service-social-links a:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-1px);
}

.service-favorite {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-soft);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-favorite:hover,
.service-favorite.is-active {
    color: #fff;
    background: var(--primary);
    transform: scale(1.05);
}

.service-result-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.service-result-address {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.service-result-address i {
    margin-top: 0.2rem;
    color: var(--primary);
}

.service-result-address strong {
    display: block;
    color: var(--ink);
    font-weight: 850;
}

.service-result-address span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.service-result-services {
    display: grid;
    gap: 0.6rem;
    padding: 0.8rem;
    border: 1px solid rgba(50, 85, 215, 0.12);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.82);
}

.service-result-services-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.service-result-services-head span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.service-result-services-head i {
    color: var(--primary);
}

.service-result-services-head small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.service-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.service-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 58px;
    padding: 0.68rem 0.75rem;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.service-option-card:hover,
.service-option-card.is-selected {
    border-color: rgba(50, 85, 215, 0.38);
    background: #eef2ff;
    box-shadow: 0 10px 22px rgba(50, 85, 215, 0.12);
    transform: translateY(-1px);
}

.service-option-card span {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.service-option-card strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-option-card small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.service-option-card b {
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 950;
    white-space: nowrap;
}

.service-result-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
}

.service-result-price-row span {
    color: var(--text);
    font-weight: 800;
}

.service-result-price-row small {
    color: var(--muted);
    font-weight: 700;
}

.service-result-price-row strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 950;
}

.service-result-right {
    display: flex;
    flex-direction: column;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.service-availability-label {
    margin: 0 0 0.7rem;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
}

.service-day-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
}

.service-day-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 0.3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.service-day-chip span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
}

.service-day-chip small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.service-day-chip.is-open {
    border-color: rgba(22, 163, 74, 0.28);
    background: var(--green-soft);
}

.service-day-chip.is-open span,
.service-day-chip.is-open small {
    color: #0f6b33;
}

.service-day-chip.is-closed span,
.service-day-chip.is-closed small {
    text-decoration: line-through;
    opacity: 0.6;
}

.service-day-chip.is-active {
    border-color: var(--primary);
    background: rgba(50, 85, 215, 0.1);
    box-shadow: 0 0 0 2px rgba(50, 85, 215, 0.14);
}

.service-day-chip.is-active span,
.service-day-chip.is-active small {
    color: var(--primary-dark);
}

.service-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.service-result-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
}

.service-result-detail {
    padding-top: 0.7rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--border);
}

.service-result-consultory-photo { display: block; width: 100%; max-height: 190px; margin: 0 0 0.8rem; object-fit: cover; border-radius: 8px; }

@media (max-width: 700px) {
    .profile-photo-grid { grid-template-columns: 1fr; }
}

.service-result-detail dd {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.service-result-detail dl {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.service-result-map {
    overflow: hidden;
    height: 220px;
    margin-top: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #e5e7eb;
}

.service-result-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.service-hours-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(74px, 1fr));
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.service-hours-board div {
    display: grid;
    gap: 0.18rem;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.service-hours-board div.is-today {
    border-color: rgba(50, 85, 215, 0.26);
    background: #eef2ff;
}

.service-hours-board strong {
    color: var(--ink);
    font-size: 0.76rem;
}

.service-hours-board span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.service-result-detail dl > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.5rem;
}

.service-result-detail dt {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.service-empty-state {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    padding: 3rem 1rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.service-empty-state i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--primary);
    border-radius: 18px;
    background: #eef2ff;
    font-size: 1.35rem;
}

.service-empty-state h2 {
    margin: 0;
    color: var(--ink);
}

.service-empty-state p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.service-pagination {
    margin-top: 1.25rem;
}

.public-availability-modal .modal-dialog {
    max-width: 920px;
}

.public-availability-modal .modal-content {
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    animation: modalLift 0.28s ease both;
}

.public-availability-modal .modal-header,
.public-availability-modal .modal-footer {
    flex: 0 0 auto;
    padding: 1rem 1.2rem;
    border-color: var(--border);
}

.public-availability-modal .modal-body {
    padding: 1.1rem 1.2rem 1.25rem;
    overflow-y: auto;
    background: #f8fafc;
}

.public-availability-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
}

.public-availability-title > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #fff;
    border-radius: 8px;
    background: var(--primary);
}

.public-availability-title > button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.public-availability-title > button:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateX(-2px);
}

.public-availability-title small,
.public-availability-section-head small,
.public-availability-context small,
.public-availability-footer small {
    display: block;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 850;
    text-transform: uppercase;
}

.public-availability-title h2 {
    margin: 0.12rem 0 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-availability-loading,
.public-availability-error {
    display: grid;
    min-height: 360px;
    place-items: center;
    align-content: center;
    gap: 0.55rem;
    color: var(--muted);
    text-align: center;
}

.public-availability-loading > i,
.public-availability-error > i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--primary);
    border-radius: 50%;
    background: #eef2ff;
    font-size: 1.35rem;
}

.public-availability-loading strong,
.public-availability-error h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.public-availability-loading span,
.public-availability-error p {
    margin: 0;
    font-size: 0.84rem;
}

.public-availability-content {
    display: grid;
    gap: 0.9rem;
}

.public-availability-context {
    display: grid;
    grid-template-columns: 1.05fr 0.9fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.public-availability-context > div,
.public-availability-context > label {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem;
    border-right: 1px solid var(--border);
}

.public-availability-context > :last-child {
    border-right: 0;
}

.public-availability-context > div > i,
.public-availability-context > label > i {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--primary-dark);
    border-radius: 8px;
    background: #eef2ff;
}

.public-availability-context span {
    min-width: 0;
    flex: 1 1 auto;
}

.public-availability-context strong,
.public-availability-context em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-availability-context strong {
    margin-top: 0.18rem;
    color: var(--ink);
    font-size: 0.83rem;
    font-weight: 900;
}

.public-availability-context em {
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.public-availability-context select {
    width: 100%;
    min-height: 34px;
    margin-top: 0.22rem;
    padding: 0.3rem 1.8rem 0.3rem 0.55rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.public-availability-calendar,
.public-availability-times {
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.public-availability-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.public-availability-section-head h3 {
    margin: 0.12rem 0 0;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 950;
}

.public-availability-section-head > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.55rem;
    color: #0f6b33;
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 8px;
    background: var(--green-soft);
    font-size: 0.7rem;
    font-weight: 850;
}

.public-availability-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    gap: 0.45rem;
}

.public-availability-day {
    display: flex;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.public-availability-day:hover:not(:disabled) {
    border-color: rgba(50, 85, 215, 0.45);
    transform: translateY(-1px);
}

.public-availability-day.is-active {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(50, 85, 215, 0.18);
}

.public-availability-day.is-closed {
    opacity: 0.46;
    background: var(--surface-soft);
    cursor: not-allowed;
}

.public-availability-day span {
    font-size: 0.73rem;
    font-weight: 900;
}

.public-availability-day small {
    color: inherit;
    font-size: 0.68rem;
    font-weight: 750;
}

.public-availability-slots {
    display: grid;
    gap: 0.8rem;
}

.public-availability-time-group {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
}

.public-availability-time-group > strong {
    padding-top: 0.65rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 900;
}

.public-availability-time-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(80px, 1fr));
    gap: 0.45rem;
}

.public-availability-time-grid button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #0f6b5e;
    border: 1px solid rgba(20, 184, 166, 0.24);
    border-radius: 8px;
    background: #e8fbf6;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 900;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.public-availability-time-grid button:hover,
.public-availability-time-grid button.is-selected {
    color: #fff;
    background: #0f8b78;
    transform: translateY(-1px);
}

.public-availability-empty {
    display: grid;
    min-height: 140px;
    place-items: center;
    align-content: center;
    gap: 0.3rem;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    text-align: center;
}

.public-availability-empty i {
    color: var(--primary);
    font-size: 1.25rem;
}

.public-availability-empty strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.public-availability-empty span {
    font-size: 0.76rem;
}

.public-availability-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-availability-footer > div {
    min-width: 0;
}

.public-availability-footer strong {
    display: block;
    margin-top: 0.12rem;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-availability-footer .btn.disabled {
    opacity: 0.52;
    pointer-events: none;
}

.public-booking-stage.is-active {
    animation: publicBookingSlide 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes publicBookingSlide {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.public-booking-intro,
.public-booking-tabs,
.public-booking-form,
.public-booking-verify,
.public-booking-summary,
.public-booking-success {
    width: min(100%, 680px);
    margin-right: auto;
    margin-left: auto;
}

.public-booking-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ced9ff;
    border-radius: 8px;
    background: #eef3ff;
}

.public-booking-intro > span,
.public-booking-summary > span {
    display: grid;
    width: 46px;
    height: 64px;
    flex: 0 0 46px;
    place-items: center;
    color: var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(50, 85, 215, 0.12);
}

.public-booking-intro small,
.public-booking-summary small,
.public-booking-verify > small,
.public-booking-success > small {
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.public-booking-intro h3,
.public-booking-verify h3,
.public-booking-success h3 {
    margin: 0.15rem 0 0.25rem;
    color: var(--ink);
    font-size: 1.16rem;
    font-weight: 950;
}

.public-booking-intro p,
.public-booking-verify p,
.public-booking-success p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.public-booking-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.public-booking-tabs button {
    min-height: 42px;
    color: var(--muted);
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.public-booking-tabs button.is-active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(50, 85, 215, 0.2);
}

.public-booking-form {
    padding: 1.05rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.public-booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.public-booking-form label {
    display: block;
    margin-bottom: 0.85rem;
}

.public-booking-form-grid label {
    margin-bottom: 0;
}

.public-booking-form-grid .is-wide {
    grid-column: 1 / -1;
}

.public-booking-form label > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 850;
}

.public-booking-form label > span em {
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
}

.public-booking-form label > div {
    position: relative;
}

.public-booking-form label > div > i {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    color: var(--primary);
    transform: translateY(-50%);
    pointer-events: none;
}

.public-booking-form input,
.public-booking-form select,
.public-booking-form textarea {
    width: 100%;
    min-height: 44px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.public-booking-form input,
.public-booking-form select {
    padding: 0.65rem 0.8rem 0.65rem 2.35rem;
}

.public-booking-form textarea {
    min-height: 92px;
    padding: 0.75rem;
    resize: vertical;
}

.public-booking-form input:focus,
.public-booking-form select:focus,
.public-booking-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.12);
}

.public-booking-form .is-invalid {
    border-color: #dc3545;
}

.public-booking-form [data-field-error],
.public-booking-terms-error {
    display: block;
    min-height: 0.9rem;
    margin-top: 0.2rem;
    color: #b42318;
    font-size: 0.69rem;
    font-weight: 700;
}

.public-booking-note-help {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.45;
}

.public-booking-note-help strong {
    color: var(--ink);
    font-weight: 850;
}

.public-booking-check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.9rem 0 0 !important;
}

.public-booking-check input {
    width: 17px;
    min-height: 17px;
    flex: 0 0 17px;
    margin-top: 0.1rem;
    accent-color: var(--primary);
}

.public-booking-check span {
    display: block !important;
    margin: 0 !important;
    color: var(--muted) !important;
    line-height: 1.45;
}

.public-booking-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 1rem;
    justify-content: center;
}

.public-booking-alert {
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.8rem;
    color: #8f1d18;
    border: 1px solid #fac5c0;
    border-radius: 8px;
    background: #fff0ee;
    font-size: 0.76rem;
    font-weight: 750;
}

.public-booking-verify,
.public-booking-success {
    min-height: 430px;
    padding: 2rem 1rem;
    text-align: center;
}

.public-booking-verify-icon,
.public-booking-success > span {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 1rem;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 14px 30px rgba(50, 85, 215, 0.22);
    font-size: 1.4rem;
}

.public-booking-success > span {
    background: #11865f;
    box-shadow: 0 14px 30px rgba(17, 134, 95, 0.22);
}

.public-booking-verify form {
    width: min(100%, 390px);
    margin: 1.4rem auto 0;
}

.public-booking-verify input {
    width: 100%;
    min-height: 62px;
    padding: 0.7rem;
    color: var(--ink);
    border: 1px solid #b9c8fc;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 1.7rem;
    font-weight: 950;
    letter-spacing: 0;
    text-align: center;
    outline: none;
}

.public-booking-resend {
    margin-top: 1rem;
    color: var(--primary-dark);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
}

.public-booking-resend:disabled {
    color: var(--muted);
    cursor: not-allowed;
}

.public-booking-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    padding: 0.9rem;
    border: 1px solid #cdd8ff;
    border-radius: 8px;
    background: #eef3ff;
}

.public-booking-summary strong,
.public-booking-summary p {
    display: block;
    margin: 0.15rem 0 0;
}

.public-booking-summary strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 900;
}

.public-booking-summary p {
    color: var(--muted);
    font-size: 0.75rem;
}

.public-booking-pet-picker {
    margin-bottom: 0.9rem;
}

.public-booking-pet-picker > span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 850;
}

.public-booking-pet-picker > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.public-booking-pet-picker button {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.public-booking-pet-picker button > i {
    color: var(--primary);
}

.public-booking-pet-picker button span,
.public-booking-pet-picker button strong,
.public-booking-pet-picker button small {
    display: block;
    min-width: 0;
}

.public-booking-pet-picker button strong,
.public-booking-pet-picker button small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-booking-pet-picker button strong {
    font-size: 0.76rem;
    font-weight: 900;
}

.public-booking-pet-picker button small {
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.64rem;
}

.public-booking-pet-picker button.is-selected {
    color: var(--primary-dark);
    border-color: var(--primary);
    background: #eef3ff;
    box-shadow: 0 0 0 2px rgba(50, 85, 215, 0.1);
}

.public-booking-notes {
    margin-top: 0.85rem;
}

.public-booking-secure {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.7rem;
    text-align: center;
}

.public-booking-success [data-public-booking-confirmation] {
    width: min(100%, 520px);
    margin: 1.25rem auto;
    text-align: left;
}

.public-booking-confirmation-card {
    display: grid;
    gap: 0.9rem;
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.public-booking-confirmation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.public-booking-confirmation-grid > div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0.1rem 0.55rem;
    align-items: center;
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid #e6ecf7;
    border-radius: 8px;
    background: #f8fbff;
}

.public-booking-confirmation-grid > div.is-wide {
    grid-column: 1 / -1;
}

.public-booking-confirmation-grid i {
    grid-row: span 2;
    color: var(--primary);
    font-size: 0.9rem;
    text-align: center;
}

.public-booking-confirmation-grid span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.public-booking-confirmation-grid strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 850;
}

.public-booking-confirmation-policy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.62rem 0.8rem;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 8px;
    background: #eef3ff;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.public-booking-confirmation-policy:hover {
    color: var(--primary);
}

.public-booking-business-policies {
    display: grid;
    gap: 0.65rem;
}

.public-booking-business-policies article {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.public-booking-business-policies strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink);
    font-size: 0.82rem;
}

.public-booking-business-policies p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.public-booking-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

@media (max-width: 991px) {
    .service-result-row {
        grid-template-columns: 1fr;
    }

    .service-result-right {
        padding-left: 0;
        padding-top: 1rem;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

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

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

    .public-availability-context > div,
    .public-availability-context > label {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .public-availability-context > :last-child {
        border-bottom: 0;
    }

    .public-availability-days {
        grid-template-columns: repeat(7, minmax(76px, 1fr));
        padding-bottom: 0.25rem;
        overflow-x: auto;
    }

    .public-availability-time-grid {
        grid-template-columns: repeat(4, minmax(76px, 1fr));
    }
}


@media (max-width: 640px) {
    .service-search-toolbar {
        display: none;
    }

    .service-search-hero {
        padding: 28px 0 32px;
    }

    .service-search-hero h1 {
        font-size: 2rem;
    }

    .service-search-hero p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .service-mobile-filter {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-top: 1.4rem;
        padding: 1rem;
        border: 1px solid rgba(50, 85, 215, 0.16);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    }

    .service-mobile-filter-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .service-mobile-filter-heading span {
        color: var(--ink);
        font-size: 0.95rem;
        font-weight: 900;
    }

    .service-mobile-filter-heading span i {
        margin-right: 0.35rem;
        color: var(--primary);
    }

    .service-mobile-filter-heading a {
        color: var(--primary);
        font-size: 0.8rem;
        font-weight: 800;
        text-decoration: none;
    }

    .service-mobile-filter-field {
        display: grid;
        gap: 0.4rem;
        margin: 0;
    }

    .service-mobile-filter-field > span {
        color: #475569;
        font-size: 0.72rem;
        font-weight: 850;
        text-transform: uppercase;
    }

    .service-mobile-filter-field > div {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 50px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #fff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .service-mobile-filter-field > div:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(50, 85, 215, 0.12);
    }

    .service-mobile-filter-field > div > i:first-child {
        position: absolute;
        left: 0.9rem;
        color: var(--primary);
        pointer-events: none;
    }

    .service-mobile-filter-field select,
    .service-mobile-filter-field input {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 0 2.35rem;
        border: 0;
        border-radius: inherit;
        background: transparent;
        color: var(--ink);
        font: inherit;
        font-size: 0.9rem;
        font-weight: 750;
        outline: 0;
        appearance: none;
    }

    .service-mobile-filter-query input {
        padding-right: 0.85rem;
    }

    .service-mobile-filter-caret {
        position: absolute;
        right: 0.9rem;
        color: #64748b;
        font-size: 0.7rem;
        pointer-events: none;
    }

    .service-mobile-filter-submit {
        width: 100%;
        min-height: 50px;
        justify-content: center;
        border-radius: 8px;
    }

    .service-results-toolbar {
        gap: 0.85rem;
    }

    .service-live-search {
        width: 100%;
        min-width: 0;
    }

    .service-day-chips {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-result-detail dl > div {
        grid-template-columns: 1fr;
    }

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

    .public-availability-modal .modal-dialog {
        margin: 0.4rem;
    }

    .public-availability-modal .modal-content {
        max-height: calc(100dvh - 0.8rem);
    }

    .public-availability-modal .modal-header,
    .public-availability-modal .modal-body,
    .public-availability-modal .modal-footer {
        padding: 0.85rem;
    }

    .public-availability-time-group {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .public-availability-time-group > strong {
        padding-top: 0;
    }

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

    .public-availability-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .public-availability-footer .btn {
        width: 100%;
        justify-content: center;
    }

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

    .public-booking-pet-picker > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-booking-form-grid .is-wide {
        grid-column: auto;
    }

    .public-booking-intro {
        align-items: flex-start;
    }

    .public-booking-success [data-public-booking-confirmation] > div {
        grid-template-columns: 78px minmax(0, 1fr);
    }
}

.client-header .astravex-nav {
    position: static;
}

.client-nav-actions,
.client-nav-actions form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.client-icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.client-icon-button:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-1px);
}

.client-icon-button.is-danger {
    color: #b42318;
}

.client-icon-button.is-danger:hover {
    color: #fff;
    border-color: #c9362b;
    background: #c9362b;
}

.client-dashboard {
    min-height: calc(100vh - 68px);
    color: var(--ink);
    background: #f4f7fb;
}

.client-dashboard-head {
    padding: 2.1rem 0 4.8rem;
    color: #fff;
    background: #172750;
}

.client-dashboard-head .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.client-dashboard-head h1 {
    margin: 0.45rem 0 0.3rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 950;
}

.client-dashboard-head p {
    max-width: 650px;
    margin: 0;
    color: #cad4ec;
    font-size: 0.92rem;
}

.client-dashboard-body {
    position: relative;
    margin-top: -3rem;
    padding-bottom: 4rem;
}

.client-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.7rem;
}

.client-stats article {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 36, 77, 0.08);
}

.client-stats article > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--primary);
    border-radius: 8px;
    background: #eef3ff;
}

.client-stats span,
.client-stats strong,
.client-stats small {
    display: block;
}

.client-stats strong {
    font-size: 1.3rem;
    font-weight: 950;
}

.client-stats small {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 750;
}

.client-dashboard-section {
    margin-top: 1.6rem;
}

.client-dashboard-section > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.client-dashboard-section > header small {
    color: var(--primary);
    font-size: 0.67rem;
    font-weight: 900;
    text-transform: uppercase;
}

.client-dashboard-section > header h2 {
    margin: 0.12rem 0 0;
    font-size: 1.28rem;
    font-weight: 950;
}

.client-dashboard-section > header p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.client-security-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    color: #0f6b4e;
    border: 1px solid #b8e5d2;
    border-radius: 8px;
    background: #eafaf3;
    font-size: 0.7rem;
    font-weight: 850;
}

.client-appointment-list {
    display: grid;
    gap: 0.65rem;
}

.client-appointment {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 36, 77, 0.05);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.client-appointment.is-removing {
    opacity: 0;
    transform: translateX(18px);
}

.client-appointment time {
    display: grid;
    min-height: 78px;
    place-items: center;
    align-content: center;
    color: var(--primary-dark);
    border-radius: 8px;
    background: #eef3ff;
    text-align: center;
}

.client-appointment time strong,
.client-appointment time span,
.client-appointment time small {
    display: block;
}

.client-appointment time strong {
    font-size: 1.35rem;
    line-height: 1;
}

.client-appointment time span {
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.client-appointment time small {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
}

.client-appointment-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.client-appointment-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 950;
}

.client-appointment-main > p {
    margin: 0.32rem 0;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
}

.client-appointment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: #52617a;
    font-size: 0.7rem;
    font-weight: 750;
}

.client-appointment-meta i,
.client-appointment-main > p i {
    color: var(--primary);
}

.client-appointment-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.client-appointment-locked {
    max-width: 150px;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.35;
    text-align: right;
}

.client-status {
    display: inline-flex;
    padding: 0.27rem 0.42rem;
    border-radius: 6px;
    font-size: 0.63rem;
    font-weight: 900;
    text-transform: uppercase;
}

.client-status.is-pending { color: #8a5200; background: #fff4d6; }
.client-status.is-confirmed { color: #075f49; background: #ddf8ed; }
.client-status.is-completed { color: #173aaf; background: #e8eeff; }
.client-status.is-cancelled,
.client-status.is-no_show { color: #9a271f; background: #ffebe8; }

.client-empty {
    padding: 2.5rem 1rem;
    border: 1px dashed #c8d1e0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.client-empty > i {
    color: var(--primary);
    font-size: 1.6rem;
}

.client-empty h3 { margin: 0.6rem 0 0.2rem; font-size: 1rem; font-weight: 900; }
.client-empty p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.78rem; }

.client-pet-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.client-pet,
.client-pet-add {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    min-height: 76px;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.client-pet > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #0f7f6c;
    border-radius: 8px;
    background: #e7faf5;
}

.client-pet h3 { margin: 0; font-size: 0.9rem; font-weight: 900; }
.client-pet p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.71rem; }

.client-pet-add {
    grid-template-columns: 34px 1fr;
    color: var(--primary-dark);
    border-style: dashed;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.client-history-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.client-history-list article {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
}

.client-history-list article:last-child { border-bottom: 0; }
.client-history-list article div { min-width: 0; }
.client-history-list strong,
.client-history-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-history-list strong { font-size: 0.78rem; }
.client-history-list small { margin-top: 0.12rem; color: var(--muted); font-size: 0.69rem; }
.client-history-empty { margin: 0; padding: 1rem; color: var(--muted); font-size: 0.78rem; }

.client-action-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.client-action-modal .modal-header,
.client-action-modal .modal-footer { padding: 1rem 1.1rem; border-color: var(--border); }
.client-action-modal .modal-body { padding: 1rem 1.1rem; background: #f8fafc; }
.client-action-modal .modal-header small { color: var(--primary); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.client-action-modal .modal-header h2 { margin: 0.1rem 0 0; font-size: 1.15rem; font-weight: 950; }
.client-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.client-form-grid .is-wide { grid-column: 1 / -1; }
.client-form-grid label,
.client-reschedule-date { display: block; }
.client-form-grid label > span,
.client-reschedule-date > span { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.73rem; font-weight: 850; }
.client-form-grid label em { color: var(--muted); font-size: 0.64rem; font-style: normal; }
.client-form-grid input,
.client-form-grid select,
.client-reschedule-date input { width: 100%; min-height: 42px; padding: 0.58rem 0.7rem; color: var(--ink); border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-size: 0.78rem; }
.client-form-grid .is-invalid { border-color: #dc3545; }
.client-form-grid [data-field-error] { display: block; min-height: 0.8rem; margin-top: 0.18rem; color: #b42318; font-size: 0.65rem; }
.client-form-error { margin-bottom: 0.75rem; padding: 0.65rem 0.75rem; color: #8f1d18; border: 1px solid #fac5c0; border-radius: 8px; background: #fff0ee; font-size: 0.73rem; font-weight: 750; }
.client-action-modal .modal-footer { justify-content: space-between; }
.client-action-modal .modal-footer .btn.is-danger { color: #b42318; }
.client-reschedule-service { margin-bottom: 0.75rem; color: var(--ink); font-size: 0.88rem; font-weight: 900; }
.client-reschedule-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; min-height: 90px; margin-top: 0.8rem; align-content: start; }
.client-reschedule-slots button { min-height: 40px; color: #0f6b5e; border: 1px solid #a9e3d8; border-radius: 8px; background: #e8fbf6; font: inherit; font-size: 0.75rem; font-weight: 850; cursor: pointer; }
.client-reschedule-slots button.is-selected { color: #fff; border-color: #0f8b78; background: #0f8b78; }
.client-reschedule-proposal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; margin-top: 0.75rem; padding: 0.7rem; border: 1px solid rgba(50, 85, 215, 0.2); border-radius: 8px; background: #f2f5ff; }
.client-reschedule-proposal > i { color: var(--primary); }
.client-reschedule-proposal > div { display: flex; min-width: 0; flex-direction: column; }
.client-reschedule-proposal small,
.client-reschedule-proposal span { color: var(--muted); font-size: 0.68rem; }
.client-reschedule-proposal strong { color: var(--ink); font-size: 0.78rem; }
.client-reschedule-proposal > div:last-child { flex-direction: row; gap: 0.35rem; }
.client-reschedule-proposal button { padding: 0.42rem 0.6rem; color: var(--primary); border: 1px solid rgba(50, 85, 215, 0.24); border-radius: 6px; background: #fff; font-size: 0.68rem; font-weight: 800; }
.client-reschedule-proposal button:last-child { color: var(--red); }
.client-reschedule-slots p,
.client-slots-loading { grid-column: 1 / -1; margin: 0; padding: 1rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 8px; text-align: center; font-size: 0.75rem; }

@media (max-width: 800px) {
    .client-dashboard-head .container { align-items: flex-start; flex-direction: column; }
    .client-stats,
    .client-pet-list { grid-template-columns: 1fr; }
    .client-appointment { grid-template-columns: 72px minmax(0, 1fr); }
    .client-appointment-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: 0.65rem; }
}

@media (max-width: 520px) {
    .client-nav-actions .btn { display: none; }
    .client-dashboard-head { padding-top: 1.5rem; }
    .client-dashboard-head h1 { font-size: 1.55rem; }
    .client-stats { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
    .client-stats article { align-items: flex-start; flex-direction: column; padding: 0.7rem; }
    .client-stats article > i { width: 34px; height: 34px; }
    .client-appointment { grid-template-columns: 62px minmax(0, 1fr); gap: 0.7rem; padding: 0.7rem; }
    .client-appointment-title { align-items: flex-start; flex-direction: column; gap: 0.3rem; }
    .client-appointment-meta { flex-direction: column; gap: 0.3rem; }
    .client-security-label { display: none; }
    .client-form-grid { grid-template-columns: 1fr; }
    .client-form-grid .is-wide { grid-column: auto; }
    .client-reschedule-slots { grid-template-columns: repeat(3, 1fr); }
}

.biz-hours-board {
    display: grid;
    gap: 0.9rem;
}

.biz-hours-branch {
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.biz-hours-branch > strong {
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 950;
}

.biz-hours-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.biz-hours-week span {
    display: grid;
    gap: 0.2rem;
    min-height: 72px;
    padding: 0.58rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.biz-hours-week span.is-open {
    border-color: rgba(50, 85, 215, 0.24);
    background: #eef2ff;
}

.biz-hours-week b {
    color: var(--ink);
    font-size: 0.76rem;
}

.biz-hours-week small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 800;
}

@media (max-width: 767px) {
    .biz-hours-week {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.agenda-page-head {
    margin-bottom: 1rem;
}

.agenda-page-head p {
    max-width: 640px;
}

.agenda-page-head p strong {
    color: var(--ink);
}

.agenda-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.6rem 0 0.9rem;
    padding: 0.6rem 0.75rem;
    color: var(--muted);
    border: 1px solid rgba(50, 85, 215, 0.14);
    border-radius: 12px;
    background: #f8fbff;
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.5;
}

.agenda-hint i {
    margin-top: 0.15rem;
    color: var(--primary);
    flex: 0 0 auto;
}

.agenda-filter-note {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: none;
}

.agenda-modal-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    padding: 0.75rem 0.9rem;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.16);
    border-radius: 14px;
    background: rgba(50, 85, 215, 0.06);
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.5;
}

.agenda-modal-hint i {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.agenda-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.agenda-nav-actions,
.agenda-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.agenda-view-switch {
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
}

.agenda-view-switch button {
    min-width: 82px;
    padding: 0.58rem 0.75rem;
    color: var(--muted);
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.agenda-view-switch button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 10px 22px rgba(50, 85, 215, 0.18);
}

.agenda-month-picker {
    display: grid;
    gap: 0.25rem;
    min-width: 170px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.agenda-month-picker input {
    min-height: 42px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 0.52rem 0.7rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
}

.agenda-workspace {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.agenda-workspace > *,
.agenda-side-panel,
.agenda-calendar-wrap {
    min-width: 0;
}

.agenda-side-panel {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 84px;
}

.agenda-side-panel > .biz-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.agenda-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.agenda-summary-grid div {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.75rem 0.55rem;
    border-radius: 14px;
    background: var(--surface-soft);
}

.agenda-summary-grid strong {
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
}

.agenda-summary-grid span,
.agenda-next-slots > span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.agenda-next-slots {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.agenda-next-slots div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.agenda-next-slots b,
.agenda-next-slots em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 900;
}

.agenda-filter-stack {
    display: grid;
    gap: 0.75rem;
}

.agenda-filter-stack label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.agenda-filter-stack select {
    min-height: 44px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 0.65rem 0.75rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
}

.agenda-professional-list {
    display: grid;
    gap: 0.55rem;
}

.agenda-professional-list button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.agenda-professional-list button:hover {
    border-color: rgba(50, 85, 215, 0.28);
    transform: translateY(-1px);
}

.agenda-professional-list i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary);
    border-radius: 12px;
    background: #fff;
}

.agenda-professional-list strong,
.agenda-professional-list small {
    display: block;
}

.agenda-professional-list small {
    color: var(--muted);
}

.agenda-calendar-card {
    width: 100%;
    min-width: 0;
    min-height: 720px;
    padding: 0.8rem;
    overflow: hidden;
}

.agenda-calendar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    padding: 0.65rem 0.7rem;
    border-radius: 14px;
    background: var(--surface-soft);
}

.agenda-calendar-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.agenda-hour-scope {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 8px;
    background: #eef3ff;
}

.agenda-hour-scope > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.agenda-hour-scope span,
.agenda-hour-scope small,
.agenda-hour-scope strong {
    display: block;
}

.agenda-hour-scope small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.agenda-hour-scope strong {
    font-size: 0.88rem;
    font-weight: 900;
}

.agenda-day-actions {
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    gap: 0.3rem;
    pointer-events: none;
}

.agenda-day-actions button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.22);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.agenda-day-actions button:hover,
.agenda-day-actions button:focus-visible {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    outline: 0;
    transform: translateY(-1px);
}

.agenda-legend-item {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.agenda-legend-available { color: #0f6b33; }
.agenda-legend-blocked { color: var(--text); }

.agenda-legend-hint {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.agenda-legend-hint i {
    color: var(--primary);
}

.agenda-dot { font-size: 0.58rem; }
.agenda-dot-available { color: #22c55e; }
.agenda-dot-confirmed { color: #16a34a; }
.agenda-dot-pending { color: #f59e0b; }
.agenda-dot-cancelled { color: #ef4444; }
.agenda-dot-blocked { color: #64748b; }

#petBusinessCalendar .fc {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    font-family: inherit;
}

#petBusinessCalendar .fc-scrollgrid,
#petBusinessCalendar .fc-theme-standard td,
#petBusinessCalendar .fc-theme-standard th {
    border-color: rgba(15, 23, 42, 0.075);
}

#petBusinessCalendar .fc-col-header-cell {
    background: #fbfdff;
}

#petBusinessCalendar .fc-col-header-cell-cushion,
#petBusinessCalendar .fc-timegrid-slot-label-cushion,
#petBusinessCalendar .fc-daygrid-day-number {
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

#petBusinessCalendar .fc-timegrid-slot {
    height: 42px;
}

#petBusinessCalendar .fc-timegrid-slot-lane:hover {
    background:
        linear-gradient(90deg, rgba(50, 85, 215, 0.055), transparent 55%);
    cursor: pointer;
}

#petBusinessCalendar .fc-timegrid-slot-lane:hover::after {
    content: "+ Configurar horario";
    margin-left: 0.55rem;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 900;
}

#petBusinessCalendar .fc-day-today {
    background: rgba(50, 85, 215, 0.065) !important;
}

#petBusinessCalendar .fc-timegrid-now-indicator-line {
    border-color: var(--primary);
    border-width: 2px;
}

#petBusinessCalendar .fc-timegrid-now-indicator-arrow {
    border-left-color: var(--primary);
    border-right-color: var(--primary);
}

#petBusinessCalendar .fc-event {
    border: 0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.agenda-event-inner {
    display: grid;
    gap: 0.08rem;
    padding: 0.45rem 0.55rem;
    overflow: hidden;
}

.agenda-event-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
}

.agenda-event-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.25rem;
}

.agenda-event-actions button {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.7rem;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.agenda-event-actions button:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-1px);
}

.agenda-event-actions [data-hour-delete]:hover {
    background: var(--red);
}

.agenda-event-inner small,
.agenda-event-inner span,
.agenda-event-inner em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-event-inner strong {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 950;
}

.agenda-event-inner small,
.agenda-event-inner span,
.agenda-event-inner em {
    color: rgba(15, 23, 42, 0.78);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

#petBusinessCalendar .agenda-event-confirmed { background: #dcfce7; color: var(--ink); }
#petBusinessCalendar .agenda-event-pending { background: #fef3c7; color: var(--ink); }
#petBusinessCalendar .agenda-event-cancelled { background: #fee2e2; color: var(--ink); }
#petBusinessCalendar .agenda-event-completed { background: #e2e8f0; color: var(--ink); }
#petBusinessCalendar .agenda-event-blocked { background: #f1f5f9; color: var(--ink); border-left: 4px solid #94a3b8; }
#petBusinessCalendar .agenda-event-available { background: #eefcf3; color: var(--ink); border-left: 4px solid #22c55e; }

#petBusinessCalendar .fc-daygrid-event {
    margin: 0.15rem 0.25rem;
}

#petBusinessCalendar .fc-daygrid-day-frame {
    position: relative;
    min-height: 118px;
}

#petBusinessCalendar .fc-daygrid-day-frame:hover {
    background: rgba(50, 85, 215, 0.035);
    cursor: pointer;
}

#petBusinessCalendar .fc-daygrid-day-frame:hover::after {
    content: "+ Bloquear hora";
    position: absolute;
    right: 0.35rem;
    bottom: 0.25rem;
    color: var(--primary-dark);
    font-size: 0.66rem;
    font-weight: 900;
    pointer-events: none;
}

#petBusinessCalendar .fc-daygrid-day-top {
    padding: 0.2rem 0.25rem;
}

#petBusinessCalendar .agenda-event-inner.is-month-event {
    gap: 0.16rem;
    padding: 0.38rem 0.42rem;
}

#petBusinessCalendar .is-month-event .agenda-event-title-row strong {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
}

#petBusinessCalendar .is-month-event .agenda-event-actions button {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
}

#petBusinessCalendar .fc-day-other {
    background: #f8fafc;
}

.block-slot-picker {
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.block-slot-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.block-slot-picker-head strong,
.block-slot-picker-head span {
    display: block;
}

.block-slot-picker-head strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 900;
}

.block-slot-picker-head span {
    margin-top: 0.16rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.block-slot-picker-head small {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.55rem;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 8px;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 850;
}

.block-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
    max-height: 230px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.block-slot-grid button {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.52rem 0.45rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.76rem;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.block-slot-grid button:hover {
    color: var(--primary-dark);
    border-color: rgba(50, 85, 215, 0.45);
    transform: translateY(-1px);
}

.block-slot-grid button.is-selected {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(50, 85, 215, 0.2);
}

.block-slot-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1rem;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 750;
}

.agenda-modal .modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.agenda-modal .modal-header,
.agenda-modal .modal-footer {
    border-color: var(--border);
    padding: 1rem 1.2rem;
}

.agenda-modal .modal-body {
    max-height: min(68vh, 680px);
    overflow-y: auto;
    padding: 1.2rem;
}

.agenda-intervals {
    display: grid;
    gap: 0.65rem;
}

.agenda-intervals label span {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.agenda-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1120;
    width: min(420px, 92vw);
    padding: 1.4rem;
    background: #fff;
    box-shadow: -26px 0 70px rgba(15, 23, 42, 0.18);
    transform: translateX(105%);
    transition: transform 0.25s ease;
}

.agenda-drawer.is-open {
    transform: translateX(0);
}

.agenda-drawer-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-left: auto;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-soft);
}

.agenda-drawer h2 {
    margin: 1rem 0 0.15rem;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 950;
}

.agenda-drawer p {
    color: var(--muted);
    font-weight: 800;
}

.agenda-drawer dl {
    display: grid;
    gap: 0.75rem;
    margin: 1.2rem 0;
}

.agenda-drawer dl div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.agenda-drawer dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.agenda-drawer dd {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
}

.agenda-drawer-actions {
    display: grid;
    gap: 0.65rem;
}

.agenda-drawer-actions .btn {
    justify-content: flex-start;
}

.agenda-drawer-actions .danger {
    color: var(--red);
}

.agenda-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1110;
    opacity: 0;
    pointer-events: none;
    border: 0;
    background: rgba(15, 23, 42, 0.32);
    transition: opacity 0.25s ease;
}

.agenda-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.agenda-mobile-fab {
    display: none;
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1060;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1180px) {
    .agenda-workspace {
        grid-template-columns: 1fr;
    }

    .agenda-side-panel {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agenda-professionals-card {
        display: none;
    }
}

@media (max-width: 767px) {
    .agenda-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .agenda-nav-actions,
    .agenda-view-switch {
        width: 100%;
    }

    .agenda-nav-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.35rem;
    }

    .agenda-nav-actions .btn {
        min-width: 0;
        padding-inline: 0.45rem;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .agenda-nav-actions .btn,
    .agenda-view-switch button {
        flex: 1;
    }

    #petBusinessCalendar .fc-daygrid-day-frame {
        min-height: 92px;
    }

    #petBusinessCalendar .fc-daygrid-day-frame:hover::after {
        display: none;
    }

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

    .block-slot-picker-head {
        align-items: stretch;
        flex-direction: column;
    }

    .block-slot-picker-head small {
        align-self: flex-start;
    }

    .agenda-side-panel {
        grid-template-columns: 1fr;
    }

    .agenda-calendar-card {
        min-height: 0;
        padding: 0.45rem;
    }

    #petBusinessCalendar .fc-timegrid-slot {
        height: 54px;
    }

    .agenda-mobile-fab {
        display: grid;
    }
}

/* ==========================================================================
   Teaser de Conócenos (portada)
   La historia completa vive en /conocenos; aquí solo se invita a entrar.
   ========================================================================== */
.home-about-teaser {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.35rem;
    padding: 1.5rem clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(50, 85, 215, 0.07), rgba(15, 118, 110, 0.07)),
        var(--surface);
    box-shadow: var(--shadow-sm);
}

.home-about-teaser-visual {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--primary);
    background: rgba(50, 85, 215, 0.12);
    border-radius: 22px;
    font-size: 1.6rem;
}

.home-about-teaser strong {
    display: block;
    color: var(--ink);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.home-about-teaser span {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .home-about-teaser { grid-template-columns: auto minmax(0, 1fr); }
    .home-about-teaser .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
/* ==========================================================================
   Desplegable de Servicios en el menú principal
   Agrupa las categorías que antes ocupaban cuatro huecos de la barra.
   ========================================================================== */
.nav-services-menu {
    min-width: 290px;
    margin-top: 0.6rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.nav-services-menu .dropdown-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.65rem;
    border-radius: 11px;
    white-space: normal;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-services-menu .dropdown-item > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--primary);
    background: rgba(50, 85, 215, 0.1);
    border-radius: 10px;
    font-size: 0.88rem;
}

.nav-services-menu .dropdown-item strong {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.nav-services-menu .dropdown-item small {
    display: block;
    margin-top: 0.08rem;
    color: var(--muted);
    font-size: 0.775rem;
    line-height: 1.4;
}

.nav-services-menu .dropdown-item:hover,
.nav-services-menu .dropdown-item:focus-visible {
    background: var(--surface-soft);
}

.nav-services-menu .dropdown-item:hover strong { color: var(--primary-dark); }

.nav-services-menu .dropdown-divider {
    margin: 0.4rem 0.3rem;
    border-color: var(--border);
}

/* "Ver todos" cierra la lista como acción secundaria */
.nav-services-menu .nav-services-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 800;
}

.nav-services-menu .nav-services-all i { font-size: 0.75rem; }

/* El indicador del desplegable hereda el color del enlace */
.astravex-nav .nav-services .dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: 0.12em;
    border-top-color: currentColor;
    opacity: 0.6;
}

/* En móvil el menú se despliega en línea, sin tarjeta flotante */
@media (max-width: 991px) {
    .nav-services-menu {
        min-width: 0;
        margin: 0.25rem 0 0.5rem;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding-left: 0;
    }

    .nav-services-menu .dropdown-item { padding-left: 0; }
}

/* ==========================================================================
   Enlace "Saltar al contenido" (cabecera pública compartida)
   ========================================================================== */
/* Enlace de salto: visible solo al recibir foco con teclado. */
.skip-to-content {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    z-index: 1200;
    transform: translateX(-50%);
    padding: 0.65rem 1.1rem;
    color: #fff;
    background: var(--ink);
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   LOGO DE LA CABECERA
   La marca se muestra clara mientras el navbar es transparente; en cuanto el
   fondo se vuelve blanco pasa al color principal.
   ========================================================================== */
.brand-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 46px;
    transition: height 0.3s ease;
}

.brand-logo-dark {
    position: absolute;
    inset: 0 auto 0 0;
}

.brand-logo-light,
.brand-logo-dark {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* --- Estado por defecto: navbar transparente -> logo blanco --- */
.brand-logo:not(.is-solid) .brand-logo-dark { opacity: 0; }

/* --- Navbar con fondo blanco -> logo azul --- */
.astravex-nav.is-scrolled .brand-logo .brand-logo-light,
.business-nav .brand-logo .brand-logo-light,
.navbar-collapse.show ~ * .brand-logo .brand-logo-light { opacity: 0; }

.astravex-nav.is-scrolled .brand-logo .brand-logo-dark,
.business-nav .brand-logo .brand-logo-dark { opacity: 1; }

/* Variante fija en azul: no hay versión blanca que ocultar */
.brand-logo.is-solid .brand-logo-dark { position: static; opacity: 1; }

/* El navbar de la portada encoge al hacer scroll; el logo lo acompaña. */
.astravex-nav.is-scrolled .brand-logo { height: 54px; }
.business-nav .brand-logo { height: 54px; }

/* La marca ya no necesita el círculo negro heredado */
.navbar-brand .brand-logo + span,
.footer-brand .brand-logo + span { margin-left: 0.55rem; }

/* --------------------------------------------------------------------------
   Menú móvil desplegado
   El panel del menú es blanco, pero el navbar sigue siendo transparente si
   estás arriba del todo. Sin esto, el logo blanco quedaría invisible.
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .astravex-nav:has(.navbar-collapse.show) .brand-logo .brand-logo-light { opacity: 0; }
    .astravex-nav:has(.navbar-collapse.show) .brand-logo .brand-logo-dark { opacity: 1; }
    .brand-logo { height: 46px; }
}

/* --------------------------------------------------------------------------
   Pie de página: fondo claro -> siempre azul
   -------------------------------------------------------------------------- */
.footer-brand .brand-logo { height: 36px; }

@media (prefers-reduced-motion: reduce) {
    .brand-logo,
    .brand-logo-light,
    .brand-logo-dark { transition: none; }
}

/* Sufijo junto al logo (p. ej. "Clientes" en la cabecera de cuenta). */
.brand-suffix {
    margin-left: 0.55rem;
    padding: 0.18rem 0.5rem;
    color: var(--primary-dark);
    background: rgba(50, 85, 215, 0.1);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==========================================================================
   Dropdown personalizado para los selects del banner (.search-panel)
   ========================================================================== */

.ax-select {
    position: relative;
    min-width: 0;
}

.ax-select.is-open {
    z-index: 60;
}

/* El select real se conserva (envia el valor y valida con required), pero
   oculto tras el disparador: con display:none Chrome bloquea el submit
   porque no puede enfocar un campo invalido. */
.ax-select select.ax-select-native {
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.ax-select-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--ink);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.ax-select-trigger-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ax-select-trigger.is-placeholder .ax-select-trigger-label {
    color: var(--muted);
    font-weight: 700;
}

.ax-select-caret {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--primary);
    border-radius: 50%;
    background: rgba(50, 85, 215, 0.1);
    font-size: 0.6rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ax-select.is-open .ax-select-caret {
    background: rgba(50, 85, 215, 0.18);
    transform: rotate(180deg);
}

.ax-select-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.75rem);
    left: -0.85rem;
    right: -0.85rem;
    max-height: 302px;
    margin: 0;
    padding: 0.4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    backdrop-filter: none;
    box-shadow: 0 24px 54px rgba(3, 8, 24, 0.28), 0 2px 8px rgba(3, 8, 24, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.ax-select.is-open .ax-select-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.ax-select.is-drop-up .ax-select-panel {
    top: auto;
    bottom: calc(100% + 0.75rem);
    transform: translateY(6px);
}

.ax-select.is-drop-up.is-open .ax-select-panel {
    transform: translateY(0);
}

.ax-select-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    color: var(--ink);
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.ax-select-option + .ax-select-option {
    margin-top: 2px;
}

.ax-select-option::after {
    content: '\f00c';
    flex: none;
    margin-left: auto;
    color: var(--primary);
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-size: 0.7rem;
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.ax-select-option.is-active {
    background: rgba(50, 85, 215, 0.08);
}

.ax-select-option.is-selected {
    color: var(--primary);
    background: rgba(50, 85, 215, 0.12);
}

.ax-select-option.is-selected::after {
    opacity: 1;
}

.ax-select-panel::-webkit-scrollbar {
    width: 8px;
}

.ax-select-panel::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(3, 8, 24, 0.2);
    background-clip: content-box;
}

/* Variante de campo (formularios tipo .form-select) */
.ax-select--field .ax-select-trigger {
    min-height: 48px;
    padding: 0.5rem 2.6rem 0.5rem 2.65rem;
    color: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ax-select--field .ax-select-trigger:focus-visible,
.ax-select--field.is-open .ax-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(50, 85, 215, 0.14);
    outline: none;
}

.ax-select--field.is-invalid .ax-select-trigger {
    border-color: #dc3545;
}

.ax-select--field.is-invalid.is-open .ax-select-trigger {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.16);
}

.ax-select--field .ax-select-caret {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    margin-top: -10px;
}

.ax-select--field .ax-select-panel {
    left: 0;
    right: 0;
}

/* Panel anclado al viewport (dentro de modales u otros contenedores con scroll).
   Se monta en el body, asi que necesita sus propias clases de estado. */
.ax-select-panel.is-floating {
    position: fixed;
    z-index: 1080;
    right: auto;
}

.ax-select-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.ax-select-panel.is-drop-up {
    transform: translateY(6px);
}

.ax-select-panel.is-drop-up.is-open {
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .ax-select-panel {
        left: -0.6rem;
        right: -0.6rem;
        max-height: 260px;
    }
}

/* Panel de negocio · clientes que guardaron el negocio como favorito */
.biz-favorites-card { margin-bottom: 1.5rem; }

.biz-favorites-total {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
    padding: 0.4rem 0.85rem;
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.24);
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.08);
    font-size: 0.92rem;
    font-weight: 900;
}

.biz-favorites-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.biz-favorites-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.biz-favorites-avatar {
    flex: none;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--primary);
    border-radius: 12px;
    background: rgba(50, 85, 215, 0.1);
    font-size: 0.9rem;
    font-weight: 900;
}

.biz-favorites-copy { display: grid; min-width: 0; }
.biz-favorites-copy strong { color: var(--ink); font-size: 0.92rem; font-weight: 850; }
.biz-favorites-copy small { color: var(--muted); font-size: 0.8rem; }

/* Galería de confianza para negocios */
.business-gallery-uploader,
.business-profile-gallery {
    display: grid;
    gap: 0.85rem;
}

.business-gallery-note {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(50, 85, 215, 0.16);
    border-radius: 12px;
    background: #f4f7ff;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.45;
}

.business-gallery-note i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.business-gallery-action {
    position: relative;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.62rem 0.9rem;
    border: 1px solid rgba(50, 85, 215, 0.24);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 850;
    cursor: pointer;
}

.business-gallery-action input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.business-gallery-preview,
.business-gallery-existing {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.business-gallery-preview figure,
.business-gallery-existing label {
    position: relative;
    display: grid;
    gap: 0.35rem;
    margin: 0;
    min-width: 0;
}

.business-gallery-preview img,
.business-gallery-existing img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.business-gallery-preview figcaption,
.business-gallery-existing span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-gallery-existing span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.service-gallery-open {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0.25rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-dark);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-gallery-open:hover {
    transform: translateY(-1px);
    border-color: rgba(50, 85, 215, 0.35);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.service-gallery-open span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.service-gallery-open small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.business-gallery-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.business-gallery-modal .modal-header {
    align-items: center;
    border: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
}

.business-gallery-modal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.85;
}

.business-gallery-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.business-gallery-modal h2 {
    margin: 0.1rem 0 0;
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 900;
}

.business-gallery-modal .modal-body {
    display: grid;
    gap: 0.9rem;
    padding: 0;
}

.business-gallery-stage {
    position: relative;
    display: grid;
    min-height: min(68vh, 680px);
    place-items: center;
    background: #020617;
}

.business-gallery-stage img {
    width: 100%;
    height: min(68vh, 680px);
    object-fit: contain;
    background: #020617;
}

.business-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    transform: translateY(-50%);
}

.business-gallery-nav:hover {
    background: rgba(50, 85, 215, 0.88);
}

.business-gallery-nav.is-prev { left: 1rem; }
.business-gallery-nav.is-next { right: 1rem; }

.business-gallery-counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
}

.business-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0 1rem 1rem;
    background: #0f172a;
}

.business-gallery-thumbs button {
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    opacity: 0.68;
}

.business-gallery-thumbs button.is-active {
    border-color: #90b4ff;
    opacity: 1;
}

.business-gallery-thumbs img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* Panel de negocio · analisis operativo */
.analytics-summary {
    grid-template-columns: repeat(3, 1fr);
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

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

.analytics-trend-card {
    overflow: hidden;
}

.analytics-trend {
    display: grid;
    grid-template-columns: repeat(30, minmax(4px, 1fr));
    align-items: end;
    gap: 0.28rem;
    min-height: 220px;
    padding: 0.7rem 0.25rem 0;
}

.analytics-trend span {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100%;
}

.analytics-trend span::before {
    content: "";
    display: block;
    width: 100%;
    min-height: 8px;
    height: var(--bar-height);
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #3255d7, #14b8a6);
}

.analytics-trend span b {
    position: absolute;
    bottom: calc(var(--bar-height) + 0.25rem);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 900;
}

.analytics-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.analytics-insights {
    display: grid;
    gap: 0.75rem;
}

.analytics-insight {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.analytics-insight i {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
}

.analytics-insight.is-success i { color: var(--green); background: var(--green-soft); }
.analytics-insight.is-warning i { color: var(--amber); background: var(--amber-soft); }
.analytics-insight.is-danger i { color: var(--red); background: var(--red-soft); }
.analytics-insight.is-info i { color: var(--primary); background: rgba(50, 85, 215, 0.1); }

.analytics-insight span {
    display: grid;
    gap: 0.18rem;
}

.analytics-insight strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 900;
}

.analytics-insight small {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.analytics-ranked-list {
    display: grid;
    gap: 0.8rem;
}

.analytics-ranked-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem 1rem;
    padding: 0.9rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.analytics-ranked-item span {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.analytics-ranked-item strong {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 900;
}

.analytics-ranked-item small {
    color: var(--muted);
    font-size: 0.8rem;
}

.analytics-ranked-item em {
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 900;
}

.analytics-ranked-item b {
    grid-column: 1 / -1;
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.analytics-ranked-item b::before {
    content: "";
    display: block;
    width: var(--bar-width);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3255d7, #14b8a6);
}

.analytics-reviews-card {
    margin-bottom: 1.5rem;
}

.analytics-review-bars {
    display: grid;
    gap: 0.7rem;
}

.analytics-review-bars > div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 0.75rem;
}

.analytics-review-bars span {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 900;
}

.analytics-review-bars span i {
    color: #f59e0b;
    font-size: 0.78rem;
}

.analytics-review-bars b {
    display: block;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.analytics-review-bars b i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f59e0b;
}

.analytics-review-bars strong {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 900;
    text-align: right;
}

@media (max-width: 991px) {
    .analytics-summary,
    .analytics-grid,
    .analytics-grid-even {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .analytics-trend {
        gap: 0.18rem;
        min-height: 180px;
    }

    .analytics-trend span b {
        display: none;
    }

    .analytics-review-bars > div {
        grid-template-columns: 58px minmax(0, 1fr) 34px;
        gap: 0.5rem;
    }

    .business-gallery-preview,
    .business-gallery-existing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .business-gallery-stage,
    .business-gallery-stage img {
        min-height: 360px;
        height: 58vh;
    }

    .business-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .business-gallery-nav {
        width: 38px;
        height: 38px;
    }
}

/* Beneficio extra del plan superior */
.business-price-card li.is-plus {
    margin-top: 0.35rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--border-strong);
    color: var(--ink);
    font-weight: 850;
}

.business-price-card li.is-plus i { color: #f59e0b; }

/* --------------------------------------------------------------------------
   Precios de negocios: apertura de la plataforma
   El plan Profesional queda liberado y el superior se muestra bloqueado.
   -------------------------------------------------------------------------- */
.business-price-head strong .business-price-was {
    margin-right: 0.4rem;
    color: var(--muted);
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.business-price-card.is-unlocked .business-price-badge {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #16a34a, #0ea5e9);
}

.business-price-unlock {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    color: #14532d;
    border: 1px solid rgba(22, 163, 74, 0.24);
    border-radius: 12px;
    background: var(--green-soft);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.4;
}

.business-price-unlock i { color: var(--green); }

/* Plan aún no disponible: se lee, pero no se contrata */
.business-price-card.is-locked {
    border-style: dashed;
    background: var(--surface-soft);
}

.business-price-card.is-locked .business-price-head strong,
.business-price-card.is-locked .business-price-head p,
.business-price-card.is-locked ul {
    opacity: 0.72;
}

.business-price-badge.is-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    border-color: var(--border-strong);
    background: #fff;
}

.business-price-card.is-locked .btn[disabled] {
    color: var(--muted);
    border-color: var(--border-strong);
    background: #fff;
    cursor: not-allowed;
    opacity: 1;
}

.business-pricing-note.is-launch {
    margin-bottom: 0.75rem;
    color: #14532d;
    border-color: rgba(22, 163, 74, 0.26);
    background: var(--green-soft);
}

.business-pricing-note.is-launch i { color: var(--green); }
.business-pricing-note.is-launch strong { display: block; margin-bottom: 0.15rem; }

/* Ayuda contextual para paneles de cliente y empresa */
.osh-help { display: contents; }

.osh-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.72rem 0.95rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    font-size: 0.88rem;
    font-weight: 850;
    white-space: nowrap;
}

.osh-help-button i {
    color: var(--primary);
    font-size: 1rem;
}

.osh-help-button:hover,
.osh-help-button:focus-visible {
    color: var(--primary);
    border-color: rgba(50, 85, 215, 0.34);
    background: #f8fbff;
}

.osh-help-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.osh-help-modal .modal-header {
    align-items: flex-start;
    padding: 1.25rem 1.35rem 1rem;
    border: 0;
    background: linear-gradient(135deg, #f8fbff, #eefdf5);
}

.osh-help-modal .modal-title {
    margin: 0.1rem 0 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.osh-help-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.osh-help-modal .modal-body {
    padding: 1.25rem 1.35rem 0.7rem;
    color: var(--muted);
}

.osh-help-modal .modal-body p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.65;
}

.osh-help-modal ul {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.osh-help-modal li {
    position: relative;
    padding: 0.78rem 0.9rem 0.78rem 2.35rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.45;
}

.osh-help-modal li::before {
    content: "";
    position: absolute;
    left: 0.92rem;
    top: 1.02rem;
    width: 0.58rem;
    height: 0.32rem;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg);
}

.osh-help-modal .modal-footer {
    padding: 0.85rem 1.35rem 1.25rem;
    border: 0;
}

@media (max-width: 575.98px) {
    .osh-help-button {
        width: 100%;
        min-height: 40px;
        padding: 0.65rem 0.8rem;
        font-size: 0.82rem;
    }
}
