/* Home Page Styles (Mobilekit Dark-Mode & RTL Compatible) */

.home-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #163b7a 0%, #0F1C2F 60%, #102443 100%);
    border: 1px solid rgba(30, 116, 253, 0.28);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.home-hero-card::before {
    content: "";
    position: absolute;
    top: -45px;
    left: -45px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 116, 253, 0.28) 0%, rgba(30, 116, 253, 0) 70%);
    pointer-events: none;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(30, 116, 253, 0.18);
    border: 1px solid rgba(30, 116, 253, 0.35);
    color: #8fc0ff;
    font-size: 12px;
    font-weight: 500;
}

.home-hero-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.45;
}

.home-hero-subtitle {
    font-size: 13px;
    color: #a9bacb;
    line-height: 1.7;
}

.home-hero-regional-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(12, 22, 36, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero-regional-pill .label {
    font-size: 11px;
    color: #8195a6;
}

.home-hero-regional-pill .value {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

/* Section Headers */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}

.home-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #141515;
    margin: 0;
}

body.dark-mode-active .home-section-heading {
    color: #ffffff;
}

.home-section-heading i {
    color: #1E74FD;
    font-size: 18px;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #1E74FD;
}

/* KPI Stat Cards */
.home-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e5e9f2;
    background: #ffffff;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

body.dark-mode-active .home-stat-card {
    background: #0F1C2F;
    border-color: #1B283B;
}

.home-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 116, 253, 0.45);
}

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

.home-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.home-stat-icon.is-purple {
    background: #6236FF;
}

.home-stat-number {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #141515;
    margin-bottom: 2px;
}

body.dark-mode-active .home-stat-number {
    color: #ffffff;
}

.home-stat-label {
    font-size: 12px;
    color: #586d7f;
}

.home-stat-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(30, 116, 253, 0.12);
    color: #5fa0ff;
}

/* Secondary Mini Stats & Progress Panel */
.home-insights-card {
    border-radius: 14px;
    border: 1px solid #e5e9f2;
}

body.dark-mode-active .home-insights-card {
    background: #0F1C2F;
    border-color: #1B283B;
}

.home-mini-stat {
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: #f4f7fb;
    border: 1px solid #e5e9f2;
}

body.dark-mode-active .home-mini-stat {
    background: rgba(27, 40, 59, 0.45);
    border-color: rgba(255, 255, 255, 0.04);
}

.home-mini-stat .num {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #141515;
}

body.dark-mode-active .home-mini-stat .num {
    color: #ffffff;
}

.home-mini-stat .lbl {
    display: block;
    font-size: 11px;
    color: #8195a6;
    margin-top: 2px;
}

.home-subsection-title {
    font-size: 13px;
    font-weight: 700;
    color: #141515;
}

body.dark-mode-active .home-subsection-title {
    color: #ffffff;
}

.home-progress-row + .home-progress-row {
    margin-top: 12px;
}

.home-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
    color: #8195a6;
}

.home-progress-meta strong {
    color: #141515;
    font-weight: 600;
}

body.dark-mode-active .home-progress-meta strong {
    color: #ffffff;
}

.home-progress-slim {
    height: 8px;
    border-radius: 999px;
}

.home-progress-slim .progress-bar {
    height: 8px;
    border-radius: 999px;
}

/* City Chips Strip */
.home-city-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.home-city-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #ffffff;
    color: #141515;
    border: 1px solid #e1e6ef;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.dark-mode-active .home-city-chip {
    background: #0F1C2F;
    color: #cbd7e3;
    border-color: #1B283B;
}

.home-city-chip:hover,
.home-city-chip.is-active {
    background: #1E74FD;
    border-color: #1E74FD;
    color: #ffffff !important;
}

/* Specialty Distribution List */
.home-special-row {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 40, 59, 0.75);
}

.home-special-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Doctor & Product Carousel Cards */
.home-entity-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e9f2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.dark-mode-active .home-entity-card {
    background: #0F1C2F;
    border-color: #1B283B;
}

.home-doctor-media {
    position: relative;
    height: 155px;
    overflow: hidden;
    background: #13233b;
}

.home-doctor-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-product-media {
    position: relative;
    height: 150px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.home-product-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.home-card-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(12, 22, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 10px;
    backdrop-filter: blur(4px);
}

.home-entity-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-entity-title a {
    color: inherit;
}

.home-entity-meta {
    font-size: 11px;
    color: #8195a6;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-product-price {
    font-size: 12px;
    font-weight: 700;
    color: #1DCC70;
    margin-top: 6px;
}

/* Places Listview Card */
.home-places-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e9f2;
}

body.dark-mode-active .home-places-card {
    background: #0F1C2F;
    border-color: #1B283B;
}

.home-places-card .listview {
    background: transparent !important;
    border: 0 !important;
}

.home-place-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    margin-left: 12px;
    flex-shrink: 0;
}

.home-place-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 116, 253, 0.18);
    color: #5fa0ff;
    font-size: 20px;
    margin-left: 12px;
    flex-shrink: 0;
}

.home-place-sub {
    font-size: 11px;
    color: #8195a6;
    margin-top: 2px;
}

.home-place-count {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(29, 204, 112, 0.14);
    color: #1DCC70;
    white-space: nowrap;
}

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

.home-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 6px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e9f2;
    color: #141515;
    font-size: 11px;
    font-weight: 600;
    gap: 6px;
}

body.dark-mode-active .home-quick-action {
    background: #0F1C2F;
    border-color: #1B283B;
    color: #dbe6f0;
}

.home-quick-action i {
    font-size: 20px;
    color: #1E74FD;
}

.home-quick-action:hover {
    border-color: #1E74FD;
    color: #ffffff;
}
