/* komet2 - komet.space fonts (Jost, Roboto Mono) */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

/* komet2 - Ozon Style Design */
:root {
    --ozon-blue: #0351f1;
    --ozon-blue-dark: #0047CC;
    --ozon-blue-light: #E6F0FF;
    --white: #FFFFFF;
    --surface: #F5F7FB;
    --surface-strong: #EEF4FF;
    --surface-raised: #FCFDFF;
    --surface-muted: #F7F9FD;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --text-primary: #111827;
    --text-secondary: #667085;
    --border-color: #E5EBF5;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);
    --radius: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;
}

/* Bootstrap Icons Font */
@font-face {
    font-family: 'bootstrap-icons';
    src: url('../fonts/bootstrap-icons.woff2') format('woff2'),
         url('../fonts/bootstrap-icons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    line-height: 1.5;
    background:
        radial-gradient(circle at top left, rgba(3, 81, 241, 0.11), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 139, 45, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
    background-attachment: fixed;
}

code, pre, .mono {
    font-family: 'Roboto Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1260px;
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 235, 245, 0.92);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header.landing {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 18px;
}

.header-wrapper--catalog-search {
    display: grid;
    grid-template-columns: auto minmax(280px, 620px) auto;
    justify-content: stretch;
}

.header-wrapper .logo {
    margin-right: 0;
    flex-shrink: 0;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: transparent;
    box-shadow: 0 10px 24px rgba(3, 81, 241, 0.16);
    flex-shrink: 0;
}

.header-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: inherit;
    filter: none;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo a {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(3, 81, 241, 0.16);
    flex-shrink: 0;
}

.logo-text {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 560px;
    max-width: 620px;
    min-width: 240px;
    height: 48px;
    padding: 0 16px;
    background: #f7f9fd;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-wrapper--catalog-search .header-search {
    width: 100%;
    max-width: 620px;
    min-width: 0;
    flex: none;
    justify-self: center;
}

.header-search i {
    font-size: 15px;
    color: #98a2b3;
}

.header-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.header-search-input::placeholder {
    color: #98a2b3;
}

.header-search:focus-within {
    border-color: #c8d6ff;
    box-shadow: 0 0 0 4px rgba(3, 81, 241, 0.08);
}

.main-nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6.5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    background: inherit;
    color: inherit;
}

.nav-link:hover i {
    color: inherit;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon {
    position: relative;
    color: var(--text-primary);
    font-size: 20px;
    padding: 8px;
}

.cart-counter {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--ozon-blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6.5px;
    min-width: 18px;
    text-align: center;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: all 0.2s;
    padding: 0;
}

.user-btn:hover {
    background: inherit;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6.5px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s;
    pointer-events: none;
}

.user-dropdown:hover .dropdown-content,
.user-dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: inherit;
    color: inherit;
}

.auth-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.login-btn, .signup-btn {
    padding: 8px 16px;
    border-radius: 6.5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.login-btn {
    border: 1px solid var(--ozon-blue);
    color: white;
    background: var(--ozon-blue);
    padding: 10px 24px;
    border-radius: 6.5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.login-btn:hover {
    background: inherit;
    color: inherit;
}


.signup-btn {
    background: var(--ozon-blue);
    color: var(--white);
}

.signup-btn:hover {
    background: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--ozon-blue);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(3, 81, 241, 0.18);
}

.btn-primary:hover {
    background: var(--ozon-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(3, 81, 241, 0.24);
}

.btn-outline {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--surface-muted);
    border-color: #d3ddf0;
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

.app-page {
    padding: 28px 0 110px;
    min-height: calc(100vh - 60px);
    background: transparent;
}

.app-page--tight {
    padding-top: 18px;
}

.app-page--narrow .container {
    max-width: 520px;
}

.app-page--wide .container {
    max-width: 1480px;
}

.app-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-stack--lg {
    gap: 24px;
}

.app-grid {
    display: grid;
    gap: 24px;
}

.app-grid--sidebar {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.app-grid--stats-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-grid--stats-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 235, 245, 0.96);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    backdrop-filter: blur(14px);
}

.app-card--compact {
    padding: 18px 20px;
}

.app-card--hero {
    padding: 28px;
    border: none;
    border-radius: 28px;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.app-card--hero-orange {
    background: linear-gradient(135deg, #ff9f3d 0%, #f57c00 100%);
}

.app-card--hero-blue {
    background: linear-gradient(135deg, #1463ff 0%, #0047cc 100%);
}

.app-card--hero-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.app-card--hero-dark {
    background: linear-gradient(135deg, #121826 0%, #1f2937 100%);
}

.app-card--hero .btn,
.app-card--hero .app-hero-btn {
    background: #fff;
    color: #111827;
    box-shadow: none;
}

.app-card--hero .btn:hover,
.app-card--hero .app-hero-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: none;
    box-shadow: none;
}

.app-hero {
    text-align: center;
}

.app-hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 10px;
}

.app-hero-subtitle {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.94;
}

.app-hero-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 14px;
}

.app-hero-meta {
    font-size: 14px;
    opacity: 0.92;
    margin-bottom: 18px;
}

.app-hero-timer {
    display: block;
    margin-top: 12px;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 700;
}

.app-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 18px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.app-hero-btn[disabled] {
    background: rgba(255, 255, 255, 0.88);
    color: #707782;
    cursor: not-allowed;
}

.app-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.app-section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.app-header--stack {
    flex-direction: column;
}

.app-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.app-balance-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-stat-card {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.app-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-height: 88px;
}

.app-list-main {
    min-width: 0;
    flex: 1;
}

.app-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.app-list-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.app-list-side {
    text-align: right;
    flex-shrink: 0;
}

.app-list-amount {
    font-size: 16px;
    font-weight: 700;
}

.app-list-amount--positive {
    color: #1f9d55;
}

.app-list-amount--negative {
    color: #dc2626;
}

.app-list-amount--accent {
    color: var(--ozon-blue);
}

.app-empty {
    text-align: center;
    padding: 54px 24px;
}

.app-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-strong);
    color: var(--ozon-blue);
    font-size: 28px;
}

.app-empty h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-empty p {
    font-size: 14px;
    color: var(--text-secondary);
}

.app-notice {
    border-radius: 20px;
    padding: 14px 16px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
}

.app-notice--success {
    background: #edf9f0;
    border-color: #b7e1c0;
    color: #216c3c;
}

.app-notice--error {
    background: #fff1f1;
    border-color: #f2b6b6;
    color: #b42318;
}

.app-notice--info {
    background: #eef4ff;
    border-color: #cfe0ff;
    color: #194185;
}

.app-notice--warning {
    background: #fff8e6;
    border-color: #f8dfa0;
    color: #946200;
}

.app-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-form-group label,
.app-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-input,
.app-select,
.app-textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
    outline: none;
    border-color: #bfd3ff;
    box-shadow: 0 0 0 4px rgba(3, 81, 241, 0.08);
}

