/* Shop + Admin extensions */
.shop-main { min-height: 60vh; padding-top: 0; }
:root { --orb-opacity: 0.12; }
[data-theme="dark"] { --orb-opacity: 0.18; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 1.25rem; font-size: 0.85rem; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--text-muted); }
.breadcrumb__item:not(:last-child)::after { content: '/'; margin-right: 6px; opacity: 0.5; }
.breadcrumb__item a { color: var(--accent-primary); text-decoration: none; }
.breadcrumb__item a:hover { text-decoration: underline; }
.breadcrumb__item span { color: var(--text-secondary); }

/* Hero enhancements */
.hero--shop .hero-panel.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
[data-theme="dark"] .hero--shop .hero-panel.glass-card {
    background: rgba(42, 42, 74, 0.85);
}
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 1rem;
    width: 100%;
}
.stats-cards .stat-card {
    text-align: center;
    padding: 1rem 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-cards .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}
.stats-cards .stat-card strong {
    font-size: 1.35rem;
    color: var(--accent-primary);
}
.stats-cards .stat-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Feature strip — 21st.dev inspired */
.features-strip { padding: 2rem 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 57, 78, 0.3);
    box-shadow: var(--shadow-card-hover);
}
.feature-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(239, 57, 78, 0.08);
    color: var(--accent-primary);
    font-size: 1.25rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

.category-pills--large { gap: 12px; }
.category-pill--large {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.category-pill--large:hover {
    transform: translateY(-2px);
    background: rgba(239, 57, 78, 0.06);
}
.category-pill--large i { margin-left: 6px; opacity: 0.7; }

.catalog-filters--glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-card);
}

/* Product card shine on hover */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.product-card:hover::after { transform: translateX(100%); }

.shop-hero { padding: 2.5rem 0 1rem; text-align: center; }
.shop-hero__title { font-size: 1.75rem; font-weight: 800; }
.shop-hero__desc { color: var(--text-secondary); margin-top: 0.5rem; }
.page-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.section-subtitle { font-size: 1.15rem; margin: 2rem 0 1rem; }
.empty-state { text-align: center; color: var(--text-muted); padding: 2rem; }
.empty-state-card { text-align: center; max-width: 420px; margin: 2rem auto; padding: 2rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.empty-state-card__img { display: block; margin: 0 auto 1.25rem; width: min(240px, 100%); height: auto; }
.empty-state-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.empty-state-card__text { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.25rem; font-size: 0.95rem; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 1.25rem 0; }
.payment-badge { position: relative; opacity: 0.55; transition: opacity 0.2s, transform 0.2s; }
.payment-badge.is-active { opacity: 1; transform: scale(1.03); }
.payment-badge__tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--accent-primary); color: #fff; font-size: 0.65rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.checkout-sandbox { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.85rem; margin: 0.75rem 0; text-align: center; }
.checkout-trust { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }
.enamad-label { text-align: center; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.75rem; font-size: 0.95rem; }
.enamad-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; }
.enamad-placeholder__note { font-size: 0.75rem; color: var(--text-muted); max-width: 200px; text-align: center; line-height: 1.5; }
.trust-bar__enamad { color: var(--accent-primary); text-decoration: none; font-weight: 500; }
.trust-bar__enamad:hover { text-decoration: underline; }
.home-hero .reveal,
.home-stats .reveal {
    opacity: 1;
    transform: none;
}

.hero--shop .hero-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
    max-width: none;
    margin: 0;
    padding: 3rem 0 4rem;
}

.hero--shop .hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-side {
    display: flex;
    align-items: stretch;
}

.stats-cards--side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 0;
}

.stat-card--hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 1.35rem 1.5rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .stat-card--hero {
    background: rgba(42, 42, 74, 0.85);
}

