/* ============================================================
   Befikreyy Customer App â€” Professional Mobile UI
   ============================================================ */

:root {
    /* Brand palette */
    --ap-primary: #0e9f6e;
    --ap-primary-2: #16c47a;
    --ap-primary-soft: rgba(14, 159, 110, 0.08);
    --ap-primary-glow: rgba(14, 159, 110, 0.28);
    --ap-grad: linear-gradient(135deg, #0e9f6e 0%, #16c47a 100%);
    --ap-grad-soft: linear-gradient(135deg, rgba(14, 159, 110, 0.08), rgba(245, 165, 36, 0.04));
    --ap-grad-dark: linear-gradient(135deg, #0e9f6e 0%, #0a7a55 100%);

    /* Neutrals */
    --ap-secondary: #0f1117;
    --ap-text: #0f1117;
    --ap-text-2: #4b5168;
    --ap-text-3: #8a8d97;
    --ap-text-4: #b6b9c4;
    --ap-bg: #ffffff;
    --ap-bg-soft: #f6f7fb;
    --ap-bg-2: #eef0f6;
    --ap-border: #e6e8ef;
    --ap-border-2: #eef0f6;

    /* Status */
    --ap-blue: #2563eb;
    --ap-green: #16a34a;
    --ap-red: #ef4444;
    --ap-gold: #f59e0b;
    --ap-purple: #7c3aed;

    /* Elevation */
    --ap-shadow-sm: 0 1px 2px rgba(15, 17, 23, 0.04);
    --ap-shadow: 0 4px 14px rgba(15, 17, 23, 0.06);
    --ap-shadow-md: 0 8px 24px rgba(15, 17, 23, 0.10);
    --ap-shadow-lg: 0 16px 40px rgba(15, 17, 23, 0.14);

    /* Radius */
    --ap-r-sm: 8px;
    --ap-r: 14px;
    --ap-r-lg: 20px;
    --ap-r-xl: 28px;
    --ap-r-full: 999px;

    /* Motion */
    --ap-tx: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ap-tx-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body.app-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ap-text);
    background: linear-gradient(180deg, #f3f4f9 0%, #e7eaf3 100%);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain;
    letter-spacing: -0.01em;
}

/* === Phone frame (centered on desktop, full on mobile) === */
.phone-frame {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--ap-bg);
    box-shadow: 0 0 60px rgba(15, 17, 23, 0.12);
    position: relative;
    padding-bottom: 88px;
    overflow: hidden;
}
@media (min-width: 700px) {
    body.app-body { padding: 24px 0; }
    .phone-frame {
        border-radius: 36px;
        overflow: hidden;
        min-height: calc(100vh - 48px);
        border: 10px solid #0f1117;
        margin-bottom: 24px;
        box-shadow: 0 30px 80px rgba(15, 17, 23, 0.25);
    }
}

/* === App header === */
.app-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 18px 14px;
    background: var(--ap-bg);
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--ap-border-2);
}
.app-logo-link {
    display: flex; align-items: center;
    text-decoration: none;
    transition: opacity .15s;
}
.app-logo-link:hover { opacity: 0.85; }
.app-logo {
    height: 38px; width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}
.app-header-title {
    font-weight: 700; font-size: 16px; flex: 1;
    text-align: center;
    letter-spacing: -0.02em;
    color: var(--ap-text);
}
.app-header-right {
    min-width: 44px; display: flex; justify-content: flex-end; gap: 6px;
}
.ah-back, .ah-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ap-bg-soft); color: var(--ap-text);
    text-decoration: none; font-size: 18px; font-weight: 600;
    transition: all .15s var(--ap-tx);
}
.ah-back:hover, .ah-icon:hover {
    background: var(--ap-bg-2);
    transform: scale(1.05);
}
.ah-add {
    background: var(--ap-grad); color: #fff;
    box-shadow: 0 4px 12px var(--ap-primary-glow);
}
.ah-add:hover {
    background: var(--ap-grad-dark);
    box-shadow: 0 6px 16px var(--ap-primary-glow);
}

/* === Bottom nav (premium, fixed) === */
.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    height: 76px;
    box-shadow: 0 -10px 30px rgba(15, 17, 23, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
    max-width: 480px;
    margin: 0 auto;
}
.app-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    color: var(--ap-text-3);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    transition: color .15s;
    min-width: 0;
}
.app-bottom-nav a > span.ic {
    font-size: 22px;
    line-height: 1;
    transition: transform .25s var(--ap-tx-bounce);
    display: inline-block;
}
.app-bottom-nav a > span:not(.ic) {
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0.01em;
}
.app-bottom-nav a.active {
    color: var(--ap-primary);
}
.app-bottom-nav a.active > span.ic {
    transform: scale(1.12) translateY(-2px);
}
.app-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--ap-grad);
    border-radius: 0 0 4px 4px;
}

/* === Main content === */
.app-main {
    padding: 0 0 16px;
    animation: fadeInUp 0.4s var(--ap-tx);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Toast === */
.app-toast {
    position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
    z-index: 100; max-width: 360px; padding: 12px 18px;
    border-radius: 14px; box-shadow: var(--ap-shadow-lg);
    display: flex; gap: 10px; align-items: center;
    font-size: 14px; font-weight: 600;
    animation: toastIn .3s var(--ap-tx);
}
.app-toast-success { background: var(--ap-green); color: #fff; }
.app-toast-error { background: var(--ap-red); color: #fff; }
.app-toast.is-hide { opacity: 0; transform: translateX(-50%) translateY(-12px); transition: all .3s; }
.at-icon {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === Sections === */
.app-section { padding: 18px 0; }
.app-pad { padding-left: 18px; padding-right: 18px; }
.section-h {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 18px 14px;
}
.section-h h3 {
    font-size: 17px; font-weight: 700; margin: 0;
    letter-spacing: -0.02em;
}
.link-sm {
    font-size: 13px; font-weight: 600;
    color: var(--ap-primary); text-decoration: none;
    transition: opacity .15s;
}
.link-sm:hover { opacity: 0.75; }

/* === App hero (greeting) === */
.app-hero {
    position: relative;
    background: linear-gradient(135deg, #eefff6 0%, #f5fcf8 50%, #f6f7fb 100%);
    padding: 26px 20px 32px;
    overflow: hidden;
}
.app-hero-bg {
    position: absolute; top: -120px; right: -120px;
    width: 320px; height: 320px; border-radius: 50%;
    background: var(--ap-grad);
    opacity: 0.08;
}
.app-hero-bg-2 {
    position: absolute; bottom: -80px; left: -60px;
    width: 180px; height: 180px; border-radius: 50%;
    background: var(--ap-gold);
    opacity: 0.06;
}
.app-hero-content { position: relative; z-index: 1; }
.hello-row { display: flex; align-items: center; justify-content: space-between; }
.hello-eyebrow {
    font-size: 11.5px; color: var(--ap-text-3);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hello-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px; font-weight: 700;
    margin: 4px 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hello-wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 2s ease-in-out infinite;
}
@keyframes wave {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}
.hello-sub {
    font-size: 13px; color: var(--ap-text-2);
    margin: 0;
    font-weight: 500;
}
.hello-av {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--ap-grad); color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 22px;
    box-shadow: 0 8px 24px var(--ap-primary-glow);
    border: 2.5px solid #fff;
}

.quick-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 16px;
    padding: 13px 16px; margin-top: 20px;
    box-shadow: var(--ap-shadow);
    border: 1px solid var(--ap-border-2);
    transition: box-shadow .2s;
}
.quick-search:focus-within {
    box-shadow: 0 4px 16px rgba(15, 17, 23, 0.10), 0 0 0 3px var(--ap-primary-soft);
    border-color: var(--ap-primary);
}
.quick-search .qs-ic {
    font-size: 16px; color: var(--ap-text-3);
}
.quick-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: 14.5px; color: var(--ap-text);
    font-family: inherit; font-weight: 500;
}
.quick-search input::placeholder { color: var(--ap-text-3); }

.quick-stats {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 8px; margin-top: 18px;
}
.qs-stat {
    background: rgba(255, 255, 255, 0.85); border-radius: 14px;
    padding: 14px 10px; text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.qs-num {
    display: block; font-weight: 800; font-size: 19px;
    color: var(--ap-text); letter-spacing: -0.02em;
}
.qs-lbl {
    font-size: 10.5px; color: var(--ap-text-3);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; margin-top: 2px;
}

/* === Promo card === */
.promo-card {
    display: flex; gap: 14px; align-items: center;
    margin: 0 18px;
    padding: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 122, 58, 0.18), transparent 60%),
        linear-gradient(135deg, #0f1117 0%, #1a1f2e 100%);
    border-radius: 18px; color: #fff;
    box-shadow: var(--ap-shadow-lg);
    position: relative; overflow: hidden;
}
.promo-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ap-grad);
}
.promo-tx { flex: 1; }
.promo-eyebrow {
    font-size: 10.5px; color: #a3e8c4;
    font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase;
}
.promo-tx h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700;
    margin: 6px 0 6px; color: #fff;
    letter-spacing: -0.01em;
}
.promo-tx p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 12px; line-height: 1.5;
}
.promo-ic {
    font-size: 44px; flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(255, 122, 58, 0.3));
}

