/* ═══════════════════════════════════════════════════════════════
   SALVA REDESIGN — Modern UI (Vezeeta-inspired)
   ═══════════════════════════════════════════════════════════════ */

.home-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 16px 40px;
}

.home-hero-v2 {
    background: linear-gradient(155deg, #1b2a20 0%, #2a3b1c 100%);
    color: #fff;
    padding: 32px 20px 40px;
    border-radius: 0 0 32px 32px;
    margin: 0 -14px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Banner Carousel - Card Style */
.banner-carousel-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 24px;
    margin: 10px 0 10px; /* Reduced bottom margin */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background: #ffffff; /* Use white for safe spaces */
}

.banner-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
    background: #ffffff; /* Ensure white background for each slide */
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Do not cut, show full image */
    z-index: 1;
}

.banner-content {
    color: #fff;
    width: 100%;
    padding: 24px 24px;
    position: relative;
    z-index: 5;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.banner-content h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: -5px; /* Pull closer to the banner container */
    margin-bottom: 20px;
    width: 100%;
}

.carousel-dots .c-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.carousel-dots .c-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
    opacity: 1;
}

.hero-search-v2-container {
    padding: 0;
    margin-bottom: 10px;
}

.hero-content-v2 h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #d8ff9b;
}

.hero-content-v2 p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-search-v2 {
    position: relative;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 4px 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-search-v2 i {
    color: var(--muted);
    padding: 0 12px;
    font-size: 18px;
}

.hero-search-v2 input {
    flex: 1;
    border: 0;
    padding: 12px 4px;
    font-size: 15px;
    outline: 0;
    color: var(--text);
}

.hero-search-v2 .search-btn-v2 {
    background: var(--primary);
    color: #fff;
    border: 0;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.action-card-v2 {
    border-radius: 24px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Base colors for cards */
.action-card-v2.purple { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.action-card-v2.green  { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.action-card-v2.blue   { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.action-card-v2.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

/* Abstract shapes */
.action-card-v2::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 40px;
    top: -40px;
    right: -40px;
    transform: rotate(25deg);
    pointer-events: none;
    transition: all 0.5s ease;
}

.action-card-v2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    bottom: -20px;
    left: -10px;
    transform: rotate(-15deg);
    pointer-events: none;
}

.action-card-v2:hover::before {
    transform: rotate(35deg) scale(1.1);
    background: rgba(255,255,255,0.15);
}

.action-card-v2:active {
    transform: scale(0.97) translateY(2px);
}

.action-card-v2 .icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 2;
}

.action-card-v2 h4 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.action-card-v2 p {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
    margin: 0;
    font-weight: 500;
    z-index: 2;
}

.promo-banner-card {
    background: linear-gradient(135deg, #82bc3f 0%, #2a3b1c 100%);
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(130, 188, 63, 0.25);
}

.promo-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.promo-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.promo-btn {
    background: #fff;
    color: var(--primary-ink);
    border: 0;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.promo-icon {
    font-size: 56px;
    opacity: 0.3;
    transform: rotate(-15deg);
}

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

.section-header-v2 h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.section-header-v2 .view-all {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.horizontal-scroll-v2 {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
    scrollbar-width: none;
}

.horizontal-scroll-v2::-webkit-scrollbar {
    display: none;
}

.specialty-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 85px;
    cursor: pointer;
}

.specialty-icon-v2 {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.specialty-item-v2:active .specialty-icon-v2 {
    transform: scale(0.9);
    background: #f0f4f8;
}

.specialty-item-v2 span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

.offer-mini-card-v2 {
    min-width: 240px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
}

.offer-mini-card-v2 img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.offer-mini-body-v2 {
    padding: 14px;
}

.offer-mini-body-v2 h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.offer-mini-footer-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-mini-price-v2 {
    display: flex;
    flex-direction: column;
}

.offer-mini-price-v2 .price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-ink);
}

.offer-mini-price-v2 .old-price {
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.discount-tag-v2 {
    background: #ff4f71;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.provider-row-v2 {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 12px;
    cursor: pointer;
}

.provider-row-v2:active {
    background: #f9f9f9;
}

.provider-img-v2 {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    background: #f0f4f8;
}

.provider-info-v2 {
    flex: 1;
}

.provider-info-v2 h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.provider-info-v2 .meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-v2 {
    background: #fff9e6;
    color: #ffb800;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 3px;
}

.home-section-v2 {
    padding: 0 4px;
}

.providers-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   SALVA V3 — Vezeeta-like layout with Salva branding
   ═══════════════════════════════════════════════════════════════ */

.v3-section {
    margin-bottom: 24px;
}

.v3-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.v3-section-head h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.v3-section-head .show-all {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* Doctor Cards */
.doctor-grid-v3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.doctor-card-v3 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    cursor: pointer;
}

.doctor-img-wrap-v3 {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f0f4f8;
    position: relative;
}

.doctor-img-v3 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-badge-v3 {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffb800;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.doctor-body-v3 {
    padding: 10px;
}

.doctor-body-v3 h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-body-v3 p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 30px;
}

.doctor-loc-v3 {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
}

/* Center Cards */
.center-card-v3 {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 12px;
    cursor: pointer;
}

.center-img-v3 {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.center-body-v3 {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center-info-v3 h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.center-meta-v3 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.center-meta-item-v3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.center-meta-item-v3 i {
    color: var(--primary);
    width: 14px;
}

.center-logo-v3 {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Banner Sections */
.ask-banner-v3 {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.ask-text-v3 {
    flex: 1;
}

.ask-text-v3 h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
}

.ask-text-v3 p {
    font-size: 12px;
    color: var(--muted);
}

.ask-icon-v3 {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Pharmacy Section */
.pharmacy-box-v3 {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.pharmacy-box-v3 h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
}

.pharmacy-search-v3 {
    position: relative;
    margin-bottom: 16px;
}

.pharmacy-search-v3 i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.pharmacy-search-v3 input {
    width: 100%;
    padding: 12px 36px 12px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: 0;
}

.pharmacy-actions-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pharm-action-btn-v3 {
    background: #f8fafc;
    border: 0;
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pharm-action-btn-v3:active {
    background: #f1f5f9;
    transform: scale(0.95);
}

.pharm-action-btn-v3 i {
    font-size: 18px;
    color: var(--primary);
}

.pharm-action-btn-v3 span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

/* Promo Banners */
.promo-banner-v3 {
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    min-height: 120px;
    cursor: pointer;
}

.promo-banner-v3.blue { background: linear-gradient(135deg, #1d84d7 0%, #0052a3 100%); }
.promo-banner-v3.white { background: #fff; color: var(--text); border: 1px solid rgba(0,0,0,0.04); }

.promo-banner-v3 .content-v3 {
    flex: 1;
    z-index: 2;
}

.promo-banner-v3 h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.promo-banner-v3 p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.promo-banner-v3 .btn-v3 {
    background: #fff;
    color: #0052a3;
    border: 0;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
}

.promo-banner-v3.white .btn-v3 {
    background: #f0f4f8;
    color: var(--primary);
}

.promo-banner-v3 .img-v3 {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.promo-banner-v3 .abs-img-v3 {
    position: absolute;
    left: -10px;
    bottom: -10px;
    width: 120px;
    height: 120px;
    opacity: 0.2;
    transform: rotate(-10deg);
}

:root {
    --primary: #82bc3f;
    --primary-light: #eef4ea;
    --primary-ink: #2a3b1c;
    --accent: #10b981;
    --accent-light: #e6f7f1;
    --border: #edf2f7;
    --text-muted: #718096;
    --secondary: #f7fafc;
    --bg: #f4f7f3;
    --card: #ffffff;
    --text: #212834;
    --muted: #6e7a8f;
    --danger: #d93f58;
    --warning: #d59a30;
    --radius: 16px;
    --shadow: 0 14px 30px rgba(22, 36, 22, 0.08);
    --shimmer: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}

.skeleton {
    background: #eef2f5;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite ease-in-out;
}

.skeleton-text { height: 12px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-title { height: 20px; margin-bottom: 12px; width: 60%; border-radius: 6px; }
.skeleton-img { aspect-ratio: 16/9; width: 100%; border-radius: 12px; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: radial-gradient(circle at top right, #dce8d2 0%, #f4f7f3 45%, #edf4eb 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

#app {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.hidden {
    display: none !important;
}


.skip-link {
    position: absolute;
    right: 10px;
    top: -48px;
    z-index: 3001;
    background: #162615;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 10px;
}

.main-header {
    background: linear-gradient(155deg, #0f1419 0%, #1b2a20 65%, #2f4e26 100%);
    color: #fff;
    padding: 18px 18px 20px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo-text {
    letter-spacing: 2px;
    font-weight: 800;
    color: #d8ff9b;
}

.icon-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    font-size: 18px;
    transition: all 0.2s ease;
}

.icon-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.2);
}

.icon-btn.mini {
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
    font-size: 13px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 64px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 2000;
}


.nav-item {
    border: 0;
    background: transparent;
    color: #6a7c8e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
    min-height: 48px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item span {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
}

.nav-item.active {
    color: var(--primary-ink);
}

.nav-item.active i {
    transform: scale(1.15) translateY(-2px);
    color: var(--primary);
}

.nav-center-item {
    position: relative;
}

.nav-center {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, #6da134 100%);
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(130, 188, 63, 0.3);
    margin-top: -32px;
    border: 4px solid #fff;
}

.nav-center i {
    font-size: 22px;
}


.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4f71;
    position: absolute;
    top: 6px;
    left: 6px;
    border: 2px solid #18301c;
}

.header-greeting {
    margin: 12px 0 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.header-search-wrap {
    display: block;
    margin-top: 15px;
    position: relative;
}

.header-search-wrap::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.search-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 14px;
    padding: 12px 38px 12px 14px;
    outline: 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#router-view {
    padding: 0 14px;
    animation: fade-in 0.25s ease;
    background: #f5f7fa;
}

#router-view.route-enter {
    animation: route-enter 0.2s ease;
}

#router-view h1:focus,
#router-view h2:focus,
#router-view h3:focus {
    outline: 2px solid #6da93a;
    outline-offset: 4px;
    border-radius: 8px;
}

.content-section {
    display: grid;
    gap: 14px;
    padding-bottom: 20px;
}

.page-intro {
    display: grid;
    gap: 6px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
}

.page-intro h2 {
    font-size: 18px;
    line-height: 1.45;
    color: var(--text);
    font-weight: 700;
}

.page-intro p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #689b33 100%);
    padding: 18px;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
}

.hero h2 {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.hero p {
    font-size: 13px;
    opacity: 0.95;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.trust-row span {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: var(--text);
    line-height: 1.45;
    font-weight: 600;
}

.trust-row i {
    color: var(--primary);
    margin-left: 4px;
}

.block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.block-head h3 {
    font-size: 17px;
    font-weight: 800;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--primary-ink);
    font-weight: 700;
    cursor: pointer;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cat-card {
    border: 0;
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    padding: 10px 8px;
    display: grid;
    gap: 8px;
    justify-items: center;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.cat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.cat-card i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.cat-card:active i {
    transform: scale(0.85);
}

.cat-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.providers-list,
.offers-grid,
.list-cards {
    display: grid;
    gap: 10px;
}

.offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-card,
.provider-card,
.list-card,
.profile-card,
.offer-detail,
.provider-detail,
.auth-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    border: 1px solid var(--border);
}

.offer-card:active,
.provider-card:active,
.cat-card:active {
    transform: scale(0.985);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.offer-card {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.offer-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    background: #eef2f5;
    overflow: hidden;
}

.offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.media-img.is-loading {
    opacity: 0;
}


.offer-body {
    padding: 10px;
    display: grid;
    gap: 8px;
}

.offer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-body h4 {
    font-size: 14px;
    line-height: 1.45;
    min-height: 40px;
    color: var(--text);
    font-weight: 600;
}

.meta {
    font-size: 12px;
    color: #999999;
}

.heart-btn {
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
}

.heart-btn:active {
    transform: scale(0.85);
}

.heart-btn.active {
    color: #ef4444;
    background: #fecaca;
}


.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-row strong {
    color: var(--accent);
    font-weight: 700;
}

.price-row span {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 11px 12px;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn:active {
    transform: scale(0.96);
}

.btn.mini {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-light {
    background: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-light:hover {
    background: #f0f4f8;
}

.provider-card {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.provider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.provider-info h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.provider-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-pill {
    background: #f0f4f8;
    color: #4a5568;
    font-size: 11px;
    font-weight: 600;
}

.provider-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-main strong {
    font-size: 18px;
    color: #2d3748;
}

.item-cat {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 10px;
    padding: 2px 8px;
    width: fit-content;
    font-weight: 600;
}

.rating {
    background: rgba(130, 188, 63, 0.12);
    color: var(--primary);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}


.search-row {
    display: flex;
    gap: 8px;
    position: sticky;
    top: 8px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px;
    border-radius: 12px;
}

.search-row input,
.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    outline: 0;
    background: var(--card);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.chip {
    border: 0;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--text-muted);
    padding: 0 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(130, 188, 63, 0.2);
}


.list-card {
    padding: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius);
    transition: background 0.2s;
}

.list-card:active {
    background: var(--secondary);
}

.list-card h4 {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.list-card i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f4f8;
    color: #4a5568;
    font-size: 16px;
    transition: all 0.2s ease;
}

.list-card i.mini {
    background: transparent;
    color: #cbd5e0;
    width: auto;
    height: auto;
    font-size: 11px;
}




.action-card {
    min-height: 56px;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    color: var(--text);
}

.action-card.danger {
    border-color: rgba(255, 79, 113, 0.2);
    color: #ff4f71;
    background: rgba(255, 79, 113, 0.05);
}

.results-meta {
    font-size: 12px;
    color: #607184;
    font-weight: 700;
}

.empty-state {
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    padding: 24px 18px;
    text-align: center;
    display: grid;
    gap: 12px;
}

.empty-state h4 {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 28px;
    box-shadow: inset 0 0 0 1px rgba(130, 188, 63, 0.1);
}


.list-card.unread {
    border-right: 4px solid var(--primary);
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.profile-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    background: #f0f4f8;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #fff;
    font-size: 14px;
}

.profile-status {
    display: inline-flex;
}

.pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.pill.active {
    background: #e8f6e3;
    color: #307724;
}

.pill.hold {
    background: #fff5de;
    color: #a66c05;
}

.pill.banned {
    background: #ffe9ee;
    color: #a22242;
}

.pill.expired,
.pill.not_subscribed {
    background: #edf1f5;
    color: #47505c;
}

.form-grid {
    display: grid;
    gap: 8px;
}

.form-grid label {
    font-size: 13px;
    color: var(--text);
    font-weight: 700;
}

.offer-detail,
.provider-detail {
    padding: 12px;
    display: grid;
    gap: 9px;
}

.offer-detail img {
    border-radius: 12px;
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.auth-wrap {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-card {
    width: min(100%, 460px);
    padding: 20px;
    display: grid;
    gap: 12px;
}

.auth-card h1 {
    font-size: 22px;
}

.hint-block {
    font-size: 12px;
    color: var(--muted);
    display: grid;
    gap: 4px;
}

.onboarding {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
}

.onboarding-img-wrap {
    width: 100%;
    height: 100dvh;
    background: #000;
}

.onboarding-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}


.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 16, 8, 0.2) 0%, rgba(8, 24, 10, 0.8) 100%);
}

.skip-btn {
    position: absolute;
    top: 22px;
    left: 16px;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
}

.floating-card {
    position: absolute;
    right: 16px;
    left: 16px;
    bottom: 20px;
    background: #fff;
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--shadow);
    text-align: center;
    display: grid;
    gap: 10px;
}

.slide-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: -48px auto 0;
    background: #f5f7f8;
    display: grid;
    place-items: center;
}

.slide-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot-item {
    width: 8px;
    height: 8px;
    background: #d8dee5;
    border-radius: 99px;
}

.dot-item.active {
    width: 24px;
    background: var(--primary);
}

.bottom-nav {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    max-width: 540px;
    margin: 0 auto;
    height: 78px;
    background: #0f1419;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

.nav-item {
    border: 0;
    background: transparent;
    color: #d5d9df;
    display: grid;
    gap: 4px;
    justify-items: center;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: scale(1.15) translateY(-2px);
    color: var(--primary);
}

.nav-center {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary);
    display: grid;
    place-items: center;
    margin-top: -38px;
    border: 5px solid #0f1419;
    color: #fff;
}

.nav-center i {
    font-size: 22px;
}

.app-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: grid;
    place-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-loader.is-hiding {
    opacity: 0;
    visibility: hidden;
}

.loader-card {
    text-align: center;
    display: grid;
    gap: 20px;
}

.loader-logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 30%;
    background: var(--primary);
    border-radius: 2px;
    animation: loader-slide 1.5s infinite ease-in-out;
}

@keyframes loader-slide {
    0% { transform: translateX(-100%); width: 30%; }
    50% { width: 60%; }
    100% { transform: translateX(333%); width: 30%; }
}

.toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    background: #2a2a2a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.25s ease;
    border: 1px solid rgba(203, 255, 116, 0.2);
}

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

.toast.err {
    background: rgba(255, 79, 113, 0.1);
    border-color: rgba(255, 79, 113, 0.3);
    color: #ff4f71;
}

.toast.warn {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.chat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 140px;
    max-height: 300px;
    overflow: auto;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.skeleton-card {
    overflow: hidden;
}

.skeleton {
    background: linear-gradient(90deg, #ecf1ea 25%, #f4f8f2 50%, #ecf1ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
    border-radius: 10px;
}

.skeleton-media {
    height: 110px;
}

.skeleton-line {
    height: 12px;
}

.skeleton-line.short {
    width: 65%;
}

.msg {
    max-width: 88%;
    padding: 8px 10px;
    border-radius: 12px;
}

.msg.user {
    justify-self: end;
    background: var(--primary);
    color: #ffffff;
}

.msg.bot {
    justify-self: start;
    background: #2a2a2a;
    color: #ffffff;
}

.thread-btn {
    border: 0;
    background: transparent;
    text-align: right;
    cursor: pointer;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat {
    background: rgba(203, 255, 116, 0.1);
    border-radius: 14px;
    padding: 11px;
    display: grid;
    gap: 5px;
    border: 1px solid rgba(203, 255, 116, 0.2);
}

.stat strong {
    font-size: 22px;
    color: var(--primary);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.table-wrap {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(203, 255, 116, 0.1);
}

tbody tr:hover {
    background: rgba(203, 255, 116, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    background: var(--card);
}

th,
td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 13px;
    color: var(--text);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: grid;
    place-items: center;
    z-index: 3000;
    padding: 14px;
}

.modal-card {
    width: min(100%, 460px);
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 14px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
}

.fav-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes route-enter {
    from {
        opacity: 0.92;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

@media (max-width: 420px) {
    .trust-row {
        grid-template-columns: 1fr;
    }

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

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 16px 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Added for enhanced filtering */
.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}
.select-wrap {
    position: relative;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d8dee7;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.select-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(130, 188, 63, 0.1);
}
.select-wrap i {
    color: var(--primary);
    font-size: 14px;
    margin-left: 8px;
    opacity: 0.8;
}
.select-wrap select {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 0;
    outline: 0;
    color: var(--text);
    cursor: pointer;
}
.select-wrap.disabled {
    background: #f8faf9;
    opacity: 0.6;
    cursor: not-allowed;
}
.select-wrap.disabled select {
    cursor: not-allowed;
}

/* --- Premium UI Enhancements --- */

.cat-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f7eb 0%, #e2eedc 100%);
    color: var(--primary);
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(130, 188, 63, 0.1);
}

.cat-card:hover .cat-icon-wrap {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, var(--primary) 0%, #6da134 100%);
    color: #fff;
}

.sticky-top-actions {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 247, 243, 0.8);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    margin: -14px -14px 10px -14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-back-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.search-row-glass {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 22px;
    padding: 0 16px;
    height: 44px;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.search-row-glass i {
    color: var(--muted);
    font-size: 14px;
}

.search-row-glass input {
    border: 0;
    background: transparent;
    padding: 0;
    height: 100%;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    outline: 0 !important;
}

.search-submit {
    border: 0;
    background: var(--primary);
    color: #fff;
    padding: 0 14px;
    height: 32px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.filters-container {
    display: grid;
    gap: 12px;
    margin-bottom: 4px;
}

.filters-row {
    display: flex;
    gap: 10px;
}

.select-wrap {
    flex: 1;
    position: relative;
    background: #fff;
    border-radius: 14px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.select-wrap i {
    color: var(--primary);
    font-size: 16px;
    margin-left: 8px;
}

.select-wrap select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.select-wrap select + span::after {
    content: attr(data-value);
}

.select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--muted);
    margin-right: auto;
}

/* Fallback if we don't use span data-value */
.select-wrap select {
    opacity: 1;
    background: transparent;
    border: 0;
    padding-right: 0;
    appearance: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.select-wrap.disabled {
    opacity: 0.6;
    background: #f0f0f0;
}

.chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}

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

.results-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.results-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.clear-filters-btn {
    border: 0;
    background: #fdf2f4;
    color: #ef4f6f;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cat-card.sub-cat {
    padding: 14px 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cat-card.sub-cat:active {
    border-color: var(--primary);
    background: #f7faf5;
}

.w-full {
    width: 100% !important;
}

.sticky-top-actions {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* RTL Adjustments */
.select-wrap i {
    margin-left: 8px;
    margin-right: 0;
}

.select-wrap::after {
    margin-right: auto;
    margin-left: 4px;
}

/* --- Premium Home Redesign --- */

.home-hero {
    background: linear-gradient(155deg, #0f1419 0%, #1b2a20 65%, #2f4e26 100%);
    color: #fff;
    padding: 30px 20px 80px;
    margin: 0 -14px 20px -14px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
}

.hero-content h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 25px;
    max-width: 90%;
}

.hero-search {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 52px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    cursor: pointer;
}

.hero-search i {
    color: var(--primary);
}

.hero-search span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 24px;
    position: absolute;
    bottom: -40px;
    left: 20px;
    right: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item strong {
    font-size: 18px;
    color: var(--secondary);
}

.stat-item span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.home-services {
    margin-top: 50px;
    padding: 0 6px;
}

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

.service-btn {
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
}

.s-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.service-btn:active .s-icon {
    transform: scale(0.92);
}

.s-icon.purple { background: #f3f0ff; color: #7c5dfa; }
.s-icon.green { background: #e6fffa; color: #38b2ac; }
.s-icon.blue { background: #ebf8ff; color: #3182ce; }
.s-icon.orange { background: #fffaf0; color: #ed8936; }

.service-btn span {
    font-size: 11px;
    font-weight: 800;
    color: var(--text);
}

.home-section {
    padding: 10px 0;
}

.home-section.bg-light {
    background: #fdfdfd;
    margin: 0 -14px;
    padding: 20px 14px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

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

.section-head h3 {
    font-size: 17px;
    font-weight: 800;
}

.specialties-scroll, .offers-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}

.spec-item {
    border: 0;
    background: #fff;
    padding: 12px;
    border-radius: 18px;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    font-family: inherit;
}

.spec-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.spec-item span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.offer-mini-card {
    min-width: 220px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.offer-mini-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.offer-mini-body {
    padding: 12px;
}

.offer-mini-body h4 {
    font-size: 13px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.o-price {
    font-weight: 800;
    color: var(--primary);
}

.o-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4f71;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.home-footer-cta {
    padding: 20px 0;
}

.cta-card {
    background: var(--secondary);
    color: #fff;
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.cta-card i {
    font-size: 32px;
    color: var(--primary);
}

.cta-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.cta-text p {
    font-size: 12px;
    opacity: 0.7;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    margin-right: auto;
}

.pag-wrap {
    padding: 20px 0;
}

.spec-btn {
    border: 0;
    background: #fff;
    padding: 16px 8px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    cursor: pointer;
    font-family: inherit;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.section-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 0;
}

