/* ==================== DESIGN SYSTEM ==================== */
:root {
    --primary: #FBBF24;
    --primary-dark: #D97706;
    --primary-bg: rgba(251, 191, 36, 0.1);
    --orange: #F5A623;
    --orange-dark: #E8951A;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --bg: #F9FAFB;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --input-bg: #F3F4F6;
    --text: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);

    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --nav-height: 68px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.link-primary {
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
}

/* ==================== SPLASH ==================== */
.splash {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeOut 0.5s 1.5s forwards;
}

.splash-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--orange), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.splash-icon .material-icons-round {
    font-size: 40px;
}

.splash-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-top: 16px;
}

.splash-sub {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ==================== PAGES ==================== */
.page {
    display: none;
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + 20px);
}

.page.active {
    display: block;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.page-header h2 {
    font-size: 17px;
    font-weight: 700;
    flex: 1;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
}

/* ==================== HOME HERO ==================== */
.home-hero {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0.05) 80%, transparent 100%);
    padding: 48px 16px 20px;
    border-radius: 0 0 24px 24px;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hero-greeting {
    font-size: 18px;
    font-weight: 700;
}

.points-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--surface);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ==================== BANNER SLIDER ==================== */
.banner-slider {
    padding: 16px 16px 0;
    overflow: hidden;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 140px;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.banner-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.banner-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--orange);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 0 16px;
    margin-top: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.service-item:active .service-circle {
    transform: scale(0.92);
}

.service-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s;
}

.service-circle .material-icons-round {
    font-size: 26px;
}

.service-circle.blue {
    background: #DBEAFE;
    color: #2563EB;
}

.service-circle.orange {
    background: #FFEDD5;
    color: #EA580C;
}

.service-circle.cyan {
    background: #CFFAFE;
    color: #0891B2;
}

.service-circle.sky {
    background: #E0F2FE;
    color: #0284C7;
}

.service-circle.yellow {
    background: #FEF3C7;
    color: #D97706;
}

.service-circle.amber {
    background: #FEF3C7;
    color: #B45309;
}

.service-circle.green {
    background: #D1FAE5;
    color: #059669;
}

.service-circle.teal {
    background: #CCFBF1;
    color: #0D9488;
}

.service-circle.indigo {
    background: #E0E7FF;
    color: #4F46E5;
}

.service-circle.gray {
    background: #F3F4F6;
    color: #6B7280;
}

.service-circle.rose {
    background: #FFE4E6;
    color: #E11D48;
}

.service-circle.purple {
    background: #F3E8FF;
    color: #7C3AED;
}

.service-name {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    color: var(--text);
}

/* ==================== AREA MAP ==================== */
.area-map {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E7EB;
    position: relative;
}

.map-roads {
    position: absolute;
    inset: 0;
}

.map-roads::before,
.map-roads::after {
    content: '';
    position: absolute;
    background: #fff;
    opacity: 0.6;
}

.map-roads::before {
    width: 2px;
    height: 120%;
    top: -10%;
    left: 30%;
    transform: rotate(12deg);
}

.map-roads::after {
    width: 120%;
    height: 2px;
    top: 40%;
    left: -10%;
    transform: rotate(3deg);
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-pin .material-icons-round {
    font-size: 14px;
}

/* ==================== SERVICE DETAIL ==================== */
.sd-hero {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.sd-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-hero-nav {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
}

.sd-hero-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sd-hero-right {
    display: flex;
    gap: 8px;
}

.sd-info-card {
    background: var(--surface);
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: -20px;
    position: relative;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sd-title {
    font-size: 22px;
    font-weight: 700;
}

.sd-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sd-rating {
    color: var(--orange);
    font-weight: 600;
}

.sd-active {
    color: var(--success);
    font-weight: 600;
}

.sd-icon-big {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-icon-big .material-icons-round {
    font-size: 28px;
    color: var(--primary-dark);
}

.sd-section {
    padding: 0 16px;
    margin-top: 20px;
}

.sd-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Price items */
.price-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: all 0.15s;
}

.price-item:active {
    background: var(--input-bg);
}

.price-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-item-info {
    flex: 1;
}

.price-item-name {
    font-size: 15px;
    font-weight: 600;
}

.price-item-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.price-item-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--orange);
}

.price-item-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background: none;
    color: var(--orange);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

/* Description */
.sd-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.sd-features {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Reviews */
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    min-width: 240px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
}

.review-stars {
    color: var(--orange);
    font-size: 12px;
}

.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Fixed bottom bar */
.sd-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
}