/* === Category app grid === */
.cat-app-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    padding: 0 18px;
}
.cat-app-tile {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 11;
    border-radius: 16px;
    text-decoration: none; color: inherit;
    background: var(--ap-bg-soft);
    box-shadow: var(--ap-shadow);
    transition: transform .25s var(--ap-tx), box-shadow .25s;
}
.cat-app-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--ap-shadow-md);
}
.cat-app-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .4s var(--ap-tx);
}
.cat-app-tile:hover .cat-app-bg { transform: scale(1.08); }
.cat-app-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(15, 17, 23, 0.9), rgba(15, 17, 23, 0));
    color: #fff;
}
.cat-app-overlay .nm {
    font-weight: 700; font-size: 15px;
    letter-spacing: -0.01em;
}
.cat-app-overlay .ct {
    font-size: 11.5px;
    opacity: 0.85;
    margin-top: 2px;
    font-weight: 500;
}

/* === Service app cards (horizontal scroll) === */
.svc-app-scroll {
    display: flex; gap: 12px;
    overflow-x: auto; padding: 0 18px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.svc-app-scroll::-webkit-scrollbar { display: none; }
.svc-app-card {
    flex: 0 0 220px;
    background: #fff; border-radius: 16px;
    overflow: hidden;
    text-decoration: none; color: inherit;
    box-shadow: var(--ap-shadow);
    scroll-snap-align: start;
    border: 1px solid var(--ap-border-2);
    transition: transform .2s var(--ap-tx), box-shadow .2s;
}
.svc-app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ap-shadow-md);
}
.svc-app-img {
    width: 100%; aspect-ratio: 4/3;
    background: var(--ap-bg-soft);
    position: relative; overflow: hidden;
}
.svc-app-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s var(--ap-tx);
}
.svc-app-card:hover .svc-app-img img {
    transform: scale(1.06);
}
.svc-app-body { padding: 12px 14px 14px; }
.svc-app-body strong {
    display: block; font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.svc-app-tag {
    display: block; font-size: 11.5px;
    color: var(--ap-text-3);
    margin: 3px 0 8px;
    line-height: 1.4;
}
.svc-app-price {
    font-weight: 800; font-size: 15px;
    color: var(--ap-primary);
}
.svc-app-price small {
    color: var(--ap-text-3);
    font-size: 10.5px;
    font-weight: 500;
    margin-left: 2px;
}

/* === Recent bookings (home) === */
.recent-list {
    background: #fff; border-radius: 16px;
    overflow: hidden;
    margin: 0 18px;
    box-shadow: var(--ap-shadow);
    border: 1px solid var(--ap-border-2);
}
.recent-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: var(--ap-bg-soft); }
.recent-ic {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--ap-grad-soft); color: var(--ap-primary);
    display: grid; place-items: center;
    font-weight: 800; font-size: 16px;
    flex-shrink: 0;
}
.recent-tx { flex: 1; min-width: 0; }
.recent-tx strong {
    display: block; font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.recent-tx .muted {
    display: block; font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 1px;
}
.recent-arrow {
    font-size: 20px; color: var(--ap-text-3);
    flex-shrink: 0;
}

/* === Trust strip === */
.trust-strip {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 0 18px;
}
.trust-item {
    display: flex; gap: 12px; align-items: center;
    background: #fff; border-radius: 14px;
    padding: 14px; box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    transition: box-shadow .15s, transform .15s;
}
.trust-item:hover {
    box-shadow: var(--ap-shadow);
    transform: translateY(-1px);
}
.trust-item .ic {
    font-size: 22px;
    flex-shrink: 0;
}
.trust-item strong {
    display: block; font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.trust-item small {
    display: block; font-size: 10.5px;
    color: var(--ap-text-3);
    margin-top: 1px;
}

.app-footer-link {
    text-align: center; padding: 24px 18px 16px;
    font-size: 12px; color: var(--ap-text-3);
}
.app-footer-link a {
    color: var(--ap-text-3); text-decoration: none;
    transition: color .15s;
}
.app-footer-link a:hover { color: var(--ap-primary); }

/* === Search bar (sticky in services) === */
.app-search-bar {
    position: sticky; top: 0; z-index: 30;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ap-border-2);
}
.app-search-bar form {
    display: flex; align-items: center; gap: 10px;
    background: var(--ap-bg-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 14px;
    transition: all .15s;
}
.app-search-bar form:focus-within {
    background: #fff;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px var(--ap-primary-soft);
}
.app-search-bar .as-ic { color: var(--ap-text-3); }
.app-search-bar input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: 14.5px; color: var(--ap-text);
    font-family: inherit; font-weight: 500;
}

/* === Chip row === */
.app-chip-row {
    display: flex; gap: 6px;
    overflow-x: auto; padding: 14px 18px;
    scrollbar-width: none;
}
.app-chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    padding: 9px 16px; border-radius: var(--ap-r-full);
    background: #fff;
    border: 1px solid var(--ap-border-2);
    color: var(--ap-text-2);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    box-shadow: var(--ap-shadow-sm);
    transition: all .15s var(--ap-tx);
}
.chip:hover { background: var(--ap-bg-soft); }
.chip-active {
    background: var(--ap-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--ap-primary-glow);
}

/* === Services list === */
.results-count {
    font-size: 12px; color: var(--ap-text-3);
    padding: 0 18px 12px;
    font-weight: 600;
}
.svc-app-list { display: flex; flex-direction: column; }
.svc-app-row {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.svc-app-row:hover { background: var(--ap-bg-soft); }
.svc-app-row-img {
    width: 88px; height: 88px; flex-shrink: 0;
    border-radius: 14px; overflow: hidden;
    background: var(--ap-bg-soft);
    position: relative;
    box-shadow: var(--ap-shadow-sm);
}
.svc-app-row-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.svc-app-row-body { flex: 1; min-width: 0; }
.svc-app-row-top {
    display: flex; gap: 6px; align-items: center;
    flex-wrap: wrap;
}
.svc-app-row-top strong {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.badge-pop {
    background: var(--ap-grad);
    color: #fff;
    padding: 2px 7px; border-radius: 4px;
    font-size: 9.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 0 2px 6px var(--ap-primary-glow);
}
.svc-app-tag {
    display: block; font-size: 11.5px;
    color: var(--ap-text-3);
    margin: 3px 0 6px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.svc-app-row-bot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
}
.svc-app-rating {
    color: var(--ap-gold);
    font-weight: 700;
}
.svc-app-price {
    font-weight: 800; font-size: 14px;
    color: var(--ap-primary);
}
.svc-app-price small {
    color: var(--ap-text-3);
    font-weight: 500;
    font-size: 10px;
    margin-left: 2px;
}
.app-pagination { padding: 16px 18px; }

/* === Empty state === */
.empty-app { text-align: center; padding: 64px 24px; }
.ea-ic { font-size: 52px; margin-bottom: 16px; opacity: 0.75; }
.empty-app h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.empty-app p { color: var(--ap-text-3); margin: 0 0 20px; font-size: 14px; }

/* === Detail hero === */
.app-detail-hero {
    width: 100%; height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.app-detail-hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--ap-bg), transparent);
}
.cat-pill {
    display: inline-block;
    background: var(--ap-primary-soft);
    color: var(--ap-primary);
    padding: 5px 12px; border-radius: var(--ap-r-full);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.app-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 700;
    margin: 12px 0 6px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.app-detail-tag {
    font-size: 14px; color: var(--ap-text-2);
    margin: 0 0 16px; line-height: 1.5;
}
.app-detail-stats {
    display: flex; gap: 6px; margin: 0 0 24px;
    padding: 14px 16px;
    background: var(--ap-bg-soft);
    border: 1px solid var(--ap-border-2);
    border-radius: 14px;
    font-size: 13px;
}
.app-detail-stats > div {
    flex: 1;
    display: flex; align-items: center;
    gap: 6px; justify-content: center;
}
.app-detail-stats > div:not(:last-child) {
    border-right: 1px solid var(--ap-border-2);
    padding-right: 6px;
}
.app-detail-stats span { font-size: 15px; }
.app-detail-stats small { color: var(--ap-text-3); }
.app-detail-h3 {
    font-size: 15px; font-weight: 700;
    margin: 22px 0 10px;
    letter-spacing: -0.01em;
}
.app-detail-text {
    font-size: 13.5px; color: var(--ap-text-2);
    line-height: 1.7; margin: 0 0 14px;
}

.app-list-checks { list-style: none; padding: 0; margin: 0; }
.app-list-checks li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0;
    font-size: 13.5px; color: var(--ap-text-2);
}
.app-list-checks .ck {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--ap-green); color: #fff;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 800;
    flex-shrink: 0; margin-top: 1px;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.app-list-steps {
    list-style: none; padding: 0; margin: 0; counter-reset: step;
}
.app-list-steps li {
    counter-increment: step;
    display: flex; gap: 14px; padding: 12px 0;
    border-bottom: 1px dashed var(--ap-border-2);
    font-size: 13px;
}
.app-list-steps li:last-child { border-bottom: 0; }
.app-list-steps li::before {
    content: counter(step);
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--ap-grad);
    color: #fff;
    display: grid; place-items: center;
    font-size: 11.5px; font-weight: 800;
    flex-shrink: 0; margin-top: 2px;
    box-shadow: 0 4px 10px var(--ap-primary-glow);
}
.app-list-steps li strong { display: block; font-weight: 700; }
.app-list-steps li span { color: var(--ap-text-3); font-size: 12px; }

