* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --border: #2a2a2a;
    --primary: #dc2626;
    --text: #ffffff;
    --muted: #888888;
    --radius: 12px;
    --layout-max: 1280px;
    --layout-pad: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(255, 59, 59, 0.16), transparent 24%), linear-gradient(180deg, #060607 0%, #0c0d12 100%);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #f5f7fb;
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
    opacity: 0.35;
}

.container {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 var(--layout-pad);
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
.btn,
input,
select,
textarea {
    font: inherit;
}

button,
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover,
.btn:hover {
    /* transform: translateY(-1px); */
    filter: brightness(1.04);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 59, 59, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.18);
}

/* Shared marketplace shell */
.site-header {
    position: relative;
    width: 100%;
    margin: 20px 0 20px;
    z-index: 100;
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    min-height: 78px;
    padding: 16px 18px;
    box-sizing: border-box;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* background: rgba(12, 13, 18, 0.84);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header .user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.site-header .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), rgba(255, 59, 59, 0.06));
    border: 1px solid rgba(255, 59, 59, 0.24);
}

.site-header .logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.header-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ff7c7c;
    font-weight: 700;
    line-height: 1.2;
}

.header-copy h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.15;
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.top-row .box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: inherit;
    padding: 6px 8px;
    border-radius: 999px;
    width: fit-content;
    white-space: nowrap;
}

.top-row .price-box {
    background: rgba(255, 59, 59, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 59, 59, 0.24);
}

.top-row .mp-guest-auth {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 999px;
}

.top-row .mp-guest-auth a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #f8fafc;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.top-row .mp-guest-auth a:hover {
    background: rgba(255, 59, 59, 0.22);
}

.top-row .notifcation-box,
.top-row .rejim-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.top-row .notifcation-box i {
    font-size: 14px;
}

.price {
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
}

.add-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #ff4d4d 0%, #dc2626 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}

.add-btn:hover {
    background: linear-gradient(135deg, #ff5f5f 0%, #ef4444 100%);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.3);
}

header {
    position: relative;
    width: 100%;
    max-width: 100%;
    z-index: 100;
    box-sizing: border-box;
    transition: background 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

/* Scroll: kenglik `.container` ichki qatori bilan bir xil (1280 + pad — konteynerdan oshmasin) */
header.site-header.active {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    --hdr-inset-l: max(var(--layout-pad), env(safe-area-inset-left, 0px));
    --hdr-inset-r: max(var(--layout-pad), env(safe-area-inset-right, 0px));
    width: min(
        calc(100vw - var(--hdr-inset-l) - var(--hdr-inset-r)),
        calc(var(--layout-max) - var(--hdr-inset-l) - var(--hdr-inset-r))
    );
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(8, 9, 12, 0.92);
    /* border-radius: 24px; */
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    /* border: 1px solid rgba(255, 255, 255, 0.06); */
}

header.site-header.active .header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
}

nav.app-bottom-nav {
    margin: 20px 0 0;
    padding-bottom: 24px;
}

nav.app-bottom-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2px, 1.2vw, 8px);
    width: 100%;
    max-width: min(100%, calc(var(--layout-max) - 2 * var(--layout-pad)));
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
    border-radius: 24px;
    background: rgba(10, 11, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    box-sizing: border-box;
}

nav.app-bottom-nav .nav-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    min-height: 52px;
    padding: 6px 2px;
    border-radius: 14px;
    color: #9aa3b2;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    overflow: hidden;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

nav.app-bottom-nav .nav-item__label {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    line-height: 1.1;
}

nav.app-bottom-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    transform: translateY(-2px) scale(1.01);
}

nav.app-bottom-nav .nav-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    flex-shrink: 0;
}

nav.app-bottom-nav .nav-item i {
    font-size: 0.95rem;
    line-height: 1;
}
nav.app-bottom-nav .nav-item:hover .nav-item__icon,
nav.app-bottom-nav .nav-item.active .nav-item__icon {
    background: rgba(255, 59, 59, 0.16);
    color: #ff7c7c;
    box-shadow: inset 0 0 0 1px rgba(255, 59, 59, 0.22), 0 0 14px rgba(255, 59, 59, 0.16);
}

nav.app-bottom-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.22), rgba(220, 38, 38, 0.12));
    color: #fff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

nav.app-bottom-nav .nav-item.active .nav-item__label {
    color: #fff;
}

.hero-surface {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    padding: 22px;
    margin: 18px 0 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.16) 0%, rgba(12, 13, 18, 0.95) 100%);
    border: 1px solid rgba(255, 59, 59, 0.22);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.feature-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(10, 11, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.24), rgba(220, 38, 38, 0.12));
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #f8fafc;
}

.feature-card p {
    margin: 0;
    color: #9aa3b2;
    font-size: 0.9rem;
    line-height: 1.45;
}

.hero-copy .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #ff8d8d;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.2;
    color: #fff;
}

