:root {
    --primary-red: #E50914;
    --bg-color: #0A0A0A;
    --card-bg: #121212;
    --card-light: #1A1A1A;
    --light-gray: #333333;
    --text-white: #F5F5F5;
    --text-gray: #A0A0A0;
    --border-gray: #242424;
    --glow: 0 0 20px rgba(229, 9, 20, 0.25);
    --glow-soft: 0 0 12px rgba(229, 9, 20, 0.15);
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --border-radius-lg: 30px;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

/* Полоса прокрутки зарезервирована всегда: без этого при открытии карточки подарка (overflow:hidden
   на body) она пропадает и вся страница дёргается вправо на её ширину. */
/* 26.09: прокручивается окно, а не body (раньше html/body height:100% + overflow-y:scroll на body): «назад»
   возвращает на прежнее место, на iPhone сворачивается адресная строка, работает тап по статус-бару.
   Горизонтальный вылет гасим на html (clip не делает его прокручиваемым - липкие элементы работают). */
html { scrollbar-width: none; -ms-overflow-style: none; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
html::-webkit-scrollbar { display: none; }

body {
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; border: 1px solid var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background: rgba(229, 9, 20, 0.5); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg-color); }

.container { max-width: 1440px; margin: 0 auto; padding: 0 30px; }

.header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
    position: relative; margin-bottom: 30px;
}
.header::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.header__logo { display: flex; align-items: center; gap: 10px; font-size: 38px; font-weight: 900; letter-spacing: 1px; cursor: pointer; flex-shrink: 0; margin-top: 6px; }
.header__logo:hover .header__logo-eye { transform: scale(1.1); }
/* 03.10: «IMI» был градиентом через background-clip: text - Chrome при перерисовке соседнего слоя (глаз с transform)
   иногда терял градиент, и буквы серели. Градиент был почти незаметный (белый - #e8e8e8 - белый): сплошной белый. */
.header__logo-text { color: #fff; -webkit-text-fill-color: #fff; isolation: isolate; }
.header__logo-text--red {
    background: linear-gradient(135deg, #ff2a2a 0%, #cc0000 50%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block; transform: translateZ(0);     /* свой слой: красный градиент не перерисовывается вместе с глазом */
}

.header__logo-eye {
    width: 58px;
    height: 36px;
    background: radial-gradient(ellipse at center, #ff0000 0%, #990000 50%, #330000 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
}

.header__logo-eye::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    border-radius: 40%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.header__logo-eye::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 8px;
    height: 4px;
    background: rgba(255, 150, 150, 0.4);
    border-radius: 50%;
    transform: rotate(-20deg);
    transition: all 0.5s ease;
}

.header__logo-eye.look-left::before {
    transform: translate(-200%, -50%);
}

.header__logo-eye.look-left::after {
    left: 15%;
}

.header__logo-eye.look-right::before {
    transform: translate(100%, -50%);
}

.header__logo-eye.look-right::after {
    left: 55%;
}

.header__logo-eye.look-wide {
    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.header__logo-eye.look-wide::before {
    width: 9px;
    height: 22px;
    background: linear-gradient(180deg,
        transparent 0%,
        #000 5%,
        #0a0000 50%,
        #000 95%,
        transparent 100%
    );
    box-shadow:
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 0, 0, 0.3);
}

.header__logo-eye.look-wide::after {
    opacity: 0.6;
}

.header__search { flex: 1; max-width: 680px; margin: 0 40px; position: relative; min-width: 0; }
.search-box {
    height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 20px;
    border-radius: 16px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: text;
}
.search-box:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.search-box:focus-within { border-color: rgba(229,9,20,0.5); box-shadow: 0 0 0 2px rgba(229,9,20,0.1); background: rgba(255,255,255,0.08); }
.search-box__input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-white); font-size: 15px; font-family: inherit; min-width: 0; }
.search-box__input::placeholder { color: rgba(255,255,255,0.55); }
.search-box__icon { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.search-box__close {
    width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,0.1);
    color: white; font-size: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s; line-height: 1;
}
.search-box__close:hover { background: var(--primary-red); }

.header__actions { display: flex; align-items: center; gap: 25px; flex-shrink: 0; }
.header__support { display: flex; flex-direction: column; align-items: center; font-size: 11px; cursor: pointer; transition: 0.2s; gap: 5px; margin-top: 3px;}
.header__support:hover { color: var(--primary-red); }
.header__support-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.header__user-btn {
    width: 52px; height: 52px; border-radius: 50%; background: #333;
    border: none; display: flex; align-items: center;
    justify-content: center; cursor: pointer; transition: 0.2s; overflow: hidden;
}
.header__user-btn img { width: 100%; height: 100%; object-fit: cover; }