/* === Sticky CTA === */
.app-sticky-cta {
    position: sticky;
    bottom: 76px;
    background: #fff;
    border-top: 1px solid var(--ap-border-2);
    padding: 14px 18px;
    display: flex; gap: 12px;
    align-items: center; justify-content: space-between;
    box-shadow: 0 -8px 24px rgba(15, 17, 23, 0.08);
    z-index: 30;
}
.asc-price strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--ap-primary);
    letter-spacing: -0.02em;
}
.asc-price small {
    color: var(--ap-text-3);
    font-size: 12px; font-weight: 500;
    margin-left: 2px;
}
.asc-price .strike {
    text-decoration: line-through;
    margin-left: 6px;
}

/* === Tabs === */
.app-tab-row {
    display: flex; gap: 2px;
    padding: 4px 14px;
    margin: 14px 18px 0;
    background: var(--ap-bg-soft);
    border-radius: 14px;
    border: 1px solid var(--ap-border-2);
}
.app-tab {
    flex: 1; text-align: center;
    padding: 10px 8px;
    border-radius: 11px;
    color: var(--ap-text-2);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: all .15s var(--ap-tx);
}
.app-tab:hover { color: var(--ap-text); }
.app-tab.active {
    background: #fff;
    color: var(--ap-text);
    box-shadow: var(--ap-shadow-sm);
    font-weight: 700;
}

/* === Booking card === */
.bk-card {
    display: flex; gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    text-decoration: none; color: inherit;
    box-shadow: var(--ap-shadow);
    border: 1px solid var(--ap-border-2);
    transition: transform .2s var(--ap-tx), box-shadow .2s;
}
.bk-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--ap-shadow-md);
}
.bk-card-img {
    width: 76px; height: 76px; flex-shrink: 0;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: var(--ap-bg-soft);
    box-shadow: var(--ap-shadow-sm);
}
.bk-card-body { flex: 1; min-width: 0; }
.bk-card-top {
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 6px;
}
.bk-status-pill {
    padding: 3px 9px; border-radius: var(--ap-r-full);
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.bk-pill-active {
    background: rgba(22, 163, 74, 0.12);
    color: var(--ap-green);
}
.bk-pill-paused {
    background: rgba(245, 158, 11, 0.12);
    color: var(--ap-gold);
}
.bk-pill-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: var(--ap-red);
}
.bk-code {
    font-size: 10.5px; color: var(--ap-text-3);
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.04em;
}
.bk-name {
    display: block; font-size: 14.5px;
    font-weight: 700; margin: 2px 0 6px;
    letter-spacing: -0.01em;
}
.bk-meta {
    display: flex; flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-bottom: 10px;
}
.bk-bot {
    display: flex; justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--ap-border-2);
}
.bk-price {
    font-weight: 800; font-size: 14.5px;
    color: var(--ap-text);
}
.bk-price small {
    color: var(--ap-text-3);
    font-weight: 500; font-size: 11px;
}
.bk-next {
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 600;
    background: var(--ap-bg-soft);
    padding: 3px 8px;
    border-radius: var(--ap-r-full);
}

/* === Booking detail === */
.bk-detail-card {
    background: #fff; border-radius: 16px;
    padding: 16px; box-shadow: var(--ap-shadow);
    margin-bottom: 16px;
    border: 1px solid var(--ap-border-2);
}
.bk-detail-row {
    display: flex; justify-content: space-between;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px dashed var(--ap-border-2);
    font-size: 13.5px;
}
.bk-detail-row:last-child { border-bottom: 0; }
.bk-detail-row span {
    color: var(--ap-text-3); font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.bk-detail-row strong {
    color: var(--ap-text); font-weight: 700;
    text-align: right;
    letter-spacing: -0.01em;
}
.bk-detail-address {
    flex-direction: column; align-items: flex-start; gap: 4px;
}

.bk-actions {
    display: flex; flex-direction: column; gap: 8px;
}

/* === Visits === */
.visits-list {
    display: flex; flex-direction: column; gap: 8px;
}
.visit-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    background: #fff; border-radius: 12px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
}
.vr-ic {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--ap-bg-soft); color: var(--ap-text-2);
    display: grid; place-items: center;
    font-weight: 800; font-size: 13px;
    flex-shrink: 0;
}
.visit-row.visit-status-completed .vr-ic {
    background: rgba(22, 163, 74, 0.12);
    color: var(--ap-green);
}
.visit-row.visit-status-cancelled .vr-ic {
    background: rgba(239, 68, 68, 0.12);
    color: var(--ap-red);
}
.vr-body { flex: 1; }
.vr-body strong { display: block; font-size: 13px; font-weight: 700; }
.vr-body span { font-size: 11.5px; color: var(--ap-text-3); }
.visit-pill {
    padding: 4px 10px; border-radius: var(--ap-r-full);
    background: var(--ap-bg-soft); color: var(--ap-text-2);
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.02em;
}

/* === Rate === */
.rate-summary {
    background: var(--ap-bg-soft);
    border: 1px solid var(--ap-border-2);
    border-radius: 14px;
    padding: 18px; text-align: center;
}
.rate-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 42px; font-weight: 700;
    color: var(--ap-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.rate-stars {
    color: var(--ap-gold);
    font-size: 18px;
    margin: 6px 0 10px;
}
.rate-stars .on { color: var(--ap-gold); }
.rate-summary p {
    font-size: 13px; color: var(--ap-text-2);
    margin: 8px 0 0; line-height: 1.6;
}

/* ===== Daily attendance card (partner app) ===== */
.att-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    border-left: 4px solid var(--ap-gold);
    margin-top: 4px;
}
.att-card.att-present { border-left-color: var(--ap-primary); background: linear-gradient(180deg, rgba(14,159,110,0.04) 0%, #fff 50%); }
.att-card.att-absent { border-left-color: #d33; background: linear-gradient(180deg, rgba(221,51,51,0.04) 0%, #fff 50%); }
.att-card.att-late { border-left-color: #f59e0b; }
.att-card.att-cancelled { border-left-color: #94a3b8; opacity: 0.85; }
.att-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.att-status-ic {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.att-present .att-status-ic { background: rgba(14,159,110,0.12); color: var(--ap-primary); }
.att-absent .att-status-ic { background: rgba(221,51,51,0.12); color: #d33; }
.att-cancelled .att-status-ic { background: rgba(148,163,184,0.18); color: #64748b; }
.att-body strong { display: block; font-size: 14px; }
.att-body .muted { font-size: 12px; }
.att-note {
    padding: 10px 12px;
    background: var(--ap-bg-2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--ap-text-2);
    margin-bottom: 12px;
    border-left: 2px solid var(--ap-primary);
}
.att-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.att-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ap-border-2);
}
.att-photo img { width: 100%; height: 100%; object-fit: cover; }
.att-photo-tag {
    position: absolute;
    bottom: 4px; left: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}
.att-form { margin-top: 12px; }
.att-form + .att-form { margin-top: 10px; }
.att-row { margin-bottom: 10px; }
.att-lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ap-text-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.att-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--ap-border-2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--ap-text);
}
.att-input:focus { outline: none; border-color: var(--ap-primary); }
.att-empty {
    padding: 12px;
    text-align: center;
    background: var(--ap-bg-2);
    border-radius: 8px;
}
.att-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.att-form-secondary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--ap-border-2);
}
.att-done {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(14, 159, 110, 0.08);
    border-radius: 8px;
    font-size: 13px;
}
.att-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ap-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}
.att-photo-input {
    position: relative;
}
.att-photo-input input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}
.att-photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    border: 2px dashed var(--ap-border-2);
    border-radius: 10px;
    background: var(--ap-bg-2);
    color: var(--ap-text-2);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.att-photo-input input[type="file"]:hover + .att-photo-label,
