/* ========================================
   FLOATING BOTTOM NAVIGATION
   ======================================== */

.floating-nav-container {
    position: fixed;
    bottom: calc(var(--safe-area-bottom) + 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    pointer-events: none;
}

/* Main floating menu plashka */
.floating-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 240px;
    height: 64px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: all;
}

/* Navigation items - NO individual backgrounds */
.nav-item-floating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0; /* NO individual border radius */
    background: none; /* NO individual background */
    border: none;
    min-width: 60px;
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.nav-item-floating::before {
    content: '';
    position: absolute;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    width: var(--ripple-size, 0);
    height: var(--ripple-size, 0);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-floating.ripple::before {
    transform: scale(1);
    opacity: 1;
    animation: ripple-fade 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ripple-fade {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Icons - simple, no backgrounds */
.nav-icon-floating {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

/* Labels - simple text */
.nav-label-floating {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

/* Active state - subtle static styling */
.nav-item-floating.active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.nav-item-floating.active .nav-icon-floating {
    color: rgba(255, 255, 255, 0.9);
}

.nav-item-floating.active .nav-label-floating {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Hover - subtle */
.nav-item-floating:hover .nav-icon-floating {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item-floating:hover .nav-label-floating {
    color: rgba(255, 255, 255, 0.8);
}

/* Profile Avatar - separate circle */
.profile-avatar-floating {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-avatar-floating:hover {
    transform: scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.profile-avatar-floating:active {
    transform: scale(0.98);
}

.avatar-content {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .floating-nav-container {
        bottom: calc(var(--safe-area-bottom) + 16px);
        gap: 16px;
    }
    
    .floating-nav {
        width: 220px;
        height: 60px;
    }
    
    .nav-icon-floating {
        width: 18px;
        height: 18px;
    }
    
    .nav-label-floating {
        font-size: 9px;
    }
    
    .profile-avatar-floating {
        width: 52px;
        height: 52px;
    }
    
    .avatar-content {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ========================================
   PREMIUM ANIMATIONS
   ======================================== */

/* Smooth transitions for animated elements */
.channel-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .channel-card,
    .main-content,
    .screen {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Elastic scroll container */
.screen,
.main-content {
    will-change: transform;
}

/* Hardware acceleration for smooth animations */
.channel-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ========================================
   BALANCE BLOCK
   ======================================== */

.search-screen {
    position: relative;
    min-height: 100vh;
    padding: 16px;
}

.balance-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0;
}

/* Screen Header Title */
.screen-header-section {
    margin-bottom: 20px;
    padding: 0 4px;
}

.screen-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.screen-section-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin: 0;
    letter-spacing: -0.01em;
}

/* App Logo */
.app-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(37, 99, 235, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.app-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.6;
}

.logo-icon {
    width: 26px;
    height: 26px;
    color: rgba(96, 165, 250, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

.app-logo:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(37, 99, 235, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 12px 32px rgba(59, 130, 246, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* App Title */
.app-title {
    flex: 1;
    text-align: center;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    position: relative;
    padding: 0 12px;
}

.app-title::before {
    content: 'PULSAR MARKET';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 35%,
        rgba(180, 180, 180, 0.35) 45%,
        rgba(200, 200, 200, 0.5) 50%,
        rgba(180, 180, 180, 0.35) 55%,
        transparent 65%,
        transparent 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-move 18s ease-in-out infinite;
    animation-delay: var(--animation-delay, 0ms);
    z-index: 1;
}

.app-title::after {
    content: 'PULSAR MARKET';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(
        70deg,
        transparent 0%,
        transparent 35%,
        rgba(180, 180, 180, 0.35) 45%,
        rgba(200, 200, 200, 0.5) 50%,
        rgba(180, 180, 180, 0.35) 55%,
        transparent 65%,
        transparent 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: 
        shimmer-move-alt 20s ease-in-out infinite,
        shimmer-fade 24s ease-in-out infinite;
    animation-delay: var(--animation-delay, 0ms), var(--animation-delay, 0ms);
    z-index: 2;
}

@keyframes shimmer-move {
    0% {
        background-position: -150% 0;
    }
    15% {
        background-position: -100% 0;
    }
    25% {
        background-position: -60% 0;
    }
    35% {
        background-position: -20% 0;
    }
    45% {
        background-position: 20% 0;
    }
    55% {
        background-position: 60% 0;
    }
    65% {
        background-position: 100% 0;
    }
    75% {
        background-position: 140% 0;
    }
    85% {
        background-position: 180% 0;
    }
    95% {
        background-position: 220% 0;
    }
    100% {
        background-position: 250% 0;
    }
}

@keyframes shimmer-move-alt {
    0% {
        background-position: 250% 0;
    }
    12% {
        background-position: 210% 0;
    }
    22% {
        background-position: 170% 0;
    }
    32% {
        background-position: 130% 0;
    }
    42% {
        background-position: 90% 0;
    }
    52% {
        background-position: 50% 0;
    }
    62% {
        background-position: 10% 0;
    }
    72% {
        background-position: -30% 0;
    }
    82% {
        background-position: -70% 0;
    }
    92% {
        background-position: -110% 0;
    }
    100% {
        background-position: -150% 0;
    }
}

@keyframes shimmer-fade {
    0%, 100% {
        opacity: 0;
    }
    25% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0.6;
    }
}

/* Disable animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .app-title {
        color: rgba(255, 255, 255, 0.8);
    }
    .app-title::before {
        animation: none;
        background-position: 50% 50%;
    }
}

.balance-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(37, 99, 235, 0.1) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.balance-content:active {
    transform: scale(0.95);
}

.balance-content:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 
        0 12px 32px rgba(59, 130, 246, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.balance-amount {
    font-size: 17px;
    font-weight: var(--weight-bold);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.balance-skeleton {
    width: 80px;
    height: 20px;
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(59, 130, 246, 0.2) 50%,
        rgba(59, 130, 246, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Dark theme adjustments */
[data-theme="dark"] .app-logo {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .app-logo:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .balance-content {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .balance-content:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========================================
   SEARCH BAR
   ======================================== */

.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 6px;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 8px 24px rgba(59, 130, 246, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Dark theme */
[data-theme="dark"] .search-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 8px 24px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-tertiary);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--color-accent);
}

.search-input {
    flex: 1;
    padding: 14px 16px 14px 48px;
    background: transparent;
    border: none;
    font-size: 15px;
    color: var(--color-text-primary);
    outline: none;
    font-family: var(--font-sans);
}

.search-input::placeholder {
    color: var(--color-text-tertiary);
}

/* Dark theme */
[data-theme="dark"] .search-icon {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .search-input-wrapper:focus-within .search-icon {
    color: rgba(96, 165, 250, 0.8);
}

[data-theme="dark"] .search-input {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.search-submit-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========================================
   SEARCH CHANNELS BUTTON
   ======================================== */

.search-channels-btn {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-channels-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.search-channels-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.4), 
        transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-channels-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(59, 130, 246, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.search-channels-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.search-channels-btn:active::after {
    opacity: 1;
    transform: scale(2);
    transition: all 0s;
}

/* Dark theme adjustments */
[data-theme="dark"] .search-channels-btn {
    box-shadow: 
        0 4px 14px rgba(59, 130, 246, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .search-channels-btn:hover {
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.5),
        0 3px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:active::before {
    opacity: 1;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:active {
    background: var(--color-bg-tertiary);
    transform: scale(0.97);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:active {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.channel-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    position: relative;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.channel-card:active {
    transform: scale(0.99);
}

/* Dark theme */
[data-theme="dark"] .channel-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Main Grid: Avatar+Seller | Name+Desc | Stats */
.channel-main-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-sm);
    align-items: start;
    margin-bottom: 0;
}

/* LEFT COLUMN - Avatar + Seller */
.channel-left-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.channel-avatar-box {
    min-width: 80px;
    max-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
    padding: 0;
}

.channel-avatar-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent);
}

.avatar-text {
    color: white;
    font-weight: var(--weight-bold);
    font-size: 28px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.channel-seller-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seller-header {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.seller-label {
    font-size: 10px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seller-name-compact {
    font-size: 12px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

.seller-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--color-text-tertiary);
    white-space: nowrap;
}

.seller-rating-compact {
    font-size: 10px;
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
}

.seller-sales-compact {
    font-size: 10px;
    font-weight: var(--weight-normal);
    color: var(--color-text-tertiary);
}

.seller-sales-compact strong {
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

.seller-meta-label {
    color: var(--color-text-tertiary);
    font-weight: var(--weight-normal);
}

.seller-meta-value {
    color: var(--color-text-primary);
    font-weight: var(--weight-medium);
}

/* CENTER COLUMN - Name, Category, Description */
.channel-center-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.channel-header-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
}

.channel-name-main {
    font-size: 18px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 3px;
}

.channel-category-main {
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-weight: var(--weight-medium);
    line-height: 1.4;
}

.channel-description-main {
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-surface));
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: visible;
    min-height: 70px;
}

.channel-description-main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent), rgba(147, 51, 234, 0.6));
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.description-label {
    font-size: 9px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.description-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: block;
    overflow: visible;
}

/* RIGHT COLUMN - Stats */
.channel-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.favorite-btn-inline {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--color-surface-elevated);
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-spring);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    margin-bottom: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.favorite-btn-inline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.favorite-btn-inline:active {
    transform: scale(0.92);
}

.favorite-btn-inline:active::before {
    opacity: 1;
}

.favorite-btn-inline.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3),
                0 2px 8px rgba(239, 68, 68, 0.2);
}

.favorite-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.stat-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.stat-label-right {
    font-size: 8px;
    color: var(--color-text-tertiary);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.stat-period-small {
    font-size: 7px;
    color: var(--color-text-tertiary);
    font-weight: var(--weight-normal);
    text-transform: lowercase;
}

.stat-value-right {
    font-size: 22px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* Actions */
.channel-actions {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 10px;
    margin-top: 8px;
}

.btn-details {
    font-weight: var(--weight-semibold);
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-order {
    position: relative;
    overflow: hidden;
    padding: 10px 20px;
    border-radius: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-order::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-order:active::before {
    opacity: 1;
}

.btn-price {
    font-size: 15px;
    font-weight: var(--weight-bold);
    letter-spacing: -0.01em;
}

.seller-sales-compact strong {
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

/* Expanded Tabs */
.expanded-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.tab-button {
    padding: var(--space-sm) var(--space-lg);
    background: none;
    border: none;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition-fast);
    position: relative;
}

.tab-button.active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stats-placeholder {
    padding: var(--space-xl);
    text-align: center;
    color: var(--color-text-tertiary);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
}

.stats-placeholder-text {
    font-size: var(--text-base);
    font-style: italic;
}
.channel-card.expanded {
    margin-bottom: var(--space-2xl);
}

.channel-expanded-content {
    display: none;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.channel-card.expanded .channel-expanded-content {
    display: block;
    animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-section {
    margin-bottom: var(--space-xl);
}

.pricing-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.pricing-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    max-height: 300px;
    overflow-y: auto;
}

.pricing-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.pricing-header {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    padding: var(--space-sm);
    text-align: center;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.pricing-cell {
    padding: var(--space-sm);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.pricing-cell:hover {
    background: var(--color-bg-tertiary);
}

.pricing-cell.selected {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

.restrictions-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--color-border-light);
    margin-top: var(--space-md);
}

.restrictions-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.restrictions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.restriction-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-primary);
    font-weight: var(--weight-medium);
}

/* ========================================
   SUBSCRIBERS RANGE SLIDER
   ======================================== */

.subscribers-range-menu {
    padding: 0;
}

.range-slider-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Range Inputs */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.range-label {
    font-size: 10px;
    font-weight: var(--weight-medium);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.range-input {
    width: 100%;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    outline: none;
    transition: all var(--transition-fast);
    text-align: center;
}

.range-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.range-input::-webkit-inner-spin-button,
.range-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-separator {
    font-size: 14px;
    font-weight: var(--weight-medium);
    color: var(--color-text-tertiary);
    margin-top: 14px;
}

/* Range Slider */
.range-slider-wrapper {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    pointer-events: none;
}

.range-slider-range {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), rgba(147, 51, 234, 0.8));
    border-radius: 2px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.25);
}

.range-slider-thumb {
    position: absolute;
    width: 100%;
    height: 32px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.range-slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 
        0 2px 6px rgba(59, 130, 246, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.range-slider-thumb::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 
        0 2px 6px rgba(59, 130, 246, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.range-slider-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    box-shadow: 
        0 3px 10px rgba(59, 130, 246, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

.range-slider-thumb::-moz-range-thumb:hover {
    transform: scale(1.12);
    box-shadow: 
        0 3px 10px rgba(59, 130, 246, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

.range-slider-thumb::-webkit-slider-thumb:active {
    transform: scale(1.05);
    box-shadow: 
        0 1px 4px rgba(59, 130, 246, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.range-slider-thumb::-moz-range-thumb:active {
    transform: scale(1.05);
    box-shadow: 
        0 1px 4px rgba(59, 130, 246, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Apply Button */
.range-apply-btn {
    width: 100%;
    height: 36px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 0;
}

/* Dark theme */
[data-theme="dark"] .range-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .range-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent);
}

[data-theme="dark"] .range-slider-track {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .range-slider-thumb::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .range-slider-thumb::-moz-range-thumb {
    background: rgba(255, 255, 255, 0.9);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .range-slider-range,
    .range-slider-thumb::-webkit-slider-thumb,
    .range-slider-thumb::-moz-range-thumb {
        transition: none !important;
    }
}

.filters-section {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Dark theme */
[data-theme="dark"] .filters-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
}

.filter-half {
    margin-bottom: 0 !important;
}

.section-title {
    font-size: 11px;
    font-weight: var(--weight-bold);
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Dark theme */
[data-theme="dark"] .section-title {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.filter-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Dark theme */
[data-theme="dark"] .filter-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .filter-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.filter-button:active {
    background: rgba(245, 245, 245, 1);
    transform: scale(0.98);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.filter-button.open {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.15),
        0 0 24px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Dark theme */
[data-theme="dark"] .filter-button:active {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .filter-button.open {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.2),
        0 0 24px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-button svg {
    transition: transform var(--transition-fast);
}

.filter-button.open svg {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}

.dropdown-menu.open {
    max-height: 320px;
    opacity: 1;
    overflow-y: auto;
    transform: translateY(0);
}

/* Dark theme */
[data-theme="dark"] .dropdown-menu {
    background: rgba(20, 20, 40, 0.98);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dropdown-search {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.dropdown-search input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 14px;
    color: var(--color-text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.dropdown-search input::placeholder {
    color: var(--color-text-tertiary);
}

.dropdown-search input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Dark theme */
[data-theme="dark"] .dropdown-search {
    background: rgba(20, 20, 40, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .dropdown-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .dropdown-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .dropdown-search input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.dropdown-item {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-text-primary);
}

.dropdown-item.active {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.12) 0%, 
        rgba(59, 130, 246, 0.06) 100%);
    color: var(--color-accent);
    font-weight: 600;
    border-left: 3px solid rgba(59, 130, 246, 0.8);
    padding-left: 15px;
}

.dropdown-item:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.05);
}

/* Dark theme */
[data-theme="dark"] .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .dropdown-item.active {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(59, 130, 246, 0.08) 100%);
    color: rgba(96, 165, 250, 1);
}

[data-theme="dark"] .dropdown-item:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Format Buttons - Horizontal Scroll */
.format-buttons {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-xs) 0;
    margin: 0 calc(-1 * var(--space-lg));
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

.format-buttons::-webkit-scrollbar {
    display: none;
}

.format-buttons::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, var(--color-bg-primary), transparent);
    pointer-events: none;
    opacity: 0.8;
}

.format-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 18px;
    font-size: 12px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.format-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.format-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(135deg, 
        var(--color-accent), 
        rgba(147, 51, 234, 0.8),
        rgba(236, 72, 153, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.format-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.4), 
        transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.format-btn:active::after {
    opacity: 1;
    transform: scale(2);
    transition: all 0s;
}

.format-btn:active {
    transform: scale(0.94);
}

.format-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
    animation: soft-glow 2s ease-in-out infinite alternate;
}

.format-btn.active::before {
    opacity: 0;
}

@keyframes soft-glow {
    0% {
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.4),
            0 0 40px rgba(59, 130, 246, 0.2),
            0 4px 12px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 
            0 0 28px rgba(59, 130, 246, 0.6),
            0 0 56px rgba(59, 130, 246, 0.3),
            0 6px 16px rgba(59, 130, 246, 0.4);
    }
}

@keyframes soft-glow-white {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.4),
            0 0 40px rgba(255, 255, 255, 0.2),
            0 4px 12px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 0 28px rgba(255, 255, 255, 0.6),
            0 0 56px rgba(255, 255, 255, 0.3),
            0 6px 16px rgba(255, 255, 255, 0.4);
    }
}

/* Alternative white glow styles */
.format-btn.active.white-glow {
    animation: soft-glow-white 2s ease-in-out infinite alternate;
}

.quantity-btn.active.white-glow {
    animation: soft-glow-white 2.5s ease-in-out infinite alternate;
}

.category-card.active.white-glow {
    animation: soft-glow-white 2.5s ease-in-out infinite alternate;
}

/* Quantity Section */
.quantity-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}

.quantity-section.active {
    max-height: 200px;
    opacity: 1;
    margin-bottom: var(--space-lg);
    transform: translateY(0);
}

.quantity-buttons {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-xs) 0;
    margin: 0 calc(-1 * var(--space-lg));
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

.quantity-buttons::-webkit-scrollbar {
    display: none;
}

.quantity-buttons::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, var(--color-bg-primary), transparent);
    pointer-events: none;
    opacity: 0.8;
}

.quantity-btn {
    flex-shrink: 0;
    min-width: 60px;
    padding: 6px 10px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    font-size: 13px;
    font-weight: var(--weight-bold);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
    text-align: center;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.quantity-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, 
        var(--color-accent), 
        rgba(147, 51, 234, 0.8),
        rgba(236, 72, 153, 0.6));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.quantity-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.5), 
        transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-btn:active::after {
    opacity: 1;
    transform: scale(2.5);
    transition: all 0s;
}

.quantity-btn:active {
    transform: scale(0.92);
}

.quantity-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 
        0 0 24px rgba(59, 130, 246, 0.5),
        0 0 48px rgba(59, 130, 246, 0.25),
        0 6px 16px rgba(59, 130, 246, 0.35);
    transform: scale(1.03);
    animation: soft-glow 2.5s ease-in-out infinite alternate;
}

.quantity-btn.active::before {
    opacity: 0;
}

/* Removed old gradient animations */

/* Category Grid in Bottom Sheet */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--space-xs);
}

.category-card {
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    user-select: none;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.category-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.category-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-xl);
    padding: 3px;
    background: linear-gradient(135deg, 
        var(--color-accent), 
        rgba(147, 51, 234, 0.8),
        rgba(236, 72, 153, 0.6));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.4), 
        transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:active::after {
    opacity: 1;
    transform: scale(2.5);
    transition: all 0s;
}

.category-card:active {
    transform: scale(0.94);
}

.category-card.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 
        0 0 24px rgba(59, 130, 246, 0.5),
        0 0 48px rgba(59, 130, 246, 0.25),
        0 6px 16px rgba(59, 130, 246, 0.35);
    transform: scale(1.02);
    animation: soft-glow 2.5s ease-in-out infinite alternate;
}

.category-card.active::before {
    opacity: 0;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.chip {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.chip:active {
    transform: scale(0.95);
}

.chip.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* ========================================
   BOTTOM SHEET
   ======================================== */

.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--color-bg-glass-heavy);
    backdrop-filter: blur(var(--blur-xl));
    -webkit-backdrop-filter: blur(var(--blur-xl));
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-xl) + var(--safe-area-bottom));
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2),
                0 -2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.bottom-sheet.active {
    transform: translateY(0);
    animation: sheet-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sheet-bounce {
    0% {
        transform: translateY(100%);
    }
    60% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    transition: all var(--transition-fast);
}

.bottom-sheet.active .sheet-handle {
    background: linear-gradient(90deg, 
        var(--color-accent), 
        rgba(147, 51, 234, 0.8));
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.sheet-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
    background: linear-gradient(135deg, 
        var(--color-text-primary), 
        var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sheet-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ========================================
   SKELETON LOADERS
   ======================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-tertiary) 0%,
        var(--color-surface) 50%,
        var(--color-bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 200px;
    margin-bottom: var(--space-lg);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton-text.large {
    height: 24px;
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.empty-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 280px;
    line-height: 1.6;
}

/* ========================================
   SORT MENU
   ======================================== */

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 16px;
    padding: 0;
}

.results-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.sort-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.sort-button:active {
    transform: scale(0.97);
    background: rgba(245, 245, 245, 1);
}

.sort-button.open {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.sort-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sort-button.open svg {
    transform: rotate(180deg);
}

/* Dark theme */
[data-theme="dark"] .results-count {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .sort-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sort-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sort-button:active {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .sort-button.open {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

/* ========================================
   SECTION GRID (More Screen)
   ======================================== */

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-card {
    aspect-ratio: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.section-card:active {
    transform: scale(0.95);
    background: var(--color-bg-tertiary);
}

.section-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.section-label {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
        padding-bottom: calc(80px + var(--safe-area-bottom));
    }
    
    .filters-section {
        margin-bottom: 4px;
    }
    
    .filters-row {
        gap: 4px;
        margin-bottom: 4px;
    }
    
    .filter-group {
        margin-bottom: 4px;
    }
    
    .section-title {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .filter-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .format-btn {
        padding: 5px 8px;
        height: 28px;
        font-size: 11px;
    }
    
    .quantity-btn {
        padding: 5px 8px;
        height: 28px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .search-channels-btn {
        height: 28px;
        margin-top: 4px;
        font-size: 13px;
    }
    
    .search-bar {
        margin-bottom: 8px;
    }
    
    .sort-bar {
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .balance-block {
        margin-bottom: 8px;
    }
    
    .channel-card {
        margin-bottom: 8px;
        padding: 10px;
    }
    
    .channel-main-grid {
        grid-template-columns: 100px 1fr;
        gap: 8px;
    }
    
    .channel-avatar-box {
        min-width: 70px;
        max-width: 70px;
        width: 70px;
        height: 70px;
    }
    
    .avatar-text {
        font-size: 24px;
    }
    
    .channel-actions {
        gap: 8px;
        margin-top: 6px;
    }
    
    .btn-details,
    .btn-order {
        height: 36px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

/* Stats Row - horizontal layout */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    margin-top: 0;
    padding: 0;
}

.stat-item-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    flex: 1;
}

.stat-label-inline {
    font-size: 8px;
    color: var(--color-text-tertiary);
    font-weight: var(--weight-bold);
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.stat-value-inline {
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.favorite-btn-inline {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: var(--color-surface-elevated);
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-spring);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.favorite-btn-inline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.favorite-btn-inline:active {
    transform: scale(0.9);
}

.favorite-btn-inline:active::before {
    opacity: 1;
}

.favorite-btn-inline.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3),
                0 2px 8px rgba(239, 68, 68, 0.2);
}

.favorite-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}


/* ========================================
   MODAL OVERLAY
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-lg);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ========================================
   TELEGRAM LOGIN BUTTON
   ======================================== */

.profile-card {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
}

.profile-avatar-wrapper {
    margin-bottom: var(--space-lg);
}

.profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 24px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.profile-role {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.glass-login-btn-compact {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: var(--space-md) auto 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(42, 171, 238, 0.9) 0%, 
        rgba(34, 158, 217, 0.9) 100%);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(42, 171, 238, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-login-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.glass-login-btn-compact:hover::before {
    left: 100%;
}

.glass-login-btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(42, 171, 238, 0.35),
        0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glass-login-btn-compact:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 12px rgba(42, 171, 238, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-login-btn-compact .glass-login-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.telegram-icon-small {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.glass-login-btn {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(42, 171, 238, 0.9) 0%, 
        rgba(34, 158, 217, 0.9) 100%);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(42, 171, 238, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.glass-login-btn:hover::before {
    left: 100%;
}

.glass-login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 1;
    transition: opacity 0.3s ease;
}

.glass-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(42, 171, 238, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glass-login-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 24px rgba(42, 171, 238, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-login-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.telegram-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Dark theme adjustments */
[data-theme="dark"] .glass-login-btn {
    background: linear-gradient(135deg, 
        rgba(42, 171, 238, 1) 0%, 
        rgba(34, 158, 217, 1) 100%);
    box-shadow: 
        0 8px 32px rgba(42, 171, 238, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-login-btn:hover {
    box-shadow: 
        0 12px 40px rgba(42, 171, 238, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animation on load */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-login-btn {
    animation: slideInUp 0.5s ease-out;
}

.telegram-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(42, 171, 238, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.telegram-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.telegram-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(42, 171, 238, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.telegram-login-btn:hover::before {
    opacity: 1;
}

.telegram-login-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(42, 171, 238, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Dark theme adjustments */
[data-theme="dark"] .telegram-login-btn {
    box-shadow: 
        0 4px 12px rgba(42, 171, 238, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .telegram-login-btn:hover {
    box-shadow: 
        0 6px 20px rgba(42, 171, 238, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4);
}


/* ========================================
   LOADING SPINNER
   ======================================== */

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 4px solid var(--color-border-light);
    border-top: 4px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    gap: var(--space-lg);
}

.loading-state .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border-light);
    border-top: 4px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-state p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ========================================
   MY CHANNELS SCREEN
   ======================================== */

.my-channels-screen {
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-3xl) + var(--safe-area-bottom));
}

/* Header */
.my-channels-header {
    margin-bottom: var(--space-2xl);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.header-title-section {
    flex: 1;
}

.screen-title {
    font-size: 28px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.channels-count {
    font-size: 14px;
    font-weight: var(--weight-medium);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Empty State */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-2xl);
}

.lottie-animation {
    width: 200px;
    height: 200px;
    margin-bottom: var(--space-2xl);
}

.lottie-animation svg {
    width: 100%;
    height: 100%;
    color: var(--color-text-tertiary);
    opacity: 0.5;
}

.empty-state-content {
    text-align: center;
    max-width: 360px;
}

.empty-title {
    font-size: 22px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.empty-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.btn-large {
    padding: var(--space-md) var(--space-2xl);
    font-size: 16px;
    height: 52px;
}

/* Channels List */
.channels-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* My Channel Card */
.my-channel-card {
    padding: var(--space-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.my-channel-card.expanded {
    padding-bottom: var(--space-xl);
}

.channel-main-section {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.channel-info-section {
    flex: 1;
    min-width: 0;
}

.channel-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.channel-title-group {
    flex: 1;
    min-width: 0;
}

.channel-name-with-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.channel-name {
    font-size: 18px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.channel-username {
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-weight: var(--weight-medium);
}

/* Status Indicator with Tooltip */
.status-indicator-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: help;
    transition: all 0.3s ease;
}

.status-indicator.active {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.status-indicator.paused {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.status-indicator:hover {
    transform: scale(1.2);
}

/* Tooltip - Right Side */
.status-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    padding: 12px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 200px;
}

.status-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.92);
}

.status-indicator-wrapper:hover .status-tooltip,
.status-indicator-wrapper.show-tooltip .status-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.status-tooltip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.status-tooltip-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.active {
    background: #22c55e;
}

.status-dot.paused {
    background: #ef4444;
}

.status-tooltip-text {
    font-size: 12px;
    color: white;
    font-weight: var(--weight-medium);
}

/* Dark theme tooltip */
[data-theme="dark"] .status-tooltip {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .status-tooltip::before {
    border-right-color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .status-tooltip-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .status-tooltip-text {
    color: #0a0a0a;
}

/* Remove old status styles */
.channel-status {
    display: none;
}

/* Stats Row */
.channel-stats-row {
    display: flex;
    gap: var(--space-lg);
}

.stat-item-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item-compact .stat-label {
    font-size: 9px;
    font-weight: var(--weight-bold);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-item-compact .stat-value {
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

/* Actions Row - Single Row */
.channel-actions-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
}

/* Remove old grid */
.channel-actions-grid {
    display: none;
}

/* Publish Button - Glass Style */
.btn-publish {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 15px;
    font-weight: var(--weight-bold);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--space-md);
    height: 48px;
}

.btn-success-glass {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.15) 0%, 
        rgba(22, 163, 74, 0.1) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
    box-shadow: 
        0 4px 16px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success-glass:hover {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.25) 0%, 
        rgba(22, 163, 74, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 
        0 6px 20px rgba(34, 197, 94, 0.3),
        0 0 24px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-success-glass:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-danger-glass {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(220, 38, 38, 0.1) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    box-shadow: 
        0 4px 16px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger-glass:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.25) 0%, 
        rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.3),
        0 0 24px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-danger-glass:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Dark theme glass buttons */
[data-theme="dark"] .btn-success-glass {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

[data-theme="dark"] .btn-success-glass:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .btn-danger-glass {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

[data-theme="dark"] .btn-danger-glass:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-details {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.btn-details:hover {
    color: var(--color-accent);
}

.details-icon {
    transition: transform var(--transition-fast);
}

/* Details Section - Hidden (now using modal) */
.channel-details-section {
    display: none;
}

.my-channel-card.expanded .channel-details-section {
    display: none;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.modal-title {
    font-size: 22px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
}

.modal-close-btn:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    transform: scale(1.05);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

/* Details Tabs */
.details-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    overflow-x: auto;
    scrollbar-width: none;
}

.details-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: var(--space-sm) var(--space-lg);
    background: none;
    border: none;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.tab-btn.active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

/* Pricing Panel */
.pricing-panel {
    padding: var(--space-md);
    background: var(--color-surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.pricing-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.pricing-title {
    font-size: 15px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

.btn-small {
    padding: var(--space-xs) var(--space-md);
    font-size: 13px;
    height: 32px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.pricing-item {
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
}

.pricing-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.pricing-label {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
    font-weight: var(--weight-medium);
}

.pricing-value {
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

/* Analytics Panel */
.analytics-panel {
    padding: var(--space-md);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.analytics-card {
    padding: var(--space-lg);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-fast);
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.analytics-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-light), rgba(147, 51, 234, 0.1));
    border-radius: var(--radius-lg);
    color: var(--color-accent);
}

.analytics-label {
    font-size: 11px;
    font-weight: var(--weight-medium);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.analytics-value {
    font-size: 22px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

/* Settings Panel */
.settings-panel {
    padding: var(--space-md);
}

.settings-group {
    margin-bottom: var(--space-xl);
}

.settings-group:last-child {
    margin-bottom: 0;
}

.setting-title {
    font-size: 13px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-size: 15px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.setting-description {
    font-size: 13px;
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Restrictions Edit */
.restrictions-edit {
    padding: var(--space-lg);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
}

.restrictions-tags-edit {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    min-height: 40px;
}

.restriction-tag-edit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-text-primary);
    font-weight: var(--weight-medium);
}

.remove-tag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.remove-tag-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.remove-tag-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 480px) {
    .my-channels-screen {
        padding: var(--space-md);
    }
    
    .screen-title {
        font-size: 24px;
    }
    
    .channel-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .my-channel-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .channel-status.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

[data-theme="dark"] .channel-status.paused {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

[data-theme="dark"] .pricing-panel,
[data-theme="dark"] .setting-item,
[data-theme="dark"] .restrictions-edit {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pricing-item,
[data-theme="dark"] .analytics-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .toggle-slider::before {
    background: rgba(255, 255, 255, 0.9);
}


/* ========================================
   MODAL HEADER FOR BOTTOM SHEET
   ======================================== */

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.modal-title {
    font-size: 20px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
}

.modal-close-btn:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    transform: scale(1.05);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

/* Dark theme */
[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}


/* ========================================
   COMPACT MODAL HEADER
   ======================================== */

.compact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
}

.compact-modal-title {
    font-size: 18px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.compact-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
    padding: 0;
}

.compact-modal-close:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    transform: scale(1.05);
}

.compact-modal-close:active {
    transform: scale(0.95);
}

/* ========================================
   COMPACT STATS PANEL
   ======================================== */

.stats-panel-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stats-row-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.stat-card-mini {
    padding: var(--space-md);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-mini-label {
    font-size: 11px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.stat-mini-value {
    font-size: 20px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

/* Dark theme */
[data-theme="dark"] .compact-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .compact-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stat-card-mini {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ========================================
   CENTER MODAL (вместо Bottom Sheet)
   ======================================== */

.center-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.center-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.center-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

/* Dark theme */
[data-theme="dark"] .center-modal {
    background: rgba(20, 20, 20, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.center-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

[data-theme="dark"] .center-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.center-modal-title {
    font-size: 20px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.center-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.center-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
    transform: scale(1.05);
}

.center-modal-close:active {
    transform: scale(0.95);
}

[data-theme="dark"] .center-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .center-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.center-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    -webkit-overflow-scrolling: touch;
}

/* Стили для табов внутри модального окна */
.center-modal .details-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
}

[data-theme="dark"] .center-modal .details-tabs {
    background: rgba(255, 255, 255, 0.05);
}

.center-modal .tab-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.center-modal .tab-btn.active {
    background: white;
    color: var(--color-text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .center-modal .tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

.center-modal .tab-panel {
    display: none;
}

.center-modal .tab-panel.active {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    border-radius: 16px;
    padding: 20px;
    min-height: 400px;
}

[data-theme="dark"] .center-modal .tab-panel.active {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 58, 138, 0.4) 100%);
}

/* Responsive */
@media (max-width: 480px) {
    .center-modal {
        width: calc(100% - 24px);
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .center-modal-header {
        padding: 16px 20px;
    }
    
    .center-modal-title {
        font-size: 18px;
    }
    
    .center-modal-content {
        padding: 16px 20px;
    }
}

/* ========================================
   MY CHANNELS - MODERN PRICING PANEL
   ======================================== */

.pricing-panel-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pricing-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .pricing-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.pricing-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pricing-section-header svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.pricing-section-header h3 {
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.pricing-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.price-input-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.price-input-card:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .price-input-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .price-input-card:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.price-input-label {
    font-size: 12px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input {
    width: 100%;
    padding: 8px 28px 8px 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    outline: none;
}

.price-input::placeholder {
    color: var(--color-text-tertiary);
    font-weight: var(--weight-normal);
}

.price-currency {
    position: absolute;
    right: 8px;
    font-size: 14px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-tertiary);
}

.btn-save-prices {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: var(--weight-bold);
}

/* ========================================
   REDESIGNED PRICING PANEL (Clean & Compact)
   ======================================== */

.pricing-panel-redesign {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pricing-section-redesign {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .pricing-section-redesign {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-title-redesign {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.section-title-redesign svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.section-title-redesign span {
    font-size: 14px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.section-hint {
    font-size: 11px !important;
    font-weight: var(--weight-medium) !important;
    color: var(--color-text-tertiary) !important;
    margin-left: auto;
}

.pricing-cards-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.compact-price-card {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.compact-price-card:focus-within {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] .compact-price-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .compact-price-card:focus-within {
    background: rgba(0, 0, 0, 0.4);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.compact-card-label {
    font-size: 10px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.compact-price-input {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: var(--weight-bold);
    color: #d1d5db;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.compact-price-input::placeholder {
    color: #e5e7eb;
}

.compact-price-input.has-value,
.compact-price-input:not(:placeholder-shown) {
    color: #3b82f6;
}

[data-theme="dark"] .compact-price-input {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .compact-price-input.has-value,
[data-theme="dark"] .compact-price-input:not(:placeholder-shown) {
    color: #60a5fa;
}

/* ========================================
   MY CHANNELS - MODERN STATS PANEL
   ======================================== */

.stats-panel-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card-modern {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 16px;
    padding: 20px;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.stat-card-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.08));
    border-color: rgba(34, 197, 94, 0.3);
}

.stat-card-info {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.08));
    border-color: rgba(168, 85, 247, 0.3);
}

.stat-card-warning {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(249, 115, 22, 0.08));
    border-color: rgba(251, 146, 60, 0.3);
}

[data-theme="dark"] .stat-card-modern {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.06));
    border-color: rgba(59, 130, 246, 0.25);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .stat-card-icon {
    background: rgba(255, 255, 255, 0.1);
}

.stat-card-primary .stat-card-icon svg {
    color: #3b82f6;
}

.stat-card-success .stat-card-icon svg {
    color: #22c55e;
}

.stat-card-info .stat-card-icon svg {
    color: #a855f7;
}

.stat-card-warning .stat-card-icon svg {
    color: #fb923c;
}

.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-label {
    font-size: 12px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    line-height: 1;
}

.stats-detailed {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .stats-detailed {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.stats-detailed-title {
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 16px 0;
}

.stats-row-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stats-item-detailed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .stats-item-detailed {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.stats-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-icon-active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stats-icon-completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stats-icon-canceled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stats-item-content {
    flex: 1;
    min-width: 0;
}

.stats-item-label {
    font-size: 11px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stats-item-value {
    font-size: 18px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

.completion-rate-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .completion-rate-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.completion-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
}

.completion-rate-value {
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-accent);
}

.completion-rate-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .completion-rate-bar {
    background: rgba(255, 255, 255, 0.1);
}

.completion-rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ========================================
   MY CHANNELS - CHANNEL CARDS
   ======================================== */

.my-channels-header {
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title-section {
    flex: 1;
}

.screen-title {
    font-size: 28px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 4px 0;
}

.channels-count {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: var(--weight-medium);
}

.my-channel-card {
    margin-bottom: 16px;
}

.channel-main-section {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.channel-info-section {
    flex: 1;
    min-width: 0;
}

.channel-header-row {
    margin-bottom: 12px;
}

.channel-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-name-with-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-name {
    font-size: 18px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

.status-indicator-wrapper {
    position: relative;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-indicator.paused {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.channel-username {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.channel-stats-row {
    display: flex;
    gap: 20px;
}

.stat-item-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 10px;
    font-weight: var(--weight-bold);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

.channel-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
}

.btn-publish {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: var(--weight-bold);
}

.btn-danger-glass {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #ef4444;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
}

.btn-danger-glass:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-success-glass {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    color: #22c55e;
    border: 1.5px solid rgba(34, 197, 94, 0.3);
}

.btn-success-glass:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
    border-color: rgba(34, 197, 94, 0.4);
}

/* Empty state */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.lottie-animation {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
}

.empty-title {
    font-size: 22px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.empty-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Settings panel */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-group {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .settings-group {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.setting-title {
    font-size: 14px;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

[data-theme="dark"] .setting-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-size: 15px;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.setting-description {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: var(--color-accent);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.restrictions-edit {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.restrictions-tags-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.restriction-tag-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    font-size: 13px;
    font-weight: var(--weight-medium);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.remove-tag-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.remove-tag-btn:hover {
    opacity: 0.7;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Add channel button in header */
.add-channel-button-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(37, 99, 235, 0.1) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.add-channel-button-top svg {
    color: rgba(96, 165, 250, 1);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

.add-channel-button-top:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 
        0 12px 32px rgba(59, 130, 246, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.add-channel-button-top:active {
    transform: scale(0.95);
}

[data-theme="dark"] .add-channel-button-top {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .add-channel-button-top:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Description edit container */
.description-edit-container {
    position: relative;
}

.channel-description-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: white;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    resize: vertical;
    transition: all 0.2s ease;
}

.channel-description-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.channel-description-input::placeholder {
    color: var(--color-text-tertiary);
}

[data-theme="dark"] .channel-description-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .channel-description-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.description-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-weight: var(--weight-medium);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="dark"] .description-counter {
    background: rgba(0, 0, 0, 0.5);
}

/* Restriction input */
.restriction-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: white;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    transition: all 0.2s ease;
}

.restriction-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.restriction-input::placeholder {
    color: var(--color-text-tertiary);
}

[data-theme="dark"] .restriction-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .restriction-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-save-settings {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: var(--weight-bold);
    margin-top: 8px;
}

/* Smooth transitions for screen changes */
.screen {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent layout shift */
.balance-block {
    min-height: 80px;
}

/* Channel description textarea */
.channel-description-input {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    resize: vertical;
    transition: all 0.3s ease;
}

.channel-description-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .channel-description-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .channel-description-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
}

.description-counter {
    text-align: right;
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 6px;
}

.char-count {
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
}

/* Restriction input */
.restriction-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.restriction-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .restriction-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .restriction-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
}

.add-restriction-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Save settings button */
.btn-save-settings {
    width: 100%;
    margin-top: 8px;
}

.description-edit-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Persistent App Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-bg-primary);
    padding: 16px;
    padding-top: calc(var(--safe-area-top) + 16px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .app-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.main-content {
    padding-top: 0;
}

.main-content.with-header {
    padding-top: 80px;
}

.screen.with-persistent-header {
    padding-top: 0;
}

.screen.with-persistent-header .balance-block {
    display: none;
}


/* Restrictions Selector */
.restrictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.restriction-option {
    padding: 10px 12px;
    border: 1.5px solid var(--color-border-light);
    border-radius: 8px;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.restriction-option:hover {
    border-color: var(--color-border);
    background: var(--color-bg-tertiary);
}

.restriction-option.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.restriction-option.active:hover {
    background: #ef4444;
    color: white;
}
