/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(5,150,105,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

.nav-links li a:hover {
    opacity: 0.8;
}

.login-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
}

.nav-logo-left {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background-color: white;
}

.nav-logo-right {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    vertical-align: middle;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Dropdown styles (Modern Glassmorphism) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; /* invisible hover bridge */
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 230px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    z-index: 1001;
    top: calc(100% + 10px);
    left: -15px;
    overflow: hidden;
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-content a {
    color: #374151 !important;
    padding: 14px 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500 !important;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-content a i {
    font-size: 16px;
    color: #059669;
    width: 20px;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(5, 150, 105, 0.06);
    color: #059669 !important;
    padding-left: 28px; /* smooth right shift */
}

.dropdown-content a:hover i {
    transform: scale(1.15);
    opacity: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Main Background */
.main-bg {
    background-color: #eaf8fc;
    padding-bottom: 60px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-logo-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.hero-logo {
    width: 80%;
    height: auto;
}

.hero h1 {
    font-size: 36px;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #1a96fc;
    color: white;
}

.btn-secondary {
    background-color: #38b059;
    color: white;
}

/* Services Section */
.services {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: rgba(255,255,255,0.4);
    padding: 30px;
    border-radius: 20px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.icon-wrapper {
    font-size: 32px;
    margin-bottom: 15px;
    color: #666;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}

.service-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    min-height: 40px;
}

.btn-service {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.btn-service:hover {
    opacity: 0.9;
}

.btn-blue { background-color: #007bff; }
.btn-green { background-color: #28a745; }
.btn-yellow { background-color: #ffc107; color: #222; }
.btn-purple { background-color: #6f42c1; }


/* Features Section */
.features {
    text-align: center;
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.features h2 {
    font-size: 28px;
    margin-bottom: 50px;
    color: #222;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.text-yellow { color: #fbc02d; }
.text-red { color: #e53935; }
.text-dark { color: #e53935; /* Same pin color for map marker */ }

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 20px 20px 80px;
    display: flex;
    justify-content: center;
}

.testimonials-bg {
    background: linear-gradient(135deg, #1f303e 0%, #253e48 100%);
    color: white;
    border-radius: 24px;
    padding: 60px 20px;
    max-width: 1200px;
    width: 95%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.testimonials-bg h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.divider {
    height: 4px;
    width: 70px;
    background: linear-gradient(90deg, #1a96fc, #06b6d4);
    margin: 0 auto 50px;
    border-radius: 2px;
}

.testimonials-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.testimonials-grid {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-left 35s linear infinite;
    padding: 20px 0;
}

.testimonials-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); }
}

.testimonial-card {
    background: white;
    color: #333;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 450px; /* Wider for good accessibility */
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 5px solid transparent;
}

.testimonial-card:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-bottom: 5px solid #1a96fc;
}

.stars {
    color: #ffb300;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-card p {
    font-size: 14px;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    min-height: 45px;
}

.testimonial-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #7468c4 0%, #8967b5 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.white-divider {
    background-color: white;
}

.about p {
    font-size: 16px;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 60px 20px;
    background-color: #f9fbfd;
    text-align: center;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-wrapper h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #555;
    background: #f4f9ff;
    padding: 15px 25px;
    border-radius: 50px;
}

.info-item i {
    color: #1a96fc;
    font-size: 20px;
}

/* Login Section */
.login-section {
    padding: 60px 20px 100px;
    background-color: #ffffff;
    text-align: center;
}

.login-wrapper {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.login-wrapper h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #222;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.login-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #1a96fc;
}

.w-100 {
    width: 100%;
}

/* Footer */
footer {
    background-color: #2b2b2b;
    color: #aaa;
    text-align: center;
    padding: 25px 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .services-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Service Pages Enhancements */
.service-header {
    text-align: center;
    padding: 60px 20px 20px;
}

.service-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1f303e;
    margin-bottom: 15px;
}

.service-header p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.service-feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    width: 280px;
    flex-grow: 1;
    max-width: 350px;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 5px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom: 5px solid #1a96fc;
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #eaf8fc;
    color: #1a96fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: background 0.3s, color 0.3s;
}

.feature-card:hover .icon-wrapper {
    background: #1a96fc;
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    color: #222;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.price-tag {
    font-size: 24px;
    font-weight: 700;
    color: #38b059;
    margin-bottom: 20px;
}

.step-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.step-item {
    background: #1f303e;
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.step-number {
    background: #1a96fc;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

@media (max-width: 480px) {
    .services-container {
        grid-template-columns: 1fr;
    }
}

/* Custom Form Styles */
.custom-form-section {
    padding: 60px 20px 100px;
    background: #f8faff;
}

.custom-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.custom-form-container h2 {
    font-size: 32px;
    color: #1f303e;
    margin-bottom: 20px;
    text-align: center;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.form-control {
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    background: #fafcff;
}

.form-control:focus {
    border-color: #1a96fc;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(26,150,252,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
}

/* Bill Payment — PhonePe / BHIM style */
.bill-page {
    min-height: calc(100vh - 200px);
}

.bill-view {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.bill-view.active {
    display: block;
}

.bill-hero {
    text-align: center;
    padding: 50px 20px 30px;
}

.bill-hero h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f303e;
    margin-bottom: 10px;
}

.bill-hero p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.bill-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.bill-search-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.bill-search-wrap input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid #e1e8ed;
    border-radius: 14px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.bill-search-wrap input:focus {
    outline: none;
    border-color: #1a96fc;
    box-shadow: 0 0 0 4px rgba(26,150,252,0.12);
}

.recent-section {
    padding: 10px 20px 30px;
}

.recent-section h3,
.bill-categories-section h3 {
    font-size: 18px;
    color: #1f303e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 240px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    font-family: 'Outfit', sans-serif;
}

.recent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.recent-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.recent-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.recent-info strong {
    font-size: 14px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-info small {
    font-size: 12px;
    color: #888;
}

.recent-amount {
    font-weight: 700;
    color: #38b059;
    font-size: 15px;
}

.bill-categories-section {
    padding: 10px 20px 30px;
}

.bill-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.bill-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: white;
    border: none;
    border-radius: 16px;
    padding: 22px 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    font-family: 'Outfit', sans-serif;
}

.bill-cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bill-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--cat-bg);
    color: var(--cat-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bill-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 30px;
}

.bill-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.bill-trust-bar i {
    color: #1a96fc;
    margin-right: 6px;
}

/* Payment Flow */
.flow-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 30px 20px 10px;
}

.back-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: background 0.2s;
}

.back-btn:hover {
    background: #f0f7ff;
    color: #1a96fc;
}

.flow-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.flow-header h2 {
    font-size: 22px;
    color: #1f303e;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s, transform 0.3s;
}

.step-dot.active {
    background: #1a96fc;
    transform: scale(1.3);
}

.step-dot.done {
    background: #38b059;
}

.step-line {
    width: 60px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
}

.flow-card {
    background: white;
    margin: 0 20px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.flow-step {
    display: none;
}

.flow-step.active {
    display: block;
}

.flow-step h3 {
    font-size: 18px;
    color: #1f303e;
    margin-bottom: 20px;
}

.recharge-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.amount-chip {
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.amount-chip:hover,
.amount-chip.selected {
    border-color: #1a96fc;
    background: #eaf8fc;
    color: #1a96fc;
}

.bill-action-btn {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.fetch-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #666;
    font-size: 15px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a96fc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner.large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bill-preview {
    background: #f8faff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e8eef5;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.preview-row span {
    color: #777;
}

.preview-row strong {
    color: #222;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.preview-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 4px;
    font-size: 16px;
}

.preview-amount {
    font-size: 28px !important;
    color: #38b059 !important;
}

/* Success */
.success-card {
    text-align: center;
    background: white;
    margin: 40px 20px;
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.success-icon {
    font-size: 72px;
    color: #38b059;
    margin-bottom: 16px;
}

.success-card h2 {
    font-size: 28px;
    color: #1f303e;
    margin-bottom: 8px;
}

.success-sub {
    color: #666;
    margin-bottom: 30px;
}

.success-details {
    background: #f8faff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.success-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.success-row:last-child {
    border-bottom: none;
}

.success-row span {
    color: #777;
}

.success-row strong {
    color: #222;
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.payment-modal.open {
    opacity: 1;
    visibility: visible;
}

.payment-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    padding: 30px 24px 40px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.payment-modal.open .payment-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.payment-modal-content h3 {
    font-size: 20px;
    color: #1f303e;
    margin-bottom: 8px;
}

.modal-biller {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.modal-amount {
    font-size: 32px;
    font-weight: 700;
    color: #38b059;
    margin-bottom: 24px;
}

.pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pay-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    border: 2px solid #eee;
    border-radius: 14px;
    background: white;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    transition: border-color 0.2s, background 0.2s;
}

.pay-method-btn:hover {
    border-color: #1a96fc;
    background: #f4f9ff;
}

.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.method-icon.upi { background: #4285f4; }
.method-icon.phonepe { background: #5f259f; }
.method-icon.bhim { background: #00a651; }
.method-icon.card { background: #ff6b35; }
.method-icon.netbank { background: #1a96fc; }
.method-icon.wallet { background: #ffc107; color: #333; }

.payment-processing {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.payment-processing.open {
    opacity: 1;
    visibility: visible;
}

.processing-content {
    text-align: center;
}

.processing-content p {
    margin-top: 16px;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.bill-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1f303e;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 4000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.bill-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 480px) {
    .bill-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .bill-cat-tile {
        padding: 16px 8px;
    }

    .bill-cat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .bill-cat-name {
        font-size: 11px;
    }

    .pay-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-card {
        padding: 20px;
    }
}

/* ═══════════════════════════════════════════
   Shared App UI — Blinkit / Zepto / PhonePe
   ═══════════════════════════════════════════ */
.app-page {
    padding-bottom: 90px;
}

.app-page.has-sticky-cart {
    padding-bottom: 120px;
}

/* Sticky service header */
.app-sticky-header {
    position: sticky;
    top: 72px;
    z-index: 900;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 14px 20px 16px;
}

.app-sticky-header.theme-green {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: white;
}

.app-sticky-header.theme-blue {
    background: linear-gradient(135deg, #1a96fc 0%, #0ea5e9 100%);
    color: white;
}

.app-sticky-header.theme-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: white;
}

.app-delivery-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.app-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.app-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: inherit;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.95;
}

.app-location-btn i {
    font-size: 12px;
}

.app-search-bar {
    position: relative;
}

.app-search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.app-search-bar input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    background: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.app-search-bar input:focus {
    outline: 2px solid rgba(255,255,255,0.5);
}

.app-search-bar.light input {
    background: #f5f5f5;
    border: 1px solid #eee;
}

/* Promo banners */
.promo-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.promo-scroll::-webkit-scrollbar { display: none; }

.promo-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: 16px;
    padding: 20px 22px;
    color: white;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.promo-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
}

.promo-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.promo-card p {
    font-size: 13px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.promo-card.promo-green { background: linear-gradient(135deg, #059669, #10b981); }
.promo-card.promo-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.promo-card.promo-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.promo-card.promo-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }

/* Horizontal category chips */
.cat-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px 20px;
    scrollbar-width: none;
}

.cat-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: white;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-width: 72px;
}

.cat-chip .chip-icon {
    font-size: 24px;
    line-height: 1;
}

.cat-chip .chip-label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.cat-chip:hover,
.cat-chip.active {
    border-color: var(--chip-color, #059669);
    background: var(--chip-bg, #ecfdf5);
}

.cat-chip.active .chip-label {
    color: var(--chip-color, #059669);
}

/* Section headers */
.app-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f303e;
    padding: 8px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-section-title small {
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

/* Blinkit-style product grid */
.blinkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    padding: 0 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blinkit-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s;
}

.blinkit-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blinkit-card .discount-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}

.blinkit-card .eta-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 7px;
    border-radius: 4px;
}

.blinkit-card .product-img {
    font-size: 56px;
    text-align: center;
    padding: 8px 0 4px;
    line-height: 1;
}

.blinkit-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.blinkit-card .weight {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

.blinkit-card .price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.blinkit-card .price {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.blinkit-card .mrp {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
}

.blinkit-add-btn {
    width: 100%;
    padding: 7px;
    border: 1.5px solid #059669;
    border-radius: 8px;
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.blinkit-add-btn:hover {
    background: #059669;
    color: white;
}

.blinkit-qty {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #059669;
    border-radius: 8px;
    padding: 4px;
}

.blinkit-qty button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: white;
    color: #059669;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blinkit-qty span {
    color: white;
    font-weight: 700;
    font-size: 15px;
}

/* ========== OUT OF STOCK ========== */
.blinkit-card.out-of-stock {
    opacity: 0.55;
    pointer-events: none;
    position: relative;
}
.blinkit-card.out-of-stock .fav-heart {
    pointer-events: all;
    opacity: 1;
}
.oos-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}
.oos-btn {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
    cursor: not-allowed !important;
    font-size: 11px !important;
}

/* ========== FAVORITE HEART ========== */
.fav-heart {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}
.fav-heart:hover {
    transform: scale(1.15);
    color: #f43f5e;
}
.fav-heart.active {
    color: #f43f5e;
    background: rgba(255,255,255,0.95);
}
.fav-heart.active i {
    animation: heartPop 0.35s ease;
}
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ========== DELIVERY PROGRESS BAR ========== */
.delivery-progress-wrap {
    padding: 10px 0 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}
.delivery-progress-msg {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.delivery-progress-msg i {
    color: #f59e0b;
}
.delivery-progress-msg.free {
    color: #059669;
}
.delivery-progress-msg.free i {
    color: #059669;
}
.delivery-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.delivery-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #059669);
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* ========== BUY AGAIN SECTION ========== */
.buy-again-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.buy-again-scroll::-webkit-scrollbar { display: none; }
.buy-again-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 200px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}
.buy-again-card:hover { transform: translateY(-2px); }
.buy-again-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.buy-again-emoji {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f9fafb;
    border-radius: 10px;
    flex-shrink: 0;
}
.buy-again-info {
    flex: 1;
    min-width: 0;
}
.buy-again-info h5 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.buy-again-info span {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
}
.buy-again-add {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #059669;
    background: #ecfdf5;
    color: #059669;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.buy-again-add:hover {
    background: #059669;
    color: white;
}

/* ========== SUGGESTED ADD-ONS ========== */
.addons-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.addons-scroll::-webkit-scrollbar { display: none; }
.addon-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 160px;
}
.addon-icon {
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.addon-info {
    flex: 1;
    min-width: 0;
}
.addon-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.addon-price {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #059669;
}
.addon-add {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1.5px solid #059669;
    background: #ecfdf5;
    color: #059669;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.addon-add:hover {
    background: #059669;
    color: white;
}

/* ========== COUPONS SECTION ========== */
.coupon-section {
    background: #f9fafb;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}
.coupon-input-wrap {
    display: flex;
    gap: 8px;
}
.coupon-input-wrap input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    text-transform: uppercase;
}
.coupon-input-wrap input:focus {
    border-color: #059669;
}
.coupon-input-wrap button {
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}
.coupon-input-wrap button:hover {
    opacity: 0.9;
}
.available-coupons-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.available-coupons-scroll::-webkit-scrollbar { display: none; }
.coupon-chip {
    flex-shrink: 0;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.coupon-chip:hover {
    border-color: #059669;
    background: #ecfdf5;
}
.coupon-chip-code {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    display: block;
}
.coupon-chip-desc {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* ========== DRAWER TOTAL ROWS ========== */
.drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
}

/* Sticky bottom cart bar (Zepto/Blinkit) */
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #059669;
    color: white;
    padding: 14px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(5,150,105,0.3);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.sticky-cart-bar.visible {
    display: flex;
}

.sticky-cart-bar .cart-info strong {
    display: block;
    font-size: 15px;
}

.sticky-cart-bar .cart-info small {
    font-size: 12px;
    opacity: 0.85;
}

.sticky-cart-bar .view-cart-btn {
    background: white;
    color: #059669;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

/* Cart drawer (shared) */
.app-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.app-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.app-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.app-drawer.open {
    transform: translateY(0);
}

.app-drawer-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
}

.app-drawer-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.app-drawer-header h3 {
    font-size: 18px;
    color: #1f303e;
}

.app-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.app-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.app-drawer-footer {
    padding: 16px 24px 28px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.drawer-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.drawer-total-row span:last-child {
    color: #059669;
}

.app-primary-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-primary-btn.theme-green {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.app-primary-btn.theme-blue {
    background: linear-gradient(135deg, #1a96fc, #0ea5e9);
    color: white;
}

.app-primary-btn.theme-purple {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
}

.app-primary-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.drawer-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.drawer-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.drawer-item-emoji {
    font-size: 32px;
}

.drawer-item-info {
    flex: 1;
    min-width: 0;
}

.drawer-item-info h4 {
    font-size: 14px;
    color: #222;
    margin-bottom: 2px;
}

.drawer-item-info small {
    font-size: 12px;
    color: #888;
}

.drawer-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #ecfdf5;
    color: #059669;
}

.drawer-item-price {
    font-weight: 700;
    color: #059669;
    font-size: 14px;
    min-width: 50px;
    text-align: right;
}

/* Service app cards (Urban Company / PhonePe style) */
.service-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 0 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-app-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
}

.service-app-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.service-app-card .svc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.service-app-card .svc-body {
    flex: 1;
    min-width: 0;
}

.service-app-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.service-app-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 10px;
}

.service-app-card .svc-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.service-app-card .svc-meta .rating {
    color: #f59e0b;
    font-weight: 600;
}

.service-app-card .svc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-app-card .svc-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--svc-color, #1a96fc);
}

.svc-book-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: white;
    background: var(--svc-color, #1a96fc);
    transition: opacity 0.2s;
}

.svc-book-btn:hover {
    opacity: 0.9;
}

/* Service tile grid (PhonePe See All) */
.svc-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    padding: 0 20px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.svc-tile {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Outfit', sans-serif;
}

.svc-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.svc-tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.svc-tile-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.svc-tile-price {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* App stats bar */
.app-stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 16px 20px 24px;
    flex-wrap: wrap;
}

.app-stat {
    text-align: center;
}

.app-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1f303e;
}

.app-stat span {
    font-size: 12px;
    color: #888;
}

.app-stat .stat-icon {
    color: var(--stat-color, #1a96fc);
}

/* Booking sheet */
.booking-sheet {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.booking-sheet.open {
    opacity: 1;
    visibility: visible;
}

.booking-sheet-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.booking-sheet-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.booking-sheet.open .booking-sheet-content {
    transform: translateY(0);
}

.booking-sheet-content h3 {
    font-size: 20px;
    color: #1f303e;
    margin-bottom: 4px;
}

.booking-sheet-content .sheet-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.doc-checklist {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--check-color, #1a96fc);
    background: var(--check-bg, #eef6ff);
}

.doc-checklist h4 {
    font-size: 14px;
    color: #1f303e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-checklist ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-checklist li {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.doc-checklist li i {
    color: var(--check-color, #1a96fc);
    margin-top: 2px;
}

/* Order success overlay */
.order-success-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 5000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.order-success-overlay.open {
    display: flex;
}

.order-success-overlay .success-check {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.order-success-overlay h2 {
    font-size: 26px;
    color: #1f303e;
    margin-bottom: 8px;
}

.order-success-overlay p {
    color: #666;
    margin-bottom: 24px;
}

.order-success-overlay .eta-box {
    background: #f0fdf4;
    border-radius: 14px;
    padding: 20px 30px;
    margin-bottom: 30px;
}

.order-success-overlay .eta-box strong {
    display: block;
    font-size: 28px;
    color: #059669;
}

.order-success-overlay .eta-box span {
    font-size: 14px;
    color: #666;
}

/* App toast */
.app-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: #1f303e;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 6000;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.app-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Bill promo strip */
.bill-promo-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 24px;
    scrollbar-width: none;
}

.bill-promo-scroll::-webkit-scrollbar { display: none; }

.bill-promo-card {
    flex: 0 0 200px;
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.bill-promo-card .promo-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.bill-promo-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.bill-promo-card p {
    font-size: 12px;
    color: #888;
}

@media (max-width: 480px) {
    .blinkit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-app-grid {
        grid-template-columns: 1fr;
    }

    .svc-tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-sticky-header {
        top: 60px;
    }
}

/* ═══════════════════════════════════════════
   Admin Portal
   ═══════════════════════════════════════════ */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
    margin: 0;
}

.admin-sidebar {
    width: 260px;
    background: #1f303e;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.admin-brand strong {
    display: block;
    font-size: 16px;
}

.admin-brand span {
    font-size: 12px;
    opacity: 0.6;
}

.admin-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(26,150,252,0.2);
    color: white;
}

.admin-nav-item.active {
    background: #1a96fc;
}

.admin-sidebar-footer {
    padding: 16px 12px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.sidebar-link:hover,
.sidebar-logout:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar-logout {
    color: #fca5a5;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.admin-topbar {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left h1 {
    font-size: 24px;
    color: #1f303e;
    margin-bottom: 2px;
}

.topbar-left p {
    font-size: 13px;
    color: #888;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-search-wrap {
    position: relative;
}

.admin-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.admin-search-wrap input {
    padding: 10px 16px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    width: 280px;
    background: #f9fafb;
}

.admin-search-wrap input:focus {
    outline: none;
    border-color: #1a96fc;
    background: white;
}

.notif-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    color: #555;
}

.notif-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.admin-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f0f7ff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a96fc;
}

.admin-tab {
    display: none;
    padding: 24px 30px 40px;
}

.admin-tab.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-card.wide {
    grid-column: span 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue { background: #eff6ff; color: #2563eb; }
.stat-icon.orange { background: #fff7ed; color: #ea580c; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; }
.stat-icon.green { background: #ecfdf5; color: #059669; }

.stat-card strong {
    display: block;
    font-size: 26px;
    color: #1f303e;
    line-height: 1.2;
}

.stat-card span {
    font-size: 13px;
    color: #888;
}

.dashboard-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.map-panel,
.recent-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.panel-header h2 {
    font-size: 16px;
    color: #1f303e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-link {
    background: none;
    border: none;
    color: #1a96fc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.admin-map {
    height: 380px;
    width: 100%;
    z-index: 1;
}

.admin-map-full {
    height: calc(100vh - 180px);
    min-height: 500px;
    width: 100%;
    border-radius: 16px;
    z-index: 1;
}

.map-full-wrap {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.map-legend {
    display: flex;
    gap: 20px;
    padding: 14px 20px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.map-legend i {
    font-size: 8px;
    margin-right: 6px;
}

.map-pin-custom { background: none !important; border: none !important; }

.map-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.map-pin i {
    transform: rotate(45deg);
}

.map-popup .status-pill {
    margin-top: 6px;
    display: inline-block;
}

.recent-req-list {
    padding: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.recent-req-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.recent-req-card:hover {
    background: #f8faff;
}

.recent-req-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.recent-req-info {
    flex: 1;
    min-width: 0;
}

.recent-req-info strong {
    display: block;
    font-size: 14px;
    color: #222;
}

.recent-req-info span {
    font-size: 12px;
    color: #666;
}

.recent-req-info small {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 2px;
}

.filters-bar {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-right: 4px;
}

.filter-chip,
.status-chip {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active,
.status-chip:hover,
.status-chip.active {
    background: #1a96fc;
    color: white;
    border-color: #1a96fc;
}

.table-wrap {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    padding: 14px 18px;
    background: #f8fafc;
    color: #666;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    vertical-align: middle;
}

.request-row {
    cursor: pointer;
    transition: background 0.15s;
}

.request-row:hover,
.request-row.selected {
    background: #f0f7ff;
}

.req-id {
    font-family: monospace;
    font-size: 12px;
    color: #1a96fc;
    font-weight: 600;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.type-badge.large {
    padding: 8px 14px;
    font-size: 13px;
}

.addr-cell {
    max-width: 200px;
    font-size: 13px;
    color: #666;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending { background: #fef3c7; color: #b45309; }
.status-assigned { background: #dbeafe; color: #1d4ed8; }
.status-progress { background: #ede9fe; color: #6d28d9; }
.status-completed { background: #d1fae5; color: #047857; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

.empty-row {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

.detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.detail-overlay.open {
    opacity: 1;
    visibility: visible;
}

.detail-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 2001;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    padding: 28px 24px;
}

.detail-panel.open {
    right: 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.detail-panel h3 {
    font-size: 20px;
    color: #1f303e;
    margin-bottom: 4px;
}

.detail-id {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.detail-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section h4 {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-section p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.detail-section a {
    color: #1a96fc;
    text-decoration: none;
}

.coords {
    font-size: 12px !important;
    color: #888 !important;
    margin-top: 6px;
}

.detail-amount {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #059669 !important;
}

.detail-items {
    list-style: none;
    font-size: 14px;
    color: #444;
}

.detail-items li {
    padding: 4px 0;
}

.detail-action-btn {
    margin-top: 10px;
    padding: 8px 16px;
    border: 1px solid #1a96fc;
    border-radius: 8px;
    background: #f0f7ff;
    color: #1a96fc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.action-btn:hover { opacity: 0.9; }
.action-btn.assign { background: #2563eb; }
.action-btn.progress { background: #7c3aed; }
.action-btn.complete { background: #059669; }
.action-btn.cancel { background: #ef4444; }
.action-btn.call { background: #1a96fc; }
.action-btn.whatsapp { background: #25d366; }

.admin-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: #1f303e;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 5000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.admin-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 72px;
    }

    .admin-brand div,
    .admin-nav-item span,
    .sidebar-link span,
    .sidebar-logout span {
        display: none;
    }

    .admin-brand {
        justify-content: center;
        padding: 20px 10px;
    }

    .admin-nav-item {
        justify-content: center;
        padding: 14px;
    }

    .admin-main {
        margin-left: 72px;
    }

    .dashboard-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-search-wrap input {
        width: 100%;
    }

    .admin-tab {
        padding: 16px;
    }

    .table-wrap {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 700px;
    }
}

/* ═══════════════════════════════════════════
   Blinkit/Zepto Home App + Onboarding + Auth
   ═══════════════════════════════════════════ */
:root {
    --app-green: #059669;
    --app-green-dark: #047857;
    --app-blue: #1a96fc;
    --app-bg: #f8fafb;
    --app-card: #ffffff;
    --app-text: #1f303e;
    --app-muted: #6b7280;
    --app-radius: 16px;
    --app-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

body.home-app,
body.onboarding-body {
    background: var(--app-bg);
    padding-bottom: 0;
}

.has-bottom-nav {
    padding-bottom: 76px !important;
}

/* Home header */
.home-header {
    background: linear-gradient(160deg, #0d9488 0%, #059669 55%, #10b981 100%);
    color: white;
    padding: 14px 16px 20px;
    border-radius: 0 0 24px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(5,150,105,0.25);
}

.home-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.home-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: white;
    object-fit: cover;
}

.home-brand strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
}

.home-eta {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.home-eta i { margin-right: 4px; }

.home-profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
    overflow: hidden;
}

.home-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-location-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-bottom: 12px;
    text-align: left;
}

.loc-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loc-main small {
    display: block;
    font-size: 11px;
    opacity: 0.85;
}

.loc-main strong {
    font-size: 14px;
    font-weight: 600;
}

.home-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.home-search i { color: #059669; }

.home-promos { padding-top: 16px; }

.home-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 8px 16px 20px;
}

.home-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--app-text);
    padding: 12px 6px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--app-shadow);
    transition: transform 0.2s;
}

.home-cat-item:hover { transform: translateY(-2px); }

.home-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.home-cat-item span {
    font-size: 12px;
    font-weight: 600;
}

.home-cat-item small {
    font-size: 10px;
    color: var(--app-green);
    font-weight: 600;
}

.home-section { padding: 0 16px 24px; }

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.home-section-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--app-text);
}

.home-section-head a {
    font-size: 13px;
    color: var(--app-green);
    font-weight: 600;
    text-decoration: none;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.home-service-card {
    background: white;
    border-radius: var(--app-radius);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: var(--app-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.home-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.hsc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.theme-green .hsc-badge { background: #ecfdf5; color: #059669; }
.theme-yellow .hsc-badge { background: #fef3c7; color: #d97706; }
.theme-blue .hsc-badge { background: #eff6ff; color: #2563eb; }
.theme-purple .hsc-badge { background: #f5f3ff; color: #7c3aed; }

.hsc-icon { font-size: 36px; margin-bottom: 8px; }

.home-service-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--app-text);
}

.home-service-card p {
    font-size: 12px;
    color: var(--app-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 34px;
}

.hsc-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--app-green);
}

.theme-yellow .hsc-cta { color: #d97706; }
.theme-blue .hsc-cta { color: #2563eb; }
.theme-purple .hsc-cta { color: #7c3aed; }

.home-trust {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 24px;
    scrollbar-width: none;
}

.home-trust::-webkit-scrollbar { display: none; }

.trust-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.trust-item i { color: var(--app-green); }

.home-reviews {
    padding: 0 16px 24px;
}

.home-reviews h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--app-text);
}

.review-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.review-scroll::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 260px;
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--app-shadow);
}

.review-card .stars { color: #f59e0b; font-size: 14px; margin-bottom: 8px; }
.review-card p { font-size: 13px; color: #555; margin-bottom: 8px; line-height: 1.5; }
.review-card strong { font-size: 12px; color: #888; }

.home-cta-banner {
    margin: 0 16px 24px;
    background: linear-gradient(135deg, #1a96fc, #0ea5e9);
    border-radius: var(--app-radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: white;
}

.home-cta-banner h3 { font-size: 16px; margin-bottom: 4px; }
.home-cta-banner p { font-size: 12px; opacity: 0.9; }

.home-cta-btn {
    background: white;
    color: #1a96fc;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.home-footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #999;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1100;
    border-top: 1px solid #f0f0f0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    transition: color 0.2s;
}

.bottom-nav-item i { font-size: 20px; }

.bottom-nav-item.active {
    color: var(--app-green);
}

/* Auth pages */
body.auth-body {
    min-height: 100vh;
    background-color: #f8fafc;
    background-image: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.auth-page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
}

.auth-back-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}

.auth-back-float:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateX(-4px);
}

.auth-hero-img-wrap {
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-hero-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.auth-card {
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 40px 32px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

.auth-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0,0,0,0.06) !important;
}

@media (min-width: 768px) {
    .auth-card {
        padding: 44px 36px;
    }
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--app-text);
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 14px;
    color: var(--app-muted);
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
    background: white;
    color: var(--app-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: scale(1.02);
}

.auth-field { margin-bottom: 16px; }

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
}

.auth-input-wrap input {
    width: 100%;
    padding: 14px 44px 14px 42px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--app-green);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
    transform: translateY(-1px);
}

.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
}

.auth-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.auth-submit:hover:not(:disabled)::after {
    left: 150%;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.4);
}

.auth-submit:disabled { opacity: 0.7; cursor: wait; }

.auth-hint {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 16px;
}

.auth-features {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: #888;
    text-align: center;
    gap: 8px;
}

.auth-features i {
    display: block;
    font-size: 18px;
    color: var(--app-green);
    margin-bottom: 4px;
}

/* Onboarding */
.onboarding-body {
    background: var(--app-bg);
    min-height: 100vh;
}

.onboarding-shell {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 40px;
}

.onboarding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.onboard-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #333;
    text-decoration: none;
}

.onboard-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--app-text);
}

.onboard-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.onboard-step-indicator {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--app-green);
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 20px;
}

.onboard-progress {
    height: 4px;
    background: #e5e7eb;
}

.onboard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    transition: width 0.4s ease;
}

.onboard-step {
    display: none;
    padding: 24px 20px;
    animation: fadeInUp 0.4s ease;
}

.onboard-step.active { display: block; }

.onboard-hero {
    text-align: center;
    margin-bottom: 28px;
}

.onboard-hero.compact { margin-bottom: 20px; }

.onboard-emoji { font-size: 48px; display: block; margin-bottom: 12px; }

.onboard-hero h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--app-text);
    margin-bottom: 8px;
}

.onboard-hero p {
    font-size: 14px;
    color: var(--app-muted);
    line-height: 1.5;
}

.photo-upload-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.photo-upload-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px dashed #d1d5db;
    background: white;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    display: block;
    transition: border-color 0.2s;
}

.photo-upload-btn:hover { border-color: var(--app-green); }

.photo-upload-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    gap: 6px;
}

.photo-placeholder i { font-size: 28px; color: var(--app-green); }
.photo-placeholder span { font-size: 12px; font-weight: 600; }
.photo-hint { font-size: 12px; color: #999; margin-top: 10px; }

.onboard-form { margin-bottom: 24px; }

.onboard-field { margin-bottom: 16px; }

.onboard-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.onboard-field label span { color: #ef4444; }

.field-icon-wrap {
    position: relative;
}

.field-icon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.field-icon-wrap input,
.field-icon-wrap select,
.field-icon-wrap textarea {
    width: 100%;
    padding: 13px 14px 13px 42px !important;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    box-sizing: border-box;
}

.field-icon-wrap select {
    appearance: none;
    cursor: pointer;
}

.field-icon-wrap textarea {
    resize: vertical;
    min-height: 80px;
}

.field-icon-wrap i.fa-home {
    top: 24px;
}

.field-icon-wrap input:focus,
.field-icon-wrap select:focus,
.field-icon-wrap textarea:focus,
.onboard-field textarea:focus,
.onboard-field input:focus {
    outline: none;
    border-color: var(--app-green);
}

.onboard-field textarea,
.onboard-field input[type="text"],
.onboard-field input[type="tel"] {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    resize: vertical;
}

.onboard-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.id-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.id-type-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: white;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.id-type-chip i { font-size: 18px; }

.id-type-chip.active {
    border-color: var(--app-green);
    background: #ecfdf5;
    color: var(--app-green);
}

.doc-upload-btn {
    width: 100%;
    padding: 20px;
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    background: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s;
}

.doc-upload-btn i { font-size: 28px; color: var(--app-green); }
.doc-upload-btn:hover { border-color: var(--app-green); }

.doc-preview {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid #eee;
}

.gps-btn {
    width: 100%;
    padding: 14px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    color: #2563eb;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gps-btn:disabled { opacity: 0.7; }

.map-container {
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #eee;
    margin-bottom: 8px;
    z-index: 1;
}

.map-coords {
    font-size: 11px;
    color: #888;
    margin-bottom: 16px;
    text-align: center;
}

.leaflet-pin {
    width: 40px;
    height: 40px;
    background: var(--app-green);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(5,150,105,0.4);
    border: 3px solid white;
}

.leaflet-pin i { transform: rotate(45deg); }

.addr-type-row {
    display: flex;
    gap: 8px;
}

.addr-type {
    flex: 1;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 10px;
    background: white;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.addr-type.active {
    border-color: var(--app-green);
    background: #ecfdf5;
    color: var(--app-green);
}

.onboard-cta {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a96fc, #0ea5e9);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.onboard-cta.secondary {
    background: #f3f4f6;
    color: #555;
    flex: 0 0 auto;
    width: auto;
    padding: 15px 20px;
}

.onboard-cta.theme-green {
    background: linear-gradient(135deg, #059669, #10b981);
}

.onboard-nav-row {
    display: flex;
    gap: 12px;
}

.onboard-nav-row .onboard-cta:not(.secondary) { flex: 1; }

/* Old success overlay removed — see updated styles below line 4759 */

.success-perks i { margin-right: 4px; }

.onboard-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f303e;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.onboard-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Profile page */
.profile-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 16px;
}

.profile-header-card {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(5,150,105,0.25);
}

.profile-avatar-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.5);
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-header-card p {
    opacity: 0.9;
    font-size: 14px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.profile-section {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--app-shadow);
}

.profile-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h3 i { color: var(--app-green); }

.profile-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.profile-edit-btn {
    margin-top: 12px;
    padding: 10px 16px;
    background: #ecfdf5;
    border: none;
    border-radius: 10px;
    color: var(--app-green);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-menu {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--app-shadow);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: var(--app-text);
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-align: left;
}

.profile-menu-item i:first-child {
    width: 24px;
    text-align: center;
}

.profile-menu-item i:last-child {
    margin-left: auto;
    color: #ccc;
    font-size: 12px;
}

.logout-item { color: #ef4444; }

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    font-weight: 600;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

.nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #059669;
    padding: 20px 0;
    gap: 15px;
}

@media (min-width: 769px) {
    .bottom-nav { display: none; }
    .has-bottom-nav { padding-bottom: 0 !important; }
    .home-service-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 400px) {
    .home-categories { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .home-cat-icon { width: 40px; height: 40px; font-size: 16px; }
    .id-type-grid { grid-template-columns: 1fr; }
    .onboard-field-row { grid-template-columns: 1fr; }
}

/* Verification System Styling */
.verify-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.verify-popup-overlay.show {
    opacity: 1;
}
.verify-popup-card {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.verify-popup-overlay.show .verify-popup-card {
    transform: translateY(0);
}
.verify-popup-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.verify-popup-icon.icon-pending {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}
.verify-popup-icon.icon-rejected {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.verify-hourglass i {
    animation: rotateHourglass 2.5s infinite linear;
}
@keyframes rotateHourglass {
    0% { transform: rotate(0deg); }
    45% { transform: rotate(0deg); }
    55% { transform: rotate(180deg); }
    100% { transform: rotate(180deg); }
}
.verify-popup-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}
.verify-popup-card p {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.verify-popup-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    text-align: left;
}
.verify-popup-features span {
    font-size: 13px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 8px;
}
.verify-popup-features span i {
    color: #059669;
}
.verify-popup-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}
.verify-popup-btn.verify-check {
    background: #059669;
    color: white;
}
.verify-popup-btn.verify-check:hover {
    background: #047857;
}
.verify-popup-btn.reject-retry {
    background: #ef4444;
    color: white;
}
.verify-popup-btn.reject-retry:hover {
    background: #dc2626;
}
.verify-popup-btn.verify-logout {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.verify-popup-btn.verify-logout:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Onboarding specific pending overlay styling */
.onboard-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.onboard-success-overlay.show {
    display: flex;
}
.verify-pending-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    color: #1e293b;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.onboard-success-overlay.show .verify-pending-card {
    transform: translateY(0);
}
.verify-pending-icon {
    font-size: 50px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}
.verify-pending-icon i {
    animation: rotateHourglass 2.5s infinite linear;
}
.verify-pending-card h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}
.verify-pending-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.success-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    text-align: left;
}
.success-perks span {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}
.success-perks span i {
    color: #059669;
}

/* Admin Verification Panel Styling */
.verify-tab-header {
    margin-bottom: 24px;
}
.verify-tab-header h2 {
    font-size: 22px;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.verify-tab-header p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}
.verify-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.admin-verify-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-verify-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.verify-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
}
.verify-card-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #059669;
}
.verify-card-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
}
.verify-user-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}
.verify-user-info p {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.verify-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 0;
}
.verify-detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.verify-detail-row span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}
.verify-detail-row strong {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    word-break: break-word;
}
.verify-doc-preview-container {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    max-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.verify-doc-img-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s;
}
.verify-doc-img-preview:hover {
    opacity: 0.8;
}
.verify-card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}
.verify-card-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.verify-btn-approve {
    background: #10b981;
    color: white;
}
.verify-btn-approve:hover {
    background: #059669;
}
.verify-btn-reject {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
.verify-btn-reject:hover {
    background: #ef4444;
    color: white;
}

/* Rejection Modal */
.reject-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.reject-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.reject-modal-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.reject-modal-overlay.show .reject-modal-card {
    transform: scale(1);
}
.reject-modal-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reject-modal-card p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.reject-modal-card textarea {
    width: 100%;
    height: 120px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 14px;
    resize: none;
    outline: none;
    margin-bottom: 20px;
    font-family: inherit;
}
.reject-modal-card textarea:focus {
    border-color: #ef4444;
}
.reject-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.reject-modal-actions button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.reject-cancel-btn {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.reject-cancel-btn:hover {
    background: rgba(255,255,255,0.05);
}
.reject-submit-btn {
    background: #ef4444;
    color: white;
}
.reject-submit-btn:hover {
    background: #dc2626;
}


/* Verify Tab Enhanced Styling */
.verify-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
.admin-search-wrap {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    width: 250px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.admin-search-wrap i {
    color: #6b7280;
    margin-right: 8px;
}
.admin-search-wrap input {
    background: transparent;
    border: none;
    color: #1f2937;
    outline: none;
    width: 100%;
}
.verify-filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 5px;
}
.verify-filter-btn {
    background: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.verify-filter-btn:hover {
    background: #f9fafb;
    color: #111827;
}
.verify-filter-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}
.verify-filter-btn .badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
    color: white;
}
.verify-date {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}
.verify-status-alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.verify-status-alert.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.verify-status-alert.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.image-preview-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: zoom-out;
}
.image-preview-overlay.show {
    opacity: 1;
}
.image-preview-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    cursor: default;
}
.close-preview {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.skeleton-card {
    height: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Mobile specific styling for the Admin Verify Tab */
@media (max-width: 768px) {
    .verify-tab-header {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-search-wrap {
        width: 100%;
        margin-top: 10px;
    }
    .verify-profiles-grid {
        grid-template-columns: 1fr;
    }
    .admin-verify-card {
        padding: 16px;
    }
    .verify-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .verify-card-photo {
        width: 80px;
        height: 80px;
    }
    .verify-card-photo-placeholder {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    .verify-card-actions {
        flex-direction: column;
    }
}