.att-photo-input input[type="file"]:focus + .att-photo-label {
    border-color: var(--ap-primary);
    background: rgba(14, 159, 110, 0.04);
    color: var(--ap-primary);
}
.att-photo-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.att-photo-preview:empty { display: none; }
.att-photo-preview .preview-img {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.att-photo-preview .preview-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.att-photo-preview .preview-img .preview-del {
    position: absolute;
    top: 2px; right: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: grid; place-items: center;
    font-size: 11px;
    cursor: pointer;
    border: 0;
}
.rate-form {
    background: #fff; border-radius: 14px;
    padding: 18px; box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
}
.rate-stars-input {
    display: flex; gap: 6px; justify-content: center;
    margin-bottom: 14px;
}
.rate-stars-input .rs-btn {
    background: transparent; border: 0;
    cursor: pointer;
    font-size: 36px; color: var(--ap-border);
    padding: 0;
    transition: color .15s, transform .15s;
}
.rate-stars-input .rs-btn:hover { transform: scale(1.15); }
.rate-stars-input .rs-btn.on {
    color: var(--ap-gold);
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.rate-form textarea {
    width: 100%; padding: 12px;
    border: 1px solid var(--ap-border-2);
    border-radius: 12px;
    font-size: 13.5px; resize: vertical;
    margin-bottom: 14px;
    font-family: inherit;
    background: var(--ap-bg-soft);
    transition: all .15s;
}
.rate-form textarea:focus {
    outline: 0;
    background: #fff;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px var(--ap-primary-soft);
}

/* === Bottom sheet === */
.bottom-sheet {
    position: fixed; inset: 0; z-index: 60;
    pointer-events: none;
}
.bottom-sheet.open { pointer-events: auto; }
.sheet-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 17, 23, 0.55);
    opacity: 0;
    transition: opacity .25s var(--ap-tx);
    backdrop-filter: blur(2px);
}
.bottom-sheet.open .sheet-backdrop { opacity: 1; }
.sheet-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 16px 20px 32px;
    max-width: 480px; margin: 0 auto;
    transform: translateY(100%);
    transition: transform .3s var(--ap-tx);
    text-align: center;
    box-shadow: 0 -16px 40px rgba(15, 17, 23, 0.2);
}
.bottom-sheet.open .sheet-content {
    transform: translateY(0);
}
.sheet-handle {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--ap-border-2);
    margin: 0 auto 18px;
}
.sheet-content h3 {
    font-size: 19px; font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.sheet-content p {
    font-size: 13.5px; color: var(--ap-text-2);
    margin: 0 0 18px;
    line-height: 1.6;
}

/* === Auth screens === */
.auth-screen {
    padding: 0 22px 32px;
    min-height: calc(100vh - 36px);
}
.auth-hero {
    text-align: center;
    padding: 16px 0 22px;
}
.auth-logo {
    height: 72px; width: auto;
    margin: 0 auto 16px;
    filter: drop-shadow(0 8px 24px var(--ap-primary-glow));
    animation: floatIn 0.6s var(--ap-tx-bounce);
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.auth-sub {
    font-size: 13.5px; color: var(--ap-text-2);
    margin: 0; line-height: 1.6;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--ap-shadow-md);
    border: 1px solid var(--ap-border-2);
}

.app-form {
    display: flex; flex-direction: column;
    gap: 14px;
}
.field-app {
    display: flex; flex-direction: column;
    gap: 5px;
}
.field-app label {
    font-size: 11.5px; font-weight: 700;
    color: var(--ap-text);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.field-app .optional {
    font-weight: 500;
    color: var(--ap-text-3);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}
.field-app input,
.field-app select,
.field-app textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--ap-border-2);
    border-radius: 12px;
    font-size: 14.5px;
    background: var(--ap-bg-soft);
    color: var(--ap-text);
    font-family: inherit;
    font-weight: 500;
    transition: all .15s var(--ap-tx);
}
.field-app input:focus,
.field-app select:focus,
.field-app textarea:focus {
    outline: 0;
    background: #fff;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px var(--ap-primary-soft);
}
.field-app textarea { resize: vertical; min-height: 70px; }
.fa-hint {
    font-size: 11px;
    color: var(--ap-text-3);
    margin-top: 2px;
}

.field-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.phone-wrap {
    display: flex; align-items: stretch;
    border: 1px solid var(--ap-border-2);
    border-radius: 12px;
    background: var(--ap-bg-soft);
    overflow: hidden;
    transition: all .15s var(--ap-tx);
}
.phone-wrap:focus-within {
    background: #fff;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px var(--ap-primary-soft);
}
.phone-wrap .phone-prefix {
    padding: 13px 12px;
    font-size: 14.5px; font-weight: 700;
    color: var(--ap-text-2);
    border-right: 1px solid var(--ap-border-2);
    background: var(--ap-bg-2);
}
.phone-wrap input {
    flex: 1;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pwd-wrap {
    position: relative;
    display: flex; align-items: center;
}
.pwd-wrap input { padding-right: 60px !important; }
.pwd-toggle {
    position: absolute; right: 8px;
    background: transparent; border: 0;
    font-size: 12px; font-weight: 700;
    color: var(--ap-primary);
    padding: 6px 10px;
    cursor: pointer;
    transition: opacity .15s;
}
.pwd-toggle:hover { opacity: 0.7; }

.checkbox-app {
    display: flex; gap: 10px; align-items: center;
    font-size: 13px;
    color: var(--ap-text-2);
    cursor: pointer;
    font-weight: 500;
}
.checkbox-app input {
    accent-color: var(--ap-primary);
    width: 18px; height: 18px;
}
.checkbox-app-block {
    padding: 14px; background: var(--ap-bg-soft);
    border-radius: 12px;
    border: 1px solid var(--ap-border-2);
}

.role-toggle-app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--ap-bg-soft);
    padding: 5px;
    border-radius: 16px;
    border: 1px solid var(--ap-border-2);
}
.role-toggle-app input { display: none; }
.role-toggle-app label {
    display: flex; flex-direction: column;
    align-items: center;
    gap: 4px; padding: 14px 10px;
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
    transition: all .15s var(--ap-tx);
    font-size: 13px; font-weight: 600;
    color: var(--ap-text-2);
}
.role-toggle-app label .rt-ic { font-size: 22px; }
.role-toggle-app input:checked + label {
    background: #fff;
    color: var(--ap-text);
    box-shadow: var(--ap-shadow-sm);
    font-weight: 700;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 22px 0;
    font-size: 11px;
    color: var(--ap-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: var(--ap-border-2);
}
.auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
}

.demo-accounts {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, var(--ap-bg-soft), var(--ap-bg-2));
    border-radius: 12px;
    font-size: 11.5px;
    color: var(--ap-text-2);
    display: flex; flex-direction: column;
    gap: 4px;
    border: 1px solid var(--ap-border-2);
}
.demo-accounts strong {
    font-size: 11.5px;
    color: var(--ap-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.demo-accounts span {
    font-family: 'SF Mono', monospace;
    font-size: 11px;
}

.app-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    display: flex; gap: 10px; align-items: center;
    font-size: 13px; font-weight: 600;
}
.app-alert-error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--ap-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.app-alert .ic {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
    flex-shrink: 0;
}

.auth-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
    color: var(--ap-text-3);
}
.auth-foot a {
    color: var(--ap-primary);
    text-decoration: none;
    font-weight: 600;
}