.hero-copy p {
    margin: 0;
    color: #d4d8e0;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    justify-content: flex-end;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.85rem;
}

.card,
.profile-card,
.profile-panel,
.package-card,
.orders-scene .orders-top,
.filter-tabs {
    background: rgba(12, 13, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}

.btn-primary {
    background: linear-gradient(135deg, #ff4d4d 0%, #dc2626 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    box-sizing: border-box;
}

.auth-form label {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.section-title,
.profile-panel__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.alert-ok {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.24);
    color: #dcfce7;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.swiper.mySwiper {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-bottom: 40px;
    box-sizing: border-box;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.swiper.mySwiper .swiper-wrapper {
    align-items: stretch;
}

.swiper.mySwiper .swiper-slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: rgba(7, 9, 14, 0.95);
}

.swiper.mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
}

.swiper.mySwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

.swiper.mySwiper .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #ff4d4d 0%, #dc2626 100%);
}

.profile-card {
    margin: 24px auto 140px;
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(16, 18, 24, 0.98), rgba(8, 10, 14, 0.95));
    border: 1px solid rgba(255, 59, 59, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.16), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 59, 59, 0.18);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.25), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 59, 59, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-name {
    margin: 0 0 4px;
    font-size: 1.35rem;
    color: #fff;
}

.profile-subtitle {
    margin: 0;
    color: #cbd5e1;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.86rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.profile-stat {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-stat__label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.profile-stat strong {
    font-size: 1.05rem;
    color: #fff;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    margin-top: 16px;
}

.profile-panel {
    padding: 18px;
}

.profile-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.profile-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-list-item .label {
    color: #cbd5e1;
}

.profile-list-item .value {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

.profile-list-item .value.balance {
    color: #f87171;
}

.activity-feed {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.activity-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-top: 7px;
    background: linear-gradient(135deg, #ff4d4d 0%, #dc2626 100%);
    box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.14);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.inventory-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.inventory-card h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #fff;
}

.inventory-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.user-id-copy-btn {
    font: inherit;
    border: 0;
    background: transparent;
    color: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline dotted rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}

.user-id-copy-btn:hover {
    color: #ff8d8d;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #ff8d8d;
    font-weight: 700;
}

.home-modules {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin: 20px 0;
}

.search-card,
.quickbuy-card,
.topup-shell,
.orders-shell {
    padding: 20px;
    border-radius: 26px;
    background: rgba(12, 13, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.search-card form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.search-input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.search-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff4d4d 0%, #dc2626 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}

.quickbuy-card .quick-stats {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.quickbuy-card .quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
}

.quickbuy-card .quick-stat strong {
    color: #ff8d8d;
}

.topup-shell {
    margin-bottom: 120px;
}

.topup-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topup-hero__copy h1 {
    margin: 6px 0 8px;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: #fff;
}

.topup-hero__copy p {
    margin: 0;
    color: #cbd5e1;
    max-width: 620px;
}

.topup-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.topup-badge span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.84rem;
    white-space: nowrap;
}

.topup-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 16px;
    margin-top: 18px;
}

.topup-panel {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topup-panel--main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topup-panel h2,
.topup-panel h3 {
    margin: 0 0 10px;
    color: #fff;
}

.topup-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.topup-field label {
    color: #f8fafc;
    font-weight: 700;
}

.topup-hint,
.topup-mini-note,
.topup-empty {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
}

.topup-hint {
    font-size: 0.82rem;
}

.topup-mini-note {
    font-size: 0.82rem;
    margin-top: 8px;
}

.topup-empty a {
    color: #ff8d8d;
    font-weight: 600;
}

.topup-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topup-step:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.topup-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 59, 59, 0.16);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.topup-step__text strong {
    display: block;
    margin-bottom: 3px;
    color: #f8fafc;
}

.topup-step__text p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.topup-side-link {
    display: inline-flex;
    margin-top: 10px;
    color: #ff8d8d;
    font-weight: 600;
    text-decoration: none;
}

.topup-side-link:hover {
    text-decoration: underline;
}

.ainput {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    box-sizing: border-box;
}

.qrow {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.qbtn,
.mbtn,
.sbtn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.qbtn {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.mbtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mbtn.active {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), rgba(220, 38, 38, 0.16));
    border-color: rgba(255, 59, 59, 0.25);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16);
}

.sbtn {
    width: 100%;
    margin-top: 2px;
    background: linear-gradient(135deg, #ff4d4d 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}

.methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.micon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.orders-shell {
    margin-bottom: 120px;
}

.orders-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.orders-hero h1 {
    margin: 6px 0 6px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: #fff;
}

.orders-hero p {
    margin: 0 auto;
    color: #cbd5e1;
    max-width: 640px;
}

.orders-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.orders-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.summary-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.summary-card strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
}

.summary-card span {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.orders-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.24), rgba(220, 38, 38, 0.16));
    color: #fff;
    border-color: rgba(255, 59, 59, 0.24);
}

