/* CSS Reset and Base styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-base: #f6f8fb;
    --primary: #007aff;
    --primary-hover: #0063cc;
    --primary-glow: rgba(0, 122, 255, 0.12);
    --electric-blue: #0071e3;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(0, 0, 0, 0.05);
    --text-primary: #111827;
    --text-muted: #6b7280;
    --text-body: #374151;
    --font-hanken: 'Geist', sans-serif;
    --font-inter: 'Geist', sans-serif;
    --container-max: 1100px;
    --input-bg: rgba(0, 0, 0, 0.03);
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar {
    display: none !important;
}

body {
    background-color: var(--bg-base);
    color: var(--text-body);
    font-family: var(--font-inter);
    overflow-x: hidden;
    letter-spacing: -0.01em;
    min-height: 100vh;
    width: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
}

/* Background Mesh Gradients - Soft and premium light pastel glows */
.mesh-gradient {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.03) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(0, 122, 255, 0.02) 0px, transparent 50%);
}

.bg-glow {
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, rgba(246, 248, 251, 0) 70%);
    border-radius: 50%;
    width: 60vw;
    height: 60vw;
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translate(-50%);
}

/* Navigation (Three Islands Layout) - White Glass */
.header-floating {
    z-index: 100;
    pointer-events: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    padding: 0 24px;
    display: flex;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%);
}

.header-pill {
    pointer-events: auto;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
    border-radius: 40px;
    align-items: center;
    justify-content: center;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 24px;
    display: flex;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pill-logo {
    width: 148px;
    padding: 0 18px;
}

.brand-text {
    font-family: var(--font-hanken);
    letter-spacing: -0.01em;
    font-size: 1.1rem;
    font-weight: 600;
}

.c-blue {
    color: var(--primary);
}

.c-white {
    color: var(--text-primary);
}

.header-logo-group {
    display: flex;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.pill-catalog {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    border-color: transparent !important;
    cursor: pointer;
    font-family: var(--font-inter);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 0 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pill-catalog:hover {
    background-color: var(--primary-hover) !important;
    border-color: transparent !important;
    transform: translateY(-1px);
}

.pill-nav {
    padding: 4px;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}

.pill-nav ul {
    gap: 4px;
    display: flex;
    list-style: none;
    align-items: center;
}

.pill-nav ul li a {
    color: var(--text-muted);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.pill-nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.pill-theme-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pill-theme-toggle .theme-toggle-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
    transition: transform 0.3s ease;
}

.pill-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.pill-theme-toggle:hover .theme-toggle-icon {
    transform: rotate(20deg) scale(1.1);
}

.pill-action {
    color: #ffffff;
    background-color: var(--primary);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-inter);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.pill-action:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.35);
}

.pill-login {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.28) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    width: max-content !important;
    flex: none !important;
    padding-left: 18px !important;
    padding-right: 20px !important;
    font-family: var(--font-inter);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
}

.pill-login:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.35) !important;
    transform: translateY(-1px);
}

.pill-login .login-tg-icon {
    color: #ffffff !important;
    margin-left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 15px;
    height: 15px;
    vertical-align: middle !important;
}

.pill-login .login-status {
    font-weight: 600;
}

.login-mobile-content {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

/* Sections Base */
main {
    padding-top: 0;
}

section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 6.25rem 1.5rem;
    position: relative;
}

/* Scroll Reveal Effects */
.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* Typography Templates */
.section-title {
    font-family: var(--font-hanken);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-title.large {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 6rem 1.5rem 1.5rem 1.5rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60rem;
    height: 60rem;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 55rem;
}

.hero-title {
    font-family: var(--font-hanken);
    font-size: 5rem;
    line-height: 1.05;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(0, 122, 255, 0.03);
}

.gradient-text {
    background: linear-gradient(180deg, #111827 0%, #4b5563 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    font-family: var(--font-hanken);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px -4px rgba(0, 122, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 30px -4px rgba(0, 122, 255, 0.55);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -10px);
    }
}

/* Services Ticker */
.ticker-container {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.5rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
}

.ticker-track {
    display: flex;
    width: max-content;
}

.ticker-list {
    display: flex;
    gap: 5rem;
    padding: 0 2.5rem;
    animation: scroll-left 25s linear infinite;
}

.ticker-item {
    font-family: var(--font-hanken);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.4;
    color: var(--text-primary);
}

.ticker-item.highlight {
    opacity: 0.85;
    color: var(--primary);
}

.ticker-item.highlight-alt {
    opacity: 0.7;
    color: var(--text-primary);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Catalog / Popular Categories */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.catalog-grid.hidden-grid {
    margin-top: 1.5rem;
}

.catalog-grid.hidden {
    display: none;
}

/* Empty state — когда товары не найдены */
.catalog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 2rem;
    max-width: 420px;
    margin: 2rem auto;
    background: radial-gradient(circle at 50% 0%, rgba(0, 122, 255, 0.04) 0%, transparent 70%), var(--card-bg);
    backdrop-filter: blur(20px);
    border: 0.5px solid var(--card-border);
    border-radius: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    animation: empty-fade-in 0.4s ease-out;
}

.catalog-empty-state .empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.25;
    margin-bottom: 1rem;
}