/* === Buttons === */
.btn-app {
    display: inline-flex; align-items: center;
    justify-content: center; gap: 8px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14.5px;
    border: 1px solid transparent;
    transition: all .2s var(--ap-tx);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    letter-spacing: -0.01em;
}
.btn-app-primary {
    background: var(--ap-grad);
    color: #fff;
    box-shadow: 0 6px 18px var(--ap-primary-glow);
}
.btn-app-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px var(--ap-primary-glow);
}
.btn-app-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px var(--ap-primary-glow);
}
.btn-app-secondary {
    background: var(--ap-secondary);
    color: #fff;
}
.btn-app-secondary:hover {
    background: #1a1f2e;
    transform: translateY(-1px);
}
.btn-app-outline {
    background: #fff;
    color: var(--ap-text);
    border-color: var(--ap-border-2);
    box-shadow: var(--ap-shadow-sm);
}
.btn-app-outline:hover {
    background: var(--ap-bg-soft);
    border-color: var(--ap-text-4);
}
.btn-app-light {
    background: #fff;
    color: var(--ap-secondary);
    box-shadow: var(--ap-shadow-sm);
}
.btn-app-light:hover {
    background: #fff;
    transform: translateY(-1px);
}
.btn-app-danger {
    background: var(--ap-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.btn-app-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}
.btn-app-danger-outline {
    background: transparent;
    color: var(--ap-red);
    border-color: rgba(239, 68, 68, 0.4);
}
.btn-app-danger-outline:hover {
    background: rgba(239, 68, 68, 0.06);
}
.btn-app-full { width: 100%; }
.btn-app-sm {
    padding: 10px 16px;
    font-size: 13px;
}

/* === Splash === */
.splash-screen {
    min-height: calc(100vh - 36px);
    position: relative;
    overflow: hidden;
    padding: 40px 28px 32px;
    display: flex;
    flex-direction: column;
}
.splash-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(800px 500px at 100% 0%, rgba(255, 122, 58, 0.18), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(245, 165, 36, 0.14), transparent 60%),
        linear-gradient(180deg, #fff 0%, #f3fbf6 60%, #fff 100%);
}
.splash-bg::after {
    content: '';
    position: absolute;
    top: 30%; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    background: var(--ap-grad);
    border-radius: 50%;
    opacity: 0.04;
    filter: blur(40px);
}
.splash-content {
    position: relative; z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding-top: 60px;
}
.splash-logo {
    width: 140px; height: auto;
    filter: drop-shadow(0 16px 40px var(--ap-primary-glow));
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.splash-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    background: var(--ap-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.splash-tagline {
    font-size: 14.5px;
    color: var(--ap-text-2);
    margin: 0 0 32px;
    line-height: 1.6;
    font-weight: 500;
}
.splash-features {
    display: flex; flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    padding: 18px 22px;
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--ap-shadow-md);
    width: 100%;
    max-width: 320px;
}
.splash-feat {
    display: flex; gap: 10px;
    align-items: center;
    font-size: 13.5px;
    color: var(--ap-text);
    font-weight: 600;
}
.splash-feat .ic {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--ap-green);
    color: #fff;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    flex-shrink: 0;
}

.splash-bottom {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    gap: 10px;
    padding-top: 24px;
}
.splash-foot-link {
    text-align: center;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--ap-text-3);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.splash-foot-link:hover { color: var(--ap-primary); }

/* === Profile hero === */
.profile-hero {
    text-align: center;
    padding: 30px 18px 32px;
    background:
        radial-gradient(400px 280px at 50% 0%, rgba(255, 122, 58, 0.18), transparent 70%),
        linear-gradient(180deg, #eefff6 0%, #fff 100%);
    position: relative;
}
.ph-av {
    width: 88px; height: 88px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--ap-grad);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 36px;
    box-shadow: 0 12px 32px var(--ap-primary-glow);
    border: 3.5px solid #fff;
}
.ph-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.ph-meta {
    font-size: 12.5px;
    color: var(--ap-text-3);
    margin: 0 0 10px;
    font-weight: 500;
}
.ph-role {
    display: inline-block;
    background: var(--ap-grad);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--ap-r-full);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px var(--ap-primary-glow);
}