.sd-total-label {
    font-size: 12px;
    color: var(--text-muted);
}

.sd-total-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

/* ==================== BOOKING FORM ==================== */
.booking-content {
    padding: 16px;
}

.bk-address-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.bk-map-preview {
    width: 100%;
    height: 120px;
    background: #E5E7EB;
    position: relative;
}

.bk-map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: var(--orange);
    font-size: 32px;
}

.bk-address-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bk-address-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-address-icon .material-icons-round {
    color: var(--primary-dark);
}

.bk-address-text {
    flex: 1;
}

.bk-address-label {
    font-size: 14px;
    font-weight: 600;
}

.bk-address-detail {
    font-size: 12px;
    color: var(--text-muted);
}

.bk-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Date chips */
.date-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.date-chips::-webkit-scrollbar {
    display: none;
}

.date-chip {
    min-width: 72px;
    padding: 10px 8px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border);
    background: var(--surface);
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
}

.date-chip.active {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.date-chip-day {
    font-size: 11px;
    font-weight: 500;
}

.date-chip-num {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}

/* Time chips */
.time-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.time-chip {
    padding: 10px 16px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.time-chip.active {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.time-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-input-icon {
    position: relative;
}

.form-input-icon .material-icons-round {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.form-input-icon input {
    padding-left: 44px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-outline {
    background: none;
    border: 2px solid var(--orange);
    color: var(--orange);
}

.btn-outline-danger {
    background: none;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* ==================== ORDERS ==================== */
.order-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    padding: 0 16px;
    background: var(--surface);
    position: sticky;
    top: 53px;
    z-index: 9;
}

.order-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.order-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.orders-list {
    padding: 16px;
}

.month-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 16px 0 8px;
}

.order-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
}

.order-card:active {
    background: var(--input-bg);
}

.order-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-info {
    flex: 1;
}

.order-worker {
    font-size: 15px;
    font-weight: 700;
}

.order-service-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.order-total-label {
    font-size: 12px;
    color: var(--text-muted);
}

.order-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--orange);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge-info {
    background: #DBEAFE;
    color: #2563EB;
}

.badge-primary {
    background: #FDE68A;
    color: #92400E;
}

.badge-success {
    background: #D1FAE5;
    color: #047857;
}

.badge-danger {
    background: #FEE2E2;
    color: #DC2626;
}

.badge-active {
    background: #ECFDF5;
    color: #059669;
}

/* ==================== PROFILE ==================== */
.profile-hero {
    background: linear-gradient(180deg, var(--primary) 0%, #FDE68A 100%);
    padding: 40px 20px 60px;
    text-align: center;
    border-radius: 0 0 32px 32px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.profile-phone {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.profile-balance {
    margin: -32px 16px 0;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.balance-amount {
    font-size: 24px;
    font-weight: 800;
}

.balance-cashback {
    font-size: 12px;
    color: var(--success);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-topup {
    background: var(--orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-xs);
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-menu {
    padding: 16px 16px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
}

.profile-menu-item:active {
    background: var(--input-bg);
}

.profile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-icon.orange {
    background: #FFEDD5;
    color: #EA580C;
}

.profile-menu-icon.red {
    background: #FEE2E2;
    color: #DC2626;
}

.profile-menu-icon.green {
    background: #D1FAE5;
    color: #059669;
}

.profile-menu-icon.yellow {
    background: #FEF3C7;
    color: #D97706;
}

.profile-menu-icon.blue {
    background: #DBEAFE;
    color: #2563EB;
}

.profile-menu-icon.purple {
    background: #F3E8FF;
    color: #7C3AED;
}

.profile-menu-text {
    flex: 1;
}

.profile-menu-text span {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.profile-menu-text small {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-menu-arrow {
    color: var(--text-muted);
    font-size: 20px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.version-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-bottom: 16px;
}

/* ==================== AUTH ==================== */
.auth-container {
    min-height: 100vh;
}

.auth-header {
    text-align: center;
    padding: 48px 20px 24px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--orange), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.auth-icon .material-icons-round {
    font-size: 36px;
    color: #fff;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.auth-welcome {
    font-size: 20px;
    font-weight: 700;
    margin-top: 20px;
}

.auth-tabs {
    display: flex;
    margin: 0 20px 24px;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.auth-form {
    padding: 0 20px;
}

.auth-error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
    min-height: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--orange);
    font-weight: 600;
}

/* ==================== REVIEW PAGE ==================== */
.review-page-content {
    padding: 20px;
    text-align: center;
}

.review-worker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--input-bg);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.review-check {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.review-complete-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.review-worker-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 16px 0;
}

.rating-star {
    font-size: 36px;
    cursor: pointer;
    color: var(--border);
    transition: all 0.15s;
}

.rating-star.active {
    color: var(--orange);
}

.rating-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.review-tag {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    cursor: pointer;
    background: var(--surface);
}

.review-tag.active {
    border-color: var(--orange);
    background: var(--primary-bg);
    color: var(--primary-dark);
}

/* ==================== BOTTOM NAV ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
    padding: 0 8px;
}

.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.bnav-item .material-icons-round {
    font-size: 24px;
}

.bnav-item.active {
    color: var(--orange);
}

/* ==================== FLOATING VOUCHER ==================== */
.floating-voucher {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    right: 16px;
    z-index: 40;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.voucher-badge {
    background: #DC2626;
    color: #fff;
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    transform: rotate(-5deg);
    border: 2px solid #fff;
}

.voucher-label {
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    color: #FDE047;
    text-transform: uppercase;
}

.voucher-amount {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    line-height: 1;
}

.voucher-cta {
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    background: #fff;
    color: #DC2626;
    border-radius: 3px;
    padding: 1px 4px;
    margin-top: 4px;
}

.voucher-percent {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FBBF24;
    color: #92400E;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state .material-icons-round {
    font-size: 48px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
    margin-top: 8px;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    top: 20px;
    left: 16px;
    right: 16px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    z-index: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.toast-success {
    background: var(--success);
    color: #fff;
}

.toast-error {
    background: var(--danger);
    color: #fff;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* ==================== LOADING ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== RESPONSIVE - ALL DEVICES ==================== */

/* Safe area for notched phones (iPhone X+, etc.) */
@supports (padding: env(safe-area-inset-bottom)) {
    .bottom-nav {
        height: calc(var(--nav-height) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }

    .page {
        padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 20px);
    }

    .floating-voucher {
        bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);
    }

    .sd-bottom-bar {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Extra small phones (iPhone SE, Galaxy S mini - 320px) */
@media (max-width: 359px) {
    .app-container {
        max-width: 100%;
    }

    .home-hero {
        padding: 40px 12px 16px;
    }

    .hero-greeting {
        font-size: 16px;
    }

    .search-bar input {
        padding: 12px 12px 12px 40px;
        font-size: 13px;
    }

    .section {
        padding: 0 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 6px;
    }

    .service-circle {
        width: 48px;
        height: 48px;
    }

    .service-circle .material-icons-round {
        font-size: 22px;
    }

    .service-name {
        font-size: 10px;
    }

    .banner-slide {
        height: 110px;
    }

    .banner-title {
        font-size: 13px;
    }

    .banner-sub {
        font-size: 11px;
    }

    .sd-title {
        font-size: 18px;
    }

    .sd-hero {
        height: 180px;
    }

    .price-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .price-item-icon {
        width: 36px;
        height: 36px;
    }

    .price-item-name {
        font-size: 13px;
    }

    .price-item-amount {
        font-size: 14px;
    }

    .date-chip {
        min-width: 60px;
        padding: 8px 6px;
    }

    .date-chip-num {
        font-size: 17px;
    }

    .time-chip {
        padding: 8px 12px;
        font-size: 13px;
    }

    .booking-content {
        padding: 12px;
    }

    .bk-map-preview {
        height: 100px;
    }

    .order-card {
        padding: 12px;
    }

    .order-icon {
        width: 40px;
        height: 40px;
    }

    .order-worker {
        font-size: 13px;
    }

    .order-total {
        font-size: 16px;
    }

    .profile-hero {
        padding: 32px 16px 48px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-name {
        font-size: 17px;
    }

    .balance-amount {
        font-size: 20px;
    }

    .profile-balance {
        margin: -24px 12px 0;
        padding: 12px 16px;
    }

    .profile-menu {
        padding: 12px 12px 0;
    }

    .profile-menu-item {
        padding: 12px;
        gap: 10px;
    }

    .profile-menu-icon {
        width: 34px;
        height: 34px;
    }

    .auth-header {
        padding: 36px 16px 20px;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-form {
        padding: 0 16px;
    }

    .form-group input {
        padding: 12px 14px;
    }

    .form-input-icon input {
        padding-left: 40px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .review-worker-avatar {
        width: 64px;
        height: 64px;
    }

    .review-complete-text {
        font-size: 18px;
    }

    .rating-star {
        font-size: 30px;
    }

    .review-tags {
        gap: 6px;
    }

    .review-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-header h2 {
        font-size: 15px;
    }

    .orders-list {
        padding: 12px;
    }
}

/* Small phones (360px - 389px) */
@media (min-width: 360px) and (max-width: 389px) {
    .app-container {
        max-width: 100%;
    }

    .services-grid {
        gap: 14px 8px;
    }

    .service-circle {
        width: 52px;
        height: 52px;
    }

    .service-name {
        font-size: 11px;
    }

    .banner-slide {
        height: 125px;
    }
}

/* Standard phones (390px - 430px, iPhone 14, Pixel 7, etc.) */
@media (min-width: 390px) and (max-width: 430px) {
    .app-container {
        max-width: 100%;
    }
}

/* Large phones (430px+, iPhone 14 Pro Max, etc.) */
@media (min-width: 431px) and (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
}

/* Tablet & Desktop (480px+) */
@media (min-width: 481px) {
    .app-container {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: -1px 0 0 var(--border), 1px 0 0 var(--border);
    }

    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .sd-bottom-bar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .toast {
        max-width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .floating-voucher {
        right: calc(50% - 240px + 16px);
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .splash {
        padding: 20px;
    }

    .splash-icon {
        width: 56px;
        height: 56px;
    }

    .splash-title {
        font-size: 22px;
        margin-top: 8px;
    }

    .home-hero {
        padding: 20px 16px 12px;
    }

    .sd-hero {
        height: 160px;
    }

    .profile-hero {
        padding: 20px 20px 40px;
    }

    .auth-header {
        padding: 20px 20px 16px;
    }

    .bk-map-preview {
        height: 80px;
    }

    .area-map {
        height: 120px;
    }
}

/* Touch target minimum sizes */
button,
a,
.service-item,
.date-chip,
.time-chip,
.review-tag,
.order-card,
.profile-menu-item {
    min-height: 44px;
}

/* Prevent zoom on input focus (iOS) */
@media screen and (max-width: 480px) {

    input[type="text"],
    input[type="tel"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Ready for dark mode toggle - add .dark class to body */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .splash {
        animation: none;
        opacity: 0;
        visibility: hidden;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0 0 2px var(--text);
        --shadow-sm: 0 0 0 1px var(--text);
        --border: #374151;
    }
}

/* Deposit */
.deposit-chip {
    flex: 1;
    padding: 10px 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    color: var(--text);
    transition: all 0.15s;
}

.deposit-chip:active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}