.catalog-empty-state .empty-title {
    font-family: var(--font-hanken);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.catalog-empty-state .empty-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes empty-fade-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glassmorphism Card Style - Light Version */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 0.5px solid var(--card-border);
    border-radius: 32px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 122, 255, 0.25);
    box-shadow: 0 12px 32px -12px rgba(0, 122, 255, 0.1), 0 1px 4px rgba(0, 0, 0, 0.02);
}

/* Badges */
.glass-card.new-badge {
    border-color: rgba(0, 122, 255, 0.15);
    background: rgba(0, 122, 255, 0.02);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.22rem 0.6rem;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 9999px;
}

.new-badge .badge {
    background-color: var(--text-primary);
    color: #ffffff;
}

.hot-badge .badge {
    background-color: rgba(0, 122, 255, 0.06);
    color: var(--primary);
    border: 1px solid rgba(0, 122, 255, 0.15);
}

/* Card Elements */
.catalog-grid .glass-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 2rem 1.75rem;
    min-height: 160px;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, var(--glow-color, rgba(0, 122, 255, 0.03)) 0%, rgba(255, 255, 255, 0) 70%), var(--card-bg);
}

.card-title {
    font-family: var(--font-hanken);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    z-index: 2;
}

.catalog-grid .card-title {
    padding-right: 3.25rem;
}

.card-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    z-index: 2;
}

.card-brand-logo {
    position: absolute;
    right: -12px;
    bottom: -15px;
    width: 90px;
    height: 90px;
    transform: rotate(12deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    opacity: 0.9;
}

.card-brand-logo svg,
.card-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.glass-card:hover .card-brand-logo {
    transform: rotate(16deg) scale(1.08);
}

/* Button Secondary */
.expand-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-family: var(--font-inter);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.btn-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(6px);
}

/* Benefits Section */
.benefits-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2.25rem 2rem;
    min-height: auto;
    height: 100%;
}

.benefit-card.wide {
    grid-column: span 8;
}

.benefit-card.wide .benefit-desc {
    max-width: 35rem;
}

.benefit-title {
    font-family: var(--font-inter);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.01em;
}

.accent-num {
    color: var(--primary);
    font-weight: 500;
}

.benefit-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}

.benefit-link {
    margin-top: auto;
    padding-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.3s ease, gap 0.3s ease;
}

.benefit-link span {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.benefit-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

.benefit-link:hover span {
    transform: translateX(4px);
}

/* Telegram Section - Light Mode Theme */
.telegram-section {
    margin-top: 1.5rem !important;
    margin-bottom: 3.5rem !important;
}

.telegram-banner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.01), 0 1px 3px rgba(0, 0, 0, 0.01);
}

.telegram-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.telegram-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.telegram-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.accent-text {
    color: var(--primary);
}

.telegram-desc {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 28rem;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
}

.btn-telegram span {
    font-size: 1.15rem;
}

/* Phone Mockup Frame (iPhone Silver-White Bezel) */
.phone-wrapper {
    display: flex;
    justify-content: flex-end;
}

.phone-bezel {
    width: 270px;
    height: 540px;
    background: #eef2f6; /* Silver metal edge */
    border-radius: 48px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 8px #d2d7df, 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* iPhone Notch / Dynamic Island */
.phone-notch-container {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    z-index: 50;
}

.phone-notch {
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 18px;
}

/* Screen Content - Light Telegram */
.phone-screen {
    height: 100%;
    padding-top: 4rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    background: #e8edf1; /* Classic Light Telegram background color */
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
    background: #ffffff;
}

.chat-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

.chat-avatar span {
    color: #ffffff;
    font-size: 1.1rem;
}

.chat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.6rem;
    color: #16a34a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-dot {
    width: 4px;
    height: 4px;
    background: #16a34a;
    border-radius: 50%;
}

.chat-messages {
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    background: #ffffff; /* White bubbles for incoming messages in light Telegram */
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding: 0.85rem 1rem;
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-bubble.bot {
    align-self: flex-start;
    border-top-left-radius: 0;
}

/* Action Buttons in bot screen */
.chat-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.chat-action-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.chat-action-btn span.material-symbols-outlined {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.3);
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.chat-action-btn.active span.material-symbols-outlined {
    color: var(--primary);
}

.chat-action-btn .btn-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.45);
    display: block;
}

.chat-action-btn:hover {
    background: #fcfcfd;
    border-color: rgba(0, 122, 255, 0.25);
}

/* Chat Dynamic selection card */
.chat-selection-card {
    background: #ffffff;
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 28px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: opacity 0.2s ease;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.selection-tag {
    font-size: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.25rem;
}

.selection-product {
    font-size: 0.75rem;
    font-weight: 750;
    color: var(--text-primary);
}

.selection-price {
    font-size: 0.75rem;
    font-weight: 750;
    color: var(--text-primary);
    text-align: right;
}

/* Sub-selection tags in Bot UI */
.mock-options {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.mock-options::-webkit-scrollbar {
    display: none;
}

.mock-opt-btn {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    transition: all 0.2s ease;
}

.mock-opt-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-checkout {
    width: 100%;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.85rem 0;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.35);
}

.phone-home-indicator {
    margin-top: auto;
    align-self: center;
    width: 6rem;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
}

/* Footer Section */
.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 4.5rem 0 3rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4.5rem;
}

.footer-branding .logo {
    font-family: var(--font-hanken);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-branding .logo span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 24rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn span {
    font-size: 1rem;
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 122, 255, 0.05);
}