.search-overlay { position: fixed; inset: 0; z-index: 1000; display: none; }
.search-overlay.active { display: block; }
.search-overlay::before {
    content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none;
}
.search-container {
    position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 25px 30px; pointer-events: auto;
}
.search-header { display: flex; flex-direction: column; gap: 16px; }
.search-header__left { width: 100%; }
.search-header__right { display: flex; align-items: center; }
.search-recent-title { font-size: 13px; font-weight: 700; color: var(--text-gray); }
.search-recent-reset { font-size: 12px; color: var(--primary-red); cursor: pointer; font-weight: 600; }
.search-recent-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; grid-column: 1 / -1; }
.search-chips { display: flex; gap: 10px; flex-wrap: wrap; pointer-events: auto; }
.search-chip {
    height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.88);
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; pointer-events: auto;
}
.search-chip:hover { background: rgba(255, 255, 255, 0.1); }
.search-chip.active { border-color: rgba(255, 27, 27, 0.5); background: rgba(255, 27, 27, 0.15); }
.search-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: all 0.2s ease; }
.search-chip.active .search-chip__dot { background: var(--primary-red); box-shadow: 0 0 6px var(--primary-red); }

.search-panel { margin-top: 20px; max-height: 50vh; overflow-y: auto; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); padding: 14px; }
.search-panel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; grid-column: 1 / -1; }
.search-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px;
    border-radius: 14px; cursor: pointer; transition: all 0.15s ease; pointer-events: auto;
}
.search-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.search-card__icon {
    width: 64px; height: 64px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); display: flex; align-items: center;
    justify-content: center; overflow: hidden; font-size: 22px;
}
.search-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.search-card__name { font-size: 11px; font-weight: 600; text-align: center; color: rgba(255, 255, 255, 0.85); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: 40px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 14px; grid-column: 1 / -1; }

.btn { border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; }
.btn--primary { background: linear-gradient(135deg, var(--primary-red), #990000); color: white; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3); height: 46px; width: 92px; font-size: 15px; border: 1px solid rgba(255,255,255,0.05); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4); background: linear-gradient(135deg, #f40612, #b30000); }
.btn--primary:active { transform: scale(0.98); box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3); }
.btn--large { padding: 18px 40px; font-size: 18px; font-weight: 800; border-radius: 14px; }
.btn--full { width: 100%; padding: 16px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.login-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 3000;
    display: none; align-items: center; justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px;
}
.login-overlay::-webkit-scrollbar { display: none; }
.login-overlay.active { display: flex; }
.login-card {
    background-color: #111; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px;
    padding: 30px 35px 35px; width: 100%; max-width: 420px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.login-card__title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}
.login-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    background: none;
}
.login-card__actions { display: flex; flex-direction: column; align-items: center; gap: 15px; }

.hero-slider {
    position: relative; margin: 20px 0 32px; width: 100%;
    overflow: hidden; border-radius: 20px;
}
.hero-slider__track { display: flex; will-change: transform; cursor: grab; }
.hero-slider__track:active { cursor: grabbing; }
.hero-slider__slide {
    flex-shrink: 0; width: 100%; height: 350px;
    overflow: hidden; background: var(--card-bg); user-select: none;
}
.hero-slider__slide.slide-transition { transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.hero-slider__dots {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10; width: min(300px, 60vw);
}
.hero-slider__dot {
    flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25);
    cursor: pointer; border: none; overflow: hidden; padding: 0;
}
.hero-slider__dot-fill {
    display: block; height: 100%; width: 0%; background: white; border-radius: 3px;
}
.hero-slider__dot.passed .hero-slider__dot-fill { width: 100%; }
.hero-slider__dot.active .hero-slider__dot-fill {
    width: 100%; animation-name: sliderProgress; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes sliderProgress { from { width: 0%; } to { width: 100%; } }

.hero-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 11;
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(10, 10, 10, 0.6); color: white; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s ease, background 0.2s ease; backdrop-filter: blur(4px);
}
.hero-slider__arrow:hover { background: rgba(229, 9, 20, 0.7); }
.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }
.hero-slider:hover .hero-slider__arrow { opacity: 1; }
@media (max-width: 900px) { .hero-slider__arrow { display: none; } }

