/* ═══════════════════════════════════════════════
   SHASH — Главные стили
   Брендовый цвет: #000064
   ═══════════════════════════════════════════════ */

:root {
    --shash-primary: #000064;
    --shash-primary-light: #1a1a8c;
    --shash-primary-dark: #00004a;
    --shash-accent: #ffd700;
    --shash-bg: #f4f6fb;
    --shash-card: #ffffff;
    --shash-text: #1a1d2e;
    --shash-text-muted: #6b7280;
    --shash-border: #e5e7eb;
    --shash-success: #16a34a;
    --shash-danger: #dc2626;
    --shash-warning: #ca8a04;
    --shash-shadow-sm: 0 1px 2px rgba(0,0,100,.06);
    --shash-shadow: 0 4px 12px rgba(0,0,100,.08);
    --shash-shadow-lg: 0 12px 28px rgba(0,0,100,.14);
    --shash-radius: 14px;
    --shash-radius-sm: 8px;
    --shash-radius-lg: 22px;
    --shash-trans: .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--shash-bg);
    color: var(--shash-text);
    margin: 0;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--shash-primary); text-decoration: none; transition: color var(--shash-trans); }
a:hover { color: var(--shash-primary-light); }

img { max-width: 100%; height: auto; }

/* ═══════════ ТИПОГРАФИКА ═══════════ */
h1, h2, h3, h4, h5 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: var(--shash-text);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

.section-title {
    position: relative;
    font-size: 1.75rem;
    margin: 2.5rem 0 1.5rem;
    padding-left: 1rem;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 75%;
    background: linear-gradient(180deg, var(--shash-primary), var(--shash-primary-light));
    border-radius: 3px;
}

/* ═══════════ ХЕДЕР ═══════════ */
.shash-header {
    background: linear-gradient(135deg, var(--shash-primary) 0%, var(--shash-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,100,.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.shash-header__top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: .9rem 1rem;
    max-width: 1320px;
    margin: 0 auto;
}

.shash-logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: .12em;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.shash-logo:hover { color: #fff; }

.shash-logo__icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transform: rotate(-8deg);
}

.shash-search {
    flex: 1;
    position: relative;
    max-width: 600px;
}
.shash-search input {
    width: 100%;
    border: none;
    border-radius: 30px;
    padding: .7rem 1.1rem .7rem 2.7rem;
    font-size: .95rem;
    background: rgba(255,255,255,.95);
    color: var(--shash-text);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    font-family: inherit;
}
.shash-search input:focus {
    outline: 2px solid var(--shash-accent);
    background: #fff;
}
.shash-search i {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--shash-primary);
}

.shash-header__icons {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.shash-header__icon {
    color: #fff;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--shash-trans);
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 1.15rem;
}
.shash-header__icon:hover { background: rgba(255,255,255,.15); color: #fff; }

.cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--shash-accent);
    color: var(--shash-primary);
    font-size: .7rem;
    font-weight: 800;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ═══════════ БЫСТРЫЙ ПОДБОР ═══════════ */
.quick-finder {
    background: rgba(255,255,255,.08);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .8rem 1rem;
}
.quick-finder__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr auto;
    gap: .6rem;
    align-items: center;
}
.quick-finder__label {
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.quick-finder select {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.95);
    border-radius: 8px;
    padding: .55rem .8rem;
    font-size: .9rem;
    color: var(--shash-text);
    font-family: inherit;
}
.quick-finder button {
    background: var(--shash-accent);
    color: var(--shash-primary);
    border: none;
    border-radius: 8px;
    padding: .55rem 1.4rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--shash-trans);
    font-family: inherit;
    font-size: .9rem;
}
.quick-finder button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

@media (max-width: 768px) {
    .quick-finder__inner { grid-template-columns: 1fr 1fr; }
    .quick-finder__label { grid-column: 1/-1; }
    .quick-finder button { grid-column: 1/-1; }
}