.orders-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.order-ticket {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.order-ticket__accent {
    width: 5px;
    border-radius: 999px;
    align-self: stretch;
    background: linear-gradient(180deg, #ff4d4d 0%, #dc2626 100%);
}

.order-ticket__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.order-ticket__left {
    flex: 0 1 auto;
    text-align: center;
    min-width: 0;
    max-width: 100%;
}

.order-ticket__title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 0.96rem;
}

.order-ticket__line {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.84rem;
}

.order-ticket__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.order-ticket__money-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-ticket__money {
    font-size: 1rem;
    font-weight: 700;
    color: #ff8d8d;
}

.order-ticket__pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.order-ticket__pill--ok {
    background: rgba(22, 163, 74, 0.18);
    color: #bbf7d0;
}

.order-ticket__pill--wait {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.order-ticket__pill--bad {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
}

.order-ticket__provider,
.order-ticket__refund-to {
    color: #94a3b8;
    font-size: 0.74rem;
    text-align: center;
}

.orders-copy-pop {
    position: fixed;
    z-index: 99999;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 59, 59, 0.95);
    color: #fff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.orders-copy-pop.is-visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.profile-copy-toast {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) scale(0.92);
    z-index: 99999;
    max-width: 92vw;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.22s ease;
}

.profile-copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.profile-copy-toast--ok {
    background: rgba(22, 163, 74, 0.95);
    color: #ecfdf5;
}

.profile-copy-toast--err {
    background: rgba(220, 38, 38, 0.95);
    color: #fef2f2;
}

@media (max-width: 840px) {
    .hero-surface,
    .profile-hero,
    .profile-grid,
    .home-modules,
    .topup-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .profile-stats,
    .inventory-grid {
        grid-template-columns: 1fr 1fr;
    }

    .orders-summary {
        grid-template-columns: 1fr 1fr;
    }

    nav.app-bottom-nav .nav-inner {
        gap: 6px;
        padding: 6px;
    }

    nav.app-bottom-nav .nav-item {
        min-height: 54px;
        padding: 8px 4px;
        gap: 4px;
        font-size: 0.7rem;
    }

    nav.app-bottom-nav .nav-item__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    nav.app-bottom-nav .nav-item__label {
        font-size: 0.68rem;
    }
}

@media (max-width: 560px) {
    .site-header .header-inner,
    .hero-surface,
    .profile-card,
    .profile-panel,
    .search-card,
    .quickbuy-card,
    .topup-shell,
    .orders-shell {
        padding: 16px;
    }

    .profile-stats,
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .site-header .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
    }

    .top-row {
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .top-row .box {
        width: auto;
        justify-content: space-between;
        padding: 8px 10px;
    }

    .top-row .mp-guest-auth {
        width: 100%;
        justify-content: flex-end;
    }

    .search-card form {
        flex-direction: column;
    }

    .orders-summary {
        grid-template-columns: 1fr;
    }

    .topup-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .order-ticket__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .order-ticket__right {
        align-items: center;
        text-align: center;
    }

    .order-ticket__money-row {
        justify-content: center;
    }
}

/* Pastki nav: `games.css` (bir manba, layoutda har doim ulanadi) */

/* ============================ Swiper (bosh sahifa banner) ============================ */
/* Rasm: konteyner kengligi bo‘yicha to‘liq, balandlik rasmning o‘zi (height: auto + Swiper autoHeight) */
.swiper.mySwiper {
    width: 100%;
    height: auto;
    background: rgba(15, 15, 20, 0.25);
    overflow: hidden;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.swiper.mySwiper .swiper-wrapper {
    height: auto;
    align-items: flex-start;
}

.swiper.mySwiper .swiper-slide {
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.swiper.mySwiper .swiper-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.swiper.mySwiper .swiper-pagination {
    bottom: 8px !important;
}

.swiper.mySwiper .swiper-pagination-bullet {
    width: 26px !important;
    height: 26px !important;
    text-align: center;
    line-height: 26px !important;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
}

.swiper.mySwiper .swiper-pagination-bullet-active {
    color: #fff;
    background: #007aff;
}

/* ============================ Grid Start ============================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
    padding: 10px;
}

.card {
    background: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
    overflow: hidden; /* MUHIM */
}

.card:hover {
    border: 1px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s ease;
}

.card:hover img {
    transform: scale(1.08);
}
.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
}

.card p {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}
/* ============================ Grid End ============================ */

/* Katalog grid `fetch` skeleti */
.home-games-grid--skeleton .home-games-skeleton-cell {
    min-height: 140px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    animation: home-games-skeleton-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes home-games-skeleton-pulse {
    from {
        opacity: 0.45;
    }
    to {
        opacity: 0.85;
    }
}