.home-section { margin-bottom: 40px; }
.home-section--categories { margin-bottom: 24px; }
.home-section__header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.home-section__title { font-size: 16px; font-weight: 700; }
.home-grid { display: grid; grid-template-columns: repeat(11, 1fr); gap: 15px; min-width: 0; }
.home-grid__item {
    background: linear-gradient(145deg, var(--card-light), var(--card-bg)); border-radius: var(--border-radius); aspect-ratio: 1;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; justify-content: center; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,0.03);
}
.home-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.home-grid__item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1); }
.home-grid__item--coming { font-size: 32px; font-weight: 900; color: var(--primary-red); user-select: none; line-height: 1; }
.home-grid--categories { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.home-grid__item--category { flex: 0 0 auto; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; }
.home-grid__item--category-icon {
    width: 104px; height: 104px; border-radius: 24px; background: linear-gradient(135deg, var(--card-light), var(--card-bg));
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.04);
}
.home-grid__item--category-icon img { width: 100%; height: 100%; object-fit: cover; }
.home-grid__item--category-name { font-size: 13px; font-weight: 600; text-align: center; color: var(--text-gray); max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Quick-action widget: PLACEHOLDER layout only, not wired to real logic yet */
.quick-action {
    display: flex; gap: 12px; align-items: stretch; margin-bottom: 30px;
}
.quick-action__shortcuts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 0 0 auto; align-content: center;
    background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--border-radius);
    padding: 6px;
}
.quick-action__shortcut {
    width: 37px; height: 37px; border-radius: var(--border-radius-sm); background: transparent;
    border: 1px solid transparent; display: flex; align-items: center; justify-content: center;
    color: var(--text-gray); cursor: pointer; font-size: 16px; transition: all 0.15s ease; position: relative;
}
.quick-action__shortcut:hover { background: rgba(255,255,255,0.06); }
.quick-action__shortcut.active { border-color: rgba(229,9,20,0.6); background: rgba(229,9,20,0.12); }
.quick-action__shortcut-badge {
    position: absolute; top: -6px; right: -6px; background: #22c55e; color: #fff; font-size: 8px; font-weight: 800;
    padding: 2px 4px; border-radius: 5px; letter-spacing: 0.3px;
}
.quick-action__panel {
    /* Диагональный градиент на широкой плоской панели читался как перекошенный фон - ровный цвет. */
    flex: 1; background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05); border-radius: var(--border-radius); padding: 18px 21px;
    display: flex; align-items: center; gap: 15px; transition: opacity 0.15s ease; min-height: 92px;
}
.quick-action__title-block { flex: 0 0 auto; }
.quick-action__fields { flex: 1; display: flex; align-items: center; gap: 9px; flex-wrap: nowrap; min-width: 0; }
@media (max-width: 900px) { .quick-action__panel { flex-wrap: wrap; } .quick-action__submit { width: 100%; } }
@media (max-width: 480px) {
    .quick-action__title-block { flex: 1 1 100%; }
    .quick-action__fields { flex: 1 1 100%; flex-wrap: wrap; }
    .quick-action__field { flex: 1 1 100%; }
}
.quick-action__title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.quick-action__badge { background: var(--primary-red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 8px; }
.quick-action__hint { font-size: 11px; color: var(--text-gray); margin-top: 4px; cursor: pointer; }
.quick-action__auto-badge { font-size: 12px; color: #b78cff; margin-top: 4px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.quick-action__rate { font-size: 12px; margin-top: 4px; }
.quick-action__rate b { color: #ffb020; }
.quick-action__field {
    flex: 1; min-width: 80px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-sm); padding: 0 15px; display: flex; align-items: center; gap: 6px; height: 56px;
    box-sizing: border-box; transition: border-color 0.15s ease;
}
.quick-action__field:focus-within { border-color: var(--primary-red); }
.quick-action__field-text {
    position: relative; flex: 1; min-width: 0; align-self: stretch;
    display: flex; flex-direction: column; justify-content: center;
}
/* Floating label: centered/large when input is empty (acts as the placeholder), floats to a small top caption on focus or once filled */
.quick-action__field-label {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.5); line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
    transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.quick-action__field-label--static {
    position: static; top: auto; transform: none; display: block; margin-bottom: 2px;
    font-size: 11px; font-weight: 500; color: var(--text-gray);
}
.quick-action__field input, .quick-action__select-value {
    width: 100%; height: 100%; background: transparent; border: none; padding: 0; margin: 0;
    color: var(--text-white); font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
    appearance: none;
}
.quick-action__select-value { display: block; height: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-action__field input::placeholder { color: transparent; }
.quick-action__field input { cursor: text; outline: none; }
.quick-action__field input[type=number] { -moz-appearance: textfield; }
.quick-action__field input[type=number]::-webkit-outer-spin-button,
.quick-action__field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick-action__field input:focus + .quick-action__field-label,
.quick-action__field input:not(:placeholder-shown) + .quick-action__field-label {
    top: 6px; transform: translateY(0); font-size: 11px; font-weight: 500; color: var(--text-gray);
}
.quick-action__field input:focus,
.quick-action__field input:not(:placeholder-shown) {
    padding-top: 18px;
}
.quick-action__field-icon {
    color: var(--text-gray); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,0.08); cursor: help;
}
.quick-action__field-currency { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.quick-action__field-currency span {
    width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--text-gray);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
    font-family: Arial, "Segoe UI Symbol", sans-serif; line-height: 1; padding: 0;
    cursor: pointer; transition: all 0.12s ease;
}
.quick-action__field-currency span:hover { background: rgba(255,255,255,0.14); color: var(--text-white); }
.quick-action__field-currency span.active { background: var(--primary-red); color: #fff; }

/* Select-type field: clickable trigger + custom dropdown panel (label always shown at top, since a select always has a value) */
.quick-action__field--select { position: relative; cursor: pointer; user-select: none; outline: none; }
.quick-action__field--select:hover { border-color: rgba(255,255,255,0.16); }
.quick-action__field--select.open { border-color: var(--primary-red); }
.quick-action__field--select:focus-visible { border-color: var(--primary-red); }
.quick-action__select-chevron {
    flex-shrink: 0; color: var(--text-gray); transition: transform 0.15s ease;
}
.quick-action__field--select.open .quick-action__select-chevron { transform: rotate(180deg); }
.quick-action__select-dropdown {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
    background: #1c1d22; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--border-radius-sm);
    padding: 6px; max-height: 240px; overflow-y: auto; box-shadow: 0 16px 32px rgba(0,0,0,0.45);
    opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.quick-action__field--select.open .quick-action__select-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.quick-action__select-option {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
    color: var(--text-white); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.quick-action__select-option:hover { background: rgba(255,255,255,0.07); }
.quick-action__select-option.is-selected { color: var(--primary-red); }
.quick-action__select-check { flex-shrink: 0; display: none; }
.quick-action__select-option.is-selected .quick-action__select-check { display: block; }

.quick-action__submit {
    flex: 0 0 auto; min-width: 190px; background: linear-gradient(135deg, var(--primary-red), #990000); color: #fff; border: none; border-radius: var(--border-radius-sm);
    height: 38px; padding: 0 28px; font-weight: 700; font-size: 14px; cursor: not-allowed; opacity: 0.85; white-space: nowrap;
}
.quick-action__submit--gold { background: linear-gradient(135deg, #ffb020, #e08a00); }
@media (max-width: 700px) { .quick-action { flex-direction: column; } .quick-action__shortcuts { grid-template-columns: repeat(6, 1fr); } }
.quick-action__shortcuts[hidden] { display: none; }

/* Type filter tabs: visual only for now */

/* Category shelf: horizontal row of product cards */
.category-shelf { margin-bottom: 40px; }
.products-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
.products-row .product-card { flex: 0 0 220px; }

.discovery-tile { flex: 0 0 220px; display: flex; flex-direction: column; gap: 10px; }
.discovery-tile__header { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-gray); overflow: hidden; }
.discovery-tile__header img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.discovery-tile__header-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discovery-tile__header-text b { color: var(--text-white); font-weight: 700; }
.discovery-tile .product-card { position: relative; }
.discovery-tile__recent-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(10,10,10,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
    color: var(--text-white);
}
.home-sections-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }

.catalog-banner {
    width: 100%; height: 340px; background-color: var(--light-gray); border: none;
    border-radius: 20px; box-shadow: none; margin-bottom: 40px; overflow: hidden;
}
.catalog-banner img { width: 100%; height: 100%; object-fit: cover; }
/* SVG-баннеры (Telegram) держат текст слева — не даём обрезать его на узких экранах */
.catalog-banner img[src$=".svg"] { object-position: left center; }

.catalog-header { display: flex; gap: 20px; margin-bottom: 25px; align-items: center; flex-wrap: wrap; }
.catalog-header__info { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.catalog-header__icon { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; background: #222; }
.catalog-header__icon img { width: 100%; height: 100%; object-fit: cover; }
.catalog-header__name { font-size: 24px; font-weight: 900; }

.catalog-controls-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.catalog-search {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    flex-shrink: 0;
}

.catalog-search__input {
    width: 100%; height: 46px; padding: 0 15px 0 45px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; font-size: 14px; outline: none;
}
.catalog-search__input:focus { border-color: var(--primary-red); background: rgba(255,255,255,0.08); }
.catalog-search__icon { position: absolute; left: 15px; top: 14px; color: rgba(255,255,255,0.5); }

.subcategories-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    padding-bottom: 6px;
}

.subcategory-chip {
    height: 42px; padding: 0 18px; border-radius: 21px; border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600;
    white-space: nowrap; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
    flex-shrink: 0;
}
.subcategory-chip:hover { background: rgba(255, 255, 255, 0.1); }
.subcategory-chip.active { background: rgba(255, 0, 0, 0.15); border-color: rgba(255, 0, 0, 0.5); color: #fff; }

.catalog-filters-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-chip {
    height: 42px; padding: 0 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08); display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px);
}
.filter-chip:hover {
    background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2);
    color: white; transform: translateY(-2px);
}
.filter-chip.active {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(229, 9, 20, 0.05)); border-color: var(--primary-red);
    color: white; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.2);
}
.filter-chip__icon {
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-red);
}
.filter-chip__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filter-modal__content { padding-top: 10px; }
.filter-modal__row { display: flex; gap: 10px; margin-bottom: 15px; }
.filter-modal__input {
    flex: 1; height: 45px; padding: 0 15px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 14px; font-family: inherit; outline: none;
}
.filter-modal__input:focus { border-color: var(--primary-red); }
.filter-modal__options { display: flex; flex-direction: column; gap: 8px; }
.filter-option {
    padding: 15px; border-bottom: 1px solid #222; cursor: pointer; color: #aaa; transition: 0.2s;
    display: flex; align-items: center; gap: 10px;
}
.filter-option:hover { color: white; }
.filter-option.active { color: var(--primary-red); font-weight: 700; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.product-card { background: transparent; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: all 0.3s ease; }
.product-card:hover .product-card__image { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05); }
.product-card__image {
    background: linear-gradient(145deg, var(--card-light), var(--card-bg)); border-radius: 18px; aspect-ratio: 4 / 3;
    width: 100%; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; border: 1px solid rgba(255,255,255,0.02);
}
.product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.product-card__title { font-weight: 800; font-size: 17px; margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card__subtitle { font-size: 14px; font-weight: 600; color: #ccc; margin-bottom: 8px; }
.product-card__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.product-card__stars { color: var(--primary-red); letter-spacing: -2px; }
.product-card__reviews { color: #bbb; font-weight: 500; }
.product-card__price { font-size: 20px; font-weight: 900; color: var(--primary-red); }
.product-card__price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-card__discount { background-color: var(--primary-red); color: white; padding: 2px 6px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.product-card__old-price { font-size: 14px; text-decoration: line-through; color: #666; }
.product-card__stock { font-size: 11px; padding: 4px 8px; border-radius: 6px; display: inline-block; margin-top: 5px; }
.product-card__stock--in { background: rgba(34,197,94,0.15); color: #4ade80; }
.product-card__stock--out { background: rgba(239,68,68,0.15); color: #f87171; }
.products-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #666; }
.products-empty__icon { font-size: 48px; margin-bottom: 15px; }
.products-empty__text { font-size: 16px; font-weight: 600; }

.product-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; margin-bottom: 60px; }
.product-visual {
    width: 100%; height: auto; aspect-ratio: 4/3; background: linear-gradient(145deg, var(--card-light), var(--card-bg)); border: 1px solid rgba(255,255,255,0.03);
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin-bottom: 30px; overflow: hidden;
}
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.product-description__title { font-size: 20px; font-weight: 800; margin-bottom: 15px; }
.product-description__text { color: #ccc; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.product-main-title { font-size: 32px; font-weight: 900; margin-bottom: 10px; line-height: 1.2; }
.product-rating { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 25px; }
.product-method-box {
    background: linear-gradient(90deg, #444, #333); border-left: 4px solid var(--primary-red);
    padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; width: fit-content; min-width: 200px;
}
.product-method-box__label { font-size: 12px; color: #aaa; margin-bottom: 2px; }
.product-method-box__value { font-size: 15px; font-weight: 600; }
.product-guarantees { list-style: none; margin-bottom: 30px; }
.product-guarantees__item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.product-guarantees__check { width: 18px; height: 18px; background-color: var(--primary-red); border-radius: 4px; display: flex; justify-content: center; align-items: center; color: white; font-size: 11px; flex-shrink: 0; }
.product-price-block { margin: 25px 0; display: flex; align-items: center; gap: 15px; }
.product-price-block__current { font-size: 36px; font-weight: 900; color: var(--primary-red); }
.product-price-block__discount { background: var(--primary-red); color: white; padding: 4px 8px; border-radius: 6px; font-size: 16px; font-weight: 800; }
.product-price-block__old { text-decoration: line-through; color: #666; font-size: 20px; font-weight: 700; }
.product-footer-icons { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 40px; padding-top: 15px; }
.product-footer-icons__item { display: flex; align-items: center; gap: 8px; }
.product-footer-icons__icon { width: 18px; height: 18px; border: 2px solid var(--primary-red); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.product-seller__info { display: flex; align-items: center; gap: 15px; margin-top: 12px; }
.product-seller__avatar-wrapper { position: relative; width: 50px; height: 50px; }
.product-seller__avatar { width: 50px; height: 50px; background: #222; border-radius: 50%; border: 2px solid #555; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary-red); }
.product-seller__online { width: 14px; height: 14px; background: #22c55e; border-radius: 50%; position: absolute; bottom: -2px; right: -2px; border: 3px solid var(--bg-color); z-index: 2; }
.product-seller__name { font-weight: 800; font-size: 15px; }
.product-seller__reviews { font-size: 12px; font-weight: 600; color: #aaa; margin-top: 2px; display: flex; align-items: center; }
.product-section-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }

.reviews-section { margin-top: 60px; border-top: 1px solid #333; padding-top: 40px; }
.reviews-section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; }
.reviews-section__title { font-size: 24px; font-weight: 800; }
.reviews-section__all-btn {
    padding: 10px 20px; border: 1px solid #444; border-radius: 20px; background: transparent;
    color: white; font-size: 13px; font-weight: 600; display: inline-block; text-decoration: none;
}
.reviews-section__all-btn:hover { border-color: var(--primary-red); background: rgba(255, 255, 255, 0.05); }
.reviews-section__big-rating { font-size: 48px; font-weight: 900; display: flex; align-items: center; gap: 15px; margin-bottom: 5px; }
.reviews-section__subtext { font-size: 11px; color: #666; margin-bottom: 25px; }
.reviews-section__verified { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; margin-top: 15px; margin-bottom: 40px; }
.reviews-section__verified-icon { width: 20px; height: 20px; border: 2px solid var(--primary-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-red); font-size: 12px; }

.reviews-page { max-width: 1200px; margin: 0 auto; padding-top: 20px; }
.reviews-page__back { display: inline-block; color: #888; font-size: 14px; font-weight: 600; margin-bottom: 20px; transition: color 0.2s; }
.reviews-page__back:hover { color: var(--primary-red); }
.reviews-page__header { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }
.reviews-page__title { font-size: 32px; font-weight: 900; }
.reviews-page__rating { display: flex; align-items: center; gap: 10px; }
.reviews-page__rating-value { font-size: 32px; font-weight: 900; color: var(--primary-red); }
.reviews-page__rating-count { color: #888; font-size: 14px; }
.reviews-page__verified { display: flex; align-items: center; gap: 8px; color: #888; font-size: 13px; margin-bottom: 30px; }

.reviews-grid, .reviews-page__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.review-card { background-color: #3a3a3a; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 15px; border: 1px solid #2a2a2a; min-height: 180px; }
.review-card__header { display: flex; justify-content: space-between; align-items: flex-start; }
.review-card__user { display: flex; gap: 10px; align-items: center; }
.review-card__avatar { width: 40px; height: 40px; background-color: #222; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary-red); font-size: 14px; }
.review-card__avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-card__avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-card__user-name { font-size: 14px; font-weight: 700; }
.review-card__stars { color: var(--primary-red); letter-spacing: 1px; font-size: 14px; }
.review-card__body { font-size: 14px; color: #ddd; line-height: 1.5; flex-grow: 1; }
.review-card__date { font-size: 12px; color: #666; }
.review-card__product { display: flex; gap: 10px; padding: 10px; margin-top: 12px; background: rgba(255, 255, 255, 0.04); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.2s; align-items: center; text-decoration: none; color: inherit; }
.review-card__product:hover { background: rgba(255, 255, 255, 0.06); }
.review-card__product--unavailable { opacity: 0.5; pointer-events: none; }
.review-card__product-img { width: 50px; height: 50px; border-radius: 8px; background: var(--card-bg); overflow: hidden; flex-shrink: 0; }
.review-card__product-img img { width: 100%; height: 100%; object-fit: cover; }
.review-card__product-info { flex: 1; min-width: 0; }
.review-card__product-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.review-card__product-price { font-size: 13px; font-weight: 700; color: var(--primary-red); display: flex; align-items: center; gap: 6px; }
.review-card__product-discount { background: var(--primary-red); color: #fff; padding: 1px 4px; border-radius: 4px; font-size: 10px; }
.review-card__product-old { color: #666; text-decoration: line-through; font-size: 11px; font-weight: 500; }
.reviews-page__pagination { display: flex; justify-content: center; gap: 8px; }
.pagination-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pagination-btn:hover { background: rgba(255, 255, 255, 0.1); }
.pagination-btn.active { background: var(--primary-red); border-color: var(--primary-red); color: #fff; }

.review-card--no-text .review-card__header {
    flex-wrap: wrap;
}

.review-card--no-text .review-card__stars {
    width: 100%;
    text-align: center;
    font-size: 32px;
    letter-spacing: 6px;
    margin-top: 20px;
    order: 2;
}

.reviews-filters-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.reviews-filters__row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.filter-group__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group--rating {
    min-width: auto;
}

.rating-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rating-btn {
    height: 36px;
    padding: 0 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.rating-btn:hover {
    border-color: #555;
    color: var(--text-white);
}

.rating-btn.active {
    background: rgba(255, 0, 0, 0.15);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.filter-select-wrap {
    height: 40px;
    padding: 0 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
}

.filter-select-wrap:hover {
    border-color: var(--primary-red);
}

.filter-select-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--border-gray);
    overflow: hidden;
    flex-shrink: 0;
    display: none;
}

.filter-select-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter-select-arrow {
    width: 20px;
    height: 20px;
    margin-left: auto;
    color: var(--text-gray);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 80px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 13px;
    outline: none;
}

.price-input:focus {
    border-color: var(--primary-red);
}

.price-range__sep {
    color: var(--text-gray);
    font-size: 14px;
}

.filter-sort-select {
    height: 40px;
    padding: 0 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

.reviews-filters__toggles {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-gray);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.2s;
}

.filter-toggle:hover {
    color: var(--text-white);
}

.filter-toggle.active {
    color: var(--primary-red);
}

.filter-toggle__check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-toggle.active .filter-toggle__check {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.filter-toggle.active .filter-toggle__check::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.filter-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--primary-red);
    border-radius: 8px;
    color: var(--primary-red);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-reset-btn:hover {
    background: var(--primary-red);
    color: white;
}

.filter-reset-btn svg {
    width: 14px;
    height: 14px;
}

.category-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.category-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-color);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-filter-item:hover {
    border-color: #444;
    transform: translateY(-2px);
}

.category-filter-item.active {
    border-color: var(--primary-red);
    background: rgba(255, 0, 0, 0.08);
}

.category-filter-item__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--border-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-filter-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-filter-item__name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--text-white);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-title { font-size: 24px; font-weight: 800; margin-bottom: 25px; }
.profile-header { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(20px 20px at 30% 25%, rgba(255,255,255,0.18), transparent 70%), rgba(255,255,255,0.06);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 10px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
}

.profile-name { font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.profile-verify { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1px; font-size: 11px; color: var(--primary-red); }
.profile-meta { margin-top: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.profile-stars { color: var(--primary-red); font-size: 12px; }
.money-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.balance-block { display: flex; gap: 12px; align-items: center; }
.pill { width: 320px; height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45); display: flex; align-items: center; gap: 10px; padding: 0 12px; max-width: 100%; }
.pill__icon { width: 26px; height: 26px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 26, 26, 0.14); border: 1px solid rgba(255, 26, 26, 0.35); flex-shrink: 0; }
.pill__icon svg { width: 14px; height: 14px; }
.pill__main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.pill__value { font-weight: 900; white-space: nowrap; }
.pill__sub { font-size: 12px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.pill__endbtn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.pill__endbtn:hover { background: rgba(255, 255, 255, 0.1); }
.ref-code { font-family: monospace; font-weight: 900; color: var(--primary-red); }
.ref-meta { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.ref-meta b { color: rgba(255, 255, 255, 0.88); }
.btn-topup { height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255, 26, 26, 0.55); background: linear-gradient(180deg, #ff3b3b, #ff0000); cursor: pointer; font-weight: 900; color: #fff; white-space: nowrap; box-shadow: 0 16px 45px rgba(255, 26, 26, 0.22); font-size: 14px; }
.btn-topup:hover { opacity: 0.9; }
.profile-tabs-new { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.profile-tab-new { height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); cursor: pointer; font-weight: 700; color: rgba(255, 255, 255, 0.88); display: flex; align-items: center; gap: 8px; font-size: 14px; transition: 0.2s; }
.profile-tab-new:hover { background: rgba(255, 255, 255, 0.08); }
.profile-tab-new.active { background: rgba(255, 26, 26, 0.18); border-color: rgba(255, 26, 26, 0.55); color: #fff; }
.profile-tab-new__count { font-weight: 900; }
.profile-subtabs { display: flex; gap: 8px; margin-bottom: 15px; }
.profile-subtab { padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.profile-subtab:hover { background: rgba(255, 255, 255, 0.06); }
.profile-subtab.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.profile-panel { display: none; }
.profile-panel.active { display: block; }
.placeholder-block { border-radius: 20px; border: 1px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.placeholder-block__img { width: 120px; height: 120px; border-radius: 20px; overflow: hidden; opacity: 0.6; }
.placeholder-block__img img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-block__text { color: rgba(255, 255, 255, 0.65); font-size: 14px; max-width: 300px; }
.purchases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.purchase-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
.purchase-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.purchase-card:active { transform: scale(0.98); }
.purchase-card__image { background-color: #161616; border-radius: 16px; aspect-ratio: 4/3; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.purchase-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.purchase-card__status { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; color: white; letter-spacing: 0.3px; }
.purchase-card__status--paid { background: rgba(34, 197, 94, 0.9); backdrop-filter: blur(4px); }
.purchase-card__status--pending { background: rgba(245, 158, 11, 0.9); backdrop-filter: blur(4px); }
.purchase-card__title { font-size: 13px; font-weight: 800; line-height: 1.35; }
.purchase-card__price { display: flex; gap: 5px; align-items: center; font-size: 12px; }
.purchase-card__price-current { color: var(--primary-red); font-weight: 900; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 4000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: #1a1a1a; border: 1px solid var(--primary-red); border-radius: 30px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 30px; animation: modalSlideUp 0.3s ease; scrollbar-width: none; }
.modal::-webkit-scrollbar { display: none; }
@keyframes modalSlideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal__title { font-size: 22px; font-weight: 800; }
.modal__close { width: 40px; height: 40px; background: #333; border: none; border-radius: 50%; color: white; font-size: 20px; cursor: pointer; transition: 0.2s; }
.modal__close:hover { background: var(--primary-red); }
.payment-modal__product { display: flex; gap: 15px; padding: 15px; background: #2a2a2a; border-radius: 15px; margin-bottom: 25px; }
.payment-modal__product-img { width: 80px; height: 60px; background: #1a1a1a; border-radius: 10px; overflow: hidden; }
.payment-modal__product-img img { width: 100%; height: 100%; object-fit: contain; }
.payment-modal__product-title { font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.payment-modal__product-price { font-size: 18px; font-weight: 800; color: var(--primary-red); }
.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.payment-method { display: flex; align-items: center; gap: 15px; padding: 15px; background: #2a2a2a; border: 2px solid #444; border-radius: 15px; cursor: pointer; transition: 0.2s; }
.payment-method:hover { border-color: #666; }
.payment-method.selected { border-color: var(--primary-red); background: rgba(255, 0, 0, 0.08); }
.payment-method__icon { width: 45px; height: 45px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; min-width: 40px; background-color: white; }
.payment-method__info { flex: 1; }
.payment-method__title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.payment-method__desc { font-size: 11px; color: #888; }
.payment-method__fee { font-size: 12px; color: #9A9A9A; font-weight: 600; margin-top: 4px; }
.payment-method__radio { width: 22px; height: 22px; border: 2px solid #555; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.payment-method.selected .payment-method__radio { border-color: var(--primary-red); background: var(--primary-red); }
.payment-method.selected .payment-method__radio::after { content: '✓'; color: white; font-size: 12px; }
.payment-method--insufficient { opacity: 0.7; }
.success-modal__icon { font-size: 64px; text-align: center; margin-bottom: 15px; }
.success-modal__title { font-size: 24px; font-weight: 800; text-align: center; color: var(--primary-red); margin-bottom: 8px; }
.success-modal__subtitle { text-align: center; color: #888; font-size: 14px; margin-bottom: 25px; }
.promocode-box { background: rgba(255, 0, 0, 0.1); border: 2px dashed var(--primary-red); border-radius: 15px; padding: 20px; text-align: center; margin: 20px 0; }
.promocode-box__label { color: #888; font-size: 12px; margin-bottom: 8px; }
.promocode-box__value { font-size: 18px; font-weight: 800; color: var(--primary-red); user-select: all; word-break: break-all; }
.balance-modal__current { text-align: center; margin-bottom: 25px; }
.balance-modal__current-label { font-size: 14px; color: #888; margin-bottom: 5px; }
.balance-modal__current-value { font-size: 36px; font-weight: 900; color: var(--primary-red); }
.balance-input-group { margin-bottom: 20px; }
.balance-input-group label { display: block; font-size: 13px; color: #888; margin-bottom: 8px; }
.balance-input { width: 100%; padding: 15px; border-radius: 12px; border: 2px solid #444; background: #2a2a2a; color: white; font-size: 18px; font-weight: 700; text-align: center; outline: none; transition: 0.2s; }
.balance-input:focus { border-color: var(--primary-red); }
.balance-presets { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.balance-preset { flex: 1; min-width: 70px; padding: 10px; border: 2px solid #444; border-radius: 10px; background: #2a2a2a; color: white; font-weight: 700; cursor: pointer; transition: 0.2s; text-align: center; }
.balance-preset:hover { border-color: #666; }
.balance-preset.selected { border-color: var(--primary-red); background: rgba(255, 0, 0, 0.1); }
.purchase-modal { max-width: 450px; }
.purchase-modal__image { width: 100%; height: auto; aspect-ratio: 4/3; background: #1a1a1a; border-radius: 12px; overflow: hidden; margin-bottom: 15px; }
.purchase-modal__image img { width: 100%; height: 100%; object-fit: contain; }
.purchase-modal__title { font-size: 18px; font-weight: 700; margin-bottom: 15px; }
