:root {
    --primary: #ff6b00;
    --primary-dark: #e55f00;
    --primary-light: #fff3e7;
    --bg: #f5f5f7;
    --white: #ffffff;
    --text: #151515;
    --muted: #8d8d8d;
    --border: #ececec;
    --success: #1fb95d;
    --danger: #ff5a3c;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    padding-bottom: 100px;
    overflow-x: hidden;
}

button, input, textarea {
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-wrapper {
    max-width: 520px;
    margin: auto;
    padding: 18px;
}

/* HERO */
.hero {
    background: linear-gradient(145deg, #0f0f0f, #1d1d1d);
    border-radius: 36px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.hero small {
    color: #cfcfcf;
    font-size: 13px;
}

.hero h1 {
    color: white;
    font-size: 24px;
    margin-top: 4px;
    font-weight: 700;
}

.hero-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

/* SEARCH */
.search-box {
    margin-top: 24px;
    background: white;
    height: 62px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    z-index: 2;
    gap: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box input::placeholder {
    color: #bbb;
    font-size: 14px;
}

.search-icon {
    color: #999;
}

.scan-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* QUICK ACTIONS */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
    position: relative;
    z-index: 2;
}

.quick-card {
    background: white;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
}

.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* SECTION */
.section {
    margin-top: 28px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: white;
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card h2 {
    font-size: 34px;
    margin-top: 16px;
    color: var(--primary);
}

.stat-card p {
    color: #777;
    margin-top: 6px;
    font-size: 14px;
}

/* EARNINGS CARD (RIDER) */
.earnings-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 28px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
}

.earnings-card small {
    opacity: 0.9;
    font-size: 13px;
}

.earnings-card h2 {
    font-size: 36px;
    margin-top: 8px;
}

.earnings-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.2);
}

/* DELIVERY CARD */
.delivery-card {
    background: white;
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    transition: all 0.3s;
}

.delivery-card:hover {
    transform: translateX(4px);
}

.delivery-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.delivery-left {
    display: flex;
    gap: 14px;
}

.delivery-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.delivery-id {
    color: #777;
    font-size: 12px;
}

.delivery-name {
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}

.status-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-delivered {
    background: #e8fff1;
    color: var(--success);
}

.status-enroute {
    background: #eef5ff;
    color: #2563eb;
}

/* ROUTE */
.route {
    margin-top: 20px;
}

.route-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.route-line-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.route-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pickup {
    background: var(--success);
}

.dropoff {
    background: var(--danger);
}

.route-line {
    width: 2px;
    flex: 1;
    background: #ddd;
    margin-top: 4px;
    min-height: 30px;
}

.route-content small {
    color: #888;
    font-size: 12px;
}

.route-content p {
    margin-top: 4px;
    font-weight: 600;
    font-size: 14px;
}

/* BUTTONS */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,0,.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-success {
    background: var(--success);
    color: white;
}

/* ZONE CARD */
.zone-card {
    background: white;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.zone-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.area-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.zone-fee {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* FORM CARD */
.form-card {
    background: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
}

.input-group {
    height: 56px;
    background: #f5f5f5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.input-group i {
    color: var(--primary);
}

.input-group input,
.input-group textarea {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #bbb;
}

.input-group textarea {
    padding: 12px 0;
    resize: none;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ONLINE TOGGLE */
.online-toggle {
    background: white;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: #ddd;
    border-radius: 28px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-knob {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.toggle-switch.active .toggle-knob {
    left: 26px;
}

/* EMPTY */
.empty-state {
    background: white;
    border-radius: 30px;
    padding: 50px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.empty-state p {
    color: #888;
    font-size: 14px;
}

/* BOTTOM NAV - DYNAMIC */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,.95);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 999;
}

.bottom-nav-inner {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
}

.nav-item {
    text-align: center;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 20px;
}

.nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--primary-light);
}

.nav-active {
    color: var(--primary);
    background: var(--primary-light);
}

/* SIDEBAR */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 99999;
    transition: .3s;
    padding: 24px;
    overflow: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 32px;
    padding: 28px;
}

.login-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}
/* Modern Dropdown Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f5f5f5;
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 40px !important;
}

select:focus {
    border-color: var(--primary);
}

select option {
    background: white;
    color: #333;
    padding: 12px;
}

/* Disabled select */
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modern Input Styling */
.input-group select {
    background-color: #f5f5f5;
    padding: 0 16px;
    height: 100%;
    width: 100%;
}

/* Card Selector for Better UX */
.selector-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
}

.selector-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.selector-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.selector-card-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.selector-card-subtitle {
    font-size: 12px;
    color: #888;
}

.selector-card-price {
    color: var(--primary);
    font-weight: 700;
    margin-top: 8px;
}
/* Mobile Responsive Form */
.form-card {
    background: white;
    border-radius: 28px;
    padding: 20px;
    box-shadow: var(--shadow);
}

/* Full width inputs on mobile */
.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.input-group {
    height: 52px;
    background: #f5f5f5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    width: 100%;
}

.input-group i {
    color: var(--primary);
    min-width: 20px;
}

.input-group input,
.input-group select,
.input-group textarea {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 15px;
    width: 100%;
}

/* Stack all inputs vertically on mobile */
.row-2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* For tablets and larger, use 2 columns */
@media (min-width: 480px) {
    .row-2 {
        flex-direction: row;
        gap: 12px;
    }
    .row-2 .form-group {
        flex: 1;
    }
}

/* Better select styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 36px !important;
}

/* Delivery fee display */
#feeDisplay {
    background: var(--primary-light);
    border-radius: 20px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

#totalFeeDisplay {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* Selected area info */
#selectedAreaInfo {
    background: #e8f5e9;
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
}

/* Zone cards for better mobile view */
.selector-card {
    background: white;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
}

.selector-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.selector-card-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.selector-card-subtitle {
    font-size: 12px;
    color: #888;
}

.selector-card-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
}
/* Delivery price styling */
.delivery-price {
    text-align: right;
    min-width: 100px;
}

.delivery-price .status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
}
/* Ensure buttons don't stretch full width */
.action-buttons .btn,
.delivery-card .btn {
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
}

/* For mobile, make buttons slightly smaller */
@media (max-width: 480px) {
    .delivery-card .btn {
        min-width: 80px;
        padding: 0 12px !important;
        font-size: 11px !important;
    }
}
.notification-dot {
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 999px;
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 0 5px;
}
#installAppBtn {
    display: none;
}

#installAppBtn.visible {
    display: flex;
}
.hero-avatar-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.upload-photo-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* For sidebar avatar */
.sidebar-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}