/* ==========================================================
   FLASH CASE — Mobile Adaptation
   Loaded AFTER all other CSS files.
   Desktop styles remain completely untouched.
   ========================================================== */

/* Hide hamburger on desktop */
.header__burger {
    display: none !important;
}

/* ============================================================
   TABLET & MOBILE  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

/* Show hamburger on mobile */
.header__burger {
    display: flex !important;
}

/* ========================
   LIVE DROPS CONVEYOR
   ======================== */
.live-drops {
    height: 48px;
}

.live-drops__panel {
    width: 48px;
    height: 48px;
    border-radius: 0 8px 8px 0;
}

.live-drops__online {
    font-size: 7px;
    gap: 2px;
    border-radius: 0 8px 0 0;
}

.live-drops__online-dot {
    width: 4px;
    height: 4px;
}

.live-drops__filter-btn {
    font-size: 10px;
    border-radius: 4px;
    margin: 1px;
}

.live-drops__track {
    margin-left: 52px;
    gap: 4px;
}

.live-drops__card {
    width: 44px;
    height: 52px;
    border-radius: 6px;
}

.live-drops__card-img {
    width: 28px;
    height: 28px;
}

.live-drops__card-name {
    font-size: 5px;
    max-width: 40px;
}

.live-drops__card-price {
    font-size: 6px;
    margin-bottom: 2px;
}

.live-drops__card-glow {
    height: 16px;
    border-radius: 0 0 6px 6px;
}

.live-drops__card-avatar {
    width: 18px;
    height: 18px;
}

.live-drops__card-user {
    font-size: 5px;
    max-width: 36px;
}