.stat-card--hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card__icon {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-card--hero strong {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 0;
}

.stat-card--hero span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 1rem 0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; background: var(--bg-elevated); color: var(--text-primary); margin-top: 6px; }
.input-sm { width: 70px; }
textarea.input { resize: vertical; }
.auth-box, .checkout-box { max-width: 420px; margin: 0 auto; }
.auth-box label, .admin-form label, .checkout-box label { display: block; margin-bottom: 1rem; font-weight: 500; font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-link { background: none; border: none; cursor: pointer; color: var(--accent-primary); font-family: inherit; }
.btn-link.danger { color: #dc2626; }
.auth-link { margin-top: 1rem; text-align: center; font-size: 0.9rem; }
.nav-user { font-size: 0.85rem; color: var(--text-secondary); margin-left: 8px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.data-table th, .data-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.data-table th { background: var(--bg-alt); font-weight: 600; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.cart-summary__actions { display: flex; gap: 10px; }
.checkout-list { list-style: none; margin: 1rem 0; padding: 0; }
.checkout-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.checkout-total { font-size: 1.15rem; margin: 1rem 0; }
.checkout-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.product-detail__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.product-detail__price { font-size: 1.5rem; color: var(--accent-primary); font-weight: 800; margin: 1rem 0; }
.product-detail__desc { line-height: 1.9; color: var(--text-secondary); margin-bottom: 1.5rem; }
.product-detail__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.product-thumb-link { display: block; text-decoration: none; }
.admin-bar { background: #1e293b; color: #fff; padding: 12px 0; }
.admin-bar a { color: #e2e8f0; margin-left: 16px; text-decoration: none; font-size: 0.9rem; }
.admin-bar a:hover { color: #fff; }
.admin-bar__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-main { padding: 2rem 0 4rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-card); }
.stat-card strong { display: block; font-size: 1.25rem; margin-top: 8px; }
.thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.admin-form { max-width: 560px; }
.admin-form--wide { max-width: 720px; }
.admin-hint { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; margin: -0.5rem 0 1rem; }
.trust-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 0.85rem; }
.trust-bar__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; color: var(--text-secondary); }
.trust-bar a { color: var(--accent-primary); text-decoration: none; }
.stats-row { display: flex; gap: 24px; justify-content: center; margin-top: 1rem; color: var(--text-secondary); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 1rem; }
.catalog-filters .input { width: auto; min-width: 140px; margin-top: 0; flex: 1; }
.product-cat { font-size: 0.8rem; color: var(--accent-primary); }
.product-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); margin: 8px 0; }
.product-rating { color: #f59e0b; }
.product-sales { color: var(--text-secondary); }
.product-price del { color: var(--text-muted); font-size: 0.9em; margin-left: 8px; }
.trust-badges { display: flex; gap: 12px; flex-wrap: wrap; margin: 1rem 0; font-size: 0.9rem; color: var(--text-secondary); }
.product-links { display: flex; gap: 10px; margin-bottom: 1rem; }
.specs-grid { display: grid; gap: 12px; margin-bottom: 1rem; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 6px 0; }
.feature-list i { color: #22c55e; margin-left: 8px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.reviews-list { display: grid; gap: 12px; margin-bottom: 1.5rem; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.review-card__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-form { max-width: 480px; margin-top: 1rem; }
.products-grid--compact .product-card { padding: 1rem; }
.cart-coupon { display: flex; gap: 10px; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.text-success { color: #047857; }
.account-nav { display: flex; gap: 10px; margin-bottom: 1.5rem; }
.ticket-thread { display: grid; gap: 12px; margin: 1.5rem 0; }
.ticket-msg { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.ticket-msg--staff { border-color: #93c5fd; background: #eff6ff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-grid h4 { margin-bottom: 0.75rem; }
.footer-grid a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 6px; }
.admin-filters { display: flex; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-filters .input { width: auto; min-width: 160px; margin-top: 0; }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1rem; }
.category-pill { padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; text-decoration: none; color: var(--text-secondary); }
.category-pill:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination__link { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-secondary); }
.pagination__link.is-active { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }
.product-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.product-gallery { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; border-radius: 6px; overflow: hidden; width: 64px; height: 64px; }
.gallery-thumb.is-active { border-color: var(--accent-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-updates { margin-top: 1.5rem; padding: 1rem; background: var(--bg-alt); border-radius: var(--radius-sm); }
.product-updates ul { margin: 0; padding-right: 1.2rem; }
.compare-table-wrap { overflow-x: auto; }
.blog-list { display: grid; gap: 1rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.blog-card--with-thumb { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; }
.blog-card__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    line-height: 0;
}
.blog-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card__body { padding: 1.25rem; }
.blog-card h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
@media (max-width: 640px) {
    .blog-card--with-thumb { grid-template-columns: 1fr; }
    .blog-card__thumb { aspect-ratio: 12 / 5; min-height: auto; }
}
.blog-post__content { line-height: 1.9; margin: 1.5rem 0; }
.blog-post__cover {
    margin: 1rem 0 1.5rem;
    position: relative;
    aspect-ratio: 12 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    line-height: 0;
}
.blog-post__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-chat-fab { position: fixed; bottom: 24px; left: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.live-chat-fab a { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); text-decoration: none; }
.gallery-admin { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
@media (max-width: 900px) {
    .hero--shop .hero-content {
        grid-template-columns: 1fr;
        padding: 2rem 0 3rem;
    }

    .stats-cards--side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card--hero {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 140px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
    .data-table { font-size: 0.8rem; }
    .cart-summary { flex-direction: column; align-items: stretch; }
    .stats-cards { grid-template-columns: 1fr; }
    .hero--shop .hero-content { grid-template-columns: 1fr; }
    .stats-cards--side { flex-direction: column; }
    .stat-card--hero { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card::after,
    .feature-card,
    .stats-cards .stat-card,
    .category-pill--large,
    .showcase-card,
    .home-hero__orb,
    .hero-deck__card { transition: none; animation: none; }
    .product-card:hover::after { transform: none; }
}

/* ========== Homepage (FactWeb-inspired) ========== */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 2rem) 0 3rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 45%, #f0f9ff 100%);
}
[data-theme="dark"] .home-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #232340 50%, #1f2937 100%);
}
.home-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(239, 57, 78, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(25, 191, 211, 0.1) 0%, transparent 40%);
    pointer-events: none;
}
.home-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}
.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(239, 57, 78, 0.1);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.home-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.home-hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 520px;
    margin-bottom: 1.25rem;
}
.home-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.home-pill i { color: var(--accent-primary); }
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.home-hero__visual {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: homeFloat 6s ease-in-out infinite;
}
.home-hero__orb--1 {
    width: 180px; height: 180px;
    background: rgba(239, 57, 78, 0.25);
    top: 10%; right: 10%;
}
.home-hero__orb--2 {
    width: 140px; height: 140px;
    background: rgba(42, 171, 238, 0.2);
    bottom: 15%; left: 5%;
    animation-delay: -3s;
}
@keyframes homeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.home-hero__mockup {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-primary), #c62828);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(239, 57, 78, 0.35);
    font-size: 4rem;
    color: #fff;
}
.home-hero__mockup i:nth-child(2) {
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 2rem;
    background: #fff;
    color: var(--accent-primary);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}
.home-hero__mockup i:nth-child(3) {
    position: absolute;
    bottom: 8px;
    right: -12px;
    font-size: 1.75rem;
    background: var(--accent-cyan);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.home-tiles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.home-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.home-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}
.home-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.home-tile--hot .home-tile__icon { background: #fef2f2; color: #ef394e; }
.home-tile--star .home-tile__icon { background: #fffbeb; color: #f59e0b; }
.home-tile--sale .home-tile__icon { background: #ecfdf5; color: #059669; }
.home-tile--blog .home-tile__icon { background: #eff6ff; color: #2563eb; }
.home-tile__label { font-weight: 700; font-size: 0.95rem; flex: 1; }
.home-tile__arrow { color: var(--text-muted); font-size: 0.8rem; }

.section-head { text-align: center; margin-bottom: 2rem; }
.section-head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    text-align: right;
    flex-wrap: wrap;
}
.section-head__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
}
.section-head__sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.section-head__more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.section-head__more:hover { text-decoration: underline; }

.cat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg, 18px);
    text-decoration: none;
    color: var(--text-primary, #f8fafc);
    background: var(--bg-card, #121826);
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
    min-height: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.3);
}
.cat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Category hover theme glows */
.cat-card--telegram:hover {
    box-shadow: 0 18px 38px -8px rgba(42, 171, 238, 0.3), 0 0 0 1px rgba(42, 171, 238, 0.4);
}
.cat-card--bale:hover {
    box-shadow: 0 18px 38px -8px rgba(0, 200, 83, 0.3), 0 0 0 1px rgba(0, 200, 83, 0.4);
}
.cat-card--web:hover {
    box-shadow: 0 18px 38px -8px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.4);
}
.cat-card--default:hover {
    box-shadow: 0 18px 38px -8px rgba(239, 57, 78, 0.3), 0 0 0 1px rgba(239, 57, 78, 0.4);
}

.cat-card__media {
    position: relative;
    width: 100%;
    height: 190px;
    background: #0b0f19;
    overflow: hidden;
}

.cat-card__cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
}

.cat-card:hover .cat-card__cover {
    transform: scale(1.05);
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 24, 38, 0.05) 0%, rgba(18, 24, 38, 0.75) 70%, var(--bg-card, #121826) 100%);
    pointer-events: none;
}

.cat-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.cat-card--telegram .cat-card__badge { background: linear-gradient(135deg, rgba(42, 171, 238, 0.9), rgba(30, 136, 201, 0.9)); }
.cat-card--bale .cat-card__badge { background: linear-gradient(135deg, rgba(0, 200, 83, 0.9), rgba(0, 150, 36, 0.9)); }
.cat-card--web .cat-card__badge { background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(91, 33, 182, 0.9)); }
.cat-card--default .cat-card__badge { background: linear-gradient(135deg, rgba(239, 57, 78, 0.9), rgba(198, 40, 40, 0.9)); }

.cat-card__count {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.cat-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.3rem 1.1rem;
    background: var(--bg-card, #121826);
    position: relative;
    z-index: 2;
    margin-top: -15px;
}

.cat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.cat-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #f8fafc);
    margin: 0;
}

.cat-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
}

.cat-card__link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-violet, #a78bfa);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s ease;
}