.links-title {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.payment-safety {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.payment-safety span {
    font-size: 0.8rem;
}

/* Utility visibility helpers */
.desktop-only {
    display: block;
}
.desktop-only-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobile-only-inline {
    display: none;
}
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .desktop-only-inline {
        display: none;
    }
    .mobile-only-inline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px !important;
    }
    .pill-login {
        width: auto !important;
        padding-left: 14px !important;
        padding-right: 12px !important;
    }
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 1024px) {
    .section-title.large {
        font-size: 2.75rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 1.25rem;
    }

    .benefit-card {
        grid-column: span 6;
    }

    .benefit-card.wide {
        grid-column: span 12;
    }

    .telegram-banner {
        padding: 4rem 2.5rem;
    }

    .telegram-grid {
        gap: 2.5rem;
    }
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .pill-nav {
        display: none;
    }

    .header-floating {
        justify-content: space-between;
        gap: 4px;
        width: calc(100% - 12px);
        max-width: none;
        padding: 0;
        top: 8px;
        left: 6px;
        right: auto;
        transform: none;
    }

    .header-pill {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 12px;
        font-size: 0.65rem;
    }

    .pill-logo {
        width: auto;
        padding: 0 8px;
        flex-shrink: 0;
    }

    .brand-text {
        font-size: 0.8rem;
    }

    .header-logo-group {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .pill-catalog {
        justify-content: center;
        text-align: center;
        width: auto;
        min-width: 76px;
        font-size: 0.65rem;
        padding: 0 6px;
    }

    .header-actions {
        display: flex;
        gap: 4px;
        align-items: center;
        justify-content: flex-end;
    }

    .header-actions > div {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .pill-action {
        justify-content: center;
        text-align: center;
        padding: 0 8px;
        font-size: 0.65rem;
    }

    .pill-theme-toggle {
        width: 32px;
        height: 32px;
        padding: 0;
        flex-shrink: 0;
    }

    .pill-theme-toggle .theme-toggle-icon {
        width: 16px;
        height: 16px;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        height: 68px;
        width: min(calc(100% - 28px), 420px);
        border-radius: 34px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 6px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.74);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12), 0 2px 8px rgba(17, 24, 39, 0.04);
        pointer-events: auto;
    }

    .mobile-nav-link {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 52px;
        border-radius: 26px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-nav-link.active {
        background: rgba(0, 122, 255, 0.1);
        color: var(--primary) !important;
        box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.08);
    }

    .mobile-nav-link span.material-symbols-outlined {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .mobile-nav-link:active span.material-symbols-outlined {
        transform: scale(0.9);
    }

    .mobile-nav-text {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
        line-height: 1;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    /* Dropdown position adjustment for mobile */
    .profile-dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        min-width: 0 !important;
        border-radius: 8px !important;
        padding: 4px !important;
        top: calc(100% + 6px) !important;
    }

    .dropdown-item {
        padding: 6px 8px !important;
        font-size: 0.72rem !important;
    }

    section {
        padding: 4rem 1rem;
    }

    .hero {
        min-height: auto;
        padding: 4.5rem 1rem 1rem 1rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    body {
        padding-bottom: 96px;
    }

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

    .catalog-grid .glass-card {
        padding: 1.25rem 1rem;
        min-height: 120px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }

    .card-brand-logo {
        width: 60px;
        height: 60px;
        right: -8px;
        bottom: -10px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card,
    .benefit-card.wide {
        grid-column: span 1;
        padding: 1.75rem 1.5rem;
    }

    .telegram-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .telegram-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .phone-wrapper {
        justify-content: center;
    }

    @media (max-width: 360px) {
        .phone-bezel {
            width: 270px;
            height: 540px;
        }
        .phone-screen {
            padding-top: 3rem;
        }
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Mobile Bottom Navigation Bar - Light Glass style */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        height: 68px;
        background: rgba(255, 255, 255, 0.74);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 34px;
        padding: 8px;
        align-items: center;
        justify-content: space-around;
        width: min(calc(100% - 28px), 420px);
        max-width: 420px;
        box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12), 0 2px 8px rgba(17, 24, 39, 0.04);
        z-index: 1000;
        gap: 6px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: var(--text-muted);
        text-decoration: none;
        gap: 4px;
        transition: all 0.2s ease;
    }

    .mobile-nav-item span.material-symbols-outlined {
        font-size: 1.35rem;
    }

    .mobile-nav-label {
        font-size: 0.65rem;
        font-weight: 600;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }
}

.profile-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pill-profile-btn {
    width: 100%;
}

/* User Profile Dropdown Menu - Light glass style */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.dropdown-item.text-red {
    color: #ef4444;
}

.dropdown-item.text-red:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}

.dropdown-item span.material-symbols-outlined {
    font-size: 1.1rem;
}

/* Catalog Page Styles */
.catalog-page-container {
    flex: 1;
    padding-top: 150px;
    padding-bottom: 6rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.page-container {
    flex: 1;
    padding-top: 7rem;
    padding-bottom: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.catalog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.catalog-search-wrapper {
    position: relative;
    margin-bottom: 2rem;
    max-width: 500px;
    width: 100%;
}

.catalog-search-input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 20px 16px 48px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.catalog-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-glow);
}

.catalog-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    pointer-events: none;
}

.catalog-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.catalog-filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-muted);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.catalog-filter-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

.catalog-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.catalog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.75rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.catalog-card:hover {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.catalog-card-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.005) 100%);
}