@keyframes cardDropIn {
    0% { transform: translateY(-50px) scale(0.7); opacity: 0; }
    60% { transform: translateY(3px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ========================
   HEADER
   ======================== */
.header {
    top: 48px;
}

body {
    padding-top: 100px;
}

.header__inner {
    height: 52px;
    padding: 0 10px;
    border-radius: 0 0 12px 12px;
    gap: 6px;
}

.header__logo img {
    height: 42px;
}

.header__logo {
    margin-right: auto;
    margin-left: 0;
}

/* Hide desktop nav, show hamburger */
.header__nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 200;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.header__nav.mobile-open {
    opacity: 1;
    pointer-events: auto;
}

.header__nav-link {
    font-size: 17px;
    padding: 14px 20px;
    width: 80%;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.header__nav-link:hover,
.header__nav-link.active {
    background: rgba(245, 200, 66, 0.1);
}

.nav-icon {
    height: 1.5em;
}

/* Hamburger button */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 201;
    order: -1;
    flex-shrink: 0;
}

.header__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Header actions — compact */
.header__actions {
    gap: 6px;
    flex-shrink: 0;
}

/* Hide "ПОПОЛНИТЬ" text on mobile, show only icon */
.btn-deposit {
    padding: 7px 10px;
    font-size: 0;
    gap: 0;
    border-radius: 8px;
}

.btn-deposit__icon {
    width: 16px;
    height: 16px;
}

.balance {
    padding: 5px 8px;
    border-radius: 8px;
}

.balance__amount,
.balance__currency {
    font-size: 12px;
}

.btn-gold {
    padding: 7px 12px;
    font-size: 11px;
}

.btn-icon-gold {
    padding: 7px 9px;
    border-radius: 8px;
}

.btn-icon-gold img {
    width: 15px;
    height: 15px;
}

.header__avatar {
    width: 32px;
    height: 32px;
}

.header__notif-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
}

/* ========================
   MAIN CONTENT
   ======================== */
.main {
    padding: 10px 8px;
}

/* ========================
   FLOATING BACKGROUND
   ======================== */
.floating-bg {
    display: none;
}

/* ========================
   ANNOUNCEMENTS
   ======================== */
/* Override inline styles for announcements on mobile */
.main > div[style*="max-width:900px"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 4px;
}

.main > div[style*="max-width:900px"] > div {
    padding: 8px 12px !important;
    border-radius: 8px !important;
}

.main > div[style*="max-width:900px"] > div > span:first-child {
    font-size: 14px !important;
}

.main > div[style*="max-width:900px"] > div > span:nth-child(2) {
    font-size: 12px !important;
}

/* ========================
   BANNER & SLIDER
   ======================== */
.banner {
    margin-top: 12px;
    margin-bottom: 0;
}

.banner img {
    width: 75vw;
    border-radius: 10px;
}

.slider {
    margin-bottom: 10px;
}

.slider__track {
    max-width: 100%;
    padding: 0 6px;
    gap: 8px;
    mask-image: none;
    -webkit-mask-image: none;
}

.slider__item {
    min-width: calc(100vw - 28px);
    height: 0;
    padding-bottom: 56%;
    border-radius: 12px;
    position: relative;
}

.slider__item > img {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider__btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
}

.slider__btn--left {
    left: 6px;
}

.slider__btn--right {
    right: 6px;
}

.slider__subscribe-btn {
    position: absolute;
    bottom: 14px;
    left: 10px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}

.slider__promo {
    bottom: 14px;
    left: 10px;
}

.slider__promo-copy {
    width: 34px;
    height: 34px;
    border-radius: 6px 0 0 6px;
}

.slider__promo-copy img {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px;
    max-height: 14px;
}

.slider__promo-code {
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 1px;
    border-radius: 0 6px 6px 0;
}

/* ========================
   CASES GRID (INDEX)
   ======================== */
.cases-section {
    margin-top: 0;
}

.section-title {
    font-size: 22px;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 13px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: -30px;
    padding: 0 2px;
    justify-items: center;
}

.cases-grid--rainbow,
.cases-grid--collection {
    margin-top: 56px;
    padding-top: 36px;
}

.collection-header {
    position: relative;
    top: auto;
    left: auto;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    grid-column: 1 / -1;
}

.collection-logo {
    height: 32px;
}

.collection-title {
    font-size: 11px;
}

.case-card {
    gap: 3px;
}

.case-card img {
    width: 100%;
    max-width: 150px;
}

.case-card__name {
    font-size: 12px;
}

.case-card__price {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
}

.case-card__badge {
    top: 4px;
    right: 4px;
    padding: 2px 5px;
    font-size: 8px;
    border-radius: 5px;
}

/* ========================
   CASE PAGE (ROULETTE)
   ======================== */
.case-page {
    padding-top: 16px;
}

.case-info {
    margin-bottom: 20px;
    gap: 6px;
}

.case-info__img {
    width: 90px;
}

.case-info__title {
    font-size: 17px;
}

.case-info__price {
    font-size: 14px;
}

.case-count {
    gap: 6px;
    margin-bottom: 16px;
}

.case-count__btn {
    width: 36px;
    height: 32px;
    font-size: 12px;
    border-radius: 8px;
}

.roulette-container {
    max-width: 100%;
    padding: 0 4px;
}

.roulette {
    max-width: 100%;
    margin-bottom: 8px;
}

.roulette__window {
    padding: 6px 0;
    border-radius: 10px;
}

.roulette__track {
    gap: 6px;
    padding: 0 8px;
}

.roulette__item {
    min-width: 100px;
    height: 90px;
    border-radius: 8px;
}

.roulette__item-img {
    width: 48px;
}

.roulette__item-name {
    font-size: 8px;
    padding: 0 4px;
}

.roulette__item-price {
    font-size: 9px;
}

/* Vertical roulette on mobile — stack vertically */
.roulette-container[data-mode="vertical"] {
    flex-direction: column;
    gap: 4px;
}

.roulette-container[data-mode="vertical"] .roulette {
    max-width: 100%;
}

.roulette__window--vertical {
    height: 220px;
}

.roulette__item--vertical {
    height: 70px;
    min-height: 70px;
}

/* Case actions */
.case-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}

.case-actions__btn {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 10px;
}

.case-back {
    font-size: 13px;
    margin-bottom: 8px;
}

/* Result modal */
.modal {
    padding: 20px 16px;
    min-width: 0;
    max-width: 94vw;
    border-radius: 16px;
}

.modal--multi .modal__results {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: safe center;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.modal__card {
    min-width: 100px;
    max-width: 110px;
    padding: 10px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.modal__card .modal__img {
    width: 60px;
    height: 45px;
}

.modal__card .modal__name {
    font-size: 9px;
}

.modal__card .modal__price {
    font-size: 10px;
}

.modal__card-actions {
    gap: 4px;
    margin-top: 2px;
}

.modal__card-btn {
    padding: 5px 2px;
    font-size: 8px;
    border-radius: 5px;
}

.modal__total {
    font-size: 16px;
}

.modal__actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal__btn {
    padding: 10px 22px;
    font-size: 13px;
}

.popup {
    padding: 24px 18px;
    min-width: 0;
    max-width: 90vw;
    border-radius: 16px;
}

.popup__title {
    font-size: 17px;
}

.popup__text {
    font-size: 13px;
}

.popup__btn {
    padding: 10px 28px;
    font-size: 13px;
}

/* Rarity bar */
.rarity-bar {
    max-width: 100%;
    padding: 0 4px;
}

/* Drops grid */
.drops {
    max-width: 100%;
    padding: 0 4px;
}

.drops__title {
    font-size: 16px;
    margin-bottom: 10px;
}

.drops__grid {
    gap: 6px;
    justify-content: center;
}

.drops__item {
    width: calc(50% - 6px);
    max-width: 150px;
    border-radius: 8px;
    padding: 10px 6px 8px;
}

.drops__item-img {
    width: 60px;
    height: 60px;
}

.drops__item-name {
    font-size: 10px;
}

.drops__item-price {
    font-size: 10px;
}

/* ========================
   UPGRADE PAGE
   ======================== */
.upgrade-page {
    padding: 12px 8px;
    min-height: auto;
}

.upgrade-arena {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
}

.upgrade-slot {
    width: 100%;
    max-width: 280px;
}

.upgrade-slot__label {
    font-size: 10px;
}

.upgrade-slot__card {
    width: 100%;
    height: 180px;
    border-radius: 12px;
}

.upgrade-slot__skin img {
    width: 90px;
    height: 90px;
}

.upgrade-balance__input-wrap {
    width: 130px;
}

.upgrade-wheel {
    width: 160px;
    height: 160px;
    order: -1;
}

.upgrade-wheel__pointer {
    top: 2px;
    width: 5px;
    height: 18px;
    margin-left: -2.5px;
    transform-origin: 50% 78px;
}

.upgrade-wheel__chance {
    font-size: 24px;
}

.upgrade-btn {
    padding: 12px 36px;
    font-size: 13px;
}

/* Upgrade result */
.upgrade-result__content {
    padding: 20px 16px;
    max-width: 92vw;
}

.upgrade-result__skin img {
    width: 110px;
    height: 110px;
}

/* Upgrade modal (skin picker) */
.upgrade-modal {
    padding-top: 14vh;
}

.upgrade-modal__content {
    width: 96%;
    max-width: 100%;
    padding: 14px 10px;
    max-height: 82vh;
    border-radius: 14px;
}

.upgrade-modal__header h2 {
    font-size: 15px;
}

.upgrade-modal__filters {
    gap: 6px;
}

.upgrade-filter {
    padding: 6px 10px;
    font-size: 11px;
}

.upgrade-modal__scroll-wrap {
    position: relative;
}

.upgrade-modal__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
    scrollbar-width: none;
}

.upgrade-modal__grid::-webkit-scrollbar {
    display: none;
}

.upgrade-modal__scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    z-index: 2;
    transition: opacity 0.2s;
}

.upgrade-modal__scrollbar-thumb {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(245, 200, 66, 0.5);
    border-radius: 3px;
    min-height: 20px;
}

.upgrade-modal__card {
    border-radius: 10px;
    padding: 10px 6px 8px;
    overflow: hidden;
    min-width: 0;
}

.upgrade-modal__card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.upgrade-modal__card-name {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.upgrade-modal__card-price {
    font-size: 11px;
}

/* ========================
   CONTRACTS PAGE
   ======================== */
.contract-page {
    padding: 12px 8px;
    min-height: auto;
}

.contract-board {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 14px;
}

.contract-panel {
    padding: 14px;
    border-radius: 12px;
}

.contract-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.contract-slot {
    min-height: 65px;
    border-radius: 8px;
}

.contract-slot__img {
    width: 32px;
    height: 32px;
}

.contract-slot__plus {
    font-size: 18px;
}

.contract-chance {
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.contract-chance__needle {
    width: 3px;
    height: 20px;
    margin-left: -1.5px;
    top: 6px;
    transform-origin: 50% 74px;
}

.contract-chance__value {
    font-size: 28px;
}

.contract-multi__value {
    font-size: 16px;
}

.contract-target {
    min-height: 140px;
}

.contract-target__filled {
    width: 90px;
}

/* Contract result */
.contract-result__content {
    padding: 20px 16px;
    max-width: 92vw;
}

/* Contract modal (skin picker) */
.contract-modal {
    padding-top: 14vh;
}

.contract-modal__content {
    width: 96%;
    max-width: 100%;
    padding: 14px 10px;
    max-height: 82vh;
    border-radius: 14px;
}

.contract-modal__header h2 {
    font-size: 15px;
}

.contract-modal__filters {
    gap: 6px;
}

.contract-filter {
    padding: 6px 10px;
    font-size: 11px;
}

.contract-modal__scroll-wrap {
    position: relative;
}

.contract-modal__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
    scrollbar-width: none;
}

.contract-modal__grid::-webkit-scrollbar {
    display: none;
}

.contract-modal__scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    z-index: 2;
    transition: opacity 0.2s;
}

.contract-modal__scrollbar-thumb {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(245, 200, 66, 0.5);
    border-radius: 3px;
    min-height: 20px;
}

.contract-modal__card {
    border-radius: 10px;
    padding: 10px 6px 8px;
    overflow: hidden;
    min-width: 0;
}

.contract-modal__card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.contract-modal__card-name {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.contract-modal__card-price {
    font-size: 11px;
}

/* ========================
   PROFILE PAGE
   ======================== */
.profile-page {
    padding: 14px 8px;
    gap: 14px;
}

.profile-card {
    flex-direction: column;
    gap: 16px;
    padding: 16px 14px;
    align-items: stretch;
    border-radius: 16px;
}

.profile-card__left {
    gap: 12px;
}

.profile-card__avatar {
    width: 52px;
    height: 52px;
}

.profile-card__name {
    font-size: 16px;
}

.profile-card__id {
    font-size: 11px;
}

.profile-card__right {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.profile-card__balance {
    align-items: flex-start;
}

.profile-card__balance-label {
    font-size: 10px;
}

.profile-card__balance-value {
    font-size: 20px;
}

.profile-card__promo {
    padding-right: 0;
    margin-right: 0;
}

.profile-card__promo-input {
    width: 100px;
    height: 32px;
    font-size: 11px;
    padding: 0 10px;
}

.profile-card__promo-btn {
    width: 32px;
    height: 32px;
}

.profile-card__promo-btn img {
    width: 14px;
    height: 14px;
}

.profile-card__logout {
    padding: 7px 14px;
    font-size: 11px;
    border-radius: 8px;
}

.profile-card__admin-btn {
    padding: 7px 14px;
    font-size: 11px;
    border-radius: 8px;
}

/* Stats — 2 columns */
.profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat-card {
    padding: 14px 10px;
    border-radius: 10px;
}

.stat-card__icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.stat-card__value {
    font-size: 18px;
}

.stat-card__label {
    font-size: 11px;
}

/* Inventory */
.profile-inventory {
    padding: 14px 10px;
    border-radius: 16px;
}

.profile-inventory__header {
    margin-bottom: 16px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.profile-inventory__title-row {
    gap: 8px;
    flex-wrap: wrap;
}

.profile-inventory__title {
    font-size: 17px;
}

.profile-inventory__actions {
    gap: 6px;
    flex-wrap: wrap;
}

.profile-inventory__count {
    font-size: 12px;
}

.inv-action-btn {
    font-size: 11px;
    padding: 6px 12px;
}

.inv-action-btn--withdraw {
    padding: 6px 12px;
    font-size: 11px;
}

.inventory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.inventory-card {
    border-radius: 10px;
}

.inventory-card__img {
    width: 80px;
    height: 60px;
}

.inventory-card__name {
    font-size: 10px;
}

.inventory-card__price {
    font-size: 11px;
}

.inventory-card__overlay {
    gap: 4px;
}

.inventory-card__btn {
    font-size: 10px;
    padding: 5px 10px;
}

.inventory-empty__icon {
    font-size: 36px;
}

.inventory-empty__text {
    font-size: 13px;
}

/* Tab buttons on profile */
.profile-tabs {
    gap: 6px !important;
    margin: 12px 0 10px !important;
}

.profile-tabs__btn {
    padding: 6px 16px !important;
    font-size: 12px !important;
}

/* History section */
.profile-history {
    padding: 0 4px;
}

.profile-history__title {
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

/* Sell confirmation modal */
.sell-confirm__box {
    padding: 28px 20px 22px;
    max-width: 340px;
    border-radius: 16px;
}

.sell-confirm__icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.sell-confirm__title {
    font-size: 16px;
}

.sell-confirm__text {
    font-size: 13px;
}

.sell-confirm__price {
    font-size: 22px;
    margin-bottom: 20px;
}

.sell-confirm__btn {
    padding: 12px 0;
    font-size: 13px;
    border-radius: 10px;
}

/* ========================
   AUCTION PAGE
   ======================== */
.auction-page {
    padding: 14px 8px;
    gap: 14px;
}

.auction-timer__clock {
    font-size: 26px;
}

.auction-prize {
    padding: 20px 16px;
    min-width: 0;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
}

.auction-prize__img {
    width: 120px;
    height: 90px;
}

.auction-prize__name {
    font-size: 13px;
    max-width: 220px;
}

.auction-prize__price {
    font-size: 16px;
}

.auction-current {
    padding: 10px 16px;
    gap: 8px;
    border-radius: 12px;
}

.auction-current__value {
    font-size: 18px;
}

.auction-leaders {
    padding: 14px;
    max-width: 100%;
    border-radius: 14px;
}

.auction-leaders__row {
    grid-template-columns: 34px 1fr 80px;
    padding: 7px 8px;
    font-size: 12px;
}

.auction-bid {
    max-width: 100%;
    width: 100%;
}

.auction-bid__row {
    gap: 6px;
    flex-wrap: wrap;
}

.auction-bid__input {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.auction-bid__btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    margin-top: 28px;
    padding: 28px 0 0;
}

.footer__inner {
    padding: 0 14px;
}

.footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
}

.footer__brand {
    align-items: center;
    text-align: center;
}

.footer__logo {
    height: 40px;
}

.footer__desc {
    max-width: 100%;
    text-align: center;
    font-size: 12px;
}

.footer__links {
    align-items: center;
}

.footer__heading {
    font-size: 13px;
}

.footer__link {
    font-size: 12px;
}

.footer__bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 14px 0;
    font-size: 11px;
}

/* ========================
   LOGIN MODAL
   ======================== */
.login-modal {
    min-width: 0;
    width: 92vw;
    max-width: 380px;
    padding: 28px 20px;
    border-radius: 18px;
}

.login-modal__title {
    font-size: 20px;
}

.login-modal__subtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

.login-modal__steam-btn {
    padding: 12px 24px;
    font-size: 15px;
    gap: 8px;
    border-radius: 10px;
}

.login-modal__steam-icon {
    width: 22px;
    height: 22px;
}

.admin-login-form {
    max-width: 100%;
}

.admin-login-form__input {
    font-size: 12px;
    padding: 9px 12px;
}

/* ========================
   SETTINGS PANEL
   ======================== */
.settings-panel {
    width: 92vw;
    max-width: 360px;
    padding: 20px 16px;
}

.settings-panel__title {
    font-size: 16px;
}

.settings-section__label {
    font-size: 12px;
}

/* ========================
   COOKIE BANNER
   ======================== */
.cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    text-align: center;
    border-radius: 12px;
}

.cookie-banner__text {
    max-width: 100%;
    font-size: 11px;
}

.cookie-banner__btn {
    width: 100%;
    padding: 9px 18px;
    font-size: 12px;
}

/* ========================
   AGE MODAL
   ======================== */
.age-modal {
    width: 92vw;
    max-width: 360px;
    padding: 24px 18px 18px;
    border-radius: 16px;
}

.age-modal__icon {
    font-size: 36px;
}

.age-modal__title {
    font-size: 18px;
}

.age-modal__text {
    font-size: 13px;
    line-height: 1.5;
}

.age-modal__btn {
    font-size: 14px;
    padding: 10px 28px;
}

.age-modal__links {
    font-size: 10px;
    gap: 4px;
}

/* ========================
   PRELOADER
   ======================== */
.preloader__logo {
    height: 64px;
}

/* ========================
   TOAST NOTIFICATIONS
   ======================== */
.toast {
    max-width: 90vw;
    font-size: 12px;
    padding: 10px 16px;
}

/* ========================
   WITHDRAW PAGE
   ======================== */
.withdraw-page {
    padding: 14px 8px;
}

.withdraw-card {
    padding: 16px 12px;
    border-radius: 14px;
}

} /* END @media (max-width: 768px) */


/* ============================================================
   SMALL PHONES  (≤ 420px)
   Extra compact adjustments
   ============================================================ */
@media (max-width: 420px) {

/* Even smaller header */
.header__inner {
    height: 48px;
    padding: 0 8px;
}

.header__logo img {
    height: 36px;
}

.header__actions {
    gap: 4px;
}

.btn-deposit {
    padding: 6px 8px;
}

.balance {
    padding: 4px 6px;
}

.balance__amount,
.balance__currency {
    font-size: 11px;
}

.btn-icon-gold {
    padding: 6px 7px;
}

.btn-icon-gold img {
    width: 14px;
    height: 14px;
}

.header__avatar {
    width: 28px;
    height: 28px;
}

.header__notif-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

/* Slider — even tighter */
.slider__item {
    min-width: calc(100vw - 20px);
    padding-bottom: 58%;
}

.slider__subscribe-btn {
    bottom: 10px;
    left: 8px;
    padding: 6px 16px;
    font-size: 10px;
}

.slider__promo {
    bottom: 10px;
    left: 8px;
}

.slider__promo-copy {
    width: 28px;
    height: 28px;
}

.slider__promo-copy img {
    width: 11px !important;
    height: 11px !important;
    max-width: 11px;
    max-height: 11px;
}

.slider__promo-code {
    height: 28px;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: 0.8px;
}

/* Cases grid — smaller cards */
.cases-grid {
    gap: 6px;
    margin-top: -20px;
}

.case-card img {
    max-width: 130px;
}

.case-card__name {
    font-size: 11px;
}

.case-card__price {
    padding: 3px 8px;
    font-size: 10px;
}

/* Roulette items smaller */
.roulette__item {
    min-width: 85px;
    height: 78px;
}

.roulette__item-img {
    width: 40px;
}

.roulette__item-name {
    font-size: 7px;
}

.roulette__item-price {
    font-size: 8px;
}

/* Case actions tighter */
.case-actions__btn {
    padding: 9px 18px;
    font-size: 12px;
}

.case-count__btn {
    width: 32px;
    height: 28px;
    font-size: 11px;
}

/* Profile adjustments */
.profile-card {
    padding: 14px 10px;
}

.profile-card__avatar {
    width: 44px;
    height: 44px;
}

.profile-card__name {
    font-size: 14px;
}

.profile-card__balance-value {
    font-size: 18px;
}

.stat-card__value {
    font-size: 16px;
}

.stat-card__label {
    font-size: 10px;
}

/* Inventory — single column on very small screens */
.inventory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.inventory-card__img {
    width: 70px;
    height: 52px;
}

/* Modals tighter */
.modal {
    padding: 14px 10px;
    max-width: 98vw;
}

.modal--multi .modal__results {
    gap: 6px;
}

.modal__card {
    min-width: 85px;
    max-width: 95px;
    padding: 8px 6px;
}

.modal__card .modal__img {
    width: 50px;
    height: 38px;
}

.modal__card .modal__name {
    font-size: 8px;
}

.modal__card .modal__price {
    font-size: 9px;
}

.modal__card-btn {
    padding: 4px 2px;
    font-size: 7px;
}

.modal__actions {
    gap: 6px;
}

.modal__btn {
    padding: 9px 16px;
    font-size: 12px;
}

.sell-confirm__box {
    padding: 24px 16px 18px;
    max-width: 300px;
}

.sell-confirm__icon {
    font-size: 28px;
}

.sell-confirm__title {
    font-size: 14px;
}

.sell-confirm__price {
    font-size: 20px;
    margin-bottom: 16px;
}

.sell-confirm__actions {
    gap: 8px;
}

.sell-confirm__btn {
    padding: 10px 0;
    font-size: 12px;
}

.login-modal {
    padding: 24px 16px;
}

.login-modal__title {
    font-size: 18px;
}

.login-modal__steam-btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* Upgrade modal — tighter on small screens */
.upgrade-modal {
    padding-top: 8vh;
}

.upgrade-modal__content {
    padding: 12px 8px;
    max-height: 85vh;
}

.upgrade-modal__header h2 {
    font-size: 13px;
}

.upgrade-modal__grid {
    gap: 6px;
}

.upgrade-modal__card {
    padding: 8px 4px 6px;
}

.upgrade-modal__card img {
    width: 46px;
    height: 46px;
}

.upgrade-modal__card-name {
    font-size: 8px;
}

.upgrade-modal__card-price {
    font-size: 10px;
}

/* Contract modal — tighter on small screens */
.contract-modal {
    padding-top: 8vh;
}

.contract-modal__content {
    padding: 12px 8px;
    max-height: 85vh;
}

.contract-modal__header h2 {
    font-size: 13px;
}

.contract-modal__grid {
    gap: 6px;
}

.contract-modal__card {
    padding: 8px 4px 6px;
}

.contract-modal__card img {
    width: 46px;
    height: 46px;
}

.contract-modal__card-name {
    font-size: 8px;
}

.contract-modal__card-price {
    font-size: 10px;
}

/* Footer compact */
.footer__top {
    gap: 16px;
}

.footer__logo {
    height: 34px;
}

.footer__desc {
    font-size: 11px;
}

/* Drops grid — 2 columns compact */
.drops__item {
    width: calc(50% - 4px);
    padding: 8px 4px 6px;
}

.drops__item-img {
    width: 50px;
    height: 50px;
}

.drops__item-name {
    font-size: 9px;
}

.drops__item-price {
    font-size: 9px;
}

} /* END @media (max-width: 420px) */