.cat-card--telegram .cat-card__link { color: #38bdf8; }
.cat-card--bale .cat-card__link { color: #4ade80; }
.cat-card--web .cat-card__link { color: #c084fc; }

.cat-card__arrow {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.cat-card:hover .cat-card__arrow {
    transform: translateX(-5px);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.showcase-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}
.showcase-card--featured { border-color: rgba(239, 57, 78, 0.3); }
.showcase-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}
.showcase-card__badge--sale {
    right: auto;
    left: 10px;
    background: #059669;
}
.showcase-card__thumb {
    display: block;
    overflow: hidden;
    background: #f1f5f9;
    line-height: 0;
    flex-shrink: 0;
}
.showcase-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
    border: none;
}
.showcase-card:hover .showcase-card__thumb img { transform: scale(1.05); }
.showcase-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    width: 100%;
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.5;
    background: var(--bg-alt);
}
.showcase-card__body {
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.showcase-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    min-height: 3em;
}
.showcase-card__title a {
    color: inherit;
    text-decoration: none;
}
.showcase-card__title a:hover { color: var(--accent-primary); }
.showcase-card__sales {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.showcase-card__sales i { color: var(--accent-primary); margin-left: 4px; }
.showcase-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.showcase-card__price strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
}
.showcase-card__price del {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.showcase-card__cta {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.home-sale {
    background: linear-gradient(180deg, rgba(239,57,78,0.06) 0%, transparent 100%);
}

.home-stats {
    background: linear-gradient(135deg, var(--accent-primary), #c62828);
    padding: 2.5rem 0;
    color: #fff;
}
.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}
.home-stats__num {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
}
.home-stats__item span {
    font-size: 0.95rem;
    opacity: 0.9;
}

.home-cta__card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    overflow: hidden;
}
[data-theme="dark"] .home-cta__card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid var(--border);
}
.home-cta__content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.home-cta__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.home-cta__list li {
    padding: 6px 0;
    font-size: 0.95rem;
    opacity: 0.92;
}
.home-cta__list i {
    color: #4ade80;
    margin-left: 8px;
}
.home-cta__hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}
.home-cta__hint strong { color: #fff; }
.home-cta__art {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}
.home-cta__art img {
    width: min(280px, 100%);
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.35));
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.home-blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-blog-card__thumb {
    display: block;
    position: relative;
    aspect-ratio: 12 / 5;
    background: var(--bg-alt);
    overflow: hidden;
    line-height: 0;
}
.home-blog-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.home-blog-card:hover .home-blog-card__thumb img { transform: scale(1.04); }
.home-blog-card time {
    display: block;
    margin: 1rem 1.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.home-blog-card h3 {
    font-size: 1rem;
    margin: 0.75rem 1.5rem 0.5rem;
    line-height: 1.6;
}
.home-blog-card h3 a {
    color: inherit;
    text-decoration: none;
}
.home-blog-card h3 a:hover { color: var(--accent-primary); }
.home-blog-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 1.5rem;
}
.home-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0.75rem 1.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
}
.home-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.section--alt { background: var(--bg-alt); }

