/* Components added after the shared set in 04-components.css.
   In order: skip link and focus, form progress, timeline, cancel flow,
   notices, notifications, technician earnings, FAQ search, and admin cards.
   A component's own @media query stays next to that component. */

/* --------------------------------------------------------------------------
   UX / accessibility (focus, skip link, form progress, busy submit)
   -------------------------------------------------------------------------- */

.tk-skip {
    position: absolute;
    inset-inline-start: 12px;
    top: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--cyan);
    color: #04222B;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform .15s ease;
}
.tk-skip:focus,
.tk-skip:focus-visible {
    transform: translateY(0);
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

:where(a, button, .tk-btn, .tk-tabs__item, .tk-burger__btn, .tk-adminmenu-btn, .tk-sidebar__link, .tk-sidebar__close, .tk-banner__dot, summary):focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.tk-choice label:focus-within .tk-choice__box,
.tk-choice input:focus-visible + .tk-choice__box {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-color: var(--cyan-line);
}

.tk-btn.is-busy,
.tk-btn[disabled].is-busy {
    opacity: .72;
    pointer-events: none;
    cursor: wait;
}

.tk-form-progress {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin: 0 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tk-form-progress::-webkit-scrollbar { display: none; }
.tk-form-progress__item {
    flex: 1 0 auto;
    min-width: 4.5rem;
    text-align: center;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--silver-faint);
    text-decoration: none;
    padding: 8px 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-raised);
}
.tk-form-progress__item:hover { color: var(--text); border-color: var(--cyan-line); }
.tk-form-progress__item.is-active {
    color: var(--cyan);
    border-color: var(--cyan-line);
    background: var(--cyan-dim);
}
.tk-form-progress__item.is-complete {
    color: var(--ok);
    border-color: rgba(35, 198, 136, .35);
}

.tk-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
.tk-timeline li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: var(--silver-faint);
    font-size: .76rem;
    font-weight: 700;
    text-align: center;
}
.tk-timeline li::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 15px;
    inset-inline-start: calc(-50% - 8px);
    width: calc(100% + 8px);
    height: 2px;
    background: var(--line);
}
.tk-timeline li:first-child::before { display: none; }
.tk-timeline__dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-raised);
}
.tk-timeline li.is-complete,
.tk-timeline li.is-current { color: var(--text); }
.tk-timeline li.is-complete::before,
.tk-timeline li.is-current::before { background: var(--cyan); }
.tk-timeline li.is-complete .tk-timeline__dot {
    color: #061712;
    border-color: var(--ok);
    background: var(--ok);
}
.tk-timeline li.is-current .tk-timeline__dot {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 0 5px var(--cyan-dim);
}
.tk-timeline.is-terminal li.is-current .tk-timeline__dot {
    color: var(--warn);
    border-color: var(--warn);
    box-shadow: 0 0 0 5px rgba(240, 172, 59, .12);
}
.tk-request-history {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-request-history summary {
    padding: 12px 15px;
    color: var(--silver);
    font-weight: 700;
    cursor: pointer;
}
.tk-request-history ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 15px 15px;
    list-style: none;
}
.tk-request-history li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--silver-dim);
    font-size: .82rem;
}
.tk-select--compact {
    min-height: 38px;
    width: auto;
    max-width: 12rem;
    padding-block: 6px;
    font-size: .8rem;
}
.tk-chip {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-raised);
    color: var(--silver);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}