/* ═══════════ БАННЕР-СЛАЙДЕР ═══════════ */
.hero-swiper {
    margin: 1.5rem 0;
    border-radius: var(--shash-radius-lg);
    overflow: hidden;
    box-shadow: var(--shash-shadow-lg);
}
.hero-slide {
    min-height: 320px;
    background: linear-gradient(135deg, var(--shash-primary), var(--shash-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,215,0,.15), transparent 60%);
}
.hero-slide__deco {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22rem;
    opacity: .08;
    line-height: 1;
}
.hero-slide__content { position: relative; z-index: 2; max-width: 580px; }
.hero-slide__badge {
    display: inline-block;
    background: var(--shash-accent);
    color: var(--shash-primary);
    padding: .35rem .9rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.hero-slide__title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: #fff;
    margin-bottom: .8rem;
    font-weight: 800;
    line-height: 1.15;
}
.hero-slide__text { font-size: 1.05rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-slide__btn {
    background: #fff;
    color: var(--shash-primary);
    padding: .8rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: transform var(--shash-trans);
}
.hero-slide__btn:hover { transform: translateY(-2px); color: var(--shash-primary); }

/* ═══════════ КАТЕГОРИИ ═══════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.category-card {
    background: var(--shash-card);
    border-radius: var(--shash-radius);
    padding: 1.25rem .8rem;
    text-align: center;
    box-shadow: var(--shash-shadow-sm);
    transition: all var(--shash-trans);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--shash-text);
    display: block;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shash-shadow-lg);
    border-color: var(--shash-primary);
    color: var(--shash-text);
}
.category-card__icon {
    width: 56px; height: 56px;
    margin: 0 auto .7rem;
    background: linear-gradient(135deg, var(--shash-primary), var(--shash-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}
.category-card__name { font-weight: 600; font-size: .9rem; }

/* ═══════════ КАРТОЧКА ТОВАРА ═══════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--shash-card);
    border-radius: var(--shash-radius);
    overflow: hidden;
    box-shadow: var(--shash-shadow-sm);
    transition: all var(--shash-trans);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shash-shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(0,0,100,.08);
}

.product-card__photo {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f9fc;
    position: relative;
}
.product-card__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--shash-trans);
}
.product-card:hover .product-card__photo img { transform: scale(1.05); }

.placeholder-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--shash-primary), var(--shash-primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    gap: .5rem;
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.placeholder-img::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 12px 12px;
    pointer-events: none;
}
.placeholder-img i { font-size: 3rem; animation: spin 12s linear infinite; }
.placeholder-img span { font-size: .8rem; font-weight: 600; opacity: .8; letter-spacing: .03em; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-card__stock-low {
    position: absolute;
    top: .7rem; left: .7rem;
    background: var(--shash-danger);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(220,38,38,.4);
}

.product-card__brand {
    position: absolute;
    top: .7rem; right: .7rem;
    background: rgba(0,0,100,.85);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.product-card__body {
    padding: .9rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .35rem;
}
.product-card__article {
    font-size: .72rem;
    color: var(--shash-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}
.product-card__name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--shash-text);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.product-card__name a { color: inherit; }
.product-card__car {
    font-size: .8rem;
    color: var(--shash-primary);
    font-weight: 600;
}
.product-card__price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--shash-primary);
    margin-top: auto;
    padding-top: .5rem;
}

.btn-cart {
    width: 100%;
    min-height: 44px;
    background: var(--shash-primary);
    color: #fff;
    border: none;
    border-radius: var(--shash-radius-sm);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: all var(--shash-trans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
    font-family: inherit;
}
.btn-cart:hover {
    background: var(--shash-primary-light);
    transform: scale(1.02);
}
.btn-cart.added {
    background: var(--shash-success);
}

/* ═══════════ КОРЗИНА (БОКОВАЯ ПАНЕЛЬ) ═══════════ */
.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 50px rgba(0,0,100,.2);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header {
    padding: 1rem 1.25rem;
    background: var(--shash-primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer__header h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.cart-drawer__close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--shash-border);
    align-items: center;
}
.cart-item__photo {
    width: 60px; height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f5;
}
.cart-item__photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-size: .85rem; font-weight: 600; }
.cart-item__price { color: var(--shash-primary); font-weight: 700; font-size: .9rem; }
.cart-item__qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--shash-border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: .35rem;
}
.cart-item__qty button {
    background: #f0f0f5;
    border: none;
    width: 26px; height: 26px;
    cursor: pointer;
    font-weight: 700;
}
.cart-item__qty span { padding: 0 .6rem; font-weight: 700; font-size: .85rem; }
.cart-item__remove {
    background: transparent;
    border: none;
    color: var(--shash-danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: .5rem;
}

.cart-drawer__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--shash-border);
    background: #fafbff;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .8rem;
}
.cart-total span:last-child { color: var(--shash-primary); font-size: 1.4rem; }

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--shash-primary), var(--shash-primary-light));
    color: #fff;
    border: none;
    padding: .9rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: transform var(--shash-trans);
}
.btn-checkout:hover { transform: translateY(-1px); color: #fff; }

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--shash-text-muted);
}
.cart-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: .3; }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,50,.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--shash-trans);
    backdrop-filter: blur(3px);
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ═══════════ ФИЛЬТРЫ ═══════════ */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 992px) { .catalog-layout { grid-template-columns: 1fr; } }

