@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --teal: #0E7C7B;
    --teal-dark: #085E5D;
    --teal-light: #E0F5F5;
    --teal-mid: #1A9A99;
    --cyan: #00BCD4;
    --text: #1A1A2E;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --bg: #F5F7FA;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --yellow: #F59E0B;
    --blue: #3B82F6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --r: 16px;
    --r-sm: 8px;
    --r-pill: 100px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background: #E8ECEF;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
}

.app-shell {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

@media (min-height: 700px) and (min-width: 420px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .app-shell {
        height: 90vh;
        max-height: 860px;
        border-radius: 30px;
        overflow: hidden;
    }
}

/* Page Scroll Area */
.page {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

.page::-webkit-scrollbar {
    display: none;
}

/* ---- TOP BAR ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--teal);
}

.topbar-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.topbar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.topbar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: 70px;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-item.active {
    color: var(--teal);
}

.nav-item.active .nav-icon-bg {
    background: var(--teal-light);
    border-radius: 12px;
}

.nav-icon-bg {
    padding: 4px 12px;
}

.nav-badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 18px);
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

/* ---- HERO / BANNER CARD ---- */
.hero-card {
    margin: 16px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--r);
    padding: 24px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 40px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 6px;
}

.hero-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

.hero-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--r-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.hero-btn-primary {
    background: white;
    color: var(--teal);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ---- SECTION ---- */
.section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
}

.section-link {
    font-size: 14px;
    color: var(--teal);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

/* ---- CARD ---- */
.card {
    background: var(--card);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

/* ---- SERVICE GRID ---- */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-card {
    background: var(--card);
    border-radius: var(--r);
    padding: 20px 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow);
}

.service-card:active {
    transform: scale(0.97);
}

.service-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 22px;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.service-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- TASKER CARD ---- */
.tasker-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.tasker-item:last-child {
    border-bottom: none;
}

.tasker-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--teal-light);
}

.tasker-name {
    font-weight: 600;
    font-size: 16px;
}

.tasker-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.tasker-rating {
    color: var(--yellow);
    font-weight: 600;
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--r-pill);
}

.badge-teal {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.badge-orange {
    background: #FEF3C7;
    color: #92400E;
}

.badge-green {
    background: #D1FAE5;
    color: var(--success);
}

.badge-red {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-gray {
    background: var(--bg);
    color: var(--text-muted);
}

/* ---- BOOKING CARD ---- */
.booking-card {
    background: var(--card);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: border 0.2s;
}

.booking-card.active {
    border-color: var(--teal);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.booking-service {
    font-size: 16px;
    font-weight: 600;
}

.booking-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.booking-info svg {
    flex-shrink: 0;
}

.booking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.booking-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--r-pill);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--teal);
    color: white;
}

.btn-primary:hover {
    background: var(--teal-dark);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--teal);
    color: var(--teal);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
}

/* ---- FORMS ---- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 16px;
    color: var(--text);
    background: var(--card);
    transition: border 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--teal);
}

textarea.form-control {
    resize: none;
}

/* ---- PROGRESS STEPS ---- */
.steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: var(--border);
    color: var(--text-muted);
}

.step-circle.active {
    background: var(--teal);
    color: white;
}

.step-circle.done {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-muted);
    text-align: center;
}

.step-label.active {
    color: var(--teal);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    margin-bottom: 20px;
}

.step-line.done {
    background: var(--teal);
}

/* ---- CHAT ---- */
.chat-bubble {
    max-width: 80%;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.5;
}

.chat-bubble.ai {
    background: var(--card);
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow);
}

.chat-bubble.user {
    background: var(--teal);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-timestamp {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.chat-quick-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.chat-quick-btn:hover {
    background: var(--teal-light);
}

/* ---- NOTIFICATION BANNER ---- */
.booking-live-banner {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--r);
    padding: 20px;
    color: white;
    margin-bottom: 16px;
}

/* ---- ANIMATIONS ---- */
.fade-in {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- LOADING SPINNER ---- */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--teal-light);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* SOS button */
.sos-btn {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    position: fixed;
    bottom: 90px;
    right: 20px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    }

    50% {
        box-shadow: 0 4px 24px rgba(220, 38, 38, 0.8);
    }
}

.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    border: none;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(14, 124, 123, 0.5);
    cursor: pointer;
    z-index: 999;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 14px;
    transition: 0.3s;
}

.slider::before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked+.slider {
    background: var(--teal);
}

input:checked+.slider::before {
    transform: translateX(24px);
}

/* Image card scroll */
.scroll-x {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.scroll-x::-webkit-scrollbar {
    display: none;
}

.featured-card {
    flex-shrink: 0;
    width: 200px;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.featured-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.featured-body {
    padding: 12px;
}

/* Payment cards */
.payment-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card);
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-method.selected {
    border-color: var(--teal);
}

.payment-logo {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    background: #1A1A2E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

/* Checklist */
.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.check-item:last-child {
    border-bottom: none;
}

.checkbox {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox.checked {
    background: var(--teal);
    border-color: var(--teal);
}

/* Alert Banner */
.alert {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.alert-info {
    background: var(--teal-light);
    color: var(--teal-dark);
    border-left: 4px solid var(--teal);
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid var(--yellow);
}

/* Transaction list */
.txn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.txn-item:last-child {
    border-bottom: none;
}

.txn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.txn-amount {
    font-weight: 700;
    font-size: 16px;
}

.txn-amount.minus {
    color: var(--text);
}

.txn-amount.plus {
    color: var(--success);
}