:root {
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --primary-blue-light: #dbeafe;
    --secondary-blue: #60a5fa;
    --accent-blue: #1d4ed8;
    --purple-primary: #9333ea;
    --purple-light: #a855f7;
    --purple-blue: #6366f1;
    --indigo-primary: #4f46e5;
    --white: #ffffff;
    --background: #0f0f0f;
    --dark-gray: #0f0f0f;
    --light-gray: #1a1a1a;
    --nav-gray: #161616;
    --card-gray: #1a1a1a;
    --search-gray: #1f1f1f;
    --filter-gray: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --border-light: #3f3f46;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

*:focus {
    outline: none !important;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove default browser focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none !important;
}

/* Remove any webkit focus rings */
*:focus {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    outline: none !important;
}

/* Remove tap highlight and text selection on mobile */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only for inputs and text areas */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure crisp rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Remove any blur effects except where needed */
*:not(.bottom-nav):not(.page-blur-overlay):not(.modal-overlay):not(.orders-modal):not(.balance-pill):not(.chat-input-wrapper),
*:not(.bottom-nav):not(.page-blur-overlay):not(.modal-overlay):not(.orders-modal):not(.balance-pill):not(.chat-input-wrapper)::before,
*:not(.bottom-nav):not(.page-blur-overlay):not(.modal-overlay):not(.orders-modal):not(.balance-pill):not(.chat-input-wrapper)::after {
    backdrop-filter: none !important;
}

/* Allow backdrop-filter for search input */
.search-bar input {
    backdrop-filter: blur(25px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(25px) saturate(1.8) !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

.page-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px) saturate(0.8) brightness(0.85);
    -webkit-backdrop-filter: blur(25px) saturate(0.8) brightness(0.85);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-blur-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Поднять блюр над модальными окнами (для выбора дня) */
.page-blur-overlay.above-modals {
    z-index: 1200;
}

/* Profile Page - Background image */
#profile-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/pic/photo_2025-11-24_22-29-17.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Buy Page - Background image */
#buy-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/pic/photo_2025-11-25_19-19-43.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* FAQ Page - Background image */
#faq-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/pic/photo_2025-11-24_22-27-44.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Chat Page - Background image */
#chat-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/pic/phon1.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Offer Page - Background image */
#offer-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/pic/photo_2025-11-24_22-27-44.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, 
        rgba(59, 130, 246, 0.12) 0%,
        rgba(96, 165, 250, 0.08) 40%,
        rgba(99, 102, 241, 0.06) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    animation: subtleGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes subtleGlow {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Telegram WebApp specific styles */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
    position: relative;
    padding-bottom: 65px;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    transition: filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Remove any potential scrollbars or borders in Telegram WebApp */
body::-webkit-scrollbar {
    display: none;
}

/* Ensure no horizontal overflow */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Page Management */
.page {
    display: none;
    padding: 0 0 20px 0;
    position: relative;
    overflow: hidden;
}

.page.active {
    display: block;
}

.page.active > * {
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Page Headers */
.page-header {
    padding: 90px 20px 20px;
    background: transparent;
    color: var(--text-primary);
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

/* ===== BUY PAGE STYLES ===== */

/* Search Section */
.search-section {
    padding: 110px 20px 24px;
}

.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}


.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(8, 8, 8, 0.3);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.search-bar input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(8, 8, 8, 0.4);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-bar input:focus + .search-icon,
.search-bar:focus-within .search-icon {
    color: var(--primary-blue);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 12px 0;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: var(--filter-gray);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover:not(.active) {
    background: var(--light-gray);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px) scale(1.02);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.4), var(--shadow-md);
    transform: translateY(-1px);
}

.filter-btn i {
    width: 15px;
    height: 15px;
}

.filter-btn .filter-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(0.65); /* Gray default */
    transition: filter 0.3s ease;
}

.filter-btn.active .filter-icon {
    filter: brightness(0) invert(1); /* White active */
}

/* Bloggers Feed */
.bloggers-feed {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    justify-content: start;
}

/* Blogger Card Wrapper */
.blogger-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blogger-card-wrapper:active {
    transform: scale(0.98);
}

/* Blogger Card - Modern vertical design with gradient glow */
.blogger-card {
    background: rgba(45, 45, 50, 0.6);
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

/* .blogger-card::before removed - no gradients needed */

/* .blogger-card::after removed - no gradients needed */

.blogger-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Blogger Photo - Top portion */
.blogger-card-image {
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.blogger-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blogger-card:hover .blogger-photo {
    transform: scale(1.05);
}

/* Blogger Card Content - Bottom portion */
.blogger-card-content {
    display: flex;
    flex-direction: column;
    padding: 14px 12px 14px;
    gap: 6px;
    position: relative;
    z-index: 2;
}

/* Blogger Header - Channel name + subscribers */
.blogger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Channel Name - White, prominent */
.blogger-channel-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blogger-channel-name .channel-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.blogger-channel-name .channel-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Subscribers count */
.blogger-subscribers {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* Price - Modern grey */
.blogger-price {
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
    margin: 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* Blogger Actions - Hidden (deprecated) */
.blogger-actions {
    display: none;
}

.blogger-btn {
    display: none;
}

/* Responsive adjustments for blogger cards */
@media (max-width: 480px) {
    .bloggers-feed {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        justify-content: start;
    }
    
    .blogger-card-wrapper {
        max-width: 280px;
    }
    
    .blogger-card {
        border-radius: 16px;
    }
    
    /* .blogger-card::before and ::after removed - no gradients needed */
    
    .blogger-card-image {
        height: 320px;
    }
    
    .blogger-card-content {
        padding: 12px 10px 12px;
        gap: 5px;
    }
    
    .blogger-channel-name {
        font-size: 15px;
    }
    
    .blogger-subscribers {
        font-size: 11px;
    }
    
    .blogger-price {
        font-size: 14px;
    }
}

/* ===== PROFILE PAGE STYLES ===== */

/* Profile Header */
.profile-header {
    padding: 98px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Floating Balance Pill (top-right in profile) */
.balance-pill {
    position: absolute;
    top: 90px;
    right: 26px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    /* Прозрачное мутное стекло, слегка светло‑серое */
    background: rgba(200, 200, 200, 0.14);
    backdrop-filter: blur(18px) saturate(1.8);
    -webkit-backdrop-filter: blur(18px) saturate(1.8);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 1px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: none;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    z-index: 10;
}

.balance-amount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.balance-ruble-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.balance-add-btn {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    width: auto;
    height: auto;
}

.balance-add-btn i {
    width: 10px;
    height: 10px;
    stroke-width: 2.4;
}

.balance-add-btn:hover {
    transform: translateY(-1px);
}

/* iOS-specific tweaks: push profile content slightly below Telegram header */
html.ios-platform .profile-header {
    padding-top: 120px;
}

html.ios-platform .settings-btn {
    top: 116px;
}

html.ios-platform .balance-pill {
    top: 116px;
}

.balance-add-btn:active {
    transform: translateY(0) scale(0.95);
}

.profile-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    background: var(--white);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.avatar-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.user-avatar[src]:not([src=""]) ~ .avatar-skeleton {
    display: none;
}

.user-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-align: center;
}

.user-username {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    margin: 0;
}

.skeleton-text {
    height: 20px;
    width: 120px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.skeleton-text.small {
    height: 14px;
    width: 80px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0;
    margin: 0 auto;
    width: auto;
    max-width: fit-content;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    text-align: center;
}

.stat-box:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.stats-divider {
    width: 1.5px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.stat-value-grid {
    font-size: 30px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
    font-family: 'Inter', 'Manrope', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', system-ui, sans-serif;
    letter-spacing: -0.5px;
    font-feature-settings: 'tnum' 1;
}

.stat-amount {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.ruble-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    filter: brightness(0) invert(1);
}

.stat-label-grid {
    font-size: 13px;
    color: rgba(161, 161, 170, 0.85);
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

/* Become Blogger Link */
.become-blogger-link {
    font-size: 14px;
    color: rgba(113, 113, 122, 0.9);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    margin-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.2px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.become-blogger-link i {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    opacity: 0.7;
    transition: all 0.3s ease;
    stroke-width: 1.8 !important;
}

.become-blogger-link:hover {
    color: rgba(147, 147, 160, 1);
    transform: translateY(-1px);
}

.become-blogger-link:hover i {
    opacity: 1;
    transform: translate(2px, -2px);
}

.become-blogger-link:active {
    color: rgba(113, 113, 122, 0.7);
    transform: translateY(0);
}

.become-blogger-link:active i {
    transform: translate(0, 0);
}

/* Profile Sections */
.profile-sections {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-card {
    background: linear-gradient(145deg, 
        rgba(26, 26, 30, 0.95) 0%,
        rgba(20, 20, 24, 0.98) 50%,
        rgba(16, 16, 20, 1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.section-header i {
    width: 20px;
    height: 20px;
    color: rgba(147, 197, 253, 0.7);
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.section-content {
    padding: 20px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 20px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 14px;
}

/* Settings */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.setting-info i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 12px;
    transition: 0.3s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + label {
    background: var(--primary-blue);
}

.toggle-switch input:checked + label:before {
    transform: translateX(20px);
}

/* Chart Placeholder */
.chart-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.chart-placeholder i {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
    color: rgba(147, 197, 253, 0.5);
}

.chart-placeholder p {
    font-size: 14px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
}

/* ===== HOW TO USE PAGE STYLES ===== */

.howto-content {
    padding: 20px 20px 0 20px;
}

.step-card {
    display: flex;
    gap: 16px;
    background: var(--card-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    border-color: var(--border-light);
    background: var(--light-gray);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
    position: relative;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

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

.step-icon {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--text-muted);
    opacity: 0.3;
}

.step-icon i {
    width: 24px;
    height: 24px;
}

/* Tips Section */
.tips-section {
    background: var(--card-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
    box-shadow: var(--shadow-md);
}

.tips-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.tips-section h3 i {
    width: 20px;
    height: 20px;
    color: #fbbf24;
}

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

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tip-item i {
    width: 16px;
    height: 16px;
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== SHARED COMPONENTS ===== */

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px; /* чуть более тонкая кнопка */
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary i {
    width: 16px;
    height: 16px;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--primary-blue);
}

.empty-icon i {
    width: 40px;
    height: 40px;
}

.coming-soon h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.coming-soon p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ===== BOTTOM NAVIGATION ===== */

.bottom-nav {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 370px;
    min-width: 330px;
    background: rgba(8, 8, 8, 0.3);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 9px 22px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px) saturate(1.8);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-btn {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 11px 13px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    position: relative;
    width: 75px;
    border-radius: 26px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(59, 130, 246, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.nav-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    transform: translateY(-2px) scale(1.02);
}

.nav-btn:hover::before {
    opacity: 0;
    transform: scale(1);
}

.nav-btn.active {
    color: rgba(59, 130, 246, 0.9);
    background: transparent;
}

.nav-btn.active::before {
    opacity: 0;
    transform: scale(1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    opacity: 0.8;
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
}

/* Offer nav icon uses PNG as mask so we can tint it */
.nav-icon-offer {
    width: 24px;
    height: 24px;
    display: inline-block;
    -webkit-mask: url('/static/pic/free-icon-business-proposal-6623145.png') center/contain no-repeat;
    mask: url('/static/pic/free-icon-business-proposal-6623145.png') center/contain no-repeat;
    background-color: rgba(255, 255, 255, 0.6); /* серый/белый в неактивном состоянии */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.nav-btn.active .nav-icon-offer {
    background-color: rgba(59, 130, 246, 0.9); /* синий как у остальных активных иконок */
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

/* Chat nav icon uses PNG as mask so we can tint it */
.nav-icon-chat {
    width: 24px;
    height: 24px;
    display: inline-block;
    -webkit-mask: url('/static/pic/free-icon-chat-892228.png') center/contain no-repeat;
    mask: url('/static/pic/free-icon-chat-892228.png') center/contain no-repeat;
    background-color: rgba(148, 163, 184, 0.9); /* серая иконка в неактивном состоянии */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.nav-btn.active .nav-icon-chat {
    background-color: rgba(59, 130, 246, 0.95); /* синяя иконка при активной вкладке */
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

.nav-btn:hover .nav-icon {
    transform: scale(1.1) translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.25));
    opacity: 1;
    stroke: rgba(255, 255, 255, 0.8);
}

.nav-btn.active .nav-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
    opacity: 1;
    stroke: rgba(59, 130, 246, 0.9);
}

.nav-label {
    font-size: 10.5px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.7;
}

.nav-btn:hover .nav-label {
    transform: translateY(-1px);
    opacity: 0.9;
}

.nav-btn.active .nav-label {
    font-weight: 600;
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 480px) {
    .avatar-wrapper {
        width: 84px;
        height: 84px;
    }
    
    .user-name {
        font-size: 21px;
    }
    
    .user-username {
        font-size: 14px;
    }
    
    .profile-stats-grid {
        gap: 20px;
    }
    
    .stat-box {
        padding: 0;
        gap: 5px;
    }
    
    .stats-divider {
        height: 38px;
    }
    
    .stat-value-grid {
        font-size: 26px;
        gap: 2px;
        font-weight: 600;
    }
    
    .ruble-icon {
        width: 26px;
        height: 26px;
    }
    
    .stat-label-grid {
        font-size: 12px;
    }
    
    .become-blogger-link {
        font-size: 13px;
        padding: 6px 10px;
        margin-top: 6px;
        gap: 5px;
    }
    
    .become-blogger-link i {
        width: 11px !important;
        height: 11px !important;
        min-width: 11px !important;
        min-height: 11px !important;
        max-width: 11px !important;
        max-height: 11px !important;
        stroke-width: 1.8 !important;
    }
    
    .profile-header {
        padding: 94px 20px 16px;
        gap: 16px;
    }
    
    .profile-sections {
        gap: 10px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .filter-btn i {
        width: 14px;
        height: 14px;
    }
    
    .step-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .bottom-nav {
        bottom: 26px;
        width: auto;
        max-width: 330px;
        min-width: 300px;
        border-radius: 46px;
        padding: 8px 20px;
        gap: 15px;
    }
    
    .nav-btn {
        padding: 10px 12px;
        width: 68px;
        border-radius: 24px;
        gap: 3px;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    /* Modal responsive styles */
    .orders-modal {
        max-height: calc(100vh - 40px);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .modal-header {
        padding: 12px 16px 6px;
    }
    
    .modal-close-btn {
        padding: 2px;
    }
    
    .modal-close-btn i {
        width: 18px;
        height: 18px;
    }
    
    .modal-content {
        padding: 16px 20px 24px;
        min-height: 360px;
    }
    
    .orders-empty-state {
        padding: 32px 16px;
        max-width: 320px;
    }
    
    .orders-empty-state::before {
        width: 220px;
        height: 220px;
    }
    
    .orders-empty-state .empty-icon {
        width: 140px;
        height: 140px;
        margin-bottom: 28px;
    }
    
    .orders-empty-state .empty-icon i {
        width: 48px;
        height: 48px;
    }
    
    .orders-empty-state h3 {
        font-size: 22px;
        margin-bottom: 14px;
        letter-spacing: -0.3px;
    }
    
    .orders-empty-state p {
        font-size: 15px;
        margin-bottom: 32px;
        max-width: 280px;
    }
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* ===== LOADING STATES ===== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== MODERN ENHANCEMENTS ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states */
.search-bar input:focus,
.filter-btn:focus,
.btn-primary:focus {
    outline: 2px solid rgba(59, 130, 246, 0.3);
    outline-offset: 2px;
}

.nav-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.nav-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Improved text selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--white);
}

/* Enhanced backdrop blur for supported browsers */
@supports (backdrop-filter: blur(25px)) {
    .bottom-nav {
        background: rgba(4, 4, 4, 0.25);
        backdrop-filter: blur(30px) saturate(2) contrast(1.1);
        -webkit-backdrop-filter: blur(30px) saturate(2) contrast(1.1);
    }
    
    .modal-overlay {
        background: transparent;
    }
    
    .page-blur-overlay {
        backdrop-filter: blur(30px) saturate(0.8) brightness(0.85);
        -webkit-backdrop-filter: blur(30px) saturate(0.8) brightness(0.85);
    }
}

/* Additional modern effects for the navigation */
.bottom-nav:hover {
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: rgba(6, 6, 6, 0.35);
}

/* Hide bottom nav when keyboard is open on mobile */
.keyboard-open .bottom-nav {
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* For iOS - prevent nav from moving with keyboard */
@supports (height: 100dvh) {
    .bottom-nav {
        bottom: max(32px, env(safe-area-inset-bottom, 32px));
    }
}

/* Subtle glow effects for active elements */
.filter-btn.active {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Enhanced card hover effects */
.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(59, 130, 246, 0.15),
        0 0 30px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.25);
}

/* ===== MODAL STYLES ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.orders-modal {
    width: 100%;
    max-width: 480px;
    background: rgba(12, 12, 12, 0.95);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 -8px 48px rgba(0, 0, 0, 0.6),
        0 -4px 24px rgba(0, 0, 0, 0.4),
        0 -2px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Removed blue border at top of modals */

.orders-modal::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%,
        transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.modal-overlay.active .orders-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px 20px 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg) scale(1.1);
}

.modal-close-btn:active {
    transform: rotate(90deg) scale(0.9);
    color: rgba(255, 255, 255, 0.7);
}

.modal-close-btn i {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.modal-content {
    flex: 1;
    padding: 20px 28px 28px;
    /* Убираем постоянную вертикальную прокрутку, чтобы не было полосы справа */
    overflow-y: visible;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Для модалки покупки поднимаем контент чуть выше, не меняя размеров окна */
#purchase-modal .modal-content {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 16px;
}

.orders-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 360px;
    position: relative;
}

.orders-empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, rgba(96, 165, 250, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
}

.orders-empty-state .empty-icon {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.orders-empty-state .empty-icon:hover {
    transform: scale(1.08);
}

.orders-empty-state .empty-icon i {
    width: 56px;
    height: 56px;
}

/* JSON Animation Styles for Modal */
.orders-empty-state .empty-icon #modal-animation-orders,
.orders-empty-state .empty-icon #modal-animation-ads {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

/* Responsive animation sizes */
@media (max-width: 480px) {
    .orders-empty-state .empty-icon #modal-animation-orders,
    .orders-empty-state .empty-icon #modal-animation-ads {
        width: 140px;
        height: 140px;
    }
}

.orders-empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.orders-empty-state p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 320px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Improved loading states */
.loading * {
    transition: opacity 0.3s ease;
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== SQUARE BUTTONS GRID ===== */

.square-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
}

.square-btn {
    background: rgba(45, 45, 50, 0.6);
    border: none;
    border-radius: 24px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 100px;
    text-align: left;
    backdrop-filter: blur(10px);
}

/* .square-btn::before removed - no gradients needed */

/* .square-btn::after removed - no gradients needed */

.square-btn:hover {
    background: rgba(55, 55, 60, 0.7);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

/* .square-btn:hover::before removed - no gradients needed */

/* .square-btn:hover::after removed - no gradients needed */

.square-btn:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2);
}



.square-btn-title {
    font-size: 17px;
    font-weight: 600;
    color: rgba(160, 170, 185, 0.95);
    line-height: 1.2;
    transition: all 0.3s ease;
    letter-spacing: -0.3px;
    text-transform: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.square-btn-arrow {
    position: absolute;
    bottom: 10px;
    right: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(140, 150, 165, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.square-btn-arrow i {
    width: 44px;
    height: 44px;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.square-btn:hover .square-btn-title {
    color: rgba(180, 190, 205, 1);
    letter-spacing: -0.2px;
}

.square-btn:hover .square-btn-arrow {
    color: rgba(160, 170, 185, 1);
    transform: translate(4px, 4px) scale(1.1);
}

.square-btn:hover .square-btn-arrow i {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* Responsive adjustments for square buttons */
@media (max-width: 480px) {
    .square-buttons-grid {
        gap: 8px;
    }
    
    .square-btn {
        padding: 16px 18px;
        min-height: 90px;
        border-radius: 20px;
    }
    
    /* .square-btn::before and ::after removed - no gradients needed */
    
    .square-btn-title {
        font-size: 16px;
    }
    
    .square-btn-arrow {
        bottom: 8px;
        right: 10px;
        width: 48px;
        height: 48px;
    }
    
    .square-btn-arrow i {
        width: 40px;
        height: 40px;
        stroke-width: 2.5;
    }
}

/* ===== MEDIA PRIME BUTTON ===== */

.media-prime-btn {
    width: 100%;
    background: linear-gradient(135deg, 
        #1e40af 0%,
        #3b82f6 30%,
        #2563eb 70%,
        #1e3a8a 100%);
    border: none;
    border-radius: 32px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

.media-prime-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    transition: left 0.6s ease;
    z-index: 1;
}

.media-prime-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.media-prime-btn:hover {
    background: linear-gradient(135deg, 
        #1e40af 0%,
        #3b82f6 30%,
        #2563eb 70%,
        #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.media-prime-btn:hover::before {
    left: 100%;
}

.media-prime-btn:active {
    background: linear-gradient(135deg, 
        #1e40af 0%,
        #3b82f6 30%,
        #2563eb 70%,
        #1e3a8a 100%);
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.media-prime-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    width: 100%;
    position: relative;
    z-index: 2;
    min-height: 48px;
}

.media-prime-icon {
    display: none;
}

.media-prime-icon i {
    width: 24px;
    height: 24px;
}

.media-prime-logo {
    display: none;
}

.media-prime-animation {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.media-prime-text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.media-prime-main-text {
    font-size: 17px;
    font-weight: 590;
    color: rgba(255, 255, 255, 1);
    line-height: 1.2;
    transition: all 0.3s ease;
    letter-spacing: -0.41px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1;
    -webkit-text-size-adjust: 100%;
}

.media-prime-btn:hover .media-prime-main-text {
    color: rgba(255, 255, 255, 1);
    letter-spacing: -0.38px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.media-prime-btn:active .media-prime-main-text {
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.41px;
}

.media-prime-badge {
    display: none;
}

/* Responsive adjustments for Media Prime button */
@media (max-width: 480px) {
    .media-prime-content {
        padding: 10px 20px;
        gap: 10px;
        min-height: 44px;
    }
    
    .media-prime-animation {
        width: 28px;
        height: 28px;
    }
    
    .media-prime-main-text {
        font-size: 16px;
        font-weight: 590;
        letter-spacing: -0.38px;
    }
}

/* ===== BLOGGER APPLICATION MODAL ===== */

.blogger-form-state {
    width: 100%;
    text-align: center;
    padding: 32px 24px 40px !important;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blogger-form-state .empty-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blogger-form-state #modal-animation-blogger {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blogger-form-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blogger-form-state p {
    font-size: 15px;
    font-weight: 500;
    color: rgba(161, 161, 170, 0.9);
    margin: 0 0 32px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.blogger-form {
    width: 100%;
    max-width: 100%;
}

.blogger-form .form-group {
    margin: 0;
}

.blogger-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.blogger-form .form-input {
    width: 100%;
    padding: 22px 68px 22px 24px;
    background: rgba(31, 31, 31, 0.6);
    border: 1.5px solid rgba(63, 63, 70, 0.6);
    border-radius: 18px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.blogger-form .form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(31, 31, 31, 0.8);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.15),
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(59, 130, 246, 0.2);
}

.blogger-form .form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.blogger-form .form-hint {
    display: block;
    font-size: 14px;
    color: rgba(161, 161, 170, 0.85);
    margin-top: 14px;
    padding-left: 6px;
    font-weight: 400;
    text-align: left;
    line-height: 1.5;
}

.input-send-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--primary-blue-dark) 0%, 
        var(--accent-blue) 100%);
    border: none;
    border-radius: 14px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 12px rgba(29, 78, 216, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.input-send-btn:hover {
    background: linear-gradient(135deg, 
        var(--accent-blue) 0%, 
        #1e40af 100%);
    box-shadow: 
        0 6px 16px rgba(29, 78, 216, 0.6),
        0 3px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.input-send-btn:active {
    background: linear-gradient(135deg, 
        #1e40af 0%, 
        #1e3a8a 100%);
    transform: translateY(-50%) scale(0.95);
    box-shadow: 
        0 2px 8px rgba(29, 78, 216, 0.4),
        0 1px 4px rgba(0, 0, 0, 0.2);
}

.input-send-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* Responsive styles for blogger modal */
@media (max-width: 480px) {
    .blogger-form-state {
        padding: 24px 20px 32px !important;
    }
    
    .blogger-form-state .empty-icon {
        width: 160px;
        height: 160px;
        margin-bottom: 24px;
    }
    
    .blogger-form-state h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .blogger-form-state p {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .blogger-form .form-input {
        padding: 20px 66px 20px 20px;
        font-size: 15px;
    }
    
    .blogger-form .form-hint {
        font-size: 13px;
        margin-top: 12px;
    }
    
    .input-send-btn {
        width: 44px;
        height: 44px;
        right: 8px;
    }
    
    .input-send-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Loading state for form submission */
.input-send-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.input-send-btn.loading svg {
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== BLOGGER INSTRUCTIONS STATE ===== */

.blogger-instructions-state {
    width: 100%;
    text-align: center;
    padding: 48px 28px 48px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.instructions-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.blogger-form-state.fade-out {
    animation: fadeOutUp 0.5s ease-out forwards;
}

.instructions-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.5;
    margin: 0 0 40px;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0 4px;
}

.bot-username {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 2px 0;
}

.bot-username::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%, 
        var(--secondary-blue) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.bot-username:hover {
    color: var(--secondary-blue);
    transform: translateY(-1px);
}

.bot-username:hover::after {
    transform: scaleX(1);
}

.bot-username:active {
    color: var(--accent-blue);
    transform: translateY(0);
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 42px;
    padding: 0 8px;
}

.instruction-item {
    font-size: 16px;
    font-weight: 500;
    color: rgba(161, 161, 170, 0.95);
    line-height: 1.6;
    margin: 0;
    letter-spacing: -0.01em;
    text-align: center;
}

.btn-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    text-decoration: none;
    box-shadow: 
        0 4px 16px rgba(29, 78, 216, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-verify::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-verify:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
    box-shadow: 
        0 6px 24px rgba(29, 78, 216, 0.6),
        0 3px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.btn-verify:hover::before {
    opacity: 1;
}

.btn-verify:active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 12px rgba(29, 78, 216, 0.4),
        0 1px 6px rgba(0, 0, 0, 0.2);
}

.btn-verify i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Responsive styles for instructions */
@media (max-width: 480px) {
    .blogger-instructions-state {
        padding: 36px 24px 40px;
        min-height: 420px;
    }
    
    .blogger-form-state {
        min-height: 420px;
    }
    
    .modal-content {
        min-height: 460px;
    }
    
    .instructions-title {
        font-size: 22px;
        margin-bottom: 36px;
        line-height: 1.4;
    }
    
    .instructions-list {
        gap: 16px;
        margin-bottom: 38px;
    }
    
    .instruction-item {
        font-size: 15px;
    }
    
    .btn-verify {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .btn-verify i {
        width: 18px;
        height: 18px;
    }
}

/* ===== URL VALIDATION ERROR STATES ===== */

/* Error state for input */
.blogger-form .form-input.error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.15),
        inset 0 2px 8px rgba(239, 68, 68, 0.1),
        0 4px 16px rgba(239, 68, 68, 0.2) !important;
}

/* Shake animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

.blogger-form .input-wrapper.shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Hint emphasis animation */
@keyframes emphasize {
    0% {
        transform: scale(1);
        color: rgba(161, 161, 170, 0.85);
    }
    50% {
        transform: scale(1.08);
        color: #ef4444;
        font-weight: 600;
    }
    100% {
        transform: scale(1);
        color: rgba(161, 161, 170, 0.85);
    }
}

.blogger-form .form-hint.emphasize {
    animation: emphasize 1s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    transform-origin: left center;
}

/* Принудительное уменьшение стрелочки в блоке "стать блогером" */
.become-blogger-link [data-lucide="arrow-up-right"] {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    stroke-width: 1.8 !important;
}

.become-blogger-link svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    stroke-width: 1.8 !important;
}

/* ===== BLOGGER DETAIL MODAL ===== */

.blogger-detail-modal {
    width: 100%;
    max-width: 480px;
    background: rgba(12, 12, 12, 0.98);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 -8px 48px rgba(0, 0, 0, 0.6),
        0 -4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Removed blue border at top */

.modal-overlay.active .blogger-detail-modal {
    transform: translateY(0);
}

.blogger-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px 20px 8px;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 11;
}

.blogger-modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

/* Blogger Modal Image */
.blogger-modal-image {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blogger-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    border: none;
    outline: none;
}

.blogger-modal-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

/* Blogger Modal Info */
.blogger-modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    z-index: 5;
}

.blogger-modal-header-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.blogger-modal-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.blogger-modal-name .channel-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.blogger-modal-name .channel-link:hover {
    color: var(--primary-blue);
    text-shadow: 0 3px 12px rgba(59, 130, 246, 0.6);
}

.blogger-modal-name .channel-link:active {
    transform: scale(0.98);
}

.blogger-modal-subscribers {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.3px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.blogger-modal-price {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blogger-modal-price .ruble-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Blogger Modal Actions */
.blogger-modal-actions {
    padding: 20px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(12, 12, 12, 0.98);
}

.blogger-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.3px;
    position: relative;
    overflow: hidden;
}

.blogger-modal-btn-primary {
    background: linear-gradient(135deg, 
        var(--primary-blue-dark) 0%, 
        var(--accent-blue) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 28px;
}

.blogger-modal-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blogger-modal-btn-primary:hover {
    background: linear-gradient(135deg, 
        var(--accent-blue) 0%, 
        #1e40af 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.blogger-modal-btn-primary:hover::before {
    opacity: 1;
}

.blogger-modal-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Floating Chat Button - White */
.blogger-modal-chat-btn {
    position: absolute;
    bottom: 16px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blogger-modal-chat-btn i {
    width: 24px;
    height: 24px;
    color: rgba(12, 12, 12, 0.85);
    stroke-width: 2;
}

.blogger-modal-chat-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.blogger-modal-chat-btn:active {
    transform: scale(0.95);
    background: rgba(245, 245, 245, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Reviews Section */
.blogger-modal-reviews {
    padding: 24px 28px 32px;
    background: rgba(12, 12, 12, 0.98);
    display: flex;
    flex-direction: column;
}

.blogger-modal-reviews-empty {
    text-align: center;
    padding: 32px 20px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(156, 163, 175, 0.7);
    letter-spacing: -0.2px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* Responsive adjustments for blogger modal */
@media (max-width: 480px) {
    .blogger-detail-modal {
        max-height: calc(100vh - 40px);
    }
    
    .blogger-modal-image {
        height: 380px;
    }
    
    .blogger-modal-info {
        padding: 20px 24px 24px;
        gap: 6px;
    }
    
    .blogger-modal-header-row {
        gap: 10px;
    }
    
    .blogger-modal-name {
        font-size: 28px;
    }
    
    .blogger-modal-subscribers {
        font-size: 20px;
    }
    
    .blogger-modal-price {
        font-size: 18px;
    }
    
    .blogger-modal-actions {
        padding: 16px 24px 20px;
        gap: 10px;
    }
    
    .blogger-modal-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .blogger-modal-btn-primary {
        border-radius: 24px;
    }
    
    .blogger-modal-chat-btn {
        width: 50px;
        height: 50px;
        bottom: 14px;
        right: 24px;
    }
    
    .blogger-modal-chat-btn i {
        width: 22px;
        height: 22px;
    }
    
    .blogger-modal-reviews {
        padding: 20px 24px 28px;
    }
    
    .blogger-modal-reviews-empty {
        padding: 28px 16px;
        font-size: 15px;
    }
    
}

/* ===== BLOGGER CARD MODAL ===== */

/* Blogger Photo Placeholder */
.blogger-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.blogger-photo-placeholder:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.blogger-photo-placeholder:hover .placeholder-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.placeholder-icon i {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-text {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.blogger-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    display: none;
}

.blogger-photo-preview.active {
    display: block;
}

.blogger-photo-placeholder.hidden {
    display: none;
}

/* Editable Price on Image */
.blogger-modal-price-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blogger-modal-price {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.blogger-modal-price:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.blogger-modal-price.editable::after {
    content: '✎';
    margin-left: 8px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blogger-modal-price.editable:hover::after {
    opacity: 0.7;
}

.blogger-modal-price.placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.blogger-modal-price-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}

.price-inline-input {
    flex: 1;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    color: var(--white) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.price-inline-input:focus {
    outline: none !important;
    border-color: var(--primary-blue) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}

.price-inline-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.price-edit-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.price-edit-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price-edit-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.price-edit-btn.save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.price-edit-btn.save:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.05);
}

.price-edit-btn.save:active {
    transform: scale(0.95);
}

.price-edit-btn.cancel {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.price-edit-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.price-edit-btn.cancel:active {
    transform: scale(0.95);
}

/* Blogger Card Edit Form */
.blogger-card-edit-form {
    padding: 24px 28px 32px;
    background: rgba(12, 12, 12, 0.98);
}

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

.blogger-card-edit-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.blogger-card-edit-form .form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(31, 31, 31, 0.6);
    border: 1.5px solid rgba(63, 63, 70, 0.6);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.blogger-card-edit-form .form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(31, 31, 31, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.blogger-card-edit-form .form-input::placeholder {
    color: var(--text-muted);
}

.blogger-card-edit-form .form-hint-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.blogger-card-edit-form .form-hint-text i {
    width: 16px;
    height: 16px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.blogger-card-edit-form .settings-toggle-row {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 16px;
    border-radius: 24px;
}

.blogger-card-save-btn {
    width: 100%;
    margin-top: 8px;
}

/* Schedule Button */
.schedule-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.schedule-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.06);
}

.schedule-btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: all 0.2s ease;
}

.schedule-btn:hover .schedule-btn-icon {
    transform: scale(1.05);
}

/* Responsive adjustments for blogger card modal */
@media (max-width: 480px) {
    .blogger-card-edit-form {
        padding: 20px 24px 28px;
    }
    
    .placeholder-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 14px;
    }
    
    .placeholder-icon i {
        width: 35px;
        height: 35px;
    }
    
    .placeholder-text {
        font-size: 15px;
    }
    
    .blogger-card-edit-form .form-group {
        margin-bottom: 16px;
    }
    
    .blogger-card-edit-form .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .blogger-card-edit-form .form-input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .blogger-modal-price-edit {
        max-width: 240px;
    }
    
    .price-inline-input {
        padding: 8px 12px !important;
        font-size: 16px !important;
    }
    
    .price-edit-btn {
        width: 36px;
        height: 36px;
    }
    
    .price-edit-btn i {
        width: 18px;
        height: 18px;
    }
    
    .schedule-btn {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 20px;
        margin-top: 12px;
    }
    
    .schedule-btn-icon {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   TELEGRAM-STYLE NOTIFICATION TOAST
   ======================================== */

.telegram-notification {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 380px;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(60px) saturate(1.8) brightness(1.1);
    -webkit-backdrop-filter: blur(60px) saturate(1.8) brightness(1.1);
    border: none;
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
    will-change: transform, opacity;
}

.telegram-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 40%,
        rgba(255, 255, 255, 0.01) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.telegram-notification.show {
    /* Опускаем тост заметно ниже шапки Telegram + учитываем safe-area на iOS */
    top: calc(env(safe-area-inset-top, 0px) + 80px);
    opacity: 1;
    pointer-events: auto;
    animation: slideDownSmooth 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.telegram-notification.hide {
    animation: slideUpFadeOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes slideDownSmooth {
    0% {
        transform: translateX(-50%) translateY(-150px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpFadeOut {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-150px);
        opacity: 0;
    }
}

.telegram-notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.telegram-notification-icon {
    display: none;
}

.telegram-notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
    width: 100%;
}

.telegram-notification-title {
    font-size: 17px;
    font-weight: 650;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.4px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.telegram-notification-message {
    font-size: 15px;
    font-weight: 450;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
    letter-spacing: -0.25px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.telegram-notification-close {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .telegram-notification {
        width: calc(100% - 32px);
        max-width: none;
        padding: 17px 19px;
        border-radius: 20px;
        backdrop-filter: blur(55px) saturate(1.8) brightness(1.1);
        -webkit-backdrop-filter: blur(55px) saturate(1.8) brightness(1.1);
    }
    
    .telegram-notification.show {
        top: 80px;
    }
    
    .telegram-notification-title {
        font-size: 16px;
        font-weight: 640;
        letter-spacing: -0.38px;
    }
    
    .telegram-notification-message {
        font-size: 14px;
        font-weight: 450;
        letter-spacing: -0.22px;
    }
}

/* ========================================
   SETTINGS BUTTON & MODAL
   ======================================== */

/* Settings Button in Profile */
.settings-btn {
    position: absolute;
    top: 90px;
    left: 34px;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.settings-btn img {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: invert(1) brightness(1.2);
}

.settings-btn:hover img {
    opacity: 0.85;
    transform: rotate(90deg);
    filter: invert(1) brightness(1.5);
}

.settings-btn:active {
    transform: scale(0.92);
}

.settings-btn:active img {
    opacity: 0.4;
    filter: invert(1) brightness(1);
}

/* Settings Modal Content */
.settings-modal {
    max-height: 80vh;
    min-height: 560px;
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.settings-content {
    padding: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    justify-content: space-between;
}

.settings-title {
    display: none;
}

/* Settings Section */
.settings-section {
    margin-bottom: 0;
    padding: 0 24px;
}

.settings-section:first-child {
    margin-top: 0px;
}

.settings-section:nth-child(2) {
    margin-top: 32px;
    margin-bottom: auto;
    padding-bottom: 24px;
}

.settings-section:last-child {
    margin-bottom: 0;
    margin-top: auto;
    padding-top: 24px;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.settings-section-header i {
    width: 18px;
    height: 18px;
    color: #a1a1aa;
}

.settings-section-header h3 {
    font-size: 14px;
    font-weight: 500;
    color: #a1a1aa;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* Language Options - Grid Layout */
.language-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 14px;
    background: #1a1a1a;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.language-btn:hover {
    background: #252525;
    transform: translateY(-2px);
}

.language-btn:active {
    transform: scale(0.96);
}

.language-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.language-btn.active:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.language-flag {
    display: none;
}

.language-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.language-check {
    display: none;
}

/* Vibration Section Toggle */
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #1a1a1a;
    border: none;
    border-radius: 20px;
}

.settings-toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 56px;
    height: 34px;
    background: #3f3f46;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.toggle-switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-switch-slider {
    transform: translateX(22px);
}

/* Bottom Action Buttons */
.settings-bottom-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 24px;
    margin-top: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.settings-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 20px;
    background: #1a1a1a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.settings-action-btn i {
    width: 20px;
    height: 20px;
}

.settings-action-btn:hover {
    background: #252525;
    transform: translateY(-2px);
}

.settings-action-btn:active {
    transform: scale(0.96);
}

.settings-action-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.settings-action-btn.primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* FAQ List - Hidden by default in modal */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #1a1a1a;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: #252525;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question span {
    flex: 1;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.faq-question i {
    width: 20px;
    height: 20px;
    color: #a1a1aa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 18px 18px;
    font-size: 14px;
    font-weight: 400;
    color: #a1a1aa;
    line-height: 1.6;
    letter-spacing: -0.1px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* Support Button - Old style kept for compatibility */
.support-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #3b82f6;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.support-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.support-btn:active {
    transform: scale(0.98);
}

.support-btn-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.support-btn:hover .support-btn-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.support-btn-icon i {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.support-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.support-btn-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.support-btn-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.1px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

.support-btn-arrow {
    width: 20px;
    height: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.support-btn:hover .support-btn-arrow {
    transform: translateX(4px);
}

/* ===== SCHEDULE MODAL (ГРАФИК ПОСТОВ) ===== */

.schedule-modal {
    width: 100%;
    max-width: 480px;
    /* Прозрачный фон — виден только размытый бэкграунд страницы */
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transform: scale(1);
    opacity: 1;
    transition: none;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: visible;
    backdrop-filter: none;
}

.modal-overlay.schedule-active {
    align-items: center;
    justify-content: center;
    /* Do not allow the outer overlay to scroll, so no page scrollbar appears */
    overflow: hidden;
}

.modal-overlay.schedule-active .schedule-modal {
    transform: none;
    opacity: 1;
}

.schedule-modal-header {
    /* Полностью скрываем заголовок и шапку модального окна */
    display: none;
}

.schedule-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

.schedule-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-modal-close:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg) scale(1.1);
}

.schedule-modal-close i {
    width: 24px;
    height: 24px;
}

.schedule-modal-content {
    padding: 0 24px 40px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}

.schedule-modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.schedule-hint {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(156, 163, 175, 0.85);
    text-align: left;
    margin: 0 2px 4px;
}

/* Week Calendar */
.week-calendar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    flex: 1;
}

.week-calendar-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.week-calendar-row-single {
    justify-content: center;
}

.week-calendar-row .week-day-btn {
    width: auto;              
    flex: 0 0 30%;
    max-width: 120px;
    min-width: 100px;
}

.week-calendar-row-single .week-day-btn {
    flex: 0 0 27%;
    max-width: 110px;
    min-width: 95px;
}

.week-day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
}

.week-day-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(96, 165, 250, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.week-day-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-2px);
}

.week-day-btn:hover::before {
    opacity: 1;
}

.week-day-btn:active {
    transform: translateY(0) scale(0.97);
}

.week-day-btn.selected {
    background: linear-gradient(135deg,
        var(--primary-blue-dark) 0%,
        var(--accent-blue) 100%);
    box-shadow: none;
}

.week-day-btn.selected::before {
    opacity: 0;
}

.week-day-btn.selected:hover {
    background: linear-gradient(135deg,
        var(--accent-blue) 0%,
        #1e40af 100%);
    transform: translateY(-2px);
}

.week-day-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    z-index: 1;
}

.week-day-name {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.week-day-btn.selected .week-day-name {
    color: var(--white);
}

.week-day-date {
    font-size: 14px;
    font-weight: 500;
    color: rgba(161, 161, 170, 0.9);
    letter-spacing: -0.1px;
    transition: color 0.3s ease;
}

/* ===== Purchase Day Picker & Schedule Pills ===== */

.post-schedule-row {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-schedule-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pill-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    background: rgba(63, 63, 70, 0.35); /* светло‑серый полупрозрачный */
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    box-shadow: none; /* без тени */
}

.pill-button:hover {
    background: rgba(82, 82, 91, 0.4);
}

.pill-button:active {
    transform: scale(0.97);
}

.pill-button-single {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

/* Кнопка выбора дня/времени — в одну строку: \"Пн 13:45\" */
.pill-button-day {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
}

.pill-button-dayline {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.pill-button-timeline {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

/* .pill-button-time больше не используется */

/* Day picker modal over purchase */

.modal-overlay.day-picker-active {
    align-items: center;
    justify-content: center;
    z-index: 1300; /* выше, чем page-blur-overlay.above-modals */
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px) saturate(0.8) brightness(0.85);
    -webkit-backdrop-filter: blur(25px) saturate(0.8) brightness(0.85);
}

.day-picker-modal {
    width: 100%;
    max-width: 420px;
    background: transparent; /* без собственного фона */
    border-radius: 24px;
    padding: 32px 18px 18px; /* чуть ниже, чтобы не залезать под шапку Telegram */
    display: flex;
    flex-direction: column;
    box-shadow: none; /* без тени и рамки */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.day-picker-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.day-picker-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
}

.day-picker-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: all 0.25s ease;
}

.day-picker-close:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg) scale(1.05);
}

.day-picker-content {
    padding: 10px 4px 0; /* опускаем блок с днями чуть ниже заголовка */
}

.day-picker-week-calendar {
    gap: 12px;
}

.day-picker-actions {
    padding-top: 24px; /* небольшой дополнительный отступ под полосой времени */
    padding-bottom: 0;
}

/* Встроенный в day-picker блок времени использует тот же стиль, что и в модалке графика */
.day-picker-time-container {
    margin-top: 20px; /* надпись дня и время немного ниже от календаря */
    margin-bottom: 0;
    padding-inline: 8px;
}

.day-picker-time-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 4px;
}

.day-picker-time-limit {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.9); /* мягкий серый */
    letter-spacing: -0.2px;
}

.week-day-btn.selected .week-day-date {
    color: rgba(255, 255, 255, 0.8);
}

.week-day-status {
    /* Индикатор статуса скрыт, выбор виден по цвету кнопки */
    display: none;
}

.week-day-btn.selected .week-day-status {
    background: none;
}

.week-day-status i {
    display: none;
}

.week-day-btn.selected .week-day-status i {
    color: var(--white);
}

/* Schedule Actions */
.schedule-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 20px;
}

.schedule-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.3px;
}

.schedule-action-btn i {
    width: 20px;
    height: 20px;
}

.schedule-action-btn.primary {
    background: linear-gradient(135deg, 
        var(--primary-blue-dark) 0%, 
        var(--accent-blue) 100%);
    color: var(--white);
    box-shadow: none;
}

.schedule-action-btn.primary:hover {
    background: linear-gradient(135deg, 
        var(--accent-blue) 0%, 
        #1e40af 100%);
    box-shadow: none;
    transform: translateY(-2px);
}

.schedule-action-btn.primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.schedule-action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.schedule-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.schedule-action-btn.secondary:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.06);
}

/* Responsive adjustments for schedule modal */
@media (max-width: 480px) {
    .schedule-modal {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
    
    .schedule-modal-content {
        padding: 0 20px 40px;
        margin-top: 72px;
        gap: 14px;
        height: calc(100vh - 100px);
    }
    
    .week-calendar {
        gap: 12px;
        flex: 1;
    }

    .week-calendar-row {
        gap: 12px;
    }
    
    .week-day-btn {
        border-radius: 18px;
    }
    
    .week-calendar-row .week-day-btn {
        flex: 0 0 30%;
        max-width: 115px;
        min-width: 95px;
    }
    
    .week-calendar-row-single .week-day-btn {
        flex: 0 0 27%;
        max-width: 105px;
        min-width: 90px;
    }
    
    .week-day-name {
        font-size: 16px;
    }
    
    .week-day-date {
        font-size: 10.5px;
    }
    
    .schedule-actions {
        gap: 8px;
        margin-top: auto;
        padding-top: 30px;
        padding-bottom: 10px;
    }
    
    .schedule-action-btn {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 18px;
    }
    
    .schedule-action-btn i {
        width: 18px;
        height: 18px;
    }
}

/* Time range editor (при долгом нажатии на день) */
/* Time Range Slider Container */
.time-range-slider-container {
    margin: 8px 0 16px;
    padding: 12px 16px;
    background: transparent;
    border-radius: 0;
    border: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-range-slider-container.active {
    opacity: 1;
    transform: translateY(0);
}

.time-range-header {
    margin-bottom: 10px;
    text-align: center;
}

.time-range-day-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.2px;
}

.time-range-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Time Display */
.time-display-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.time-display-input {
    width: 60px;
    padding: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.time-display-input:focus {
    outline: none;
    color: #2481cc;
}

.time-display-input:hover {
    color: rgba(255, 255, 255, 0.9);
}

.time-separator {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

/* Dual Slider */
.dual-slider-wrapper {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.dual-slider-track {
    position: absolute;
    width: 100%;
    height: 3px;
    background: rgba(63, 63, 70, 0.4);
    border-radius: 2px;
    pointer-events: none;
}

.dual-slider-range {
    position: absolute;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: all 0.05s ease;
}

.dual-slider-input {
    position: absolute;
    width: 100%;
    height: 36px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.dual-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.dual-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(36, 129, 204, 0.6);
    background: var(--primary-blue-dark);
}

.dual-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.1);
    background: var(--primary-blue-dark);
    box-shadow: 0 2px 8px rgba(36, 129, 204, 0.8);
}

.dual-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.dual-slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(36, 129, 204, 0.6);
    background: var(--primary-blue-dark);
}

.dual-slider-input::-moz-range-thumb:active {
    transform: scale(1.1);
    background: var(--primary-blue-dark);
    box-shadow: 0 2px 8px rgba(36, 129, 204, 0.8);
}

.dual-slider-input.slider-to {
    z-index: 2;
}

.dual-slider-input.slider-from {
    z-index: 1;
}

@media (max-width: 480px) {
    .time-range-slider-container {
        padding: 10px 12px;
        margin: 6px 0 12px;
    }

    .time-range-day-label {
        font-size: 13px;
    }

    .time-display-input {
        width: 55px;
        font-size: 14px;
    }

    .dual-slider-wrapper {
        height: 32px;
    }

    .dual-slider-input {
        height: 32px;
    }

    .dual-slider-input::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    .dual-slider-input::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

/* Responsive adjustments for settings */
@media (max-width: 480px) {
    .settings-btn {
        top: 82px;
        left: 28px;
    }
    
    .settings-btn img {
        width: 36px;
        height: 36px;
    }
    
    .settings-title {
        display: none;
    }
    
    .settings-modal {
        min-height: 520px;
    }
    
    .settings-content {
        padding: 0 0 24px 0;
        min-height: 100%;
        justify-content: space-between;
    }
    
    .settings-section {
        padding: 0 20px;
    }
    
    .settings-section:first-child {
        margin-top: 10px;
    }
    
    .settings-section:nth-child(2) {
        margin-top: 28px;
        margin-bottom: auto;
        padding-bottom: 20px;
    }
    
    .settings-section:last-child {
        padding-top: 20px;
    }
    
    .settings-section-header h3 {
        font-size: 13px;
    }
    
    .language-options {
        gap: 10px;
    }
    
    .language-btn {
        padding: 18px 12px;
        border-radius: 22px;
    }
    
    .language-name {
        font-size: 15px;
    }
    
    .settings-toggle-row {
        padding: 16px 20px;
        border-radius: 18px;
    }
    
    .settings-toggle-label {
        font-size: 15px;
    }
    
    .settings-bottom-actions {
        padding: 0 20px;
        gap: 10px;
    }
    
    .settings-action-btn {
        padding: 18px 18px;
        font-size: 15px;
    }
    
    .faq-question {
        padding: 14px 16px;
    }
    
    .faq-question span {
        font-size: 14px;
    }
    
    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 13px;
    }
    
    .support-btn {
        padding: 16px 18px;
    }
    
    .support-btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .support-btn-icon i {
        width: 20px;
        height: 20px;
    }
    
    .support-btn-title {
        font-size: 15px;
    }
    
    .support-btn-subtitle {
        font-size: 12px;
    }
    
    /* Balance pill mobile tweaks */
    .balance-pill {
        top: 82px;
        right: 20px;
        padding: 6px 10px;
        gap: 4px;
    }
    
    .balance-amount {
        font-size: 17px;
    }
}

/* ==============================================
   PAYMENT & BALANCE TOPUP STYLES
   ============================================== */

/* Balance Topup Modal Layout */
#balance-topup-modal .modal-content {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
}

.topup-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 20px;
    gap: 20px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.topup-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.topup-title {
    width: 100%;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.topup-icon {
    width: 64px;
    height: 64px;
    background: var(--search-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.topup-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.8;
}

.topup-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.topup-description {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Amount Input Section */
.topup-amount-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amount-input-wrapper {
    position: relative;
    width: 100%;
}

.amount-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--search-gray);
    border: none;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.amount-input:focus {
    outline: none;
    background: var(--search-gray);
}

.amount-input::placeholder {
    color: var(--text-muted);
}

/* Payment Info */
.payment-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--search-gray);
    border-radius: var(--radius-md);
}

.payment-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.payment-info-row i {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

/* Topup Button */
.topup-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    box-shadow: none;
}

.topup-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.topup-button:hover,
.topup-button:active {
    box-shadow: none;
    transform: none;
}

/* Payment History Link */
.payment-history-link {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--search-gray);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.payment-history-link:hover {
    background: var(--search-gray);
    color: var(--text-primary);
}

.payment-history-link i {
    width: 18px;
    height: 18px;
}

/* Payment History Modal */
.payment-history-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.payment-history-modal .modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--card-gray);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.payment-history-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.payment-history-modal .modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.payment-history-modal .close-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--search-gray);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.payment-history-modal .close-button:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.payment-history-modal .modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* No Payments State */
.no-payments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Payments List */
.payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--search-gray);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.payment-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.payment-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.total-paid {
    margin-top: 16px;
    padding: 16px;
    background: var(--search-gray);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
    .topup-content h3 {
        font-size: 20px;
    }
    
    .amount-input {
        font-size: 28px;
        padding: 16px 16px;
    }
    
    .payment-history-modal .modal-content {
        max-height: 90vh;
    }
}

/* ===== Post Creation Modal (шаг 2 покупки) ===== */

.post-creation-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 520px;
    background: rgba(15, 15, 15, 0.96);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-lg);
    padding: 0; /* Убираем все padding */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.28s ease-out, opacity 0.28s ease-out;
}

.modal-overlay.active #post-creation-modal {
    transform: translateY(0);
    opacity: 1;
}

.post-creation-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    margin-top: 12px; /* Отступ сверху после области фото */
    padding: 0 16px; /* Добавляем боковые отступы */
}

.post-creation-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-creation-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.post-creation-image-card {
    position: relative;
    width: 100%; /* На всю ширину модального окна */
    border-radius: 24px 24px 0 0; /* Только верхние углы */
    background: var(--search-gray); /* тот же серый, что и в карточке баланса */
    border: none;
    overflow: hidden;
    min-height: 25vh; /* около четверти экрана */
    max-height: 25vh;
    margin: 0; /* Убираем все отступы */
    display: flex;
    align-items: stretch;
    justify-content: center;
    cursor: pointer;
}

.post-creation-image-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: transparent;
}

.post-creation-placeholder-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue-light);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.15);
}

.post-creation-placeholder-icon i {
    width: 22px;
    height: 22px;
}

.post-creation-placeholder-text {
    font-size: 13px;
    text-align: center;
    color: var(--text-secondary);
}

.post-creation-images-grid {
    position: absolute;
    inset: 0;
    padding: 0; /* Убираем отступы */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 0; /* Убираем промежутки */
    opacity: 0;
    pointer-events: none;
}

/* Если только одно фото - на всю ширину */
.post-creation-images-grid.single-image {
    grid-template-columns: 1fr;
}

.post-creation-images-grid.has-images {
    opacity: 1;
    pointer-events: auto;
}

.post-creation-image-thumb {
    border-radius: 0; /* Убираем закругления */
    overflow: hidden;
    position: relative;
    background: #020617;
}

.post-creation-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-creation-image-thumb.more-indicator::after {
    content: attr(data-more);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.post-creation-images-note {
    position: absolute;
    left: 10px;
    bottom: 10px;
    right: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    padding: 4px 10px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    backdrop-filter: blur(14px);
}

.post-creation-text-wrapper {
    border-radius: 20px;
    background: var(--search-gray); /* тот же серый, что и в карточке баланса */
    padding: 10px 12px;
    margin: 0 16px 32px 16px; /* Увеличен нижний отступ для счетчика */
    position: relative;
}

.post-creation-text-wrapper.error {
    background: rgba(239, 68, 68, 0.1); /* Красный фон при ошибке */
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.post-creation-text-error {
    position: absolute;
    top: -28px;
    left: 12px;
    right: 12px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    text-align: left;
    display: none;
}

.post-creation-text-wrapper.error .post-creation-text-error {
    display: block;
}

.post-creation-char-counter {
    position: absolute;
    bottom: -22px;
    right: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.post-creation-char-counter.error {
    color: #ef4444;
    font-weight: 600;
}

.post-creation-textarea {
    width: 100%;
    min-height: 110px;
    max-height: 220px;
    resize: vertical;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.post-creation-textarea::placeholder {
    color: var(--text-secondary);
}

.post-creation-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 0 16px 20px 16px; /* Добавляем отступы */
}

.btn-oval {
    flex: 1;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn-oval.secondary {
    background: var(--search-gray); /* светло-серый цвет */
    color: var(--text-primary);
}

.btn-oval.primary {
    background: var(--primary-blue-dark); /* тёмно-синяя как обычные кнопки */
    color: #fff;
    box-shadow: none;
}

.btn-oval:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: none;
}

@media (max-width: 480px) {
    .post-creation-modal {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }
}

/* ===== PURCHASE MODAL STYLES ===== */

.purchase-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 20px;
    gap: 20px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.purchase-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.purchase-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.purchase-icon.insufficient {
    background: rgba(239, 68, 68, 0.1);
}

.purchase-icon.insufficient i {
    width: 32px;
    height: 32px;
    color: #ef4444;
}

.purchase-icon.success {
    background: transparent; /* убираем зелёный фон вокруг анимации */
}

.purchase-icon.success i {
    width: 32px;
    height: 32px;
    color: #22c55e;
}

/* Lottie animation inside purchase icon */
.purchase-icon.success #purchase-animation {
    width: 56px;
    height: 56px;
}

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

.purchase-description {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.balance-info-card {
    width: 100%;
    background: var(--search-gray);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-info-row.highlight {
    font-weight: 600;
}

.balance-info-row.shortage {
    font-weight: 600;
}

.balance-info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.balance-info-row.highlight .balance-info-label {
    color: var(--text-primary);
}

.balance-info-row.shortage .balance-info-label {
    color: var(--text-primary);
}

.balance-info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.balance-info-row.highlight .balance-info-value {
    color: var(--primary-blue);
    font-size: 18px;
}

.balance-info-row.shortage .balance-info-value {
    color: #ef4444;
}

.balance-info-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.time-selection-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: -8px 0 0 0;
    font-style: italic;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.time-select,
.time-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--search-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.time-select:focus,
.time-input:focus {
    border-color: var(--primary-blue);
    background: var(--card-gray);
}

.time-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.time-select option {
    background: var(--dark-gray);
    color: var(--text-primary);
    padding: 12px;
}

.time-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Time Slider Styles */
.time-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0 4px;
    margin: 0;
}

.time-slider-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
}

.time-slider-display #selected-hours {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue-dark);
    line-height: 1;
}

.time-slider-display .hours-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 4px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    outline: none;
    transition: all 0.2s ease;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-blue-dark);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.5), 0 0 0 3px rgba(37, 99, 235, 0.16);
    transition: all 0.2s ease;
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.6), 0 0 0 6px rgba(29, 78, 216, 0.15);
}

.time-slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.5), 0 0 0 8px rgba(29, 78, 216, 0.2);
}

.time-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-blue-dark);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.4), 0 0 0 4px rgba(29, 78, 216, 0.1);
    transition: all 0.2s ease;
}

.time-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.6), 0 0 0 6px rgba(29, 78, 216, 0.15);
}

.time-slider::-moz-range-thumb:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.5), 0 0 0 8px rgba(29, 78, 216, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.slider-labels span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.purchase-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-secondary {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--search-gray);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--card-gray);
    border-color: var(--border-light);
}

/* Более тёмный вариант основной кнопки для модалки покупки */
.btn-primary-dark {
    background: var(--primary-blue-dark);
}

.btn-primary-dark:hover {
    background: #1d4ed8; /* ещё чуть темнее при ховере */
}

.btn-primary i,
.btn-secondary i {
    width: 18px;
    height: 18px;
}

.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
}

.error-message i {
    width: 48px;
    height: 48px;
    color: #ef4444;
}

.error-message p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Responsive */
@media screen and (max-width: 480px) {
    .purchase-content {
        padding: 20px 16px 16px;
        gap: 16px;
    }
    
    .purchase-title {
        font-size: 20px;
    }
    
    .purchase-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* ===== CHAT MODAL STYLES ===== */

.chat-modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--dark-gray);
    background-image: url('/static/pic/photo_2025-12-03_18-46-30.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active .chat-modal {
    opacity: 1;
}

/* Chat Header */
/* Chat Blogger Badge - Floating rounded badge */
.chat-blogger-badge {
    position: absolute;
    top: 60px; /* Опущен ниже для мобильного экрана */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--search-gray);
    padding: 10px 16px 10px 10px;
    border-radius: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-blogger-badge-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Messages Container */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-top: 100px; /* Место для плавающего badge */
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Message Bubbles */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.received {
    align-self: flex-start;
    align-items: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.5;
}

.chat-message.sent .message-bubble {
    background: var(--primary-blue);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-message.received .message-bubble {
    background: #2a2a2a;
    color: var(--white);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

/* Empty State */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
}

.chat-empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-empty-state p {
    font-size: 16px;
}

/* Chat Input Container */
.chat-input-container {
    position: sticky;
    bottom: 28px; /* Поднимаем поле ввода выше от нижнего края */
    left: 0;
    width: 100%;
    padding: 0 16px;
    background: transparent;
    border-top: none;
    z-index: 10;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.chat-input-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.5);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 6px 8px;
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.chat-send-btn {
    background: var(--primary-blue);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

.chat-send-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Hide Scrollbar for Chat */
.chat-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* iOS-specific chat layout tweaks */
html.ios-platform .chat-blogger-badge {
    top: 76px;
}

html.ios-platform .chat-messages {
    padding-top: 132px;
}

html.ios-platform .chat-input-container {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
}

/* Mobile Adjustments */
@media screen and (max-width: 480px) {
    .chat-modal {
        max-width: 100%;
    }
    
    .chat-blogger-badge {
        top: 40px; /* Меньше отступ на мобильном */
        font-size: 15px;
        padding: 8px 14px 8px 8px;
    }
    
    .chat-blogger-badge-avatar {
        width: 22px;
        height: 22px;
    }
    
    .chat-messages {
        padding: 16px;
        padding-top: 96px; /* Место для badge + небольшой отступ до первого сообщения */
    }
    
    .chat-input-container {
        padding: 0 12px;
        bottom: 22px; /* Чуть выше на мобильном, чтобы не упираться в край экрана */
    }
    
    .chat-message {
        max-width: 85%;
    }
}

/* ===== CHATS LIST STYLES (Chat Page) ===== */

.chats-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 80px 0;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-item:hover {
    background: var(--search-gray);
}

.chat-item:active {
    background: var(--filter-gray);
}

.chat-item-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--search-gray);
}

.chat-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.chat-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-time {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.chat-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.chat-item-message {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.chat-item.unread .chat-item-message {
    color: var(--text-primary);
    font-weight: 500;
}

.chat-item-badge {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Empty State for Chats List */
.chats-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.chats-empty-state .empty-icon {
    margin-bottom: 20px;
}

.chats-empty-state .empty-icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: 0.5;
}

.chats-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.chats-empty-state p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 280px;
}

.chats-empty-state .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Adjustments */
@media screen and (max-width: 480px) {
    .chat-item {
        padding: 10px 16px;
    }
    
    .chat-item-avatar {
        width: 48px;
        height: 48px;
    }
}

