/* ============ Kizora — Google color theme ============ */
:root {
    /* Google brand palette */
    --g-blue: #4285F4;
    --g-blue-dark: #3367d6;
    --g-blue-ink: #1a73e8;
    --g-blue-light: #e8f0fe;
    --g-red: #EA4335;
    --g-red-dark: #c5221f;
    --g-red-ink: #a50e0e;
    --g-red-light: #fce8e6;
    --g-yellow: #FBBC05;
    --g-yellow-dark: #f9ab00;
    --g-yellow-ink: #b06000;
    --g-yellow-light: #fef7e0;
    --g-green: #34A853;
    --g-green-dark: #1e8e3e;
    --g-green-ink: #137333;
    --g-green-light: #e6f4ea;
    /* neutrals */
    --ink: #202124;
    --ink-2: #3c4043;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-400: #bdc1c6;
    --gray-500: #9aa0a6;
    --gray-600: #5f6368;
    /* legacy aliases (kept so older inline styles keep working) */
    --green: var(--g-blue);
    --green-dark: var(--g-blue-dark);
    --green-light: var(--g-blue-light);
    --blue: var(--g-blue);
    --blue-light: var(--g-blue-light);
    --red: var(--g-red);
    --red-light: var(--g-red-light);
    --amber: var(--g-yellow);
    --amber-light: var(--g-yellow-light);
    --dark: var(--ink);
    --dark-2: var(--ink-2);
    --radius: 12px;
    --shadow: 0 4px 18px rgba(32, 33, 36, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.kz-main { flex: 1; padding: 28px 0 48px; }
.kz-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.kz-mb0 { margin-bottom: 0; }
.kz-muted { color: var(--gray-600); }
.kz-center { text-align: center; }
.kz-mt { margin-top: 20px; }
a { color: var(--g-blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Google 4-color strip ---------- */
.g-strip {
    height: 4px; border: 0;
    background: linear-gradient(to right,
        var(--g-blue) 0%, var(--g-blue) 25%,
        var(--g-red) 25%, var(--g-red) 50%,
        var(--g-yellow) 50%, var(--g-yellow) 75%,
        var(--g-green) 75%, var(--g-green) 100%);
}
.g-strip-card { border-radius: var(--radius) var(--radius) 0 0; margin: -24px -24px 20px; }
.g-word span:nth-child(4n+1) { color: var(--g-blue); }
.g-word span:nth-child(4n+2) { color: var(--g-red); }
.g-word span:nth-child(4n+3) { color: var(--g-yellow-dark); }
.g-word span:nth-child(4n+4) { color: var(--g-green); }

/* ---------- header ---------- */
.kz-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 200; }
.kz-nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.kz-logo { font-size: 1.5rem; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.kz-logo:hover { text-decoration: none; }
.kz-logo-mark {
    width: 34px; height: 34px; border-radius: 10px; background: var(--g-blue);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800;
}
.kz-links { display: flex; align-items: center; gap: 18px; }
.kz-links a { color: var(--gray-600); font-weight: 600; }
.kz-links a:hover { color: var(--g-blue-ink); text-decoration: none; }
.kz-user-chip { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.kz-inline-form { display: inline; }
.kz-link-btn { background: none; border: none; color: var(--gray-600); font-weight: 600; cursor: pointer; font-size: 1rem; }
.kz-link-btn:hover { color: var(--g-red); }
.kz-nav-toggle { display: none; background: none; border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 700; font-size: 1rem; cursor: pointer; transition: .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--g-blue); color: #fff; }
.btn-primary:hover { background: var(--g-blue-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-outline { background: #fff; border-color: var(--gray-200); color: var(--ink); }
.btn-outline:hover { border-color: var(--g-blue); color: var(--g-blue-ink); }
.btn-danger { background: var(--g-red); color: #fff; }
.btn-danger:hover { background: var(--g-red-dark); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .9rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- cards / grids ---------- */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h3 { margin-bottom: 6px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--ink); }
.stat-card .stat-label { color: var(--gray-600); font-size: .9rem; }
.stat-card .stat-icon { float: right; font-size: 1.6rem; color: var(--g-blue); }
.grid .stat-card:nth-child(4n+2) .stat-icon { color: var(--g-red); }
.grid .stat-card:nth-child(4n+3) .stat-icon { color: var(--g-yellow-dark); }
.grid .stat-card:nth-child(4n+4) .stat-icon { color: var(--g-green); }

/* ---------- forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-control, select.form-control, textarea.form-control {
    width: 100%; padding: 11px 14px; border: 1px solid var(--gray-200);
    border-radius: 10px; font-size: 1rem; background: #fff; color: var(--ink);
}
.form-control:focus { outline: 2px solid var(--g-blue-light); border-color: var(--g-blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: .85rem; color: var(--gray-600); margin-top: 4px; }
.auth-card { max-width: 460px; margin: 30px auto; }
.auth-card h2 { margin-bottom: 4px; }

/* ---------- alerts ---------- */
.alert { border-radius: 10px; padding: 13px 16px; margin: 14px 0; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--g-green-light); color: var(--g-green-ink); border: 1px solid #ceead6; }
.alert-error { background: var(--g-red-light); color: var(--g-red-ink); border: 1px solid #fad2cf; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.b-green { background: var(--g-green-light); color: var(--g-green-ink); }
.b-amber { background: var(--g-yellow-light); color: var(--g-yellow-ink); }
.b-red { background: var(--g-red-light); color: var(--g-red-ink); }
.b-blue { background: var(--g-blue-light); color: var(--g-blue-ink); }
.b-gray { background: var(--gray-100); color: var(--gray-600); }
.b-dark { background: var(--ink); color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.table th { background: var(--gray-50); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-600); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50); }

/* ---------- hero / landing ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%); color: var(--ink); padding: 0 0 70px; }
.hero h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 14px; }
.hero p.lead { font-size: 1.15rem; color: var(--gray-600); max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .g-strip { margin-bottom: 56px; }
.section { padding: 56px 0; }
.section h2 { font-size: 2rem; margin-bottom: 8px; }
.section .sub { color: var(--gray-600); margin-bottom: 28px; }
.vehicle-card { text-align: center; transition: transform .15s; }
.vehicle-card:hover { transform: translateY(-4px); }
.vehicle-card .v-icon { font-size: 2.6rem; color: var(--g-blue); margin-bottom: 10px; }
.grid .vehicle-card:nth-child(4n+2) .v-icon { color: var(--g-red); }
.grid .vehicle-card:nth-child(4n+3) .v-icon { color: var(--g-yellow-dark); }
.grid .vehicle-card:nth-child(4n+4) .v-icon { color: var(--g-green); }
.vehicle-card .v-fare { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n {
    counter-increment: step; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--g-blue); color: #fff; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.step:nth-child(2) .n { background: var(--g-red); }
.step:nth-child(3) .n { background: var(--g-yellow-dark); }
.step:nth-child(4) .n { background: var(--g-green); }
.step .n::before { content: counter(step); }

/* ---------- booking ---------- */
.book-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
#map { height: 480px; border-radius: var(--radius); border: 1px solid var(--gray-200); z-index: 1; }
#map-sm { height: 300px; border-radius: var(--radius); border: 1px solid var(--gray-200); z-index: 1; }
.mode-btns { display: flex; gap: 8px; margin-bottom: 12px; }
.mode-btns .btn.active { background: var(--g-blue); color: #fff; }
.vtype-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vtype-opt { border: 2px solid var(--gray-200); border-radius: 10px; padding: 12px; cursor: pointer; text-align: center; transition: .15s; background: #fff; }
.vtype-opt:hover { border-color: var(--g-blue); }
.vtype-opt.selected { border-color: var(--g-blue); background: var(--g-blue-light); }
.vtype-opt .v-icon { font-size: 1.6rem; color: var(--g-blue-ink); }
.vtype-opt .v-name { font-weight: 700; }
.vtype-opt .v-fare { font-weight: 800; color: var(--g-blue-ink); font-size: 1.1rem; }
.fare-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.fare-box .fare-big { font-size: 2rem; font-weight: 800; color: var(--g-green); }
.fare-line { display: flex; justify-content: space-between; font-size: .92rem; color: #dadce0; }

/* ---------- tracking timeline ---------- */
.timeline { list-style: none; margin: 18px 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before {
    content: ''; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: var(--gray-200);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
    position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--gray-200); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gray-200);
}
.timeline li.done .dot { background: var(--g-green); box-shadow: 0 0 0 2px var(--g-green); }
.timeline li.now .dot { background: var(--g-blue); box-shadow: 0 0 0 2px var(--g-blue); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.timeline .t-title { font-weight: 700; }
.timeline .t-time { font-size: .85rem; color: var(--gray-600); }
.otp-box { background: var(--g-yellow-light); border: 2px dashed var(--g-yellow-dark); border-radius: var(--radius); padding: 16px; text-align: center; }
.otp-box .otp { font-size: 2.4rem; font-weight: 800; letter-spacing: .5em; color: var(--ink); }
.driver-card { display: flex; gap: 14px; align-items: center; }
.driver-card .avatar {
    width: 56px; height: 56px; border-radius: 50%; background: var(--g-blue-light);
    color: var(--g-blue-ink); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
}
.stars { color: var(--g-yellow); font-size: 1.6rem; cursor: pointer; }
.stars .fa-star { margin-right: 4px; }

/* ---------- toggle switch ---------- */
.switch { position: relative; display: inline-block; width: 58px; height: 32px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--gray-200); border-radius: 999px; transition: .2s; cursor: pointer; }
.slider::before { content: ''; position: absolute; width: 24px; height: 24px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--g-green); }
.switch input:checked + .slider::before { transform: translateX(26px); }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.admin-side { background: var(--ink); border-radius: var(--radius); padding: 0 0 16px; position: sticky; top: 84px; overflow: hidden; }
.admin-side .g-strip { margin-bottom: 12px; }
.admin-side a { display: flex; gap: 10px; align-items: center; color: #dadce0; padding: 10px 12px; border-radius: 8px; font-weight: 600; margin: 0 8px; }
.admin-side a:hover, .admin-side a.active { background: #3c4043; color: #fff; text-decoration: none; }
.admin-side a.active { border-left: 3px solid var(--g-blue); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bars .bar { flex: 1; background: var(--g-blue); border-radius: 4px 4px 0 0; min-height: 4px; position: relative; }
.bars .bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--gray-600); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters .form-control { width: auto; }

/* ---------- footer ---------- */
.kz-footer { background: var(--ink); color: #dadce0; padding: 0 0 0; margin-top: auto; }
.kz-footer-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding: 34px 0 0; }
.kz-footer .kz-logo { color: #fff; }
.kz-footer-links { display: flex; gap: 18px; }
.kz-footer-links a { color: #dadce0; }
.kz-copy { border-top: 1px solid #3c4043; margin-top: 22px; padding: 14px 20px; font-size: .85rem; color: var(--gray-500); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--gray-600); }
.empty .e-icon { font-size: 3rem; color: var(--gray-200); margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .book-layout, .admin-layout { grid-template-columns: 1fr; }
    .admin-side { position: static; display: flex; overflow-x: auto; padding: 0 0 10px; }
    .admin-side .g-strip { display: none; }
    .admin-side a { white-space: nowrap; margin: 8px 4px 0; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.1rem; }
    #map { height: 340px; }
}
@media (max-width: 640px) {
    .kz-nav-toggle { display: block; }
    .kz-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 18px; border-bottom: 1px solid var(--gray-200); gap: 10px; }
    .kz-links.open { display: flex; }
    .kz-nav { position: relative; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .vtype-pick { grid-template-columns: 1fr 1fr; }
}