.filter-panel {
    background: #fff;
    border-radius: var(--shash-radius);
    padding: 1.25rem;
    box-shadow: var(--shash-shadow-sm);
    align-self: start;
    position: sticky;
    top: 110px;
}
.filter-panel h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--shash-text-muted);
    margin: 1.25rem 0 .6rem;
    font-weight: 700;
}
.filter-panel h4:first-child { margin-top: 0; }
.filter-panel select, .filter-panel input {
    width: 100%;
    border: 1px solid var(--shash-border);
    border-radius: 8px;
    padding: .55rem .7rem;
    font-size: .9rem;
    font-family: inherit;
}
.filter-panel select:focus, .filter-panel input:focus {
    outline: 2px solid var(--shash-primary);
    border-color: var(--shash-primary);
}
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.filter-actions { margin-top: 1.25rem; display: flex; gap: .5rem; }
.btn-filter {
    flex: 1;
    background: var(--shash-primary);
    color: #fff;
    border: none;
    padding: .7rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.btn-reset {
    background: #f0f0f5;
    border: none;
    padding: .7rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--shash-text-muted);
    font-family: inherit;
}

/* ═══════════ ПАГИНАЦИЯ ═══════════ */
.pagination {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: .55rem .9rem;
    background: #fff;
    border: 1px solid var(--shash-border);
    border-radius: 8px;
    color: var(--shash-text);
    font-weight: 600;
    transition: all var(--shash-trans);
}
.pagination a:hover { background: var(--shash-primary); color: #fff; border-color: var(--shash-primary); }
.pagination .active {
    background: var(--shash-primary);
    color: #fff;
    border-color: var(--shash-primary);
}

/* ═══════════ ПЛАВАЮЩИЕ КНОПКИ ═══════════ */
.float-btn {
    position: fixed;
    bottom: 1.5rem;
    width: 60px; height: 60px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 990;
    transition: transform var(--shash-trans);
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn--ai {
    right: 1.5rem;
    background: linear-gradient(135deg, var(--shash-primary), var(--shash-primary-light));
}
.float-btn--ai::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--shash-primary);
    opacity: 0.6;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.4); opacity: 0; }
}
.float-btn--whatsapp {
    right: 1.5rem;
    bottom: 6rem;
    background: #25d366;
}