.tk-chip:hover,
.tk-chip.is-active {
    color: var(--cyan);
    border-color: var(--cyan-line);
    background: var(--cyan-dim);
}
.tk-cancel-reasons {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}
.tk-cancel-reasons > legend {
    padding: 0;
    margin-bottom: 8px;
}
.tk-cancel-reasons__list {
    display: grid;
    gap: 6px;
}
.tk-cancel-reasons__option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--bg-raised);
    cursor: pointer;
}
.tk-cancel-reasons__option:hover {
    border-color: var(--cyan-line);
    background: var(--bg-hover);
}
.tk-cancel-reasons__option:has(input:checked) {
    color: var(--cyan);
    border-color: var(--cyan-line);
    background: var(--cyan-dim);
}
.tk-cancel-reasons__option:has(input:focus-visible) {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}
.tk-cancel-reasons__option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--cyan);
    flex-shrink: 0;
    cursor: pointer;
}
.tk-cancel-reasons__option span {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
}
.tk-cancel-dialog {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 10, 16, .72);
}
.tk-cancel-dialog[hidden] { display: none; }
.tk-cancel-dialog__panel {
    width: min(100%, 400px);
    max-height: min(90vh, 640px);
    overflow: auto;
    padding: 20px 18px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.tk-cancel-dialog__close {
    border: 0;
    background: transparent;
    color: var(--silver);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.tk-cancel-dialog__close:hover { color: var(--cyan); }
.tk-cancel-form { margin: 0; }
.tk-map-disclosure {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-map-disclosure > summary {
    padding: 13px 15px;
    color: var(--cyan);
    font-weight: 700;
    cursor: pointer;
}
.tk-map-disclosure[open] > summary {
    border-bottom: 1px solid var(--line);
}
.tk-map-disclosure > .tk-map { margin: 0; padding: 14px; }
.tk-support-request,
.tk-admin-editor {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-support-request > summary,
.tk-admin-editor > summary {
    padding: 14px 16px;
    color: var(--cyan);
    font-weight: 800;
    cursor: pointer;
}
.tk-support-request > form,
.tk-admin-editor__body {
    padding: 0 16px 16px;
}
.tk-support-grid {
    display: grid;
    gap: 14px;
}
.tk-input--short { width: 8rem; }
.tk-earnings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.tk-stat {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-stat span { color: var(--silver-dim); font-size: .78rem; }
.tk-stat strong { color: var(--cyan); font-size: 1.12rem; }
@media (max-width: 720px) {
    .tk-earnings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tk-header,
.tk-header__inner,
.tk-header__actions { overflow: visible; }
.tk-notices { position: relative; display: inline-block; flex-shrink: 0; }
.tk-notification-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--silver);
    background: var(--bg-raised);
}
.tk-notices__btn {
    list-style: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.tk-notices__btn::-webkit-details-marker { display: none; }
.tk-notices__btn::marker { content: ''; }
.tk-notices__btn:hover,
.tk-notices[open] .tk-notices__btn { border-color: var(--cyan-line); color: var(--text); }
.tk-notices__btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}
.tk-notification-bell svg { width: 19px; height: 19px; }
.tk-notification-bell__count {
    position: absolute;
    top: -5px;
    inset-inline-end: -6px;
    min-width: 19px;
    padding: 2px 5px;
    border-radius: 999px;
    color: #061016;
    background: var(--cyan-bright);
    font-size: .65rem;
    font-weight: 900;
    text-align: center;
}
.tk-notices__panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 72;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, 440px);
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-raised);
    box-shadow: var(--shadow-pop);
}
.tk-notices__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.tk-notices__head strong { color: var(--text); font-size: .95rem; }
.tk-notices__quiet {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--cyan);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
.tk-notices__quiet:hover { color: var(--cyan-bright); }
.tk-notices__empty {
    margin: 0;
    padding: 14px 8px;
    color: var(--silver-dim);
    font-size: .88rem;
    text-align: center;
}
.tk-notices__head,
.tk-notices__panel > .tk-btn { flex: 0 0 auto; }
.tk-notices__list,
.tk-notices__empty {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.tk-notices__list { display: grid; align-content: start; gap: 8px; }
.tk-notices .tk-notification button {
    padding: 10px 12px;
    grid-template-columns: 8px 1fr;
    gap: 10px;
}
.tk-notices .tk-notification button > span:last-child { gap: 2px; }
.tk-notices .tk-notification button strong,
.tk-notices .tk-notification button span span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tk-notices .tk-notification__dot { margin-top: 6px; }
@media (max-width: 1100px) {
    /* Hang the panel from the header row so a 360px card cannot clip off-screen. */
    .tk-notices { position: static; }
    .tk-notices__panel {
        top: calc(100% + 8px);
        inset-inline: 10px;
        width: auto;
        max-width: none;
    }
}
.tk-notification-list { display: grid; gap: 10px; }
.tk-notification {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-notification.is-unread {
    border-color: var(--cyan-line);
    background: linear-gradient(90deg, var(--cyan-dim), var(--bg-card) 45%);
}
.tk-notification button {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.tk-notification button > span:last-child { display: grid; gap: 5px; }
.tk-notification button span span,
.tk-notification button small { color: var(--silver-dim); }
.tk-notification__dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--line);
}
.tk-notification.is-unread .tk-notification__dot { background: var(--cyan); }
.tk-otp-input {
    letter-spacing: .45em;
    text-align: center;
    font-size: 1.35rem;
}
.tk-rebook { position: relative; overflow: hidden; }
.tk-rebook::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 25%, rgba(120, 231, 255, .24), transparent 70%);
    transition: transform .45s ease;
    pointer-events: none;
}
.tk-rebook:hover::after { transform: translateX(120%); }
.tk-service--link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.tk-service--link .tk-service__price { margin-top: auto; }
.tk-service--link:hover { color: inherit; border-color: var(--cyan-line); }
.tk-proof-band {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--cyan-line);
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--cyan-dim), var(--bg-card), var(--cyan-dim));
}
.tk-proof-band__stars { color: var(--warn); letter-spacing: .08em; }
.tk-coverage-checker {
    max-width: 620px;
    margin: 0 auto 24px;
    padding: 18px;
    border: 1px solid var(--cyan-line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-tech-earnings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--cyan-line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--cyan-dim), var(--bg-card));
}
.tk-tech-earnings__calc {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-raised);
}
.tk-tech-earnings__calc input[type="range"] { width: 100%; accent-color: var(--cyan); }
.tk-tech-earnings__calc strong { color: var(--cyan); font-size: 1.3rem; }
.tk-tech-earnings__calc small { color: var(--silver-dim); }
.tk-onboarding {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.tk-onboarding li {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-onboarding li > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #061016;
    background: var(--cyan);
    font-weight: 900;
}
.tk-faq-search { margin-bottom: 18px; }
.tk-faq-more { margin-top: 2rem; }
.tk-legal-toc {
    position: sticky;
    top: calc(var(--tk-header-h, 56px) + 12px);
    z-index: 3;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 24px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
}
.tk-legal-toc strong,
.tk-legal-toc a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .76rem;
}
.tk-legal-toc a { border: 1px solid var(--line); background: var(--bg-raised); }
.tk-prose h2[id] { scroll-margin-top: calc(var(--tk-header-h, 56px) + 90px); }
@media (max-width: 720px) {
    .tk-tech-earnings { grid-template-columns: 1fr; }
    .tk-onboarding { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tk-admin-request-cards,
.tk-admin-mobile-cards { display: none; }
.tk-cancel-stats {
    display: grid;
    gap: 12px;
}
.tk-cancel-stats__row {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.tk-cancel-stats__bar {
    margin-top: 8px;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-raised);
    overflow: hidden;
}
.tk-cancel-stats__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--cyan);
}
.tk-bucket-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 20px;
    padding-bottom: 4px;
}
.tk-bucket-nav a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--silver);
    background: var(--bg-raised);
    font-size: .82rem;
    font-weight: 700;
}
.tk-bucket-nav a.is-active {
    color: var(--cyan);
    border-color: var(--cyan-line);
    background: var(--cyan-dim);
}
.tk-review-quote {
    margin: 14px 0;
    padding: 12px 14px;
    border-inline-start: 3px solid var(--cyan);
    color: var(--silver);
    background: var(--bg-raised);
}
.tk-dispatch-confirmation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid var(--cyan-line);
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--cyan-dim), var(--bg-card));
}
.tk-dispatch-confirmation h2 { margin: 8px 0 6px; font-size: 1.2rem; }
.tk-dispatch-confirmation p { margin: 0; color: var(--silver-dim); }
.tk-dispatch-radar {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
}
.tk-dispatch-radar span {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    animation: tk-dispatch-wave 2s ease-out infinite;
}
.tk-dispatch-radar span:nth-child(2) { animation-delay: 1s; }
.tk-dispatch-radar i {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #061016;
    background: var(--cyan);
    font-style: normal;
}
@keyframes tk-dispatch-wave {
    from { opacity: .8; transform: scale(.8); }
    to { opacity: 0; transform: scale(2.1); }
}
.tk-match-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.tk-match-signals span {
    padding: 4px 8px;
    border: 1px solid var(--cyan-line);
    border-radius: 999px;
    color: var(--cyan);
    background: var(--cyan-dim);
    font-size: .7rem;
    font-weight: 700;
}
@media (max-width: 720px) {
    .tk-admin-request-cards,
    .tk-admin-mobile-cards { display: grid; gap: 10px; }
    .tk-admin-request-card,
    .tk-admin-mobile-card {
        display: grid;
        gap: 8px;
        padding: 15px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        color: var(--text);
        background: var(--bg-card);
    }
    .tk-admin-request-card h3,
    .tk-admin-request-card p,
    .tk-admin-mobile-card h3,
    .tk-admin-mobile-card p { margin: 0; }
    .tk-admin-requests-table,
    .tk-admin-desktop-table { display: none; }
    .tk-dispatch-confirmation { grid-template-columns: 1fr; text-align: center; }
    .tk-dispatch-radar { margin: 0 auto; }
}
.tk-fieldset[id] {
    scroll-margin-top: calc(var(--tk-header-h, 56px) + var(--tk-safe-top, 0px) + 12px);
    scroll-margin-bottom: calc(var(--tk-tabs-h, 64px) + 96px);
}
.tk-input,
.tk-select,
.tk-textarea,
.tk-choice__box {
    scroll-margin-bottom: calc(var(--tk-tabs-h, 64px) + 96px);
}