.catalog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.catalog-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}

.catalog-card-price-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.catalog-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.catalog-card-buy-btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    background: #111827;
    color: #ffffff;
}

.catalog-card-buy-btn:hover {
    background: #1f2937;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .catalog-page-container {
        padding-top: 100px;
        padding-bottom: 4rem;
    }
    .catalog-page-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    .catalog-filter-group {
        margin-bottom: 2rem;
    }
}

/* ============================================================
   Profile Page (light)
   ============================================================ */
.profile-page-container {
    flex: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Hero --- */
.profile-hero {
    position: relative;
    background: var(--card-bg);
    border: 0.5px solid var(--card-border);
    border-radius: 28px;
    padding: 1.75rem 2rem 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.profile-hero-glow {
    position: absolute;
    top: -200px;
    right: -160px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-hero-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #00c6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--font-hanken);
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
    flex-shrink: 0;
}

.profile-hero-meta {
    min-width: 0;
}

.profile-eyebrow {
    font-family: var(--font-inter);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.profile-hero-title {
    font-size: 1.9rem !important;
    line-height: 1.1;
    margin-bottom: 0.4rem !important;
    word-break: break-word;
}

.profile-hero-sub {
    font-size: 0.9rem;
}

.profile-dot {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 0.25rem;
}

.profile-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    align-self: flex-start;
}

.profile-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--card-border);
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.25rem 0;
}

.profile-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-stat-icon {
    color: var(--primary);
    font-size: 1.5rem !important;
}