/* ═══════════ AI ЧАТ ═══════════ */
.ai-chat {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 580px;
    max-height: calc(100vh - 3rem);
    background: #fff;
    border-radius: var(--shash-radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,100,.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1500;
}
.ai-chat.is-open { display: flex; }
.ai-chat__header {
    background: linear-gradient(135deg, var(--shash-primary), var(--shash-primary-light));
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.ai-chat__avatar {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.ai-chat__title { flex: 1; font-weight: 700; }
.ai-chat__title small { display: block; font-weight: 400; opacity: .8; font-size: .75rem; }
.ai-chat__close {
    background: rgba(255,255,255,.15);
    border: none; color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
}
.ai-chat__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f7f8ff;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.ai-msg {
    max-width: 85%;
    padding: .7rem .9rem;
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.4;
    animation: msg-in .3s ease;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai-msg--bot {
    background: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shash-shadow-sm);
}
.ai-msg--user {
    background: var(--shash-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.ai-product {
    background: #fff;
    border-radius: 10px;
    padding: .6rem;
    margin-top: .5rem;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: .6rem;
    box-shadow: var(--shash-shadow-sm);
    border: 1px solid var(--shash-border);
}
.ai-product__photo {
    width: 60px; height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f5;
}
.ai-product__photo .placeholder-img i { font-size: 1.5rem; }
.ai-product__photo .placeholder-img span { display: none; }
.ai-product__name { font-size: .8rem; font-weight: 600; line-height: 1.2; }
.ai-product__meta { font-size: .7rem; color: var(--shash-text-muted); }
.ai-product__price { color: var(--shash-primary); font-weight: 700; font-size: .85rem; }
.ai-product__add {
    grid-column: 1/-1;
    background: var(--shash-primary);
    color: #fff;
    border: none;
    padding: .35rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: .3rem;
}
.ai-product__add.added { background: var(--shash-success); }

.ai-chat__form {
    padding: .75rem;
    background: #fff;
    border-top: 1px solid var(--shash-border);
    display: flex;
    gap: .5rem;
}
.ai-chat__form input {
    flex: 1;
    border: 1px solid var(--shash-border);
    border-radius: 20px;
    padding: .6rem 1rem;
    font-size: .9rem;
    font-family: inherit;
}
.ai-chat__form input:focus {
    outline: 2px solid var(--shash-primary);
    border-color: var(--shash-primary);
}
.ai-chat__form button {
    background: var(--shash-primary);
    color: #fff;
    border: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
}
.typing { display: flex; gap: 4px; padding: .5rem 0; }
.typing span {
    width: 8px; height: 8px;
    background: var(--shash-primary);
    border-radius: 50%;
    animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(.6); opacity: .3; }
    40% { transform: scale(1); opacity: 1; }
}

/* ═══════════ ХЛЕБНЫЕ КРОШКИ ═══════════ */
.breadcrumbs {
    margin: 1rem 0;
    font-size: .85rem;
    color: var(--shash-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.breadcrumbs a { color: var(--shash-primary); }
.breadcrumbs i { font-size: .65rem; opacity: .5; }

/* ═══════════ СТРАНИЦА ТОВАРА ═══════════ */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}
@media (max-width: 768px) { .product-page { grid-template-columns: 1fr; } }
.product-page__photo {
    aspect-ratio: 1;
    border-radius: var(--shash-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shash-shadow);
}
.product-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.product-page__title { font-size: 1.6rem; }
.product-page__brand-article {
    color: var(--shash-text-muted);
    font-size: .9rem;
    margin-bottom: 1rem;
}
.product-page__price-block {
    background: linear-gradient(135deg, #f8f9ff, #fff);
    border: 1px solid var(--shash-border);
    border-radius: var(--shash-radius);
    padding: 1.25rem;
    margin: 1rem 0;
}
.product-page__price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--shash-primary);
    line-height: 1;
}
.product-page__stock { margin-top: .5rem; font-weight: 600; }
.product-page__stock--ok { color: var(--shash-success); }
.product-page__stock--low { color: var(--shash-warning); }
.product-page__stock--out { color: var(--shash-danger); }
.product-page__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 1rem;
}
.product-page__buttons .btn-cart { margin: 0; }
.btn-buy-now {
    background: var(--shash-accent);
    color: var(--shash-primary);
    border: none;
    border-radius: var(--shash-radius-sm);
    font-weight: 800;
    cursor: pointer;
    min-height: 44px;
    font-family: inherit;
}
.product-meta {
    background: #fff;
    border-radius: var(--shash-radius);
    padding: 1.25rem;
    box-shadow: var(--shash-shadow-sm);
    margin-top: 1rem;
}
.product-meta__row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: .55rem 0;
    border-bottom: 1px solid var(--shash-border);
    font-size: .9rem;
}
.product-meta__row:last-child { border-bottom: none; }
.product-meta__row span:first-child { color: var(--shash-text-muted); }
.product-meta__row span:last-child { font-weight: 600; }

/* ═══════════ ФОРМА ОФОРМЛЕНИЯ ═══════════ */
.checkout-form {
    background: #fff;
    border-radius: var(--shash-radius);
    padding: 1.5rem;
    box-shadow: var(--shash-shadow);
    max-width: 600px;
    margin: 1.5rem auto;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    border: 1px solid var(--shash-border);
    border-radius: 8px;
    padding: .65rem .85rem;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--shash-primary);
    border-color: var(--shash-primary);
}
.form-group textarea { min-height: 90px; resize: vertical; }

/* ═══════════ ФУТЕР ═══════════ */
.shash-footer {
    background: linear-gradient(135deg, var(--shash-primary-dark), var(--shash-primary));
    color: rgba(255,255,255,.85);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h5 { color: #fff; margin-bottom: 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { color: rgba(255,255,255,.7); display: block; padding: .25rem 0; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

/* ═══════════ ТОСТЫ ═══════════ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--shash-primary);
    color: #fff;
    padding: .8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 9000;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast--success { background: var(--shash-success); }
.toast--error { background: var(--shash-danger); }

/* ═══════════ АДМИНКА ═══════════ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
@media (max-width: 768px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-sidebar {
    background: var(--shash-primary);
    color: #fff;
    padding: 1.5rem 0;
}
.admin-sidebar__logo {
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: .15em;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1rem;
    display: block;
}
.admin-sidebar__logo:hover { color: #fff; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.5rem;
    color: rgba(255,255,255,.75);
    transition: all var(--shash-trans);
    font-size: .95rem;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-left: 3px solid var(--shash-accent);
    padding-left: calc(1.5rem - 3px);
}
.admin-content { padding: 2rem; background: var(--shash-bg); }
.admin-card {
    background: #fff;
    border-radius: var(--shash-radius);
    box-shadow: var(--shash-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--shash-radius);
    overflow: hidden;
    box-shadow: var(--shash-shadow-sm);
}
.admin-table th {
    background: var(--shash-primary);
    color: #fff;
    text-align: left;
    padding: .85rem 1rem;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.admin-table td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--shash-border);
    font-size: .9rem;
}
.admin-table tr:hover { background: #f8f9ff; }
.admin-table tr:last-child td { border-bottom: none; }

.status-pill {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
}

.btn {
    background: var(--shash-primary);
    color: #fff;
    border: none;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all var(--shash-trans);
}
.btn:hover { background: var(--shash-primary-light); color: #fff; transform: translateY(-1px); }
.btn--success { background: var(--shash-success); }
.btn--danger { background: var(--shash-danger); }
.btn--warning { background: var(--shash-warning); }
.btn--outline { background: transparent; border: 1px solid var(--shash-primary); color: var(--shash-primary); }
.btn--sm { padding: .35rem .7rem; font-size: .8rem; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,50,.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.is-open { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--shash-radius);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.modal-header {
    padding: 1.2rem 1.5rem;
    background: var(--shash-primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { color: #fff; margin: 0; }
.modal-body { padding: 1.5rem; }
.modal-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: #fff;
    border-radius: var(--shash-radius);
    padding: 1.25rem;
    box-shadow: var(--shash-shadow-sm);
    border-left: 4px solid var(--shash-primary);
}
.stat-card__value { font-size: 1.8rem; font-weight: 800; color: var(--shash-primary); }
.stat-card__label { font-size: .85rem; color: var(--shash-text-muted); }

/* ═══════════ АДАПТИВ ═══════════ */
@media (max-width: 768px) {
    .shash-header__top { flex-wrap: wrap; gap: .75rem; padding: .75rem; }
    .shash-search { order: 3; flex: 0 0 100%; }
    .hero-slide { padding: 1.5rem; min-height: 250px; }
    .hero-slide__deco { font-size: 14rem; right: -30px; }
    .product-card__name { font-size: .85rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .section-title { font-size: 1.3rem; }
    .float-btn { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
    .float-btn--whatsapp { bottom: 5rem; right: 1rem; }
    .ai-chat { bottom: 1rem; right: 1rem; left: 1rem; width: auto; height: calc(100vh - 2rem); }
    .product-page__buttons { grid-template-columns: 1fr; }
    .admin-content { padding: 1rem; }
    .admin-table { font-size: .8rem; }
    .admin-table th, .admin-table td { padding: .55rem; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .product-card__body { padding: .65rem; }
    .product-card__price { font-size: 1.05rem; }
    .btn-cart { font-size: .8rem; }
}

/* ============ ADMIN PANEL EXTENDED ============ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #000064 0%, #1a1a8a 100%);
    color: #fff;
    padding: 24px 0;
    position: sticky; top: 0; height: 100vh;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
.admin-sidebar__logo {
    display: block;
    padding: 0 24px 24px;
    color: #ffd700;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-nav { display: flex; flex-direction: column; padding: 12px 0; }
.admin-nav a {
    padding: 14px 24px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex; align-items: center; gap: 12px;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: #ffd700; }
.admin-nav a.active {
    background: rgba(255,215,0,0.1);
    color: #ffd700;
    border-left-color: #ffd700;
}
.admin-content { flex: 1; padding: 32px; max-width: 100%; overflow-x: auto; }
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 2px solid rgba(0,0,100,0.08);
}
.admin-header h1 { color: #000064; font-size: 26px; font-weight: 800; }
.admin-user { color: #666; font-size: 14px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px; margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,100,0.06);
    border: 1px solid rgba(0,0,100,0.04);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,100,0.1); }
.stat-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px;
}
.stat-card__label { color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.stat-card__value { color: #000064; font-size: 26px; font-weight: 800; line-height: 1.2; }

.admin-toolbar { margin-bottom: 18px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    padding: 8px 16px; border-radius: 20px;
    background: #fff; color: #555;
    text-decoration: none; font-size: 13px; font-weight: 600;
    border: 1px solid rgba(0,0,100,0.08);
    transition: all 0.2s;
}
.pill:hover { border-color: #000064; color: #000064; }
.pill.active { background: #000064; color: #ffd700; border-color: #000064; }

.admin-table-wrap {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,100,0.06);
    overflow: auto;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: rgba(0,0,100,0.04);
    padding: 14px 16px;
    text-align: left;
    font-size: 12px; text-transform: uppercase;
    color: #555; font-weight: 700; letter-spacing: 1px;
    border-bottom: 2px solid rgba(0,0,100,0.06);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(0,0,100,0.04); vertical-align: middle; }
.admin-table tr:hover { background: rgba(255,215,0,0.04); }
.admin-table code { background: rgba(0,0,100,0.06); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.thumb-placeholder {
    background: linear-gradient(135deg,#000064,#1a1a8a);
    display: flex; align-items: center; justify-content: center;
    color: #ffd700; font-size: 20px;
}

.status-select, .driver-select {
    padding: 6px 10px;
    border: 1px solid rgba(0,0,100,0.15);
    border-radius: 8px;
    font-family: inherit; font-size: 13px;
    background: #fff;
    transition: all 0.2s;
    max-width: 180px;
}
.status-select.flash, .driver-select.flash { background: #d4f4dd; }
.status-new { background: #ffe5e8; color: #b00020; }
.status-confirmed { background: #fff3cd; color: #856404; }
.status-assigned { background: #cfe2ff; color: #084298; }
.status-delivering { background: #d1ecf1; color: #0c5460; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #e2e3e5; color: #383d41; }

.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(0,0,100,0.06);
    color: #000064;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
}
.btn-icon:hover { background: #000064; color: #ffd700; }
.btn-icon.btn-danger:hover { background: #dc3545; color: #fff; }

.badge-quick {
    display: inline-block; padding: 1px 8px;
    background: #ffd700; color: #000064;
    border-radius: 10px; font-size: 11px; font-weight: 700;
}
.badge-off {
    display: inline-block; padding: 2px 8px;
    background: #6c757d; color: #fff;
    border-radius: 10px; font-size: 10px; font-weight: 600;
}

.order-items-list { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #555; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #000064, #1a1a8a);
    color: #ffd700;
    border: none; border-radius: 10px;
    font-weight: 700; font-family: inherit;
    text-decoration: none; cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,100,0.25); color: #ffd700; }
.btn-secondary {
    padding: 10px 20px; background: #f0f0f5; color: #555;
    border-radius: 10px; text-decoration: none; font-weight: 600;
}
.btn-back {
    padding: 8px 14px; background: rgba(0,0,100,0.06);
    color: #000064; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px;
}
.admin-msg {
    padding: 14px 18px; background: #d4edda; color: #155724;
    border-radius: 10px; margin-bottom: 18px;
    border: 1px solid #c3e6cb;
}

.admin-search {
    display: flex; gap: 8px; margin-bottom: 18px;
    background: #fff; padding: 8px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,100,0.05);
}
.admin-search input {
    flex: 1; padding: 10px 14px; border: 1px solid rgba(0,0,100,0.1);
    border-radius: 8px; font-family: inherit; font-size: 14px;
}
.admin-search button {
    padding: 10px 20px; background: #000064; color: #ffd700;
    border: none; border-radius: 8px; cursor: pointer;
}
.btn-clear {
    padding: 10px 16px; background: #f0f0f5; color: #888;
    border-radius: 8px; text-decoration: none; font-weight: 700;
}

.admin-form {
    background: #fff; padding: 28px; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,100,0.06);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label, .form-row-2 label {
    display: block; font-weight: 600; font-size: 13px;
    color: #444; margin-bottom: 6px;
}
.form-row input[type=text], .form-row input[type=number],
.form-row input[type=file], .form-row select, .form-row textarea,
.form-row-2 input, .form-row-3 input {
    width: 100%; padding: 10px 14px;
    border: 1px solid rgba(0,0,100,0.12);
    border-radius: 8px; font-family: inherit; font-size: 14px;
    transition: all 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: #000064;
    box-shadow: 0 0 0 3px rgba(0,0,100,0.08);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; }
.image-preview { margin-bottom: 10px; }
.image-preview img { max-width: 200px; border-radius: 8px; border: 1px solid rgba(0,0,100,0.08); }
.form-actions { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(0,0,100,0.06); }

.driver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.driver-card {
    background: #fff; border-radius: 16px;
    padding: 20px; display: flex; flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,100,0.06);
    border: 1px solid rgba(0,0,100,0.04);
    transition: all 0.2s;
}
.driver-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,100,0.1); }
.driver-card.is-inactive { opacity: 0.55; }
.driver-card__avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg,#000064,#ffd700);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px;
    margin-bottom: 12px;
}
.driver-card__body h3 { color: #000064; font-size: 17px; margin-bottom: 10px; }
.driver-card__body p { font-size: 13px; color: #555; margin: 4px 0; }
.driver-card__body p i { width: 16px; color: #000064; }
.driver-stat { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgba(0,0,100,0.06); }
.driver-card__actions { display: flex; gap: 6px; margin-top: 14px; }

.period-switcher { display: flex; background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,100,0.05); }
.period-switcher a {
    padding: 8px 16px; color: #555; text-decoration: none;
    font-weight: 600; font-size: 13px; border-radius: 7px; transition: all 0.2s;
}
.period-switcher a.active { background: #000064; color: #ffd700; }

.report-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 20px;
}
.report-card {
    background: #fff; border-radius: 16px; padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,100,0.06);
}
.report-card h3 {
    color: #000064; font-size: 16px; font-weight: 700;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,215,0,0.3);
}
.status-breakdown { display: flex; flex-direction: column; gap: 10px; }
.sb-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 10px; align-items: center; }
.sb-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sb-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sb-bar { height: 8px; background: rgba(0,0,100,0.05); border-radius: 4px; overflow: hidden; }
.sb-bar > div { height: 100%; transition: width 0.6s ease; }
.sb-val { text-align: right; font-size: 13px; }

.report-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.report-table th { padding: 10px; text-align: left; font-size: 11px; text-transform: uppercase; color: #888; border-bottom: 1px solid rgba(0,0,100,0.06); }
.report-table td { padding: 10px; border-bottom: 1px solid rgba(0,0,100,0.04); }
.rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(0,0,100,0.06); color: #555;
    font-weight: 700; font-size: 12px;
}
.rank-1 { background: linear-gradient(135deg,#ffd700,#ffaa00); color: #000064; }
.rank-2 { background: linear-gradient(135deg,#c0c0c0,#999); color: #fff; }
.rank-3 { background: linear-gradient(135deg,#cd7f32,#8b4513); color: #fff; }

@media (max-width: 992px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%; height: auto; position: relative;
        padding: 12px 0;
    }
    .admin-sidebar__logo { padding: 0 16px 12px; font-size: 22px; }
    .admin-nav { flex-direction: row; overflow-x: auto; padding: 0 8px; }
    .admin-nav a {
        padding: 10px 16px; white-space: nowrap;
        border-left: none; border-bottom: 3px solid transparent;
    }
    .admin-nav a.active { border-left: none; border-bottom-color: #ffd700; }
    .admin-content { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .report-grid { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .admin-header h1 { font-size: 20px; }
}
