/* TapFix — on-demand home services (customer + partner + admin) prototype.
   Bold single-accent teal/near-black identity — distinct from Job Vista. */

.tf {
    --tf-teal: #0e7c73;
    --tf-teal-2: #14b8a6;
    --tf-ink: #10161a;
    --tf-bg: #f2f5f4;
    --tf-panel: var(--panel, #fff);
    --tf-line: var(--line, #dfe7e5);
    --tf-muted: #62726e;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--tf-ink);
}
.tf * { box-sizing: border-box; }

.tf-topbar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem; background: var(--tf-ink); border-bottom: 1px solid #000; position: sticky; top: 0; z-index: 20; }
.tf-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #fff; }
.tf-brand .logo { width: 28px; height: 28px; border-radius: 8px; background: var(--tf-teal-2); color: #062521; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; }
.tf-brand small { display: block; font-weight: 600; color: #9fb0ac; font-size: .66rem; }
.tf-nav { display: flex; gap: .3rem; margin-left: .5rem; }
.tf-navbtn { border: none; background: none; padding: .45rem .9rem; border-radius: 999px; font: 700 .8rem/1 inherit; color: #b7c4c1; cursor: pointer; }
.tf-navbtn.active { background: var(--tf-teal-2); color: #062521; }
.tf-top-actions { margin-left: auto; }
.tf-live-dot { font-size: .66rem; font-weight: 800; color: #5eead4; display: inline-flex; align-items: center; gap: .3rem; }
.tf-live-dot::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #2dd4bf; }

.tf-view { display: none; } .tf-view.active { display: block; }

/* ── Phone frame ─────────────────────────────────────────────────── */
.tf-app-wrap { background: var(--tf-bg); min-height: calc(100vh - 56px); display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; }
.tf-phone { width: 100%; max-width: 360px; background: #0a0f0e; border-radius: 2.1rem; padding: .55rem; box-shadow: 0 40px 80px -30px rgba(10, 30, 27, .4); }
.tf-phone-screen { background: var(--tf-panel); border-radius: 1.7rem; overflow: hidden; position: relative; height: 700px; display: flex; flex-direction: column; }
.tf-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0a0f0e; border-radius: 0 0 14px 14px; z-index: 5; }
.tf-statusbar { display: flex; justify-content: space-between; padding: .5rem 1.1rem .2rem; font-size: .72rem; font-weight: 700; flex: none; }
.tf-screen-scroll { flex: 1; overflow-y: auto; padding-bottom: 4.4rem; }

.tf-app-hd { display: flex; align-items: center; justify-content: space-between; padding: .3rem 1.1rem .7rem; }
.tf-app-hd b { font-size: 1rem; font-weight: 800; }
.tf-search { padding: 0 1.1rem .8rem; }
.tf-search input { width: 100%; border: 1px solid var(--tf-line); border-radius: .8rem; padding: .6rem .8rem; font-size: .8rem; background: var(--tf-bg); }

.tf-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: 0 1.1rem 1rem; }
.tf-cat { background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: 1rem; padding: .8rem .5rem; text-align: center; cursor: pointer; }
.tf-cat .ic { font-size: 1.4rem; display: block; margin-bottom: .3rem; }
.tf-cat .nm { font-size: .68rem; font-weight: 700; }

.tf-sect-hd { padding: 0 1.1rem .5rem; }
.tf-sect-hd h4 { font-size: .9rem; font-weight: 800; }
.tf-again-row { display: flex; gap: .7rem; padding: 0 1.1rem; overflow-x: auto; }
.tf-again-card { flex: none; width: 150px; background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: .9rem; padding: .7rem; cursor: pointer; }
.tf-again-card .ic { font-size: 1.3rem; }
.tf-again-card .nm { font-size: .74rem; font-weight: 700; margin: .3rem 0 .1rem; }
.tf-again-card .px { font-size: .68rem; color: var(--tf-muted); }

.tf-back-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 1.1rem .8rem; }
.tf-back-row .back { font-size: 1.1rem; cursor: pointer; }
.tf-back-row b { font-size: .95rem; font-weight: 800; flex: 1; text-align: center; margin-right: 1.5rem; }

.tf-provider-card { margin: 0 1.1rem .7rem; background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: 1rem; padding: .85rem; display: flex; gap: .7rem; cursor: pointer; }
.tf-provider-card .av { width: 44px; height: 44px; border-radius: 50%; background: var(--tf-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.tf-provider-card .t { font-weight: 800; font-size: .84rem; }
.tf-provider-card .meta { font-size: .72rem; color: var(--tf-muted); margin-top: .15rem; }
.tf-provider-card .px { margin-left: auto; text-align: right; font-weight: 800; color: var(--tf-teal); font-size: .9rem; flex: none; }
.tf-provider-card .px small { display: block; font-weight: 600; color: var(--tf-muted); font-size: .62rem; }

.tf-track-card { margin: 0 1.1rem 1rem; background: linear-gradient(135deg, var(--tf-teal), #0a5850); color: #fff; border-radius: 1rem; padding: 1rem; }
.tf-track-card b { font-size: 1rem; display: block; }
.tf-track-card span { font-size: .76rem; opacity: .9; }
.tf-timeline { margin: 0 1.1rem 1rem; }
.tf-tl-step { display: flex; gap: .7rem; padding: .3rem 0; }
.tf-tl-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--tf-line); display: flex; align-items: center; justify-content: center; font-size: .7rem; flex: none; }
.tf-tl-step.done .tf-tl-dot { background: var(--tf-teal-2); color: #062521; }
.tf-tl-step.active .tf-tl-dot { background: var(--tf-teal); color: #fff; box-shadow: 0 0 0 4px rgba(14,124,115,.18); }
.tf-tl-line { width: 2px; flex: none; background: var(--tf-line); margin-left: 10px; height: 18px; }
.tf-tl-step.done + .tf-tl-line, .tf-tl-step.done .tf-tl-line { background: var(--tf-teal-2); }
.tf-tl-label b { display: block; font-size: .82rem; font-weight: 800; }
.tf-tl-label span { font-size: .68rem; color: var(--tf-muted); }
.tf-provider-mini { margin: 0 1.1rem; background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: 1rem; padding: .8rem; display: flex; align-items: center; gap: .7rem; }
.tf-provider-mini .av { width: 38px; height: 38px; border-radius: 50%; background: var(--tf-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.tf-provider-mini button { margin-left: auto; background: var(--tf-teal-2); color: #062521; border: none; border-radius: .6rem; padding: .4rem .8rem; font-weight: 800; font-size: .74rem; cursor: pointer; }

.tf-rate-card { margin: 2rem 1.4rem; text-align: center; }
.tf-rate-ic { font-size: 2.4rem; margin-bottom: .5rem; }
.tf-rate-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.tf-rate-card p { font-size: .8rem; color: var(--tf-muted); margin-bottom: .8rem; }
.tf-stars { font-size: 1.6rem; color: #f59e0b; margin-bottom: 1.2rem; letter-spacing: .3rem; }
.tf-primary-btn { width: 100%; background: var(--tf-teal); color: #fff; border: none; border-radius: .8rem; padding: .75rem; font-weight: 800; font-size: .85rem; cursor: pointer; }

.tf-bottomnav { position: absolute; bottom: 0; left: 0; right: 0; background: var(--tf-panel); border-top: 1px solid var(--tf-line); display: flex; padding: .6rem 0 .7rem; }
.tf-bottomnav button { flex: 1; border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .62rem; font-weight: 700; color: var(--tf-muted); cursor: pointer; }
.tf-bottomnav button.active { color: var(--tf-teal); }
.tf-bottomnav .ic { font-size: 1.15rem; }

.tf-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--tf-ink); color: #fff; padding: .5rem 1rem; border-radius: 999px; font-size: .74rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.tf-toast.show { opacity: 1; }

/* ── Partner app extras ─────────────────────────────────────────── */
.tf-online-toggle { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; background: #dcfce7; color: #166534; cursor: pointer; }
.tf-online-toggle .dot { width: .45rem; height: .45rem; border-radius: 50%; background: #22c55e; }
.tf-online-toggle.off { background: #f3f4f6; color: #6b7280; }
.tf-online-toggle.off .dot { background: #9ca3af; }
.tf-earn-card { margin: 0 1.1rem 1rem; background: var(--tf-ink); color: #fff; border-radius: 1rem; padding: 1rem; display: flex; justify-content: space-around; }
.tf-earn-card small { display: block; opacity: .7; font-size: .68rem; margin-bottom: .2rem; }
.tf-earn-card b { font-size: 1.2rem; }
.tf-req-card { margin: 0 1.1rem .8rem; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 1rem; padding: .85rem; }
.tf-req-card .t { font-weight: 800; font-size: .84rem; }
.tf-req-card .meta { font-size: .72rem; color: var(--tf-muted); margin: .2rem 0 .6rem; }
.tf-req-actions { display: flex; gap: .5rem; align-items: center; }
.tf-req-actions button { flex: 1; border: none; border-radius: .6rem; padding: .5rem; font-weight: 800; font-size: .76rem; cursor: pointer; }
.tf-req-actions .accept { background: var(--tf-teal); color: #fff; }
.tf-req-actions .decline { background: #fff; border: 1px solid var(--tf-line); color: var(--tf-muted); }
.tf-req-timer { font-size: .68rem; font-weight: 800; color: #dc2626; }
.tf-sched-card { margin: 0 1.1rem .6rem; background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: .9rem; padding: .7rem .85rem; display: flex; justify-content: space-between; align-items: center; }
.tf-sched-card .t { font-weight: 700; font-size: .8rem; }
.tf-sched-card .time { font-size: .7rem; color: var(--tf-muted); }

/* ── Admin ────────────────────────────────────────────────────────── */
.tf-admin { display: flex; min-height: calc(100vh - 56px); background: var(--tf-bg); }
.tf-admin-side { width: 220px; flex: none; background: var(--tf-ink); color: #c6d3d0; padding: 1rem .6rem; }
.tf-admin-side .brand { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem 1.1rem; color: #fff; font-weight: 800; }
.tf-admin-side .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--tf-teal-2); color: #062521; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 900; }
.tf-admin-side .brand small { display: block; font-weight: 600; color: #7d908c; font-size: .66rem; }
.tf-admin-nav { display: flex; flex-direction: column; }
.tf-admin-nav button { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .5rem .6rem; border-radius: .6rem; font: 700 .8rem/1 inherit; color: #c6d3d0; background: none; border: none; cursor: pointer; margin-bottom: .1rem; }
.tf-admin-nav button:hover { background: rgba(255,255,255,.06); }
.tf-admin-nav button.active { background: var(--tf-teal-2); color: #062521; }
.tf-admin-main { flex: 1; padding: 1.4rem 1.8rem; overflow-x: auto; }
.tf-admin-hd h2 { font-size: 1.2rem; font-weight: 800; } .tf-admin-hd p { font-size: .8rem; color: var(--tf-muted); }
.tf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin: 1.1rem 0; }
.tf-stat { background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: .9rem; padding: .9rem 1rem; }
.tf-stat .ic { width: 34px; height: 34px; border-radius: .6rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; margin-bottom: .5rem; }
.tf-stat .v { font-size: 1.3rem; font-weight: 800; } .tf-stat .k { font-size: .72rem; color: var(--tf-muted); font-weight: 700; }
.tf-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.tf-chart-card { background: var(--tf-panel); border: 1px solid var(--tf-line); border-radius: 1rem; padding: 1rem; }
.tf-chart-card h4 { font-size: .84rem; font-weight: 800; margin-bottom: .7rem; }
.tf-chart-card svg { width: 100%; height: 180px; display: block; }

@media (max-width: 860px) {
    .tf-admin { flex-direction: column; }
    .tf-admin-side { width: 100%; display: flex; overflow-x: auto; padding: .6rem; }
    .tf-admin-side .brand { display: none; }
    .tf-admin-nav { flex-direction: row; gap: .3rem; }
    .tf-admin-nav button { white-space: nowrap; }
    .tf-charts { grid-template-columns: 1fr; }
}