/* ========== Homepage v2 (FactWeb-inspired layout) ========== */
.home-subnav {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}
.home-subnav__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
}
.home-subnav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}
.home-subnav__links a,
.home-subnav__dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}
.home-subnav__links a:hover,
.home-subnav__dropdown summary:hover { color: var(--accent-primary); }
.home-subnav__links--accent a { color: var(--text-primary); }
.home-subnav__dropdown { position: relative; }
.home-subnav__dropdown summary::-webkit-details-marker { display: none; }
.home-subnav__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card-hover);
    padding: 8px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.home-subnav__menu a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.home-subnav__menu a:hover { background: var(--bg-alt); }

.home-hero--v2 {
    padding: 2.5rem 0 3.5rem;
    background: #f8fafc;
}
[data-theme="dark"] .home-hero--v2 {
    background: linear-gradient(180deg, #1a1a2e 0%, #232340 100%);
}
.home-hero__bg--wave {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ef394e' fill-opacity='0.04' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom center / cover no-repeat,
        radial-gradient(circle at 80% 20%, rgba(239, 57, 78, 0.08) 0%, transparent 50%);
}
.home-hero__inner--v2 {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.home-hero__title--v2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    line-height: 1.45;
    margin-bottom: 0.5rem;
}
.home-hero__brand {
    display: block;
    color: var(--accent-primary);
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    margin-bottom: 0.25rem;
}
.home-hero__tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.home-hero--v2 .home-hero__subtitle {
    max-width: 540px;
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
}

.hero-search {
    display: flex;
    align-items: stretch;
    max-width: 480px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
}
.hero-search__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    min-width: 0;
}
.hero-search__input:focus { outline: none; }
.hero-search__input::placeholder { color: var(--text-muted); }
.hero-search__btn {
    border: none;
    background: var(--accent-primary);
    color: #fff;
    width: 56px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.hero-search__btn:hover { background: #c62828; }

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.hero-perk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.hero-perk i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.hero-deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    perspective: 1200px;
}
.hero-deck__stack {
    position: relative;
    width: min(310px, 92vw);
    height: 380px;
    transform-style: preserve-3d;
}
.hero-deck__card {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 26px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.38);
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.55s ease, box-shadow 0.4s ease;
    will-change: transform, opacity;
    backdrop-filter: blur(12px);
}
.hero-deck__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 3;
}
.hero-deck__card.is-active:hover::after {
    left: 140%;
}
.hero-deck__art {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.6s ease;
}
.hero-deck__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-deck__card.is-active:hover .hero-deck__art img {
    transform: scale(1.05);
}
.hero-deck__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.12) 100%);
    pointer-events: none;
}
.hero-deck__badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hero-deck__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.85rem 1.6rem;
}
.hero-deck__card.is-active {
    z-index: 4;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 1;
    cursor: pointer;
}
.hero-deck__card.is-active:hover {
    transform: translate3d(0, -6px, 16px) scale(1.02) rotate(-1deg);
    box-shadow: 0 30px 65px -10px rgba(0, 0, 0, 0.5);
}
.hero-deck__card.is-back-1 {
    z-index: 3;
    transform: translate3d(24px, 20px, -40px) scale(0.95) rotate(3.5deg);
    opacity: 0.88;
    cursor: pointer;
}
.hero-deck__card.is-back-1:hover {
    opacity: 0.95;
    transform: translate3d(18px, 14px, -20px) scale(0.97) rotate(2deg);
}
.hero-deck__card.is-back-2 {
    z-index: 2;
    transform: translate3d(48px, 40px, -80px) scale(0.90) rotate(7deg);
    opacity: 0.72;
    cursor: pointer;
}
.hero-deck__card.is-back-2:hover {
    opacity: 0.85;
    transform: translate3d(40px, 32px, -60px) scale(0.92) rotate(4deg);
}
.hero-deck__card.is-back-3 {
    z-index: 1;
    transform: translate3d(72px, 60px, -120px) scale(0.85) rotate(10deg);
    opacity: 0.50;
    cursor: pointer;
}
.hero-deck__card--fire { background: linear-gradient(135deg, #4f46e5 0%, #312e81 60%, #1e1b4b 100%); }
.hero-deck__card--star { background: linear-gradient(135deg, #0d9488 0%, #0f766e 60%, #134e4a 100%); }
.hero-deck__card--sale { background: linear-gradient(135deg, #d97706 0%, #b45309 60%, #78350f 100%); }
.hero-deck__card--design { background: linear-gradient(135deg, #e11d48 0%, #be123c 60%, #881337 100%); }
.hero-deck__card--fire .hero-deck__shade { background: linear-gradient(to top, rgba(30,27,75,0.95) 0%, rgba(49,46,129,0.4) 55%, transparent 100%); }
.hero-deck__card--star .hero-deck__shade { background: linear-gradient(to top, rgba(19,78,74,0.95) 0%, rgba(15,118,110,0.4) 55%, transparent 100%); }
.hero-deck__card--sale .hero-deck__shade { background: linear-gradient(to top, rgba(120,53,15,0.95) 0%, rgba(180,83,9,0.4) 55%, transparent 100%); }
.hero-deck__card--design .hero-deck__shade { background: linear-gradient(to top, rgba(136,19,55,0.95) 0%, rgba(190,18,60,0.4) 55%, transparent 100%); }
.hero-deck__glow {
    z-index: 1;
    position: absolute;
    top: -25%;
    left: -20%;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(25px);
    pointer-events: none;
}
.hero-deck__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: transform 0.3s ease;
}
.hero-deck__card.is-active:hover .hero-deck__icon {
    transform: scale(1.1) rotate(-5deg);
}
.hero-deck__title {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-deck__desc {
    font-size: 0.85rem;
    opacity: 0.92;
    line-height: 1.65;
    margin-bottom: 1.1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-deck__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.hero-deck__card.is-active:hover .hero-deck__cta {
    background: #fff;
    color: #111;
    transform: translateX(-4px);
}
.hero-deck__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
}
.hero-deck__dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: none;
    background: rgba(148, 163, 184, 0.4);
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-deck__dot:hover {
    background: var(--primary);
}
.hero-deck__dot.is-active {
    width: 28px;
    background: var(--primary);
    box-shadow: 0 0 14px rgba(239, 57, 78, 0.6);
}
.hero-deck__dot.is-active {
    background: var(--accent-primary);
}

/* ——— Admin Panel Modern Design ——— */
.admin-body {
    background: #f8fafc;
    color: #334155;
}
.admin-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.admin-bar__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
}
.admin-bar__badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef394e 0%, #be123c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 57, 78, 0.4);
}
.admin-bar__nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.admin-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
}
.admin-nav__item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.admin-nav__item.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ef394e 0%, #e11d48 100%);
    box-shadow: 0 4px 14px rgba(239, 57, 78, 0.4);
}
.admin-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}
.admin-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.admin-page-header__sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
    display: block;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.stat-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.stat-card--blue .stat-card__icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card--emerald .stat-card__icon { background: linear-gradient(135deg, #10b981, #047857); }
.stat-card--purple .stat-card__icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.stat-card--rose .stat-card__icon { background: linear-gradient(135deg, #f43f5e, #be123c); }

.stat-card__info {
    display: flex;
    flex-direction: column;
}
.stat-card__label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}
.stat-card__val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}
.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.admin-quick-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.admin-quick-card i {
    font-size: 1.25rem;
    color: var(--primary);
}
.admin-quick-card:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
.admin-quick-card:hover i {
    color: #ef394e;
}
.admin-section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}
.admin-section-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.admin-section-card__header h3 {
    margin: 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.85rem 1rem;
    text-align: right;
    border-bottom: 2px solid #e2e8f0;
}
.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.admin-table tr:hover td {
    background: #f8fafc;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #ffe4e6; color: #be123c; }
.badge-info { background: #e0f2fe; color: #0369a1; }

.admin-footer {
    text-align: center;
    padding: 2rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
}

/* ============================================
   Comprehensive Responsive Overhauls
   ============================================ */

@media (max-width: 900px) {
    .home-hero__inner,
    .home-hero__inner--v2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-deck {
        order: -1;
        width: 100%;
        max-width: 100%;
    }
    .home-hero__visual { min-height: 200px; order: -1; }
    .home-hero__mockup { width: 160px; height: 160px; font-size: 3rem; }
    .home-cta__card { grid-template-columns: 1fr; text-align: center; }
    .home-cta__art { display: flex; margin-top: 0.5rem; }
    .home-cta__art img { width: min(220px, 70%); margin: 0 auto; }
    .home-stats__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-search { max-width: 100%; }
}

@media (max-width: 768px) {
    /* Subnav horizontal scrollbar */
    .home-subnav {
        padding: 0.5rem 0;
        overflow: hidden;
    }
    .home-subnav__inner {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px 12px;
        justify-content: flex-start;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .home-subnav__inner::-webkit-scrollbar {
        display: none;
    }
    .home-subnav__links {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        flex-shrink: 0;
    }
    .home-subnav__links a,
    .home-subnav__dropdown summary {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 6px 14px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        flex-shrink: 0;
    }
    .home-subnav__dropdown {
        position: static;
    }
    .home-subnav__menu {
        right: 16px;
        left: 16px;
        width: calc(100% - 32px);
    }

    /* Hero Overflow & Card Stack Fixes */
    .home-hero {
        overflow: hidden;
        padding: 1.75rem 0 2.5rem;
    }
    .hero-deck {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        perspective: 800px;
    }
    .hero-deck__stack {
        width: min(270px, 84vw);
        height: 340px;
        margin: 0 auto;
    }
    .hero-deck__card.is-back-1 {
        transform: translate3d(10px, 12px, -20px) scale(0.96) rotate(2deg);
    }
    .hero-deck__card.is-back-1:hover {
        transform: translate3d(8px, 10px, -10px) scale(0.97) rotate(1deg);
    }
    .hero-deck__card.is-back-2 {
        transform: translate3d(20px, 24px, -40px) scale(0.91) rotate(4deg);
    }
    .hero-deck__card.is-back-2:hover {
        transform: translate3d(16px, 20px, -30px) scale(0.93) rotate(3deg);
    }
    .hero-deck__card.is-back-3 {
        transform: translate3d(30px, 36px, -60px) scale(0.86) rotate(6deg);
    }

    .home-hero__content {
        text-align: center;
    }
    .home-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-search {
        margin: 0 auto 1.25rem;
    }
    .hero-perks {
        justify-content: center;
        gap: 10px 16px;
    }

    /* Trust bar mobile styled badges */
    .trust-bar {
        padding: 8px 0;
        font-size: 0.78rem;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--border);
        overflow: hidden;
        margin-top: 0;
        position: relative;
        z-index: 10;
    }
    .trust-bar__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px 10px;
        padding: 0 10px;
    }
    .trust-bar__inner span,
    .trust-bar__inner a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        padding: 4px 10px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        font-size: 0.76rem;
        font-weight: 500;
        color: var(--text-secondary);
    }
    .trust-bar__inner i {
        color: var(--accent-primary);
        font-size: 0.8rem;
    }

    /* Floating Chat FAB */
    .live-chat-fab {
        bottom: 16px;
        left: 16px;
        gap: 8px;
    }
    .live-chat-fab a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Product detail responsive */
    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .showcase-card__title { font-size: 0.85rem; min-height: auto; }
    .home-tiles__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-deck__stack {
        width: min(250px, 80vw);
        height: 310px;
    }
    .hero-deck__card.is-back-1 {
        transform: translate3d(8px, 10px, -15px) scale(0.96) rotate(1.5deg);
    }
    .hero-deck__card.is-back-2 {
        transform: translate3d(16px, 20px, -30px) scale(0.91) rotate(3deg);
    }
    .hero-deck__card.is-back-3 {
        transform: translate3d(24px, 30px, -45px) scale(0.86) rotate(4.5deg);
    }
}

/* Mobile responsive enhancements for Category Cards */
@media (max-width: 768px) {
    .cat-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .cat-card {
        border-radius: 16px;
    }
    .cat-card__media {
        aspect-ratio: 16 / 9;
        height: 180px;
    }
    .cat-card__cover {
        object-fit: cover;
        object-position: center;
    }
    .cat-card__body {
        padding: 1.1rem 1.1rem 1rem;
    }
    .cat-card__title {
        font-size: 1.1rem;
    }
    .cat-card__desc {
        font-size: 0.84rem;
        line-height: 1.55;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cat-card__media {
        height: 160px;
    }
    .cat-card__badge {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
        top: 10px;
        right: 10px;
    }
    .cat-card__count {
        top: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Top Countdown Promo Banner */
.top-promo-bar {
    background: linear-gradient(135deg, #ef394e 0%, #9333ea 50%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.86rem;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(239, 57, 78, 0.3);
}

.top-promo-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.top-promo-bar__text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.top-promo-bar__tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.top-promo-bar__timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
    font-weight: 800;
    font-family: monospace, sans-serif;
}

.timer-unit {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.timer-unit small {
    font-size: 0.68rem;
    opacity: 0.85;
    font-family: Vazirmatn, sans-serif;
}

.top-promo-bar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-promo-bar__btn {
    background: #ffffff;
    color: #1e1b4b;
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top-promo-bar__btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.top-promo-bar__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.top-promo-bar__close:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .top-promo-bar__inner {
        justify-content: center;
        text-align: center;
    }
}