/* === Profile collapsibles === */
.app-collapsible {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--ap-shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--ap-border-2);
}
.collap-h {
    width: 100%;
    display: flex; gap: 14px;
    align-items: center;
    padding: 16px;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.collap-h:hover { background: var(--ap-bg-soft); }
.collap-h .ic {
    font-size: 18px;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--ap-bg-soft);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.collap-h strong {
    flex: 1;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.collap-h .caret {
    color: var(--ap-text-3);
    font-size: 18px;
    transition: transform .25s var(--ap-tx);
}
.app-collapsible.open .collap-h .caret {
    transform: rotate(90deg);
    color: var(--ap-primary);
}
.collap-body {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--ap-border-2);
    animation: slideDown 0.25s var(--ap-tx);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.app-collapsible.open .collap-body {
    display: block;
}

/* === Address cards === */
.addr-card {
    display: flex; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ap-border-2);
}
.addr-card:last-of-type { border-bottom: 0; }
.addr-tx { flex: 1; }
.addr-tx strong { display: block; font-size: 13.5px; }
.addr-tx p {
    font-size: 12px;
    color: var(--ap-text-2);
    margin: 3px 0 0;
    line-height: 1.4;
}
.addr-act {
    display: flex; flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.badge-default {
    background: var(--ap-green);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--ap-r-full);
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.addr-del {
    background: transparent;
    border: 0;
    color: var(--ap-red);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    transition: opacity .15s;
}
.addr-del:hover { opacity: 0.7; }
.addr-add summary {
    font-size: 13px;
    font-weight: 700;
    color: var(--ap-primary);
    cursor: pointer;
    padding: 12px 0;
    list-style: none;
}
.addr-add summary::-webkit-details-marker { display: none; }
.addr-add summary::before {
    content: '+ ';
    font-weight: 800;
}

/* === Menu links === */
.menu-link {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 6px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: all .15s var(--ap-tx);
}
.menu-link:hover {
    box-shadow: var(--ap-shadow);
    transform: translateX(2px);
    border-color: var(--ap-primary-soft);
}
.menu-link .ic {
    font-size: 18px;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--ap-bg-soft);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.menu-link strong {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}
.menu-link .caret {
    color: var(--ap-text-3);
    font-size: 16px;
}

.logout-form { margin-top: 20px; }
.profile-version {
    text-align: center;
    margin-top: 28px;
    font-size: 11.5px;
    color: var(--ap-text-3);
    letter-spacing: 0.04em;
}

/* === Help / Contact screens === */
.app-help-hero {
    text-align: center;
    padding: 24px 0 18px;
}
.ahh-ic {
    font-size: 52px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}
.app-help-hero h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.app-help-hero p {
    font-size: 13.5px;
    color: var(--ap-text-3);
    margin: 0 0 16px;
    line-height: 1.6;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.faq-app {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    margin-bottom: 8px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    overflow: hidden;
}
.faq-app summary {
    list-style: none;
    padding: 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .15s;
}
.faq-app summary:hover { background: var(--ap-bg-soft); }
.faq-app summary::-webkit-details-marker { display: none; }
.faq-app summary::after {
    content: '+';
    font-size: 22px;
    color: var(--ap-text-3);
    font-weight: 400;
    transition: transform .25s var(--ap-tx);
    flex-shrink: 0;
    margin-left: 8px;
}
.faq-app[open] summary::after {
    content: 'âˆ’';
    color: var(--ap-primary);
}
.faq-app[open] { box-shadow: var(--ap-shadow); }
.fa-body {
    padding: 0 16px 16px;
    color: var(--ap-text-2);
    line-height: 1.7;
    font-size: 13.5px;
    animation: slideDown 0.25s var(--ap-tx);
}
.fa-body ol, .fa-body ul {
    padding-left: 22px;
    margin: 8px 0;
}
.fa-body strong { color: var(--ap-text); }

.app-help-cta {
    text-align: center;
    padding: 28px 0;
}
.app-help-cta p {
    font-size: 13.5px;
    color: var(--ap-text-3);
    margin: 0 0 14px;
}

.channel-card {
    display: flex; gap: 14px; align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 8px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    text-decoration: none;
    color: inherit;
    transition: all .15s var(--ap-tx);
}
.channel-card:hover {
    box-shadow: var(--ap-shadow);
    transform: translateX(2px);
}
.cc-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.cc-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #16a34a;
}
.cc-tel {
    background: rgba(14, 159, 110, 0.10);
    color: var(--ap-primary);
}
.cc-mail {
    background: rgba(37, 99, 235, 0.10);
    color: var(--ap-blue);
}
.cc-tx { flex: 1; }
.cc-tx strong {
    display: block; font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.cc-tx span {
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 1px;
}

.hours-app {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
}
.hours-app-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ap-border-2);
    font-size: 13px;
}
.hours-app-row:last-child { border-bottom: 0; }
.hours-app-row span:first-child {
    font-weight: 700;
    letter-spacing: -0.01em;
}
.hours-app-row span:last-child {
    color: var(--ap-text-3);
    font-weight: 500;
}

/* === About app === */
.app-about-hero {
    text-align: center;
    padding: 16px 0 22px;
}
.app-about-hero .logo-img-el {
    height: 64px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 8px 24px var(--ap-primary-glow));
}
.app-about-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.app-about-hero p {
    font-size: 13.5px;
    color: var(--ap-text-2);
    margin: 0 auto;
    line-height: 1.6;
    max-width: 320px;
}
.about-card {
    display: flex; gap: 14px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--ap-shadow);
    border: 1px solid var(--ap-border-2);
}
.about-photo {
    width: 78px; height: 92px;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    box-shadow: var(--ap-shadow);
}
.about-card strong {
    display: block;
    font-size: 14.5px;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.about-card p {
    font-size: 12.5px;
    color: var(--ap-text-2);
    margin: 0 0 6px;
    line-height: 1.5;
    font-style: italic;
}

/* === Mobile-specific bottom nav label visibility === */
@media (max-width: 699px) {
    .app-bottom-nav {
        max-width: 100%;
    }
}

/* ===== Partner-specific ===== */

/* Online/Offline pill in header */
.avail-toggle-form { margin: 0; }
.avail-pill {
    display: inline-flex; align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--ap-r-full);
    font-size: 11.5px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: all .2s var(--ap-tx);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.avail-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 196, 122, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(22, 196, 122, 0); }
}
.avail-pill.is-online {
    background: var(--ap-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.avail-pill.is-online .dot { background: #fff; }
.avail-pill.is-offline {
    background: var(--ap-bg-soft);
    color: var(--ap-text-2);
    border: 1px solid var(--ap-border-2);
}
.avail-pill.is-offline .dot { background: var(--ap-text-3); animation: none; }

/* Partner hero (green tint) */
.partner-hero {
    position: relative;
    background:
        radial-gradient(400px 280px at 100% 0%, rgba(22, 196, 122, 0.18), transparent 70%),
        linear-gradient(180deg, #eefff6 0%, #fff 100%);
    padding: 28px 20px 32px;
    overflow: hidden;
}
.partner-hero-bg {
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px; border-radius: 50%;
    background: linear-gradient(135deg, #0e9f6e, #16c47a);
    opacity: 0.10;
}
.partner-hero-content { position: relative; z-index: 1; }
.partner-kpis {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-top: 18px;
}
.pa-kpi {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}
.pa-kpi .kpi-num {
    display: block;
    font-weight: 800;
    font-size: 18px;
    color: var(--ap-text);
    letter-spacing: -0.02em;
}
.pa-kpi .kpi-lbl {
    display: block;
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Today + upcoming rows */
.today-list {
    margin: 0 18px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ap-shadow);
    border: 1px solid var(--ap-border-2);
}
.today-row {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.today-row:last-child { border-bottom: 0; }
.today-row:hover { background: var(--ap-bg-soft); }
.today-time {
    text-align: center;
    min-width: 64px;
    padding: 8px 6px;
    background: var(--ap-primary-soft);
    border-radius: 10px;
}
.today-time strong {
    display: block;
    font-size: 13px;
    color: var(--ap-primary);
    font-weight: 800;
}
.today-time span {
    display: block;
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 600;
    margin-top: 1px;
}
.today-info { flex: 1; min-width: 0; }
.today-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
}
.today-info .muted {
    display: block;
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 1px;
}

.upcoming-list {
    margin: 0 18px;
    display: flex; flex-direction: column; gap: 10px;
}
.upcoming-row {
    display: flex; gap: 14px; align-items: center;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: all .15s var(--ap-tx);
}
.upcoming-row:hover {
    box-shadow: var(--ap-shadow);
    transform: translateX(2px);
}
.up-date {
    text-align: center;
    min-width: 52px;
    padding: 8px 4px;
    background: var(--ap-bg-soft);
    border-radius: 10px;
}
.up-date strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--ap-primary);
    line-height: 1;
}
.up-date span {
    display: block;
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.up-info { flex: 1; min-width: 0; }
.up-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
}
.up-info .muted {
    display: block;
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 2px;
}

/* Quick action grid */
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 18px;
}
.qg-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: all .15s var(--ap-tx);
}
.qg-card:hover {
    box-shadow: var(--ap-shadow);
    transform: translateY(-2px);
}
.qg-ic {
    font-size: 26px;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--ap-primary-soft);
    color: var(--ap-primary);
    display: grid; place-items: center;
    margin-bottom: 8px;
}
.qg-card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.qg-card .muted {
    display: block;
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 1px;
}

/* Visit card (visits list) */
.visit-card {
    display: flex; gap: 14px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: all .15s var(--ap-tx);
    position: relative;
}
.visit-card:hover {
    box-shadow: var(--ap-shadow);
    transform: translateY(-1px);
}
.vc-date {
    text-align: center;
    min-width: 56px;
    padding: 10px 6px;
    background: linear-gradient(135deg, var(--ap-primary-soft), rgba(22, 196, 122, 0.04));
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(14, 159, 110, 0.12);
}
.vc-date strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--ap-primary);
    line-height: 1;
}
.vc-date span {
    display: block;
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.vc-day {
    margin-top: 4px !important;
    color: var(--ap-primary) !important;
    font-weight: 700 !important;
}
.vc-body { flex: 1; min-width: 0; }
.vc-top {
    display: flex;
    gap: 8px; align-items: center;
    margin-bottom: 6px;
}
.vc-time {
    font-size: 11.5px;
    color: var(--ap-text-3);
    font-weight: 600;
}
.vc-svc {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    margin: 2px 0 6px;
    letter-spacing: -0.01em;
}
.vc-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-bottom: 8px;
}
.vc-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed var(--ap-border-2);
}
.vc-price strong {
    font-weight: 800;
    font-size: 14px;
    color: var(--ap-primary);
}
.vc-price small {
    color: var(--ap-text-3);
    font-weight: 500;
    font-size: 10px;
    margin-left: 2px;
}
.vc-arrow {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--ap-text-3);
    font-size: 18px;
}

/* Visit status pills */
.visit-pill {
    padding: 4px 10px;
    border-radius: var(--ap-r-full);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.visit-pill-scheduled {
    background: rgba(245, 158, 11, 0.12);
    color: var(--ap-gold);
}
.visit-pill-accepted {
    background: rgba(37, 99, 235, 0.12);
    color: var(--ap-blue);
}
.visit-pill-on_the_way,
.visit-pill-arrived,
.visit-pill-in_progress {
    background: rgba(124, 58, 237, 0.12);
    color: var(--ap-purple);
}
.visit-pill-completed {
    background: rgba(22, 163, 74, 0.12);
    color: var(--ap-green);
}
.visit-pill-cancelled,
.visit-pill-skipped {
    background: rgba(239, 68, 68, 0.12);
    color: var(--ap-red);
}

/* Earnings hero */
.earnings-hero {
    text-align: center;
    padding: 28px 22px;
    background:
        radial-gradient(500px 320px at 50% 0%, rgba(22, 196, 122, 0.18), transparent 70%),
        linear-gradient(135deg, #eefff6 0%, #fff 100%);
    border-radius: 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 159, 110, 0.18);
    box-shadow: 0 8px 24px rgba(14, 159, 110, 0.08);
}
.eh-eyebrow {
    font-size: 11px;
    color: var(--ap-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.eh-amount {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--ap-primary);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1;
}
.eh-sub {
    font-size: 13px;
    color: var(--ap-text-2);
    margin: 10px 0 18px;
}
.eh-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
    border-top: 1px dashed rgba(14, 159, 110, 0.18);
}
.eh-stats > div {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px;
}
.eh-stats strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--ap-text);
}
.eh-stats span {
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Earnings list */
.earn-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    margin-bottom: 22px;
}
.earn-row {
    display: flex; gap: 12px; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ap-border-2);
}
.earn-row:last-child { border-bottom: 0; }
.earn-date {
    text-align: center;
    min-width: 48px;
    padding: 6px 4px;
    background: var(--ap-bg-soft);
    border-radius: 8px;
}
.earn-date strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--ap-primary);
    line-height: 1;
}
.earn-date span {
    display: block;
    font-size: 10px;
    color: var(--ap-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1px;
}
.earn-info { flex: 1; min-width: 0; }
.earn-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}
.earn-info .muted {
    display: block;
    font-size: 11px;
    color: var(--ap-text-3);
    margin-top: 1px;
}
.earn-amt {
    text-align: right;
}
.earn-amt strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--ap-green);
}
.earn-amt .muted {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ap-text-3);
}