.profile-stat-label {
    font-family: var(--font-inter);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.profile-stat-value {
    font-family: var(--font-hanken);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.profile-stat-extra {
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Generic section --- */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.profile-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 45rem;
}

.profile-section-header--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    max-width: none;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-section-title {
    font-size: 1.6rem !important;
    margin-bottom: 0 !important;
}

.profile-section-sub {
    margin-top: 0.5rem;
}

.profile-section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-family: var(--font-inter);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.profile-section-link span {
    font-size: 1rem !important;
    transition: transform 0.3s ease;
}

.profile-section-link:hover {
    gap: 0.65rem;
}

.profile-section-link:hover span {
    transform: translateX(3px);
}

/* --- Status counter cards --- */
.profile-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.profile-status-card {
    padding: 1.5rem 1.5rem 1.4rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: auto !important;
    position: relative;
}

.profile-status-num {
    font-family: var(--font-hanken);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.profile-status-label {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.profile-status-icon {
    position: absolute;
    right: 1.25rem;
    bottom: 1.1rem;
    font-size: 2.25rem !important;
    opacity: 0.18;
    color: var(--text-primary);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-status-card:hover .profile-status-icon {
    opacity: 0.4;
    transform: scale(1.05) rotate(-4deg);
}

.profile-status-card[data-status="pending"] .profile-status-num {
    color: #f59e0b;
}
.profile-status-card[data-status="pending"] .profile-status-icon {
    color: #f59e0b;
}
.profile-status-card[data-status="paid"] .profile-status-num {
    color: var(--primary);
}
.profile-status-card[data-status="paid"] .profile-status-icon {
    color: var(--primary);
}
.profile-status-card[data-status="completed"] .profile-status-num {
    color: #16a34a;
}
.profile-status-card[data-status="completed"] .profile-status-icon {
    color: #16a34a;
}

/* --- Referral --- */
.profile-referral-single {
    padding: 1.75rem 2rem !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.profile-referral-single .benefit-title {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.profile-referral-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.profile-referral-link-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-inter);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-referral-code {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-referral-code-value {
    color: var(--text-primary);
    font-weight: 600;
}

.profile-referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.profile-referral-stat {
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-referral-stat-value {
    font-family: var(--font-hanken);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.profile-referral-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
    background: rgba(0, 122, 255, 0.04);
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 14px;
    padding: 0.8rem 1rem;
}

.profile-referral-hint .material-symbols-outlined {
    color: var(--primary);
    font-size: 1rem !important;
    margin-top: 1px;
    flex-shrink: 0;
}

/* --- Orders --- */
.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.profile-order-card {
    padding: 1.5rem 1.75rem !important;
    min-height: auto !important;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.profile-order-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.profile-order-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-order-icon .material-symbols-outlined {
    font-size: 1.35rem !important;
}

.profile-order-text {
    min-width: 0;
}

.profile-order-number {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.profile-order-title {
    font-family: var(--font-hanken);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.profile-order-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.profile-order-meta--small {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-top: 0.15rem;
}

.profile-order-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    text-align: right;
}

.profile-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-family: var(--font-inter);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid transparent;
}

.profile-order-badge .material-symbols-outlined {
    font-size: 0.85rem !important;
}

.profile-order-badge[data-status="completed"] {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.18);
}
.profile-order-badge[data-status="paid"] {
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    border-color: rgba(0, 122, 255, 0.18);
}
.profile-order-badge[data-status="pending"] {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.profile-order-amount {
    font-family: var(--font-hanken);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.profile-order-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.profile-orders-empty {
    padding: 3rem 2rem !important;
    min-height: auto !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.profile-orders-empty-icon {
    font-size: 2.5rem !important;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.profile-orders-empty-title {
    font-family: var(--font-hanken);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.profile-orders-empty-sub {
    max-width: 28rem;
    margin: 0 auto 1rem;
}

/* --- Empty (logged out) state --- */
.profile-empty-state {
    margin: 4rem auto 0;
    max-width: 38rem;
    background: var(--card-bg);
    border: 0.5px solid var(--card-border);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.profile-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #00c6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
}

.profile-empty-icon .material-symbols-outlined {
    font-size: 1.75rem !important;
}

.profile-empty-title {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
}

.profile-empty-subtitle {
    margin-bottom: 1.75rem;
}

.profile-empty-cta {
    padding: 0.9rem 1.85rem !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .profile-referral-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-page-container {
        padding: 100px 1rem 4rem;
        gap: 1rem;
    }
    .profile-hero {
        padding: 1.75rem 1.5rem 1.25rem;
        border-radius: 24px;
    }
    .profile-hero-content {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-avatar {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.4rem;
    }
    .profile-hero-title {
        font-size: 1.85rem !important;
    }
    .profile-hero-cta {
        align-self: stretch;
        justify-content: center;
    }
    .profile-hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    .profile-stat {
        align-items: center;
        gap: 0.85rem;
    }
    .profile-status-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.65rem;
    }
    .profile-status-card {
        padding: 1.1rem 1rem !important;
    }
    .profile-status-num {
        font-size: 1.85rem;
    }
    .profile-status-icon {
        font-size: 1.6rem !important;
        right: 0.8rem;
        bottom: 0.8rem;
    }
    .profile-section-title {
        font-size: 1.35rem !important;
    }
    .profile-referral-single {
        padding: 1.5rem 1.25rem !important;
    }
    .profile-referral-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .profile-order-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 1.25rem !important;
    }
    .profile-order-aside {
        display: grid;
        grid-template-areas: 
            "badge amount"
            "desc desc";
        grid-template-columns: 1fr auto;
        gap: 0.5rem 1rem;
        align-items: center;
        text-align: left;
        border-top: 1px solid var(--card-border);
        padding-top: 0.75rem;
        width: 100%;
    }
    .profile-order-badge {
        grid-area: badge;
        justify-self: start;
    }
    .profile-order-amount {
        grid-area: amount;
        justify-self: end;
        font-size: 1.1rem;
    }
    .profile-order-desc {
        grid-area: desc;
        justify-self: start;
        color: var(--text-muted);
        font-size: 0.75rem;
    }
    .profile-empty-state {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    .profile-empty-title {
        font-size: 1.5rem !important;
    }
    
    /* Отключение интерактивных прыжков/трансформаций на мобильных */
    .glass-card, 
    .glass-card:hover, 
    .glass-card:active,
    .catalog-card,
    .catalog-card:hover,
    .catalog-card:active,
    .profile-status-card,
    .profile-status-card:hover,
    .profile-status-card:active,
    .profile-order-card,
    .profile-order-card:hover,
    .profile-order-card:active,
    .btn-primary,
    .btn-primary:hover,
    .btn-primary:active,
    .btn-secondary,
    .btn-secondary:hover,
    .btn-secondary:active,
    .pill-catalog,
    .pill-catalog:hover,
    .pill-catalog:active,
    .pill-login,
    .pill-login:hover,
    .pill-login:active {
        transform: none !important;
        box-shadow: none !important;
        transition: none !important;
    }
}

/* ============================================================
   Orders Page (light)
   ============================================================ */
.orders-page-container {
    flex: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.orders-page-title {
    font-family: var(--font-hanken);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 0.5px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.order-card:hover {
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 8px 24px -8px rgba(0, 122, 255, 0.08);
}

.order-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.order-num {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-primary);
}

.order-date {
    font-family: var(--font-inter);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-family: var(--font-inter);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid transparent;
}

.order-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.order-status--paid {
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    border-color: rgba(0, 122, 255, 0.15);
}

.order-status--paid .order-status-dot {
    background: var(--primary);
    animation: pulse-dot 1.5s infinite;
}

.order-status--completed {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.15);
}

.order-status--completed .order-status-dot {
    background: #16a34a;
}

.order-status--pending {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.15);
}

.order-status--pending .order-status-dot {
    background: #d97706;
}

.order-status--canceled {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

.order-status--canceled .order-status-dot {
    background: #6b7280;
}

.order-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.order-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    padding: 0.72rem 1.1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.order-action-btn .material-symbols-outlined {
    font-size: 1.15rem;
}

.order-action-btn--pay {
    background: var(--primary);
    color: #fff;
}

.order-action-btn--pay:hover {
    background: var(--primary-hover, var(--primary));
}

.order-action-btn--cancel {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--card-border);
}

.order-action-btn--cancel:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.order-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-body-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.order-product-title {
    font-family: var(--font-hanken);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.order-tariff {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.order-amount {
    font-family: var(--font-hanken);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.order-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
}

.order-info-icon {
    font-size: 1.1rem !important;
    flex-shrink: 0;
    margin-top: 1px;
}

.order-info-icon--paid { color: var(--primary); }
.order-info-icon--completed { color: #16a34a; }
.order-info-icon--pending { color: #d97706; }

.order-info-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.order-info-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.order-support {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    align-self: flex-end;
}

.order-support:hover {
    color: var(--text-primary);
}

.order-support .material-symbols-outlined {
    font-size: 1rem !important;
}

.orders-empty {
    text-align: center;
    padding: 3rem 2rem !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.orders-empty-icon {
    font-size: 2.5rem !important;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.orders-empty-title {
    font-family: var(--font-hanken);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.orders-empty-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 26rem;
    margin: 0 auto 0.75rem;
    line-height: 1.6;
}

.orders-auth-prompt {
    margin: 0 auto;
    max-width: 38rem;
    text-align: center;
    padding: 2.5rem 2rem !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.orders-auth-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #00c6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2);
}

.orders-auth-icon .material-symbols-outlined {
    font-size: 1.6rem !important;
}

.orders-auth-title {
    font-family: var(--font-hanken);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.orders-auth-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 24rem;
    margin: 0 auto 0.75rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .orders-page-container {
        padding: 100px 1rem 4rem;
    }
    .order-card {
        padding: 1.25rem;
    }
    .order-body {
        flex-direction: column;
    }
    .order-amount {
        font-size: 1rem;
    }
}

/* ============================================================
   Checkout Page (light)
   ============================================================ */
.co-container {
    max-width: 900px;
    margin: 0 auto;
}

.co-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 1.5rem;
}

.co-back-link:hover {
    color: var(--text-primary);
}

.co-back-link .material-symbols-outlined {
    font-size: 1rem !important;
}

.co-product-head {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.5rem !important;
    min-height: auto !important;
}

.co-product-logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.co-product-title {
    font-family: var(--font-hanken);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.co-product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.co-section-label {
    font-family: var(--font-inter);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.co-tariff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.co-tariff {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.6rem 0.4rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--card-border);
    outline: none;
    text-align: center;
}

.co-tariff:hover { border-color: rgba(0, 122, 255, 0.35); }

.co-tariff--active {
    background: rgba(0, 122, 255, 0.1) !important;
    border-color: var(--primary) !important;
}

.co-tariff-popular {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.12rem 0.4rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.co-tariff-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.co-tariff--active .co-tariff-name { color: var(--primary); }

.co-tariff-price {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.co-tariff--active .co-tariff-price { color: var(--primary); }

.co-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.co-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--card-border);
    outline: none;
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.co-method:hover { border-color: rgba(0, 122, 255, 0.35); }

.co-method--active {
    background: rgba(0, 122, 255, 0.1) !important;
    border-color: var(--primary) !important;
}

.co-method-icon {
    font-size: 1.05rem !important;
    color: var(--primary);
    flex-shrink: 0;
}

.co-method-title {
    flex: 1;
    min-width: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-method-badge {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    white-space: nowrap;
}

/* Рейтинг под названием товара */
.co-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.15rem 0 0.3rem;
    text-decoration: none;
}

.co-product-rating-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.co-product-rating-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Инструкция + вопросы (табы) */
.co-details {
    padding: 0 !important;
    overflow: hidden;
}

.co-tabs {
    display: flex;
    border-bottom: 1px solid var(--card-border);
}

.co-tab {
    flex: 1;
    padding: 0.85rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-inter);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.co-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.co-guide {
    list-style: none;
    margin: 0;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.co-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.co-guide-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-guide-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.co-guide-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.co-details .co-faq {
    padding: 1.1rem 1.25rem;
    max-width: none;
    gap: 0.5rem;
}

/* Сопутствующие товары */
.co-related {
    margin-top: 2.5rem;
}

.co-related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.co-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.6rem;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.co-related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 122, 255, 0.35);
}

.co-related-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.co-related-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.co-related-cta {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .co-related-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
    .co-related-grid { grid-template-columns: repeat(3, 1fr); }
}

.co-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 0.85rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: var(--font-inter);
}

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

.co-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.co-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.co-divider {
    height: 1px;
    background: var(--card-border);
}

.co-summary {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.co-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.co-summary-label {
    color: var(--text-muted);
}

.co-summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.co-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--card-border);
    margin-top: 0.25rem;
}

.co-total-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.co-total-price {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.co-promo-row {
    display: flex;
    gap: 0.5rem;
}

.co-promo-input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    text-transform: uppercase;
    font-family: var(--font-inter);
    transition: border-color 0.2s ease;
}

.co-promo-input:focus { border-color: var(--primary); }

/* Поле покупателя: как co-promo-input, но без UPPERCASE — регистр подсказки и значения сохраняется */
.co-field-input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    font-family: var(--font-inter);
    transition: border-color 0.2s ease;
}

.co-field-input:focus { border-color: var(--primary); }

/* Уведомление под полями способа получения (в цветах сайта) */
.co-method-notice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.22);
}

.co-method-notice-icon {
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1.35;
    flex-shrink: 0;
}

.co-method-notice-text {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
    white-space: pre-line;
}

.co-method-notice-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.co-method-notice-link:hover { opacity: 0.85; }

.co-promo-btn {
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: #fff;
    transition: background 0.2s ease;
}

.co-promo-btn:hover { background: var(--primary-hover); }

.co-promo-btn--reset {
    background: rgba(255, 69, 58, 0.06);
    color: #ef4444;
}

.co-error-msg {
    color: #ef4444;
    font-size: 0.72rem;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.co-success-msg {
    color: #16a34a;
    font-size: 0.72rem;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.co-error-block {
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-size: 0.75rem;
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}

.co-checkout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.co-telegram-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

.co-legal-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
    line-height: 1.4;
}

.co-legal-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.co-legal-link:hover { opacity: 0.85; }

@media (max-width: 640px) {
    .co-tariff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .co-method-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   ОТЗЫВЫ (страница /reviews + форма на странице заказа)
   ============================================================ */
.reviews-page-container {
    flex: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.reviews-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reviews-page-title {
    font-family: var(--font-hanken);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.reviews-page-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.6;
}

.reviews-summary {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 18px;
    width: fit-content;
}

.reviews-summary-score {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.reviews-summary-num {
    font-family: var(--font-hanken);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.reviews-summary-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #f59e0b;
    line-height: 1;
}

.review-star {
    line-height: 1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.review-card {
    border-radius: 22px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 8px 24px -10px rgba(0, 122, 255, 0.18);
    transform: translateY(-2px);
}

.review-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #007aff, #00c6ff);
}

.review-author {
    flex: 1;
    min-width: 0;
}

.review-author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.review-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-body);
}

.review-product {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.review-product-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.reviews-empty {
    border-radius: 24px;
    padding: 3.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.reviews-empty-icon {
    font-size: 2.75rem;
    color: var(--text-muted);
    opacity: 0.35;
    margin-bottom: 0.5rem;
}

.reviews-empty-title {
    font-family: var(--font-hanken);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reviews-empty-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 420px;
}

/* Форма отзыва на странице заказа */
.leave-review-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 122, 255, 0.25);
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leave-review-toggle:hover {
    background: rgba(0, 122, 255, 0.14);
}

.leave-review-toggle .material-symbols-outlined {
    font-size: 1.1rem;
}

.leave-review-form {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    background: var(--input-bg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leave-review-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.leave-review-stars {
    display: flex;
    gap: 0.15rem;
}

.leave-review-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #f59e0b;
    line-height: 1;
}

.leave-review-star .material-symbols-outlined {
    font-size: 1.65rem;
}

.leave-review-textarea {
    width: 100%;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--surface, #ffffff);
    color: var(--text-primary);
    padding: 0.75rem 0.9rem;
    font-family: var(--font-inter);
    font-size: 0.85rem;
    line-height: 1.5;
    outline: none;
}

.leave-review-textarea:focus {
    border-color: rgba(0, 122, 255, 0.5);
}

.leave-review-error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #ef4444;
}

.leave-review-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.leave-review-cancel {
    background: none;
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.leave-review-submit {
    padding: 0.55rem 1.3rem !important;
    font-size: 0.78rem !important;
    border-radius: 9999px;
}

.leave-review-done {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #16a34a;
    padding: 0.5rem 0;
}

@media (max-width: 980px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-page-title {
        font-size: 1.7rem;
    }
}

/* ============================================================
   СТРАНИЦА ТОВАРА — доп. секции (описание / шаги / FAQ / отзывы)
   ============================================================ */
.co-info-section {
    margin-top: 3rem;
}

.co-info-title {
    font-family: var(--font-hanken);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.co-info-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
    max-width: 720px;
}

.co-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.co-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
}

.co-feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.co-feature-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.co-feature-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.co-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.co-step {
    position: relative;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.co-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.co-step-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.co-step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.co-reviews-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.co-reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.co-reviews-rating-num {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
}

.co-reviews-rating-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.co-reviews-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.co-review-card {
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.co-review-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.co-review-author {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-review-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-body);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.co-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.co-reviews-link:hover {
    gap: 0.6rem;
}

.co-faq {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 760px;
}

.co-faq-item {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.7);
}

.co-faq-q {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.co-faq-q::-webkit-details-marker {
    display: none;
}

.co-faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.co-faq-item[open] .co-faq-chevron {
    transform: rotate(180deg);
}

.co-faq-a {
    padding: 0 1.25rem 1.1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Мобильный бар покупки */
.co-mobile-buybar {
    display: none;
}

@media (max-width: 1024px) {
    .co-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .co-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .co-reviews-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .co-features {
        grid-template-columns: 1fr;
    }
    .co-info-title {
        font-size: 1.3rem;
    }
    .co-container {
        padding-bottom: 5.5rem;
    }
    .co-mobile-buybar {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(86px + env(safe-area-inset-bottom));
        z-index: 900;
        width: min(calc(100% - 24px), 460px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 0.7rem 0.6rem 1.1rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    }
    .co-mobile-buybar-price {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }
    .co-mobile-buybar-label {
        font-size: 0.62rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text-muted);
    }
    .co-mobile-buybar-value {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--text-primary);
    }
    .co-mobile-buybar-btn {
        padding: 0.7rem 1.4rem !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .co-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ПРОФИЛЬ — двухколоночный личный кабинет
   ============================================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 110px;
    min-width: 0;
}

.profile-card {
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.profile-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #007aff, #00c6ff);
    margin-bottom: 0.85rem;
}

.profile-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-card-username {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.profile-balance {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 1.1rem 0;
    padding: 0.9rem;
    border-radius: 14px;
    background: rgba(0, 122, 255, 0.07);
    border: 1px solid rgba(0, 122, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.profile-balance-amount,
.profile-balance-label {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.profile-balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.profile-balance-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-card-cta {
    width: 100%;
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
    text-align: center;
}

.profile-nav {
    border-radius: 18px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-nav-item .material-symbols-outlined {
    font-size: 1.2rem;
}

.profile-nav-item:hover {
    background: rgba(0, 122, 255, 0.08);
    color: var(--text-primary);
}

.profile-nav-item.active {
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary);
}

.profile-nav-item--danger {
    color: #ef4444;
}

.profile-nav-item--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.profile-nav-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.35rem 0.5rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-hanken);
}

.stat-note {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.block-card {
    border-radius: 20px;
    padding: 1.5rem;
}

.block-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.block-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.block-card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.block-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.block-card-link .material-symbols-outlined {
    font-size: 1rem;
}

.block-card-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.profile-data-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-data-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.profile-data-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.profile-orders-table {
    display: flex;
    flex-direction: column;
}

.profile-order-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--card-border);
}

.profile-order-row:first-child {
    border-top: none;
}

.profile-order-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-order-row-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-order-row-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-order-row-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.profile-status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.profile-status-badge[data-status="completed"] {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.profile-status-badge[data-status="paid"] {
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary);
}

.profile-status-badge[data-status="pending"] {
    background: rgba(251, 191, 36, 0.14);
    color: #d97706;
}

.profile-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    white-space: nowrap;
}

/* Партнёрская программа */
.aff-conditions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.aff-condition {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.aff-condition-num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-hanken);
}

.aff-condition-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.aff-link-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.aff-link-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--input-bg);
}

.aff-link-url {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aff-link-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.aff-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.aff-stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aff-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-hanken);
}

.aff-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.aff-withdraw {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(0, 198, 255, 0.03));
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.aff-withdraw-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.aff-withdraw-amount {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-hanken);
}

.aff-withdraw-note {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.aff-withdraw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem !important;
    font-size: 0.82rem !important;
    border-radius: 12px !important;
}

.aff-withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .profile-card {
        flex: 1 1 240px;
    }
    .profile-nav {
        flex: 1 1 240px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .profile-data-grid {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        flex-direction: column;
    }
    /* В колоночном flex flex-basis:240px задавал бы ВЫСОТУ карточки и обрезал контент */
    .profile-card,
    .profile-nav {
        flex: 0 0 auto;
    }
    .profile-order-row {
        flex-wrap: wrap;
    }
    .profile-order-row-amount {
        order: 3;
    }
}

/* ============================================================
   ПРАВКИ: лого-инверсия, лента рекомендаций, профиль, отзывы на главной
   ============================================================ */

/* В светлой теме логотипы НЕ инвертируем (чёрные лого остаются чёрными) */
.logo-invert {
    filter: none !important;
}

/* Рекомендованные товары — горизонтальная лента вверху страницы товара */
.co-related-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0 0.75rem;
    scrollbar-width: none;
}
.co-related-strip::-webkit-scrollbar { display: none; }

.co-related-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.co-related-chip:hover {
    border-color: rgba(0, 122, 255, 0.4);
    background: rgba(0, 122, 255, 0.06);
}
.co-related-chip-logo {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.co-related-chip-logo img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.co-details--wide {
    margin-top: 1.25rem;
}
.co-tab--active {
    background: rgba(0, 122, 255, 0.05);
}

/* Профиль: аватар круглый + фото из TG */
.profile-card-avatar {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.profile-card-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Профиль: «Активна» бейдж в палитре сайта */
.profile-badge {
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary);
}

/* Партнёрка: число не переносится */
.aff-condition-num {
    white-space: nowrap;
}

/* Профиль: мои отзывы */
.profile-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.profile-review-item {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.profile-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.profile-review-product {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.profile-review-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-body);
}
.profile-review-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Отзывы на главной */
.home-reviews {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.home-reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.home-reviews-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.home-reviews-all .material-symbols-outlined { font-size: 1.1rem; }
.home-reviews-all--mobile { display: none; }

.home-reviews-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.home-review-card {
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.home-review-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.home-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #007aff, #00c6ff);
}
.home-review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.home-review-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.home-review-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-body);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-review-product {
    margin-top: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .home-reviews-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .home-reviews-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -1.5rem;
        padding: 0 1.5rem 0.5rem;
        scrollbar-width: none;
    }
    .home-reviews-track::-webkit-scrollbar { display: none; }
    .home-review-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
    .home-reviews-header .home-reviews-all { display: none; }
    .home-reviews-all--mobile {
        display: inline-flex;
        margin-top: 1.25rem;
    }
}

/* Страницы документов (Оферта / Политика / Реквизиты) */
.doc-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 1.5rem 4rem;
}
.doc-page-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-hanken);
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.doc-page-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.doc-page-body {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 1rem;
}
.doc-page-body h1,
.doc-page-body h2,
.doc-page-body h3,
.doc-page-body h4 {
    font-family: var(--font-hanken);
    font-weight: 800;
    line-height: 1.3;
    margin: 1.8rem 0 0.8rem;
    color: var(--text-primary);
}
.doc-page-body h1 { font-size: 1.5rem; }
.doc-page-body h2 { font-size: 1.25rem; }
.doc-page-body h3 { font-size: 1.1rem; }
.doc-page-body h4 { font-size: 1rem; }
.doc-page-body p { margin: 0 0 1rem; }
.doc-page-body ul,
.doc-page-body ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc-page-body li { margin-bottom: 0.4rem; }
.doc-page-body strong, .doc-page-body b { font-weight: 700; color: var(--text-primary); }
.doc-page-body a { color: var(--primary); text-decoration: underline; }
.doc-page-body blockquote {
    margin: 0 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--card-border);
    color: var(--text-muted);
}
.doc-page-body hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 1.5rem 0;
}
.doc-page-empty {
    color: var(--text-muted);
    font-size: 1rem;
}
