:root{
    --home-purple:#6d28d9;
    --home-purple-dark:#4c1d95;
    --home-purple-soft:#f5f3ff;
    --home-ink:#172033;
    --home-muted:#667085;
    --home-line:#e8eaf0;
    --home-bg:#f8f9fc;
    --home-gold:#b7791f;
}
.home-v3{background:var(--home-bg);color:var(--home-ink);font-family:inherit}
.home-shell{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.home-hero{
    position:relative;overflow:hidden;
    padding:58px 0 52px;
    background:
      radial-gradient(circle at 15% 15%,rgba(124,58,237,.14),transparent 28%),
      radial-gradient(circle at 90% 85%,rgba(59,130,246,.10),transparent 30%),
      linear-gradient(180deg,#fff 0%,#faf8ff 100%);
    border-bottom:1px solid #eee9f8;
}
.hero-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center}
.hero-kicker,.section-eyebrow{
    display:inline-flex;align-items:center;gap:7px;
    color:var(--home-purple);font-size:13px;font-weight:900;margin-bottom:12px
}
.hero-kicker:before,.section-eyebrow:before{content:"";width:20px;height:3px;border-radius:10px;background:currentColor}
.hero-copy h1{font-size:clamp(34px,4.2vw,58px);line-height:1.35;font-weight:950;letter-spacing:-1.5px;margin:0 0 16px}
.hero-copy h1 span{color:var(--home-purple)}
.hero-copy>p{font-size:17px;line-height:2;color:var(--home-muted);max-width:520px;margin:0}
.hero-trust{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}
.hero-trust span{padding:8px 11px;border:1px solid #e9e2f7;background:rgba(255,255,255,.75);border-radius:11px;font-size:12px;color:#6b7280}
.hero-trust strong{font-size:15px;color:var(--home-ink);margin-left:3px}
.hero-search-card{background:#fff;border:1px solid #e7e3ef;border-radius:26px;padding:24px;box-shadow:0 24px 60px rgba(56,35,92,.11)}
.search-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.search-card-head>div:first-child{display:flex;flex-direction:column;gap:3px}
.search-card-head span{font-size:12px;color:var(--home-purple);font-weight:900}
.search-card-head strong{font-size:21px;font-weight:950}
.search-symbol{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:var(--home-purple-soft);color:var(--home-purple);font-size:28px;font-weight:900}
.home-search-form{display:grid;gap:12px}
.home-search-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.home-field{display:grid;gap:7px}
.home-field>span{font-size:12px;font-weight:850;color:#475467}
.home-field input,.home-field select{width:100%;height:50px;border:1px solid #dfe3ea;border-radius:12px;background:#fff;padding:0 13px;font:inherit;font-size:14px;color:#1f2937;outline:none;transition:.18s}
.home-field input:focus,.home-field select:focus{border-color:#a78bfa;box-shadow:0 0 0 4px rgba(124,58,237,.09)}
.home-field-main input{height:55px;font-size:15px}
.home-search-submit{height:52px;border:0;border-radius:13px;background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff;font:inherit;font-size:14px;font-weight:950;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 10px 24px rgba(109,40,217,.22);transition:.18s}
.home-search-submit:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(109,40,217,.28)}
.search-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:15px;padding-top:14px;border-top:1px solid #f0edf4;font-size:11px}
.search-shortcuts>span{color:#98a2b3}
.search-shortcuts a{color:#5b21b6;text-decoration:none;font-weight:850;background:#f7f4ff;padding:5px 8px;border-radius:8px}
.home-content{padding-block:12px 56px}
.home-section{padding:46px 0;border-bottom:1px solid var(--home-line)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.section-head h2,.compact-empty h2{font-size:27px;line-height:1.45;font-weight:950;margin:0 0 5px}
.section-head p,.compact-empty p{font-size:13px;line-height:1.9;color:var(--home-muted);margin:0}
.section-eyebrow{margin-bottom:7px;font-size:12px}.section-eyebrow.gold{color:var(--home-gold)}.section-eyebrow.blue{color:#2563eb}
.section-link{flex:0 0 auto;color:var(--home-purple);font-size:12px;font-weight:900;text-decoration:none;padding:9px 12px;border-radius:10px;background:var(--home-purple-soft)}
.section-link:hover{color:var(--home-purple-dark)}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.category-tile{min-height:88px;display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--home-line);border-radius:17px;background:#fff;text-decoration:none;color:var(--home-ink);transition:.18s}
.category-tile:hover{transform:translateY(-2px);border-color:#d7c9f7;box-shadow:0 12px 28px rgba(33,24,55,.07);color:var(--home-ink)}
.category-icon{flex:0 0 45px;width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:var(--home-purple-soft);color:var(--home-purple);font-size:18px;font-weight:950}
.category-copy{display:grid;gap:3px;min-width:0}.category-copy strong{font-size:14px;font-weight:950}.category-copy small{font-size:11px;color:#98a2b3}
.tile-arrow{margin-right:auto;color:#a78bfa;font-weight:900}
.store-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(245px,1fr);grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}
.store-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.home-store-card{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--home-line);border-radius:19px;text-decoration:none;color:var(--home-ink);transition:.18s;scroll-snap-align:start;transform:translate3d(0,0,0)}
.home-store-card:hover{transform:translateY(-3px);box-shadow:0 15px 34px rgba(26,32,44,.09);border-color:#ddd4ef;color:var(--home-ink)}
.home-store-card.promoted{border-color:#ead9ad}
.store-media{position:relative;aspect-ratio:16/10;background:#f1f3f6;overflow:hidden}
.store-media > img.home-store-cover{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.home-store-card:hover .store-media > img.home-store-cover {
    transform: scale(1.035);
}
.promoted-badge,.online-badge{position:absolute;top:11px;right:11px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:950;backdrop-filter:blur(8px)}
.promoted-badge{background:rgba(255,248,225,.93);color:#8a5a0a;border:1px solid rgba(183,121,31,.22)}
.online-badge{background:rgba(239,246,255,.94);color:#1d4ed8;border:1px solid rgba(37,99,235,.18)}
.store-copy{padding:14px}.store-copy>small{font-size:10px;color:var(--home-purple);font-weight:850}.store-copy h3{font-size:17px;line-height:1.6;font-weight:950;margin:4px 0}.store-copy p{min-height:24px;font-size:11px;line-height:1.8;color:var(--home-muted);margin:0 0 12px}
.store-cta{display:flex;align-items:center;justify-content:space-between;padding-top:11px;border-top:1px solid #f0f1f4;font-size:11px;font-weight:900;color:var(--home-purple)}
.province-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}
.province-tile{position:relative;min-height:84px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;padding:14px 15px;background:#fff;border:1px solid var(--home-line);border-radius:16px;color:var(--home-ink);text-decoration:none;transition:.18s}
.province-tile:hover{border-color:#d9cdf5;box-shadow:0 10px 24px rgba(33,24,55,.06);color:var(--home-ink)}
.province-tile div{display:grid;gap:4px}.province-tile strong{font-size:14px;font-weight:950}.province-tile small{font-size:10px;color:#98a2b3}
.province-tile>span{font-size:22px;font-weight:950;color:var(--home-purple)}.province-tile>em{grid-column:2;font-size:9px;color:#98a2b3;font-style:normal;text-align:center}
.compact-empty{display:flex;align-items:center;justify-content:space-between;gap:24px}
.primary-soft-btn{display:inline-flex;padding:11px 15px;border-radius:11px;background:var(--home-purple);color:#fff;text-decoration:none;font-size:12px;font-weight:950}
.home-owner-cta{margin-top:46px;padding:30px 32px;border-radius:24px;background:linear-gradient(135deg,#201633,#4c1d95);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:25px;overflow:hidden}
.home-owner-cta span{font-size:11px;color:#ddd6fe;font-weight:900}.home-owner-cta h2{font-size:25px;font-weight:950;margin:5px 0}.home-owner-cta p{font-size:12px;color:#ddd6fe;margin:0}
.home-owner-cta>a{flex:0 0 auto;display:flex;align-items:center;gap:10px;background:#fff;color:#4c1d95;text-decoration:none;padding:12px 16px;border-radius:12px;font-size:12px;font-weight:950}
@media(max-width:991px){
    .hero-grid{grid-template-columns:1fr;gap:30px}.hero-copy{text-align:center}.hero-copy>p{margin-inline:auto}.hero-trust{justify-content:center}
    .category-grid,.province-grid,.store-grid{grid-template-columns:repeat(2,1fr)}
    .store-rail{grid-template-columns:none;grid-auto-columns:minmax(250px,43%)}
}
@media(max-width:640px){
    .home-shell{width:min(100% - 22px,1180px)}.home-hero{padding:34px 0 30px}
    .hero-copy h1{font-size:34px;letter-spacing:-.8px}.hero-copy>p{font-size:14px}.hero-trust span{font-size:10px}
    .hero-search-card{padding:17px;border-radius:20px}.home-search-row{grid-template-columns:1fr}
    .home-section{padding:34px 0}.section-head{align-items:flex-start;flex-direction:column;gap:12px}.section-head h2,.compact-empty h2{font-size:22px}
    .category-grid,.province-grid{grid-template-columns:1fr 1fr;gap:8px}.category-tile{padding:11px;min-height:76px}.category-icon{width:38px;height:38px;flex-basis:38px}.category-copy strong{font-size:12px}.tile-arrow{display:none}
    .province-tile{min-height:74px;padding:11px}.province-tile strong{font-size:12px}.province-tile>span{font-size:18px}
    .store-grid{display:grid;grid-auto-flow:column;grid-auto-columns:82%;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}
    .store-rail{grid-auto-columns:82%}
    .compact-empty,.home-owner-cta{align-items:flex-start;flex-direction:column}.home-owner-cta{padding:24px}.home-owner-cta h2{font-size:21px}.home-owner-cta>a{width:100%;justify-content:center}
}


/* =========================================================
   STEP 39 - AJAX QUICK SEARCH
========================================================= */
.home-quick-search-field{
    position:relative;
    z-index:30;
}

.home-quick-search-wrap{
    position:relative;
}

.home-quick-search-wrap>input{
    padding-left:44px !important;
}

.home-quick-loader{
    position:absolute;
    left:15px;
    top:50%;
    width:18px;
    height:18px;
    margin-top:-9px;
    border:2px solid #ddd6fe;
    border-top-color:#7c3aed;
    border-radius:50%;
    opacity:0;
    pointer-events:none;
}

.home-quick-loader.is-visible{
    opacity:1;
    animation:homeQuickSpin .7s linear infinite;
}

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

.home-quick-results{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    left:0;
    z-index:100;
    max-height:min(540px,65vh);
    overflow:auto;
    padding:8px;
    border:1px solid #e5e7eb;
    border-radius:17px;
    background:#fff;
    box-shadow:
        0 24px 58px rgba(15,23,42,.16),
        0 0 0 1px rgba(124,58,237,.035);
}

.home-result-group+.home-result-group{
    margin-top:7px;
    padding-top:7px;
    border-top:1px solid #f1f5f9;
}

.home-result-group-title{
    padding:5px 8px 7px;
    color:#7c3aed;
    font-size:11px;
    font-weight:950;
}

.home-result-group-items{
    display:grid;
    gap:3px;
}

.home-quick-result-item{
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto 20px;
    align-items:center;
    gap:10px;
    min-height:56px;
    padding:7px 8px;
    border-radius:12px;
    color:#172033;
    text-decoration:none;
    transition:background .15s ease,transform .15s ease;
}

.home-quick-result-item:hover,
.home-quick-result-item.is-active{
    background:#f8f5ff;
    color:#172033;
    transform:translateX(-1px);
}

.home-result-media{
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    overflow:hidden;
    border-radius:11px;
    background:#f5f3ff;
}

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

.home-result-icon{
    font-size:19px;
}

.home-result-copy{
    display:grid;
    gap:2px;
    min-width:0;
}

.home-result-copy strong{
    overflow:hidden;
    font-size:13px;
    font-weight:950;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.home-result-copy small{
    overflow:hidden;
    color:#667085;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.home-result-badge{
    padding:4px 6px;
    border-radius:7px;
    background:#f5f3ff;
    color:#6d28d9;
    font-size:9px;
    font-weight:900;
    white-space:nowrap;
}

.home-result-arrow{
    color:#a78bfa;
    font-size:15px;
    font-weight:950;
}

.home-result-all{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:7px;
    padding:10px 12px;
    border-radius:11px;
    background:linear-gradient(135deg,#7c3aed,#5b21b6);
    color:#fff;
    text-decoration:none;
    font-size:11px;
    font-weight:950;
}

.home-result-all:hover{
    color:#fff;
}

.home-quick-empty{
    padding:16px 12px;
    text-align:center;
}

.home-quick-empty strong,
.home-quick-empty small{
    display:block;
}

.home-quick-empty strong{
    font-size:13px;
    font-weight:950;
}

.home-quick-empty small{
    margin-top:4px;
    color:#667085;
    font-size:10px;
}

.home-quick-empty.error{
    color:#b91c1c;
    font-size:11px;
}

@media(max-width:640px){
    .home-quick-results{
        max-height:56vh;
        border-radius:14px;
    }

    .home-quick-result-item{
        grid-template-columns:38px minmax(0,1fr) auto;
    }

    .home-result-media{
        width:38px;
        height:38px;
    }

    .home-result-badge{
        display:none;
    }

    .home-result-arrow{
        display:none;
    }
}

@media(prefers-reduced-motion:reduce){
    .home-quick-loader.is-visible{
        animation:none;
    }

    .home-quick-result-item{
        transition:none;
    }
}


/* =========================================================
   STEP 57 — COMPACT HOME STORE CARDS
========================================================= */
.home-store-card{
    position:relative;
    border-radius:18px !important;
}

.home-store-card .store-media{
    position:relative;
    aspect-ratio:16/8.7 !important;
}

.home-store-card .store-media > img.home-store-cover{
    width:100%;
    height:100%;
    object-fit:cover;
}

.home-store-logo{
    position:absolute;
    right:12px;
    bottom:10px;
    z-index:3;
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    overflow:visible;
    border:0 !important; padding:3px; outline:none !important; box-sizing:border-box;
    border-radius:15px;
    background:#fff !important;
    box-shadow:none !important;
    transform:translate3d(0,0,0);
    backface-visibility:hidden;
}

.home-store-logo img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important; border:0 !important; outline:none !important; box-shadow:none !important;
    transform:none !important;
}

.home-store-card .store-copy{
    padding:12px 13px 13px !important;
}

.home-store-card .store-copy>small:first-child{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:3px 7px;
    border-radius:7px;
    background:#f5f3ff;
    color:#6d28d9;
    font-size:9px !important;
    font-weight:900;
}

.home-store-card .store-copy h3{
    margin:7px 0 2px !important;
    font-size:16px !important;
    line-height:1.65 !important;
}

.home-store-card .store-copy>p:not(.home-store-excerpt){
    min-height:0 !important;
    margin:0 0 5px !important;
    color:#7b8494 !important;
    font-size:10px !important;
}

.home-store-excerpt{
    display:-webkit-box;
    min-height:40px !important;
    max-height:40px;
    overflow:hidden;
    margin:5px 0 7px !important;
    color:#526071 !important;
    font-size:11px !important;
    line-height:1.85 !important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.home-store-meta-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin:7px 0 9px;
    color:#94a3b8;
    font-size:9px;
    font-weight:800;
}

.home-store-cta{
    min-height:39px;
    margin-top:0;
    padding:8px 11px !important;
    border:0 !important;
    border-radius:10px;
    background:linear-gradient(135deg,#7c3aed,#5b21b6);
    color:#fff !important;
    font-size:11px !important;
    box-shadow:0 8px 18px rgba(109,40,217,.15);
}

.home-store-card:hover .home-store-cta{
    box-shadow:0 11px 23px rgba(109,40,217,.23);
}

.home-store-cta b{
    color:#fff;
    font-size:15px;
}

@media(max-width:640px){
    .home-store-logo{
        width:48px;
        height:48px;
        border-radius:13px;
    }

    .home-store-card .store-copy h3{
        font-size:15px !important;
    }

    .home-store-excerpt{
        min-height:38px !important;
        max-height:38px;
        font-size:10px !important;
    }
}


/* =========================================================
   STEP 59 — IRANSTORES HOME BRAND COVER
========================================================= */
.home-brand-cover{
    position:relative;
    overflow:hidden;
    width:100%;
    height:clamp(260px,30vw,390px);
    margin:0 0 34px;
    border:1px solid #e8e4ef;
    border-radius:26px;
    background:#fff;
    box-shadow:0 18px 45px rgba(28,55,105,.10);
}

.home-brand-cover img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

@media(max-width:760px){
    .home-brand-cover{
        height:230px;
        margin-bottom:24px;
        border-radius:20px;
    }

    .home-brand-cover img{
        object-position:center;
    }
}

@media(max-width:480px){
    .home-brand-cover{
        height:190px;
        border-radius:16px;
    }
}

/* IranStores homepage store badges */
.home-store-card .store-media {
    position: relative;
}

.home-card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.home-card-badges > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #334155;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .16);
    backdrop-filter: blur(7px);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
}

.home-card-status i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
}

.home-card-status.is-open,
.home-card-status.is-online {
    color: #15803d;
}

.home-card-status.is-closed,
.home-card-status.is-unavailable {
    color: #b91c1c;
}

.home-card-type.is-physical {
    color: #1d4ed8;
}

.home-card-type.is-online {
    color: #047857;
}

.home-card-type.is-hybrid {
    color: #6d28d9;
}

.home-card-hours {
    color: #475569 !important;
}

.home-card-offer {
    margin-right: auto;
    border-color: #fed7aa !important;
    background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
    color: #c2410c !important;
}

@media (max-width: 640px) {
    .home-card-badges {
        top: 8px;
        right: 8px;
        left: 8px;
        gap: 4px;
    }

    .home-card-badges > span {
        min-height: 25px;
        padding: 4px 7px;
        font-size: 9px;
    }
}
/* Local finder */
.home-local-intro {
    margin: -7px 0 16px;
    color: #667085;
    font-size: 12px;
    line-height: 1.9;
}

.home-local-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-location-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #c4b5fd;
    border-radius: 13px;
    background: #f5f3ff;
    color: #5b21b6;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.home-location-button:hover {
    border-color: #8b5cf6;
    background: #ede9fe;
    box-shadow: 0 8px 20px rgba(109, 40, 217, .13);
    transform: translateY(-1px);
}

.home-location-button:focus-visible {
    outline: 3px solid rgba(124, 58, 237, .2);
    outline-offset: 2px;
}

.home-location-button:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.home-location-button.is-loading span:first-child {
    animation: home-location-pulse 1s ease-in-out infinite;
}

.home-location-message {
    min-height: 20px;
    margin: -4px 2px 0;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.8;
}

@keyframes home-location-pulse {
    50% {
        opacity: .35;
        transform: scale(1.18);
    }
}

@media (max-width: 700px) {
    .home-local-fields {
        grid-template-columns: 1fr;
    }

    .home-location-button {
        font-size: 11px;
    }
}
/* Home hero — six professional statistic cards */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 24px;
}

.hero-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 78px;
    gap: 10px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, .14);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 247, 255, .94));
    box-shadow: 0 8px 24px rgba(76, 29, 149, .07);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.hero-stat-card::after {
    content: "";
    position: absolute;
    left: -20px;
    bottom: -24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .055);
    pointer-events: none;
}

.hero-stat-card:hover {
    border-color: rgba(124, 58, 237, .34);
    box-shadow: 0 12px 28px rgba(76, 29, 149, .12);
    transform: translateY(-2px);
}

.hero-stat-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(139, 92, 246, .14);
    border-radius: 12px;
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    font-size: 18px;
    line-height: 1;
}

.hero-stat-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.hero-stat-content strong {
    color: #5b21b6;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.hero-stat-content small {
    overflow: hidden;
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="dark"] .hero-stat-card {
    border-color: rgba(196, 181, 253, .16);
    background: linear-gradient(145deg, #1d1725, #17121e);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .hero-stat-card:hover {
    border-color: rgba(196, 181, 253, .36);
}

html[data-theme="dark"] .hero-stat-icon {
    border-color: rgba(196, 181, 253, .14);
    background: #29213a;
}

html[data-theme="dark"] .hero-stat-content strong {
    color: #c4b5fd;
}

html[data-theme="dark"] .hero-stat-content small {
    color: #b7adbd;
}

@media (max-width: 700px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .hero-stat-card {
        min-height: 68px;
        gap: 8px;
        padding: 9px;
        border-radius: 13px;
    }

    .hero-stat-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 15px;
    }

    .hero-stat-content strong {
        font-size: 18px;
    }

    .hero-stat-content small {
        font-size: 8px;
    }
}
/* Home hero — total statistics */
.hero-total-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.hero-total-stat {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    min-width: 0;
    min-height: 74px;
    padding: 11px 12px;
    border: 1px solid rgba(37, 99, 235, .15);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hero-total-stat:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, .13);
    transform: translateY(-2px);
}

.hero-total-stat > span {
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #dbeafe;
    font-size: 16px;
}

.hero-total-stat strong {
    color: #1d4ed8;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.1;
}

.hero-total-stat small {
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
}

.hero-total-stats + .hero-stats-grid {
    margin-top: 10px;
}

html[data-theme="dark"] .hero-total-stat {
    border-color: rgba(147, 197, 253, .18);
    background: linear-gradient(145deg, #172033, #151b29);
}

html[data-theme="dark"] .hero-total-stat > span {
    background: #1e3a5f;
}

html[data-theme="dark"] .hero-total-stat strong {
    color: #93c5fd;
}

@media (max-width: 700px) {
    .hero-total-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .hero-total-stat {
        min-height: 66px;
        padding: 9px;
    }

    .hero-total-stat:last-child {
        grid-column: 1 / -1;
    }
}