.tk-payment-note {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--silver-dim);
    font-size: .92rem;
    line-height: 1.45;
}
.tk-payment-note strong { color: var(--text); display: block; margin-bottom: 2px; }

.tk-empty__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.tk-hero--photo .tk-hero__lead { margin-bottom: 14px; }

@media (max-width: 720px) {
    .tk-hero--photo .tk-row.tk-mt-2 {
        margin-top: 16px;
    }
    .tk-hero--photo .tk-trust {
        margin-bottom: 8px;
    }
    .tk-form-progress__item { min-width: 5.2rem; font-size: .74rem; }
    .tk-btn,
    .tk-tabs__item,
    .tk-choice__box {
        min-height: 44px;
    }
}


@media (max-width: 720px) {
    .tk-home-steps { grid-template-columns: 1fr; }
}

.tk-auth-narrow{max-width:520px;}

/* Admin live map (admin/live_map.blade.php, js/live-map.js) */
.tk-livemap__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: .85rem;
}
.tk-livemap__legend li { display: inline-flex; align-items: center; gap: 6px; }
.tk-livemap__dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.tk-livemap__dot.is-available { background: #16a34a; }
.tk-livemap__dot.is-busy { background: #f59e0b; }
.tk-livemap__dot.is-stale { background: #94a3b8; }
.tk-livemap__dot.is-off { background: #475569; }
.tk-livemap__dot.is-request { background: #0ea5e9; }
.tk-livemap__canvas {
    height: min(70vh, 640px);
    min-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line, rgba(0, 0, 0, .1));
}
/* Leaflet controls stay left-to-right inside the RTL layout. */
.tk-livemap__canvas.leaflet-container { direction: ltr; font: inherit; }
.tk-nearby { margin: 8px 0 0; }

/* Instapay pay box (customer/request_detail) */
.tk-instapay { padding: 12px; border: 1px dashed var(--line, rgba(0, 0, 0, .15)); border-radius: 12px; }
.tk-instapay__qr { display: block; width: 180px; max-width: 100%; margin: 10px 0; border-radius: 8px; }

/* Several AC types on one booking (customer/booking/details) */
.tk-lines { display: grid; gap: 10px; margin-top: 12px; }
.tk-line { padding-top: 10px; border-top: 1px dashed var(--line, rgba(0, 0, 0, .12)); }
.tk-request-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tk-request-lines li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
