/* OraLink Companion — metallic dark green + gold */
:root {
  --bg: #0d2818; --bg2: #1a3d2a; --bg3: #14301f;
  --gold: #d4af37; --gold-dim: #a8892a;
  --text: #f0ead6; --muted: #9db3a4;
  --blue: #4a90d9; --purple: #9b59b6; --green: #27ae60; --orange: #e67e22;
  --red: #e74c3c; --yellow: #f1c40f;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, system-ui, sans-serif; font-size: 16px; }
#app { max-width: 600px; margin: 0 auto; min-height: 100vh; padding-bottom: 80px; }

header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, var(--bg2), var(--bg3)); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 10; }
.logo { font-size: 20px; font-weight: 700; } .logo span { color: var(--gold); }
.pending-badge { background: var(--yellow); color: #000; font-weight: 700; padding: 8px 14px; border-radius: 20px; font-size: 18px; animation: pulse 1.5s infinite; cursor: pointer; }
.pending-badge.hidden { display: none; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.view { display: none; padding: 12px; } .view.active { display: block; }
.date-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.date-bar button { background: var(--bg2); color: var(--text); border: 1px solid var(--gold-dim); border-radius: 10px; font-size: 22px; padding: 8px 14px; min-width: 48px; }
.date-bar input[type=date] { flex: 1; background: var(--bg2); color: var(--text); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 10px; font-size: 16px; }
.today-btn { font-size: 14px !important; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 4px; }
.chip { background: var(--bg2); border: 1px solid var(--gold-dim); color: var(--text); border-radius: 20px; padding: 8px 16px; font-size: 15px; white-space: nowrap; min-height: 44px; }
.chip.active { background: var(--gold); color: #000; font-weight: 700; }
.actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.btn { background: var(--bg2); color: var(--text); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 600; min-height: 52px; cursor: pointer; }
.btn.gold { background: var(--gold); color: #000; border: none; }
.btn.big { font-size: 16px; }
.btn.accept { background: var(--green); color: #fff; border: none; font-size: 20px; flex: 1; min-height: 64px; }
.btn.reject { background: var(--red); color: #fff; border: none; font-size: 20px; flex: 1; min-height: 64px; }

.timeline { display: flex; flex-direction: column; gap: 8px; }
.appt { background: var(--bg2); border-radius: 12px; padding: 12px; border-left: 5px solid var(--muted); display: flex; justify-content: space-between; align-items: center; }
.appt .time { font-size: 20px; font-weight: 700; color: var(--gold); min-width: 70px; }
.appt .info { flex: 1; margin: 0 10px; }
.appt .info .cust { font-weight: 700; font-size: 16px; }
.appt .info .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.appt .status { font-size: 12px; padding: 4px 10px; border-radius: 12px; font-weight: 700; text-transform: uppercase; }
.src-online { border-left-color: var(--blue); } .src-sasha { border-left-color: var(--purple); }
.src-staff { border-left-color: var(--green); } .src-walkin { border-left-color: var(--orange); }
.st-confirmed { background: #1a3d2a; color: #7bed9f; } .st-pending_approval { background: #4a3c00; color: var(--yellow); animation: pulse 2s infinite; }
.st-checked_in { background: #003d4a; color: #70d6ff; } .st-in_progress { background: #3d2a00; color: var(--orange); }
.st-completed { background: #222; color: var(--muted); } .st-cancelled { background: #3d0000; color: #ff7b7b; }
.st-no_show { background: #333; color: #aaa; }
.slot-free { background: rgba(39,174,96,.08); border: 1px dashed #2d6a4f; border-radius: 10px; padding: 8px 12px; color: var(--muted); font-size: 14px; }
.blocked { background: rgba(100,100,100,.15); border-radius: 10px; padding: 8px 12px; color: var(--muted); font-size: 14px; }
.pending-banner { background: #4a3c00; border: 2px solid var(--yellow); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.appt-actions { display: flex; gap: 6px; margin-top: 8px; }
.appt-actions button { flex: 1; padding: 8px; font-size: 13px; border-radius: 8px; border: 1px solid var(--gold-dim); background: var(--bg3); color: var(--text); }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 100; align-items: flex-end; justify-content: center; }
.modal.open { display: flex; }
.modal-box { background: var(--bg2); border-radius: 20px 20px 0 0; padding: 20px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; border-top: 3px solid var(--gold); }
.modal-box h3 { margin-top: 0; color: var(--gold); }
.modal-box label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 14px; }
.modal-box select, .modal-box input { width: 100%; background: var(--bg3); color: var(--text); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 12px; font-size: 16px; min-height: 52px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.info { background: var(--bg3); border-radius: 10px; padding: 10px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.modal.urgent { align-items: center; }
.urgent-box { border-radius: 20px; border: 3px solid var(--yellow); animation: pulse 1.5s infinite; }
.approve-details { background: var(--bg3); border-radius: 12px; padding: 14px; margin: 12px 0; font-size: 17px; line-height: 1.8; }
.approve-details .row { display: flex; justify-content: space-between; }
.approve-details .lbl { color: var(--muted); }
.countdown { text-align: center; color: var(--yellow); font-weight: 700; margin-bottom: 12px; font-size: 18px; }

nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--bg2); border-top: 2px solid var(--gold); max-width: 600px; margin: 0 auto; }
.nav-btn { flex: 1; background: none; border: none; color: var(--muted); padding: 12px; font-size: 22px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; }
.nav-btn span { font-size: 12px; } .nav-btn.active { color: var(--gold); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { flex: 1; background: var(--bg2); color: var(--muted); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 12px; font-size: 15px; min-height: 52px; }
.tab.active { background: var(--gold); color: #000; font-weight: 700; }
.set-card { background: var(--bg2); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.set-card h4 { margin: 0 0 8px; color: var(--gold); }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1a3d2a; }