.app-input-group {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
}

.app-input-group .app-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 58px;
}

.app-input-addon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0 18px;
    border-left: 1px solid var(--border-color);
    background: var(--surface-muted);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    cursor: pointer;
}

.app-choice-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.app-choice-icon img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.app-choice-copy {
    min-width: 0;
    flex: 1;
}

.app-choice-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.app-choice-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.app-choice-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--ozon-blue);
    flex-shrink: 0;
}

.app-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-inline-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.app-link {
    color: var(--ozon-blue);
    font-weight: 600;
    text-decoration: none;
}

.app-link:hover {
    color: var(--ozon-blue-dark);
}

.app-code-field {
    display: flex;
    align-items: stretch;
    border: 1px solid #d6deeb;
    border-radius: 18px;
    background: #fff;
    overflow: visible;
    position: relative;
}

.app-code-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-code-action {
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--surface-muted);
    color: var(--text-secondary);
    min-width: 52px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-modal-box {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(229, 235, 245, 0.96);
    backdrop-filter: blur(18px);
}

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.app-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-modal-close {
    border: none;
    background: var(--surface-muted);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.app-table th,
.app-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.app-table th {
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-table td {
    color: var(--text-secondary);
}

.app-table tr:last-child td {
    border-bottom: none;
}

.app-page-header {
    margin-bottom: 18px;
}

.app-page-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.app-page-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.app-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.app-card-link--between {
    justify-content: space-between;
}

.app-card-copy {
    min-width: 0;
    flex: 1;
}

.app-icon-chip {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--surface-strong);
    color: var(--ozon-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.app-icon-chip--round {
    border-radius: 999px;
}

.app-icon-chip--glass {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.app-thumb {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--surface-muted);
    flex-shrink: 0;
}

.app-thumb--sm {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.app-thumb--round {
    border-radius: 999px;
}

.app-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-divider {
    height: 1px;
    background: var(--border-color);
    margin: 18px 0;
}

.app-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.app-pill--danger {
    background: #fff1f1;
    color: #b42318;
}

.app-pill--warning {
    background: #fff8e6;
    color: #946200;
}

.app-pill--success {
    background: #edf9f0;
    color: #216c3c;
}

.app-card-note {
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface-muted);
}

.app-card-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.app-card-note ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.app-card-note li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.app-choice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.app-choice-card:hover {
    border-color: #c7d8ff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.app-choice-card.selected,
.app-choice-card--active {
    background: #f8fbff;
    border-color: #bfd3ff;
    box-shadow: 0 10px 24px rgba(3, 81, 241, 0.08);
}

.app-choice-end {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.app-choice-chevron {
    color: #98a2b3;
    font-size: 14px;
}

.app-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.app-inline-link:hover {
    color: var(--text-primary);
}

.app-dropdown-trigger {
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--surface-muted);
    color: var(--text-secondary);
    min-width: 52px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.app-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    padding: 6px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 235, 245, 0.96);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.app-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.app-dropdown-item:hover {
    background: var(--surface-muted);
}

.app-dropdown-item--danger {
    color: #c62828;
}

.app-code-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.app-summary-panel {
    position: sticky;
    top: 96px;
}

.app-summary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.app-summary-line--total {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-cart-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.app-cart-item + .app-cart-item {
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.app-cart-thumb {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    flex-shrink: 0;
}

.app-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-cart-copy {
    min-width: 0;
}

.app-cart-title {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.app-cart-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-cart-subprice {
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #98a2b3;
    text-decoration: line-through;
}

.app-cart-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.app-cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.app-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--surface-muted);
}

.app-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
}

.app-qty-input {
    width: 44px;
    border: none;
    background: transparent;
    text-align: center;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.app-qty-input:focus {
    outline: none;
}

.app-cart-total {
    text-align: right;
}

.app-cart-total-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-cart-total-old {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #98a2b3;
    text-decoration: line-through;
}

.app-table-wrap {
    overflow-x: auto;
}

.app-tabbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-tab {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.app-tab.is-active {
    background: #edf4ff;
    border-color: #bfd3ff;
    color: var(--ozon-blue);
}

.app-hidden {
    display: none !important;
}

/* DLC Cards */
.dlcs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.dlc-card {
    background: var(--white);
    border-radius: 6.5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.dlc-card:hover {
    box-shadow: inherit;
    transform: none;
}

.dlc-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.dlc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dlc-info {
    padding: 16px;
}

.dlc-platform {
    font-size: 12px;
    font-weight: 600;
    color: var(--ozon-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dlc-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dlc-game {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.dlc-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.dlc-actions {
    display: flex;
    gap: 8px;
}

.btn-cart {
    flex: 1;
    background: var(--ozon-blue);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 6.5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart:hover {
    background: inherit;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer .logo-text {
    color: var(--ozon-blue);
}

.footer p {
    color: var(--ozon-blue);
}

.footer-column h4 {
    color: var(--ozon-blue);
}

.footer-column ul li a {
    color: var(--ozon-blue);
}

.footer-column ul li a:hover {
    color: inherit;
}

.footer-bottom {
    color: var(--ozon-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--ozon-blue);
    margin-bottom: 8px;
    display: block;
}

.footer-logo p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-column ul li a:hover {
    color: inherit;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-message {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6.5px;
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.flash-message.success {
    border-left: 4px solid #4CAF50;
}

.flash-message.error {
    border-left: 4px solid #F44336;
}

.flash-message.info {
    border-left: 4px solid var(--ozon-blue);
}

.close-flash {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    padding: 0;
    order: -1;
}

.desktop-only {
    display: block;
}

.mobile-menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    max-width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    overflow-y: auto;
    box-shadow: 18px 0 48px rgba(15, 23, 42, 0.18);
    border-right: 1px solid rgba(229, 235, 245, 0.96);
    backdrop-filter: blur(18px);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.42);
    z-index: 1999;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-header {
        display: none !important;
    }
}

.mobile-nav-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li a {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 12px;
}

.mobile-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 16px;
    transition: all 0.2s;
    text-decoration: none;
}

.mobile-sidebar-item {
    background: #ffffff;
}

.mobile-sidebar-item:hover {
    background: #f7f9fd;
}

.mobile-sidebar-item.active {
    background: #edf4ff;
    color: var(--text-primary);
}

/* Auth Forms */
.auth-section {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: 6.5px;
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6.5px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--white);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--ozon-blue);
    box-shadow: 0 0 0 3px var(--ozon-blue-light);
}

.form-group .h-captcha {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.form-group .h-captcha iframe {
    border-radius: 6.5px;
}

.form-actions {
    margin-top: 24px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--ozon-blue);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: none;
}

.flash-messages-local {
    margin-bottom: 20px;
}

.flash-messages-local .flash-message {
    position: relative;
    animation: none;
}

/* Profile */
.profile-section {
    padding: 24px 0;
    background: var(--gray-50);
    min-height: calc(100vh - 200px);
}

.profile-header {
    margin-bottom: 24px;
}

.profile-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--white);
    padding: 4px;
    border-radius: 6.5px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 6.5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--ozon-blue);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Admin Panel */
.admin-section {
    padding: 24px 0;
    background: var(--gray-50);
    min-height: calc(100vh - 200px);
}

.admin-header {
    background: var(--white);
    border-radius: 6.5px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.admin-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 4px;
    border-radius: 6.5px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.admin-tabs .tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 6.5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tabs .tab-btn.active {
    background: var(--ozon-blue);
    color: var(--white);
}

.admin-tabs .tab-btn:hover:not(.active) {
    background: inherit;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-actions {
    margin-bottom: 20px;
}

.admin-table {
    background: var(--white);
    border-radius: 6.5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: inherit;
}

.badge {
    padding: 4px 10px;
    border-radius: 6.5px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge.verified {
    background: var(--ozon-blue-light);
    color: var(--ozon-blue-dark);
}

.badge.pending {
    background: #fff3cd;
    color: #856404;
}

.badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-success {
    background: #4CAF50;
    color: var(--white);
}

.btn-success:hover {
    background: inherit;
}

.btn-danger {
    background: #F44336;
    color: var(--white);
}

.btn-danger:hover {
    background: inherit;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 24px;
    top: 96px;
    width: 224px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 16px 0;
    z-index: 100;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 128px);
    backdrop-filter: blur(18px);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #1f6bff;
}

.sidebar-icon.blue {
    background: #e8f0ff;
    color: #0456f2;
}

.sidebar-icon.orange {
    background: #fff2df;
    color: #f08a00;
}

.sidebar-icon.purple {
    background: #f2e8ff;
    color: #8b3dff;
}

.sidebar-icon.red {
    background: #ffe8e6;
    color: #dd3f34;
}

.sidebar-icon.green {
    background: #e7f8ea;
    color: #2d9f49;
}

.sidebar-icon.teal {
    background: #e4f8f4;
    color: #0b9a84;
}

.sidebar-item {
    background: #ffffff;
}

.sidebar-item:hover {
    background: #f7f9fd;
}

.sidebar-item.active {
    background: #edf4ff;
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px rgba(3, 81, 241, 0.05);
}

.sidebar-divider {
    height: 1px;
    background: #eef2f7;
    margin: 12px 12px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 6px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    color: var(--text-secondary);
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    max-width: 80px;
    position: relative;
}

.bottom-nav-item i,
.bottom-nav-item .bottom-nav-icon {
    font-size: 22px;
    margin-bottom: 0;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bottom-nav-item .bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    border-radius: 14px;
}

.bottom-nav-item .bottom-nav-icon svg {
    width: 24px;
    height: 24px;
    color: inherit;
}

.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon svg {
    color: var(--ozon-blue);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: #edf4ff;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bottom-nav-item:hover {
    color: inherit;
}

.bottom-nav-item.active {
    color: var(--ozon-blue);
}

.bottom-nav-item.active i {
    color: var(--ozon-blue);
}

.bottom-nav-item.active span {
    color: var(--ozon-blue);
    font-weight: 500;
}

/* Main Content with Sidebar — фон белый как область контента на login */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s;
    min-height: calc(100vh - 60px);
    background: transparent;
}

.main-content.with-sidebar {
    margin-left: 0;
    padding-left: 260px;
}

.btn,
.app-card-link,
.app-list-row,
.app-summary-line,
.app-inline-actions,
.app-choice,
.app-code-field,
.app-input-group,
.sidebar-item,
.mobile-sidebar-item {
    min-width: 0;
}

.app-page-title,
.app-section-title,
.app-list-title,
.app-hero-title,
.app-hero-value,
.app-balance-amount,
.sidebar-item span,
.mobile-sidebar-item span,
.flash-message {
    overflow-wrap: anywhere;
}

.flash-messages {
    max-width: min(420px, calc(100vw - 24px));
}

.flash-message {
    min-width: 0;
    width: 100%;
}

.app-table-wrap,
.admin-table {
    -webkit-overflow-scrolling: touch;
}

.app-code-text {
    overflow-wrap: anywhere;
}

/* Legacy product pages */
.products-section,
.product-detail-section,
.similar-products,
.sell-section {
    padding: 28px 0 40px;
    background: transparent;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.filters-sidebar,
.form-section,
.product-gallery,
.product-info {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 235, 245, 0.96);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.filters-sidebar {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.filters-header,
.products-header,
.section-header,
.download-card-top,
.sell-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.filters-header {
    margin-bottom: 18px;
}

.filters-header h3,
.sell-header h1,
.products-header h1,
.section-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.filters-header h3 {
    font-size: 20px;
}

.filters-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    color: var(--text-primary);
    cursor: pointer;
}

.filters-content {
    display: block;
}

.filter-group + .filter-group {
    margin-top: 18px;
}

.filter-group h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
}

.filter-option input {
    margin-top: 3px;
    accent-color: var(--ozon-blue);
}

.filter-option label {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-primary);
    cursor: pointer;
}

.products-content,
.sell-form-container {
    min-width: 0;
}

.products-header,
.section-header,
.sell-header {
    margin-bottom: 20px;
}

.products-header h1,
.sell-header h1 {
    font-size: 32px;
    line-height: 1.08;
    font-weight: 700;
}

.products-header p,
.sell-header p,
.view-all {
    margin: 0;
    font-size: 15px;
}

.products-header p,
.sell-header p {
    color: var(--text-secondary);
}

.view-all {
    color: var(--ozon-blue);
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 235, 245, 0.96);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.product-badge.original {
    background: var(--ozon-blue);
}

.product-badge.replica {
    background: #ff8b2d;
}

.product-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.92;
    background: #eff3fb;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.product-name {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.product-card .product-price {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.product-actions form {
    width: 100%;
}

.add-to-cart-btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a63ff 0%, #0050d8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.no-products {
    grid-column: 1 / -1;
    padding: 40px 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 235, 245, 0.96);
    border-radius: 24px;
    color: var(--text-secondary);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 24px;
    align-items: start;
}

.product-gallery,
.product-info {
    padding: 24px;
}

.product-gallery {
    position: sticky;
    top: 96px;
}

.product-main-image {
    overflow: hidden;
    border-radius: 24px;
    background: #eff3fb;
}

.product-main-image img {
    width: 100%;
    aspect-ratio: 1 / 0.92;
    object-fit: cover;
}

.product-title {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.06;
    font-weight: 700;
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.product-category,
.product-condition {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.product-detail .product-price {
    margin-bottom: 20px;
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-description,
.product-seller {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: rgba(248, 250, 255, 0.96);
}

.product-description {
    margin-bottom: 20px;
}

.product-description h3,
.product-seller h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-description p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.quantity-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.quantity-input label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-muted);
}

.quantity-btn {
    width: 46px;
    height: 46px;
    border: none;
    background: #fff;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
}

.quantity-controls input {
    width: 70px;
    height: 46px;
    border: none;
    background: transparent;
    text-align: center;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.quantity-controls input:focus {
    outline: none;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.seller-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--surface-strong);
    color: var(--ozon-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.seller-name {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.seller-date {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.sell-header {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.sell-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-section {
    padding: 24px;
}

.form-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.required {
    color: #dc2626;
}

.authenticity-options {
    display: grid;
    gap: 12px;
}

.authenticity-option {
    position: relative;
}

.authenticity-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.authenticity-option label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
}

.authenticity-option input:checked + label {
    border-color: #bfd3ff;
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(3, 81, 241, 0.08);
}

.authenticity-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.authenticity-badge.original {
    background: #e8f0ff;
    color: #0456f2;
}

.authenticity-badge.replica {
    background: #fff2df;
    color: #f08a00;
}

.authenticity-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.verification-comment.hidden,
.hidden {
    display: none !important;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-upload {
    position: relative;
    min-height: 280px;
    border: 2px dashed #c9d7ef;
    border-radius: 24px;
    background: rgba(248, 250, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    overflow: hidden;
}

.image-upload.dragover {
    border-color: var(--ozon-blue);
    background: #eef5ff;
}

.image-upload.has-preview {
    border-style: solid;
    background: #fff;
}

.image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.upload-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.upload-placeholder i {
    display: block;
    margin-bottom: 12px;
    color: var(--ozon-blue);
    font-size: 34px;
}

.upload-placeholder p {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.upload-placeholder span {
    font-size: 13px;
}

.image-upload-container input[type="file"] {
    display: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 180px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav.desktop-only {
        display: none;
    }
    
    .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .bottom-nav {
        display: flex !important;
        padding: 8px 6px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    .bottom-nav-item,
    .bottom-nav-item span {
        font-size: 11px;
    }
    
    .main-content.with-sidebar {
        margin-left: 0;
        padding-left: 0;
        padding-bottom: 80px;
    }
    
    .dlcs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .container {
        padding: 0 12px;
    }

    .app-page {
        padding: 14px 0 94px;
    }

    .app-page-header {
        margin-bottom: 14px;
    }

    .app-page-title {
        font-size: 24px;
        line-height: 1.06;
    }

    .app-page-subtitle {
        font-size: 13px;
        line-height: 1.45;
    }

    .app-card {
        padding: 18px;
        border-radius: 20px;
    }

    .app-card--hero {
        padding: 22px 18px;
    }

    .app-hero-title {
        font-size: 24px;
    }

    .app-hero-value,
    .app-hero-timer {
        font-size: 30px;
    }

    .app-hero-meta,
    .app-hero-subtitle {
        font-size: 13px;
    }

    .app-hero-btn {
        min-height: 54px;
        padding: 16px 22px;
        font-size: 15px;
    }

    .app-section-title {
        font-size: 18px;
    }

    .app-stat-card {
        min-height: 104px;
    }

    .app-stat-value {
        font-size: 24px;
    }

    .app-grid--stats-2,
    .app-grid--stats-3 {
        grid-template-columns: 1fr;
    }

    .app-grid--sidebar {
        grid-template-columns: 1fr;
    }

    .app-summary-panel {
        position: static;
    }

    .app-cart-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
    }

    .app-cart-thumb {
        width: 78px;
        height: 78px;
        border-radius: 18px;
    }

    .app-cart-total {
        grid-column: 2;
        text-align: left;
    }

    .app-choice-card {
        padding: 14px;
        gap: 12px;
        border-radius: 18px;
    }

    .app-choice-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .app-choice-title {
        font-size: 15px;
    }

    .app-choice-desc {
        font-size: 12px;
    }

    .app-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .app-inline-actions .btn {
        width: 100%;
    }

    .app-summary-line {
        font-size: 13px;
    }

    .app-summary-line--total {
        font-size: 18px;
    }

    .app-input,
    .app-select,
    .app-textarea {
        min-height: 50px;
        padding: 13px 15px;
        font-size: 14px;
        border-radius: 14px;
    }

    .app-input-group {
        border-radius: 16px;
    }

    .app-input-group .app-input {
        min-height: 54px;
    }

    .app-input-addon {
        min-width: 54px;
        font-size: 16px;
    }

    .app-notice {
        padding: 13px 14px;
        border-radius: 18px;
        font-size: 13px;
    }

    .app-tabbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        margin: 0 -2px;
        scrollbar-width: none;
    }

    .app-tabbar::-webkit-scrollbar {
        display: none;
    }

    .app-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }

    .app-card-note {
        padding: 14px;
        border-radius: 16px;
    }

    .app-card-note p,
    .app-card-note li,
    .app-list-meta,
    .app-inline-note,
    .app-code-meta {
        font-size: 12px;
    }

    .app-list-title {
        font-size: 14px;
    }

    .app-list-amount {
        font-size: 15px;
    }

    .app-table--responsive thead {
        display: none;
    }

    .app-table--responsive tbody tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .app-table--responsive tbody tr:last-child {
        border-bottom: none;
    }

    .app-table--responsive td {
        display: block;
        padding: 4px 0 8px;
        border-bottom: none;
        text-align: left !important;
    }

    .app-table--responsive td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .auth-container {
        padding: 24px;
    }
    
    .cart-section > .container > div:first-child {
        grid-template-columns: 1fr !important;
    }
    
    .checkout-section > .container > div:first-child {
        grid-template-columns: 1fr !important;
    }
    
    .admin-table {
        overflow-x: auto;
    }

    .flash-messages {
        top: 72px;
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .flash-message {
        padding: 12px 14px;
    }

    .app-card-link--between {
        flex-wrap: wrap;
    }

    .app-card-link--between > .btn,
    .app-card-link--between > .app-inline-link,
    .app-card-link--between > .app-hero-btn {
        width: 100%;
        justify-content: center;
    }

    .app-empty {
        padding: 40px 18px;
    }

    .app-empty h3 {
        font-size: 18px;
    }

    .products-section,
    .product-detail-section,
    .similar-products,
    .sell-section {
        padding: 18px 0 28px;
    }

    .products-layout,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .filters-sidebar,
    .form-section,
    .product-gallery,
    .product-info {
        padding: 18px;
        border-radius: 20px;
    }

    .filters-sidebar,
    .product-gallery {
        position: static;
    }

    .filters-header,
    .products-header,
    .section-header,
    .sell-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .filters-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .filters-content {
        display: none;
        margin-top: 8px;
    }

    .filters-content.active {
        display: block;
    }

    .products-header h1,
    .sell-header h1,
    .product-title,
    .section-header h2 {
        font-size: 24px;
    }

    .products-header p,
    .sell-header p,
    .product-description p,
    .seller-date {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card,
    .no-products {
        border-radius: 20px;
    }

    .product-card .product-info {
        padding: 14px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-card .product-price {
        font-size: 18px;
    }

    .add-to-cart-btn {
        min-height: 44px;
        border-radius: 14px;
        font-size: 14px;
    }

    .product-main-image {
        border-radius: 20px;
    }

    .product-detail .product-price {
        font-size: 30px;
    }

    .product-description,
    .product-seller {
        padding: 16px;
        border-radius: 18px;
    }

    .quantity-input {
        align-items: stretch;
    }

    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }

    .quantity-controls input {
        width: auto;
        flex: 1;
    }

    .image-upload {
        min-height: 220px;
        border-radius: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 10px;
    }

    .app-card {
        padding: 16px;
        border-radius: 18px;
    }

    .app-card--hero {
        padding: 20px 16px;
    }

    .app-cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .app-cart-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 0.64;
        border-radius: 18px;
    }

    .app-cart-total {
        grid-column: auto;
    }

    .app-qty {
        padding: 5px;
        gap: 6px;
    }

    .app-qty-btn {
        width: 32px;
        height: 32px;
    }

    .app-modal-box {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .seller-info {
        align-items: flex-start;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .bottom-nav {
        display: none !important;
    }
    
    .main-content.with-sidebar {
        padding-bottom: 0;
    }
}
