:root {
    --primary: #1fd407;
    --primary-dark: #15803d;
    --danger: #dc2626;
    --bg: #f0fdf4;
    --panel: #ffffff;
    --muted: #64748b;
    --text: #0f172a;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    --radius: 16px;
}
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    background: linear-gradient(135deg, #e6f7ff 0%, #e0f2fe 40%, #f0fdf4 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", Segoe UI, Roboto,
        Arial, sans-serif;
    color: var(--text);
}

/* Phone container (mobile-first 430px max) */
.phone {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--panel);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Header */
.header {
    background: #20cc07;
    color: #fff;
    padding: 14px 14px 16px;
    position: relative;
}
.header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.menu-btn,
.bell-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    font-size: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo {
    width: 42px;
    height: 42px;
    background: #000000;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
}
.welcome {
    line-height: 1.1;
}
.welcome .name {
    font-weight: 700;
}
.welcome .sub {
    font-size: 12px;
    opacity: 0.9;
}
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border-radius: 999px;
}

/* Views */
main {
    padding: 14px;
    padding-bottom: 86px;
    background: linear-gradient(180deg, transparent 0%, #f8fafc 60%);
}
.view {
    display: none;
    animation: fade 0.25s ease;
}
.view.active {
    display: block;
}
@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards & small UI */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #eef2f7;
}
.card-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}
.card-t {
    font-weight: 800;
}
.muted {
    color: var(--muted);
    font-size: 12px;
}
.body {
    padding: 12px 16px;
}

/* Status banner */
.status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
    margin-right: 8px;
    display: inline-block;
}
.dot.off {
    background: #cbd5e1;
}
.toggle {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    color: #fff;
    background: var(--danger);
}
.toggle.off {
    background: var(--primary);
}

/* 3-col stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 16px;
}
.stat {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.s-l {
    font-size: 11px;
    color: var(--muted);
}
.s-v {
    font-size: 20px;
    font-weight: 900;
}

/* Earnings rows */
.e-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e5e7eb;
}
.e-row:last-child {
    border-bottom: none;
    font-weight: 800;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
    margin-top: 6px;
}

/* Requests */
.req {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}
.req-h {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.fare {
    font-weight: 900;
    color: var(--primary);
}
.route {
    font-size: 13px;
    color: #334155;
    margin: 6px 0;
    font-weight: 600;
}
.req-meta {
    font-size: 12px;
    color: var(--muted);
}
.actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}
.primary {
    background: var(--primary);
    color: #fff;
}
.danger {
    background: #ef4444;
    color: #fff;
}

/* History items */
.hist {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
}
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.ok {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.no {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Due */
.due-sum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(
        135deg,
        rgba(22, 163, 74, 0.08),
        rgba(16, 185, 129, 0.06)
    );
    border-top: 1px solid rgba(22, 163, 74, 0.16);
}
.due-amt {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
}
.due-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 8px 0;
    background: #f8fafc;
}

/* Bottom nav */
.nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    display: flex;
    gap: 8px;
    padding: 10px 12px 18px;
    background: #fff;
    border-top: 1px solid #e5e7ebbb;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.06);
}
.nav button {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 12px 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
}
.nav button.active {
    background: var(--primary);
    color: #fff;
}

/* Drawer & Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 90;
}
.overlay.show {
    opacity: 1;
    visibility: visible;
}
.drawer {
    position: fixed;
    left: -320px;
    top: 0;
    height: 100%;
    width: 280px;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}
.drawer.show {
    left: 0;
}
.d-top {
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    gap: 10px;
}
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
}
.d-link {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.d-link:active {
    background: #f8fafc;
}

/* Notification panel (right) */
.panel {
    position: fixed;
    right: -320px;
    top: 0;
    height: 100%;
    width: 280px;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}
.panel.show {
    right: 0;
}
.p-top {
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Install banner */
.install {
    position: fixed;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px 12px;
    display: none;
    z-index: 80;
}
.install.show {
    display: flex;
    gap: 8px;
    align-items: center;
}
.install .i-btn {
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 800;
}
a {
    color: black;
    text-decoration: none;
}
.custom-submit-btn{
    background: #16a34a;
    border: 1px solid lightseagreen;
    height: 2rem;
    cursor: pointer;
    margin-top: 1.4rem;
    border-radius: 4px;
}
#paidAmt{
    display:none;
}