/* Payout steps */
.payout-info {
    background: var(--ap-bg-soft);
    border-radius: 14px;
    padding: 4px 16px;
    border: 1px solid var(--ap-border-2);
}
.po-step {
    display: flex; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--ap-border-2);
}
.po-step:last-child { border-bottom: 0; }
.po-ic {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ap-primary-soft);
    color: var(--ap-primary);
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.po-step strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}
.po-step p {
    font-size: 12px;
    color: var(--ap-text-2);
    margin: 0;
    line-height: 1.5;
}

/* Verify rows */
.verify-row {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ap-border-2);
}
.verify-row:last-of-type { border-bottom: 0; }
.verify-row .v-ic {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.verify-row.is-done .v-ic {
    background: rgba(22, 163, 74, 0.12);
    color: var(--ap-green);
}
.verify-row.is-pending .v-ic {
    background: rgba(245, 158, 11, 0.12);
    color: var(--ap-gold);
}
.verify-row strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
}
.verify-row .muted {
    display: block;
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 1px;
}

/* Profile hero — partner */
.ph-rating {
    font-size: 12.5px;
    color: var(--ap-text-2);
    margin: 0 0 10px;
    font-weight: 600;
}
.ph-rating .ph-dot { margin: 0 6px; color: var(--ap-text-3); }
.ph-approved {
    background: var(--ap-green) !important;
    color: #fff !important;
}
.ph-pending {
    background: var(--ap-bg-soft) !important;
    color: var(--ap-gold) !important;
    border: 1px solid var(--ap-border-2);
}

/* ===== Monthly Schedule (calendar) ===== */
.schedule-hero {
    position: relative;
    padding: 22px 20px 18px;
    background:
        radial-gradient(400px 280px at 100% 0%, rgba(22, 196, 122, 0.18), transparent 70%),
        linear-gradient(180deg, #eefff6 0%, #fff 100%);
    border-bottom: 1px solid var(--ap-border-2);
    overflow: hidden;
}
.sh-month-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.sh-nav-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: grid; place-items: center;
    font-size: 22px; line-height: 1;
    color: var(--ap-primary);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 17, 23, 0.06);
    font-weight: 700;
}
.sh-month {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--ap-text);
    letter-spacing: -0.02em;
}
.sh-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}
.sh-stats > div {
    text-align: center;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
.sh-stats strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--ap-primary);
    line-height: 1;
}
.sh-stats span {
    display: block;
    font-size: 9.5px;
    color: var(--ap-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
}
.sh-actions {
    display: flex;
    gap: 8px;
}
.sh-actions .btn-app {
    flex: 1;
    padding: 11px 12px;
    font-size: 13px;
}

/* Calendar */
.calendar-wrap {
    margin: 16px 18px;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ap-border-2);
}
.cal-wd {
    text-align: center;
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-cell {
    position: relative;
    aspect-ratio: 1;
    min-height: 60px;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ap-text);
    background: var(--ap-bg-soft);
    transition: all .15s var(--ap-tx);
    border: 1px solid transparent;
}
.cal-cell.has-visit {
    background: linear-gradient(180deg, rgba(14, 159, 110, 0.06) 0%, rgba(14, 159, 110, 0.02) 100%);
    border-color: rgba(14, 159, 110, 0.15);
}
.cal-cell.is-today {
    background: var(--ap-grad);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 159, 110, 0.3);
}
.cal-cell.is-today .cc-date { color: #fff; }
.cal-cell.is-leave {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.25);
}
.cal-cell.is-other-month { opacity: 0.35; }
.cc-date {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}
.cc-tag {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
.cc-visit.cc-scheduled {
    background: rgba(245, 158, 11, 0.18);
    color: var(--ap-gold);
}
.cc-visit.cc-completed {
    background: rgba(22, 163, 74, 0.18);
    color: var(--ap-green);
}
.cc-visit.cc-in_progress,
.cc-visit.cc-on_the_way,
.cc-visit.cc-arrived {
    background: rgba(124, 58, 237, 0.18);
    color: var(--ap-purple);
}
.cc-visit.cc-cancelled,
.cc-visit.cc-skipped {
    background: rgba(239, 68, 68, 0.18);
    color: var(--ap-red);
}
.cc-leave {
    background: rgba(245, 158, 11, 0.18);
    color: var(--ap-gold);
}
.cc-more {
    background: var(--ap-bg-soft);
    color: var(--ap-text-3);
}
.legend-row {
    display: flex; gap: 12px; flex-wrap: wrap;
    padding: 10px 14px;
    align-items: center;
    font-size: 12px;
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-scheduled { background: var(--ap-gold); }
.dot-completed { background: var(--ap-green); }
.dot-in-progress { background: var(--ap-purple); }
.dot-leave { background: var(--ap-gold); }
.dot-today { background: var(--ap-primary); }

/* ===== Leaves ===== */
.leave-hero {
    text-align: center;
    padding: 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border-radius: 14px;
    border: 1px solid #fed7aa;
}
.lh-ic {
    font-size: 40px;
    margin-bottom: 6px;
}
.leave-hero h3 {
    margin: 0 0 4px;
    font-size: 18px;
}
.leave-hero p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ap-text-2);
}
.leave-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
}
.leave-row {
    display: flex;
    gap: 12px; align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--ap-border-2);
    flex-wrap: wrap;
}
.leave-row:last-child { border-bottom: 0; }
.lv-dates {
    text-align: center;
    min-width: 80px;
}
.lv-dates strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--ap-primary);
}
.lv-dates span {
    display: block;
    font-size: 10.5px;
    color: var(--ap-text-3);
    margin-top: 2px;
}
.lv-days {
    color: var(--ap-primary) !important;
    font-weight: 700 !important;
}
.lv-info {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lv-info .muted {
    font-size: 11.5px;
    color: var(--ap-text-3);
}
.lv-cancel {
    background: transparent;
    border: 1px solid var(--ap-red);
    color: var(--ap-red);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.lv-cancel:hover {
    background: var(--ap-red);
    color: #fff;
}

/* ===== Attendance ===== */
.attendance-hero {
    text-align: center;
    padding: 28px 22px;
    background:
        radial-gradient(500px 320px at 50% 0%, rgba(22, 196, 122, 0.18), transparent 70%),
        linear-gradient(135deg, #eefff6 0%, #fff 100%);
    border-radius: 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 159, 110, 0.18);
    box-shadow: 0 8px 24px rgba(14, 159, 110, 0.08);
}
.ah-date {
    font-size: 12px;
    color: var(--ap-text-3);
    font-weight: 600;
    margin-bottom: 8px;
}
.ah-status {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--ap-primary);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ah-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.ah-dot-on { background: var(--ap-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2); }
.ah-dot-off { background: var(--ap-text-3); }
.ah-meta {
    font-size: 12.5px;
    color: var(--ap-text-2);
    margin: 6px 0 14px;
}
.ah-month {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(14, 159, 110, 0.12);
}
.ah-month strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--ap-primary);
    line-height: 1;
}
.ah-month span {
    font-size: 10.5px;
    color: var(--ap-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.att-preview {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ap-border-2);
}
.att-preview img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.att-log {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
    margin-bottom: 22px;
}
.att-log-row {
    display: flex;
    gap: 12px; align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ap-border-2);
}
.att-log-row:last-child { border-bottom: 0; }
.att-ic {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ap-bg-soft);
    flex-shrink: 0;
    font-size: 14px;
}
.att-log-in .att-ic { background: rgba(22, 163, 74, 0.12); }
.att-log-out .att-ic { background: rgba(239, 68, 68, 0.12); }
.att-log-info {
    flex: 1; min-width: 0;
}
.att-log-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
}
.att-log-info .muted {
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 2px;
}
.att-thumb {
    width: 48px; height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--ap-border-2);
}
.att-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.att-recent {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
}
.att-recent-row {
    display: flex;
    gap: 12px; align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ap-border-2);
}
.att-recent-row:last-child { border-bottom: 0; }
.att-ic-in { background: rgba(22, 163, 74, 0.12); }
.att-ic-out { background: rgba(239, 68, 68, 0.12); }
.att-recent-info { flex: 1; min-width: 0; }
.att-recent-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}
.att-recent-info .muted {
    font-size: 11px;
    color: var(--ap-text-3);
    margin-top: 1px;
}
.att-thumb-mini {
    width: 40px; height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--ap-border-2);
}
.att-thumb-mini img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Schedule hub on home */
.schedule-hub {
    margin: 0 18px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ap-shadow-sm);
    border: 1px solid var(--ap-border-2);
}
.sh-card {
    display: flex;
    gap: 14px; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ap-border-2);
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.sh-card:last-child { border-bottom: 0; }
.sh-card:hover { background: var(--ap-bg-soft); }
.shc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--ap-primary-soft); color: var(--ap-primary); display: grid; place-items: center; flex-shrink: 0; padding: 9px; box-sizing: border-box; }
.shc-info { flex: 1; min-width: 0; }
.shc-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.shc-info .muted {
    display: block;
    font-size: 11.5px;
    color: var(--ap-text-3);
    margin-top: 2px;
}


/* ===== Modern Bottom Nav (SVG icons) ===== */
.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-top: 1px solid rgba(15, 17, 23, 0.06);
    display: flex;
    height: 70px;
    box-shadow: 0 -8px 24px rgba(15, 17, 23, 0.04);
    padding-bottom: env(safe-area-inset-bottom, 0);
    max-width: 480px;
    margin: 0 auto;
}
.app-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    color: var(--ap-text-3);
    text-decoration: none;
    position: relative;
    transition: color .2s var(--ap-tx);
    min-width: 0;
}
.app-bottom-nav a .icon {
    width: 24px;
    height: 24px;
    transition: transform .25s var(--ap-tx-bounce), stroke-width .2s;
    stroke-width: 1.6;
}
.app-bottom-nav a > span:not(.icon) {
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    font-weight: 600;
}
.app-bottom-nav a.active {
    color: var(--ap-primary);
}
.app-bottom-nav a.active .icon {
    transform: translateY(-2px) scale(1.08);
    stroke-width: 2.2;
}
.app-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--ap-grad);
    border-radius: 0 0 4px 4px;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (max-width: 380px) {
    .app-bottom-nav a > span:not(.icon) { font-size: 10.5px; }
    .app-bottom-nav a .icon { width: 22px; height: 22px; }
}


/* === Partner bookings (self-service) === */

.bk-kpi-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 0 16px; margin-bottom: 14px;
}
.bk-kpi {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid var(--bfk-border);
    border-radius: 14px; padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.bk-kpi-ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 18px; font-weight: 800;
    flex-shrink: 0;
}
.bk-kpi-active .bk-kpi-ic { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.bk-kpi-total .bk-kpi-ic { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.bk-kpi-visits .bk-kpi-ic { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.bk-kpi-money .bk-kpi-ic { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
.bk-kpi strong { font-size: 18px; font-weight: 800; display: block; line-height: 1.1; color: #111; }
.bk-kpi span { font-size: 11.5px; color: var(--bfk-text-3); display: block; }

.bk-toolbar {
    display: flex; flex-direction: column; gap: 10px;
    padding: 0 16px 12px;
}
.btn-new-booking {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #0e9f6e, #0a7f57);
    color: #fff; font-weight: 700; font-size: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 14px -6px rgba(14, 159, 110, 0.5);
    transition: transform .15s, box-shadow .15s;
}
.btn-new-booking:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(14, 159, 110, 0.55); }
.btn-new-booking:active { transform: translateY(0); }

.app-tab-row-sm { padding: 0; gap: 0; border-radius: 10px; }
.app-tab-row-sm .app-tab { font-size: 12.5px; padding: 8px 0; }

.bk-card {
    display: block;
    background: #fff;
    border: 1px solid var(--bfk-border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.bk-card:hover { border-color: var(--bfk-primary); box-shadow: 0 4px 10px -4px rgba(14, 159, 110, 0.18); }

.bk-card-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 10px; margin-bottom: 8px;
}
.bk-card-head strong { font-size: 14.5px; color: #111; display: block; }
.bk-customer { font-size: 12px; color: var(--bfk-text-3); margin-top: 2px; }

.bk-pill {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 700;
    background: var(--bfk-bg-soft); color: var(--bfk-text-2);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.bk-pill-active { background: rgba(22, 163, 74, 0.12); color: var(--bfk-green); }
.bk-pill-paused { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.bk-pill-cancelled, .bk-pill-expired { background: rgba(239, 68, 68, 0.12); color: var(--bfk-red); }
.bk-pill-completed { background: rgba(37, 99, 235, 0.12); color: var(--bfk-blue); }
.bk-pill-pending { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.bk-pill-accepted { background: rgba(37, 99, 235, 0.12); color: var(--bfk-blue); }

.bk-card-meta {
    display: flex; gap: 12px; flex-wrap: wrap;
    font-size: 11.5px; color: var(--bfk-text-3);
    margin-bottom: 8px;
}

.bk-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 8px; border-top: 1px dashed var(--bfk-border);
}
.bk-code { font-family: 'SF Mono', monospace; font-size: 11px; color: var(--bfk-text-3); font-weight: 600; }
.bk-amount { font-size: 14px; font-weight: 800; color: #0a7f57; }
.bk-amount small { font-size: 10px; color: var(--bfk-text-3); font-weight: 500; }

.bk-card-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bk-progress-bar {
    flex: 1; height: 6px;
    background: var(--bfk-bg-soft); border-radius: 999px;
    overflow: hidden;
}
.bk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0e9f6e, #0a7f57);
    border-radius: 999px;
    transition: width .3s;
}
.bk-progress-text { font-size: 10.5px; color: var(--bfk-text-3); white-space: nowrap; }

/* Booking detail */
.bk-show-hero {
    background: linear-gradient(135deg, #0e9f6e, #0a7f57);
    color: #fff;
    padding: 20px;
    margin-bottom: 14px;
}
.bk-show-service { font-size: 12px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.bk-show-customer { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bk-show-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 16px;
    border: 2px solid rgba(255,255,255,0.3);
}
.bk-show-customer strong { font-size: 16px; display: block; }
.bk-show-customer .muted { color: rgba(255,255,255,0.75); font-size: 12px; }
.bk-show-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}
.bk-show-stats strong { font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.bk-show-stats span { font-size: 11px; opacity: 0.75; }
.bk-show-progress { display: flex; align-items: center; gap: 10px; }
.bk-show-progress .bk-progress-bar { background: rgba(255,255,255,0.2); }
.bk-show-progress .bk-progress-fill { background: #fff; }
.bk-show-progress span { font-size: 11px; opacity: 0.85; white-space: nowrap; }

.bk-detail-card {
    background: #fff;
    border: 1px solid var(--bfk-border);
    border-radius: 14px;
    margin: 0 16px 16px;
    padding: 14px 16px;
}
.bk-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--bfk-bg-soft);
    font-size: 13px;
}
.bk-detail-row:last-child { border-bottom: 0; }
.bk-detail-row span { color: var(--bfk-text-3); }
.bk-detail-row strong { color: #111; font-weight: 600; text-align: right; }
.bk-detail-address { flex-direction: column; align-items: flex-start; gap: 4px; }

.bk-section-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 16px;
}
.bk-section-head h3 { font-size: 14px; font-weight: 700; }

.bk-stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.bk-stat-cell {
    background: #fff; border: 1px solid var(--bfk-border);
    border-radius: 12px; padding: 14px 8px;
    text-align: center;
}
.bsc-num { display: block; font-size: 20px; font-weight: 800; color: #0a7f57; }
.bsc-lbl { font-size: 11px; color: var(--bfk-text-3); }

/* New booking form */
.bk-form-foot { padding: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}
