/* EiFaStars - Telegram Mini App Styles */
/* Premium Design v2.0 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


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

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(var(--primary-rgb), 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(var(--accent-pink-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(1.5px 1.5px at 10% 10%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(1.5px 1.5px at 20% 25%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 30% 5%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(1.5px 1.5px at 40% 35%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(2px 2px at 50% 15%, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1.5px 1.5px at 60% 45%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 70% 20%, rgba(var(--star-color-rgb), 1), transparent),
        radial-gradient(1.5px 1.5px at 80% 55%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(2px 2px at 90% 30%, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1.5px 1.5px at 15% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 25% 75%, rgba(var(--star-color-rgb), 0.95), transparent),
        radial-gradient(1.5px 1.5px at 35% 50%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(2px 2px at 45% 85%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(1.5px 1.5px at 55% 65%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 65% 95%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(3px 3px at 75% 70%, rgba(var(--star-color-rgb), 1), transparent),
        radial-gradient(1.5px 1.5px at 85% 80%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 95% 60%, rgba(255, 255, 255, 0.95), transparent),
        var(--gradient-bg);
    background-size: 100% 100%;
    animation: bgPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgPulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 0.55; } }

.floating-stars { position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 10; overflow: hidden; }
.floating-star { position: absolute; font-size: 18px; opacity: 0; animation: shootingStar 4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(var(--star-color-rgb), 0.8)); will-change: transform, opacity; }
.floating-star:nth-child(1) { top: 15%; right: -30px; animation-delay: 0s; animation-duration: 3.5s; }
.floating-star:nth-child(2) { top: 35%; right: -30px; animation-delay: 1.2s; animation-duration: 4s; font-size: 14px; }
.floating-star:nth-child(3) { top: 55%; right: -30px; animation-delay: 2.4s; animation-duration: 3.8s; font-size: 20px; }
.floating-star:nth-child(4) { top: 25%; right: -30px; animation-delay: 3.6s; animation-duration: 4.2s; font-size: 16px; }
.floating-star:nth-child(5) { top: 70%; right: -30px; animation-delay: 4.8s; animation-duration: 3.6s; font-size: 15px; }
.floating-star:nth-child(6) { top: 45%; right: -30px; animation-delay: 6s; animation-duration: 4.4s; font-size: 17px; }

@keyframes shootingStar {
    0% { transform: translate(0, 0) rotate(-45deg); opacity: 0; }
    10% { opacity: 0.8; }
    70% { opacity: 0.6; }
    100% { transform: translate(calc(-100vw - 60px), calc(60vh)) rotate(-45deg); opacity: 0; }
}

#app { width: 100%; min-height: 100vh; position: relative; z-index: 1; }
.screen { display: none; flex-direction: column; min-height: 100vh; padding-bottom: var(--nav-height); }
.screen.active { display: flex; }
#loading-screen { justify-content: center; align-items: center; background: transparent; }
.loader-container { text-align: center; }
.star-loader { width: 80px; height: 80px; margin: 0 auto 24px; }
.star-icon { width: 100%; height: 100%; fill: var(--star-color); filter: drop-shadow(0 0 20px var(--star-glow)); }
.star-icon.spinning { animation: spinGlow 1.5s ease-in-out infinite; }
@keyframes spinGlow { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }
.loading-text { color: var(--text-secondary); font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }

.app-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(var(--bg-dark-rgb), 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(var(--primary-rgb), 0.1); position: sticky; top: 0; z-index: 100; }
body:not(.main-screen-active) .app-header { display: none !important; }
.user-info { display: flex; align-items: center; gap: 14px; cursor: pointer; transition: transform 0.2s; }
.user-info:active { transform: scale(0.98); }
.user-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-purple); border: 2px solid rgba(var(--primary-rgb), 0.3); }
.user-avatar svg { width: 24px; height: 24px; fill: white; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details { display: flex; flex-direction: column; }
.user-name { font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }
.user-balance { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--star-color); font-weight: 700; }
.user-balance svg { width: 16px; height: 16px; fill: var(--star-color); }
.send-stars-btn { width: 48px; height: 48px; border-radius: 14px; background: var(--gradient-gold); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 20px rgba(var(--star-color-rgb), 0.4); }
.send-stars-btn:active { transform: scale(0.95); }
.send-stars-btn svg { width: 24px; height: 24px; fill: #1E1E2E; }

.promo-banner {
    margin: 16px;
    padding: 0;
    background: linear-gradient(135deg, 
        #0f0a1e 0%,
        #1a1040 15%,
        #2d1b69 35%,
        #4c1d95 55%,
        var(--primary-dark) 75%,
        var(--primary-light) 90%,
        #c4b5fd 100%);
    border-radius: 18px;
    border: 1px solid rgba(var(--primary-light-rgb), 0.3);
    box-shadow: 
        0 0 0 1px rgba(var(--primary-rgb), 0.1),
        0 15px 40px -10px rgba(var(--primary-dark-rgb), 0.5),
        0 8px 20px -5px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.4) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(var(--accent-pink-rgb), 0.25) 0%, transparent 40%);
    pointer-events: none;
}

.promo-banner::after {
    content: '✦';
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.2);
    animation: starPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.2; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.15); }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    position: relative;
    z-index: 1;
}

.banner-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-icon::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.banner-logo-bounce {
    width: 88px;
    height: 88px;
    animation: logoBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 3px 12px rgba(var(--primary-rgb), 0.6));
    position: relative;
    z-index: 1;
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.02); }
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 2px;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e9d5ff 30%, 
        #ffffff 50%, 
        #c4b5fd 70%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    text-transform: uppercase;
}

.banner-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.2px;
}


.section-title { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.title-icon { width: 26px; height: 26px; fill: var(--star-color); filter: drop-shadow(0 0 8px var(--star-glow)); }

.packages-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; padding: 8px 20px 24px !important; width: 100% !important; }
.package-card > * { pointer-events: none; }
.package-card { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--border-radius); padding: 18px; cursor: pointer; text-align: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(var(--primary-rgb), 0.15); position: relative; overflow: hidden; }
.package-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word; opacity: 0; transition: opacity 0.3s; }
.package-card:active { transform: scale(0.97); }
.package-card:hover { background: var(--bg-card-hover); border-color: rgba(var(--primary-rgb), 0.3); box-shadow: var(--shadow-purple); }
.package-card:hover::before { opacity: 1; }
.package-card.popular { border-color: rgba(var(--star-color-rgb), 0.4); background: linear-gradient(180deg, rgba(var(--star-color-rgb), 0.1) 0%, var(--bg-card) 100%); }
.package-card.popular::before { background: var(--gradient-gold); opacity: 1; }

/* Package Card Color Variants - Same as Desktop */
.package-card.bg-blue {
    background: linear-gradient(165deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(37, 99, 235, 0.3) 50%,
        rgba(29, 78, 216, 0.2) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 
        0 4px 24px rgba(59, 130, 246, 0.2),
        0 0 40px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.package-card.bg-blue:active {
    background: linear-gradient(165deg, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(37, 99, 235, 0.4) 50%,
        rgba(29, 78, 216, 0.3) 100%) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 
        0 8px 40px rgba(59, 130, 246, 0.35),
        0 0 60px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.package-card.bg-purple {
    background: linear-gradient(165deg, 
        rgba(var(--primary-rgb), 0.25) 0%, 
        rgba(var(--primary-dark-rgb), 0.35) 50%,
        rgba(109, 40, 217, 0.25) 100%) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.5) !important;
    box-shadow: 
        0 4px 24px rgba(var(--primary-rgb), 0.25),
        0 0 50px rgba(var(--primary-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.package-card.bg-purple:active {
    background: linear-gradient(165deg, 
        rgba(var(--primary-rgb), 0.35) 0%, 
        rgba(var(--primary-dark-rgb), 0.45) 50%,
        rgba(109, 40, 217, 0.35) 100%) !important;
    border-color: rgba(var(--primary-rgb), 0.7) !important;
    box-shadow: 
        0 8px 40px rgba(var(--primary-rgb), 0.4),
        0 0 70px rgba(var(--primary-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.package-card.bg-red {
    background: linear-gradient(165deg, 
        rgba(var(--error-rgb), 0.08) 0%, 
        rgba(220, 38, 38, 0.14) 50%,
        rgba(185, 28, 28, 0.08) 100%) !important;
    border: 1px solid rgba(var(--error-rgb), 0.2) !important;
    box-shadow: 
        0 4px 24px rgba(var(--error-rgb), 0.08),
        inset 0 1px 0 rgba(var(--error-rgb), 0.12);
}
.package-card.bg-red:active {
    background: linear-gradient(165deg, 
        rgba(var(--error-rgb), 0.14) 0%, 
        rgba(220, 38, 38, 0.2) 50%,
        rgba(185, 28, 28, 0.14) 100%) !important;
    border-color: rgba(var(--error-rgb), 0.35) !important;
}

.package-card.bg-yellow {
    background: linear-gradient(165deg, 
        rgba(var(--star-color-rgb), 0.25) 0%, 
        rgba(var(--accent-orange-rgb), 0.35) 50%,
        rgba(217, 119, 6, 0.25) 100%) !important;
    border: 1px solid rgba(var(--star-color-rgb), 0.5) !important;
    box-shadow: 
        0 4px 24px rgba(var(--star-color-rgb), 0.25),
        0 0 50px rgba(var(--star-color-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.package-card.bg-yellow:active {
    background: linear-gradient(165deg, 
        rgba(var(--star-color-rgb), 0.35) 0%, 
        rgba(var(--accent-orange-rgb), 0.45) 50%,
        rgba(217, 119, 6, 0.35) 100%) !important;
    border-color: rgba(var(--star-color-rgb), 0.7) !important;
    box-shadow: 
        0 8px 40px rgba(var(--star-color-rgb), 0.4),
        0 0 70px rgba(var(--star-color-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.package-card.bg-orange {
    background: linear-gradient(165deg, 
        rgba(249, 115, 22, 0.08) 0%, 
        rgba(234, 88, 12, 0.14) 50%,
        rgba(194, 65, 12, 0.08) 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    box-shadow: 
        0 4px 24px rgba(249, 115, 22, 0.08),
        inset 0 1px 0 rgba(249, 115, 22, 0.12);
}
.package-card.bg-orange:active {
    background: linear-gradient(165deg, 
        rgba(249, 115, 22, 0.14) 0%, 
        rgba(234, 88, 12, 0.2) 50%,
        rgba(194, 65, 12, 0.14) 100%) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
}

.package-card.bg-gold {
    background: linear-gradient(165deg, 
        rgba(255, 215, 0, 0.06) 0%, 
        rgba(var(--star-color-rgb), 0.12) 30%,
        rgba(var(--accent-orange-rgb), 0.14) 60%,
        rgba(218, 165, 32, 0.08) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;
    box-shadow: 
        0 4px 24px rgba(255, 215, 0, 0.08),
        inset 0 1px 0 rgba(255, 215, 0, 0.15);
}
.package-card.bg-gold:active {
    background: linear-gradient(165deg, 
        rgba(255, 215, 0, 0.12) 0%, 
        rgba(var(--star-color-rgb), 0.18) 30%,
        rgba(var(--accent-orange-rgb), 0.2) 60%,
        rgba(218, 165, 32, 0.14) 100%) !important;
    border-color: rgba(255, 215, 0, 0.35) !important;
    box-shadow: 
        0 8px 32px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}
.popular-badge { position: absolute; top: -1px; right: 12px; background: var(--gradient-gold); color: #1E1E2E; padding: 4px 10px; border-radius: 0 0 8px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Admin-configurable badge colors */
.popular-badge.badge-blue { background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; }
.popular-badge.badge-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; }
.popular-badge.badge-red { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; }
.popular-badge.badge-yellow { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #1E1E2E; }
.popular-badge.badge-orange { background: linear-gradient(135deg, #F97316, #EA580C); color: #fff; }
.popular-badge.badge-green { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; }
.popular-badge.badge-pink { background: linear-gradient(135deg, #EC4899, #DB2777); color: #fff; }
.popular-badge.badge-cyan { background: linear-gradient(135deg, #06B6D4, #0891B2); color: #fff; }
.popular-badge.badge-hit { background: linear-gradient(135deg, #EC4899, #F97316); color: #fff; }
.popular-badge.badge-deal { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; }
.popular-badge.badge-epic { background: linear-gradient(135deg, #8B5CF6, #A855F7); color: #fff; }
.popular-badge.badge-legendary { background: linear-gradient(135deg, #F97316, #FFD700); color: #1E1E2E; }
.package-stars { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.package-stars svg { width: 24px; height: 24px; fill: var(--star-color); filter: drop-shadow(0 0 6px var(--star-glow)); }
.package-stars span { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.package-price { font-size: 18px; font-weight: 700; color: var(--text-secondary); text-align: center; }
.package-per-star, .price-per-star { display: none !important; }
.package-btn { display: none !important; }

.bottom-nav { position: fixed !important; bottom: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(var(--bg-dark-rgb), 0.95); backdrop-filter: blur(20px); display: flex; justify-content: space-around; align-items: center; padding: 8px 20px 20px; border-top: 1px solid rgba(var(--primary-rgb), 0.1); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px 20px; border-radius: 12px; transition: all 0.3s; }
.nav-item svg { width: 24px; height: 24px; fill: currentColor; transition: all 0.3s; }
.nav-item span { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5)); }
.nav-item:active { transform: scale(0.95); }

.screen-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(var(--bg-dark-rgb), 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(var(--primary-rgb), 0.1); position: fixed !important; top: 0; left: 0; right: 0; z-index: 100; }
.screen-header + * { margin-top: 73px; }
@media (min-height: 780px) { .screen-header { padding: 32px 20px 16px 20px; align-items: flex-end; } .screen-header + * { margin-top: 85px; } }
.back-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-glass); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.back-btn:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.1); }
.back-btn svg { width: 24px; height: 24px; fill: var(--text-primary); }
.screen-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.header-spacer { width: 40px; }

.purchase-content { flex: 1; padding: 20px; overflow-y: auto; }
/* === SELECTED PACKAGE - Premium Card Design === */
.selected-package {
    background: linear-gradient(165deg, 
        rgba(30, 30, 50, 0.6) 0%, 
        rgba(var(--primary-rgb), 0.08) 50%,
        rgba(20, 20, 40, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* Top glow line */
.selected-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(var(--primary-rgb), 0.5) 20%, 
        rgba(var(--star-color-rgb), 0.5) 50%, 
        rgba(var(--primary-rgb), 0.5) 80%, 
        transparent 100%);
}

/* Subtle shimmer effect */
.selected-package::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.03), 
        transparent);
    animation: selected-shimmer 3s ease-in-out infinite;
}

@keyframes selected-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.selected-package .package-stars {
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.selected-package .package-stars svg {
    width: 42px;
    height: 42px;
    fill: var(--star-color);
    filter: drop-shadow(0 0 12px rgba(var(--star-color-rgb), 0.5));
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(var(--star-color-rgb), 0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(var(--star-color-rgb), 0.7)); }
}

.selected-package .package-stars span {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #C4B5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.package-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.package-prices .discount-applied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 4px;
}

.package-prices .original-price {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    font-weight: 500;
}

.price-rub {
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light) 0%, #C4B5FD 30%, var(--star-color) 70%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: none;
}

.price-per-star {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 2px;
}

.destination-section, .payment-methods { margin-bottom: 24px; }
.destination-section h3, .payment-methods h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text-secondary); }
.destination-options { display: flex; flex-direction: column; gap: 12px; }
.destination-btn, .payment-btn { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--border-radius); cursor: pointer; transition: all 0.3s; width: 100%; text-align: left; }
.destination-btn:active, .payment-btn:active { transform: scale(0.98); }
.destination-btn.selected, .payment-btn.selected { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.15); }
.destination-icon, .payment-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--bg-glass); }
.destination-icon.self { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.destination-icon.username { background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%); }
.destination-icon.balance { background: linear-gradient(135deg, var(--accent-orange) 0%, var(--star-color) 100%); }
.sbp-icon { background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%); font-size: 12px; font-weight: 800; color: white; }
.destination-info, .payment-info { flex: 1; }
.destination-title, .payment-name { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; color: var(--text-primary); }
.destination-desc { font-size: 13px; color: var(--text-muted); }
.payment-price { font-size: 14px; font-weight: 700; color: var(--star-color); }

.username-input-section { margin-bottom: 24px; display: none; }
.username-input-section.visible { display: block; }
.username-input-section label, .form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.input-wrapper { display: flex; align-items: center; background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); padding: 0 16px; transition: all 0.3s; }
.input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2); }
.input-prefix { color: var(--text-muted); font-weight: 600; font-size: 16px; }
.input-wrapper input { flex: 1; background: none; border: none; padding: 16px 12px; font-size: 16px; color: var(--text-primary); outline: none; font-family: inherit; }
.input-wrapper input::placeholder { color: var(--text-muted); }
.input-status { width: 20px; height: 20px; }
.input-status.valid::after { content: '✓'; color: var(--success); font-weight: bold; }
.input-status.invalid::after { content: '✗'; color: var(--error); font-weight: bold; }
.input-status.loading::after { content: ''; display: block; width: 16px; height: 16px; border: 2px solid var(--text-muted); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.buy-btn, .primary-btn { width: 100%; padding: 18px; font-size: 17px; font-weight: 700; color: white; background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word; border: none; border-radius: var(--border-radius); cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-purple); letter-spacing: -0.3px; }
.buy-btn:disabled, .primary-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.buy-btn:not(:disabled):active, .primary-btn:not(:disabled):active { transform: scale(0.98); }
.gold-btn { background: var(--gradient-gold); color: #1E1E2E; box-shadow: 0 4px 20px rgba(var(--star-color-rgb), 0.4); }

.deals-list { flex: 1; padding: 20px; overflow-y: auto; }
.deals-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.deals-empty svg { width: 80px; height: 80px; fill: var(--text-muted); margin-bottom: 20px; opacity: 0.5; }
.deals-empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.deals-empty p { color: var(--text-muted); font-size: 14px; }
.deal-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-card); border-radius: var(--border-radius); margin-bottom: 12px; cursor: pointer; transition: all 0.3s; border: 1px solid rgba(255, 255, 255, 0.05); }
.deal-item:active { transform: scale(0.98); }
.deal-item:hover { background: var(--bg-card-hover); border-color: rgba(var(--primary-rgb), 0.2); }
.deal-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.deal-icon.pending { background: linear-gradient(135deg, var(--accent-orange) 0%, var(--star-color) 100%); }
.deal-icon.completed { background: linear-gradient(135deg, var(--success) 0%, #34D399 100%); }
.deal-icon.failed { background: linear-gradient(135deg, var(--error) 0%, #F87171 100%); }
.deal-info { flex: 1; }
.deal-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.deal-date { font-size: 13px; color: var(--text-muted); }
.deal-amount { text-align: right; }
.deal-stars { font-weight: 700; font-size: 16px; color: var(--star-color); display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.deal-stars svg { width: 16px; height: 16px; fill: var(--star-color); }
.deal-price { font-size: 11px; color: var(--text-muted); }
.deal-status { font-size: 12px; padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.deal-status.pending { background: rgba(var(--accent-orange-rgb), 0.2); color: var(--star-color); }
.deal-status.completed { background: rgba(var(--success-rgb), 0.2); color: #34D399; }
.deal-status.failed { background: rgba(var(--error-rgb), 0.2); color: #F87171; }

.profile-content { flex: 1; padding: 20px; overflow-y: auto; }
.profile-card { text-align: center; padding: 30px 20px; background: var(--gradient-card); border-radius: var(--border-radius-lg); margin-bottom: 20px; border: 1px solid rgba(var(--primary-rgb), 0.15); }
.profile-avatar { width: 128px; height: 128px; border-radius: 50%; background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: var(--shadow-purple); overflow: hidden; }
.profile-avatar svg { width: 64px; height: 64px; fill: white; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.5px; }
.profile-username { color: var(--text-muted); font-size: 14px; }
.balance-card { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: var(--bg-card); border-radius: var(--border-radius); margin-bottom: 20px; border: 1px solid rgba(var(--star-color-rgb), 0.2); }
.balance-info { display: flex; flex-direction: column; gap: 4px; }
.balance-label { font-size: 13px; color: var(--text-muted); }
.balance-value { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; color: var(--star-color); }
.balance-value svg { width: 24px; height: 24px; fill: var(--star-color); }
.send-from-balance-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--gradient-gold); border: none; border-radius: 12px; color: #1E1E2E; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.3s; }
.send-from-balance-btn:active { transform: scale(0.95); }
.send-from-balance-btn svg { width: 18px; height: 18px; fill: #1E1E2E; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-item { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.05); }
.stat-value { font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; }
.stat-value svg { width: 20px; height: 20px; fill: var(--star-color); }
.stat-label { font-size: 13px; color: var(--text-muted); }
.profile-menu { display: flex; flex-direction: column; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--border-radius); cursor: pointer; transition: all 0.3s; width: 100%; text-align: left; color: var(--text-primary); font-size: 15px; font-weight: 600; }
.menu-item:active { transform: scale(0.98); }
.menu-item:hover { background: var(--bg-card-hover); border-color: rgba(var(--primary-rgb), 0.2); }
.menu-item svg { width: 22px; height: 22px; fill: var(--text-secondary); }
.menu-item span { flex: 1; }
.menu-item .arrow { width: 20px; height: 20px; fill: var(--text-muted); }

.modal { position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); display: none; align-items: flex-end; justify-content: center; z-index: 1000; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-primary); border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; width: 100%; max-width: 480px; max-height: 90vh; overflow: hidden; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.modal-header h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.close-btn { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-glass); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.close-btn:active { transform: scale(0.95); }
.close-btn svg { width: 20px; height: 20px; fill: var(--text-secondary); }
.modal-body { padding: 20px; overflow-y: auto; max-height: calc(90vh - 80px); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 16px; background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); font-size: 16px; color: var(--text-primary); font-family: inherit; transition: all 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-group textarea { resize: none; min-height: 120px; }

.quick-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.quick-amount-btn { flex: 1; min-width: calc(33.33% - 8px); padding: 12px; background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: var(--text-primary); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s; }
.quick-amount-btn:active { transform: scale(0.95); }
.quick-amount-btn.selected { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.2); }

.send-stars-info { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--bg-card); border-radius: var(--border-radius); margin-bottom: 20px; }
.send-stars-info .label { font-size: 14px; color: var(--text-muted); }
.send-stars-info .value { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: var(--star-color); }
.send-stars-info .value svg { width: 20px; height: 20px; fill: var(--star-color); }

.support-content { flex: 1; padding: 20px; overflow-y: auto; }
.new-ticket-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.new-ticket-btn:active { transform: scale(0.95); }
.new-ticket-btn svg { width: 24px; height: 24px; fill: white; }
.tickets-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-item { padding: 16px; background: var(--bg-card); border-radius: var(--border-radius); cursor: pointer; transition: all 0.3s; border: 1px solid rgba(255, 255, 255, 0.05); }
.ticket-item:active { transform: scale(0.98); }
.ticket-item:hover { background: var(--bg-card-hover); border-color: rgba(var(--primary-rgb), 0.2); }
.ticket-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.ticket-subject { font-weight: 600; font-size: 15px; flex: 1; margin-right: 12px; }
.ticket-status { font-size: 11px; padding: 4px 10px; border-radius: 6px; font-weight: 600; text-transform: uppercase; }
.ticket-status.open { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.ticket-status.resolved { background: rgba(var(--success-rgb), 0.2); color: #34D399; }
.ticket-date { font-size: 13px; color: var(--text-muted); }

/* ===== КАРТОЧКИ ТИКЕТОВ ПОДДЕРЖКИ ===== */
.support-ticket-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Gradient line removed */

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

.support-ticket-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.support-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 0;
}

.support-ticket-subject {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.support-ticket-status {
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.support-ticket-status.open {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.15));
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.support-ticket-status.waiting_user {
    background: linear-gradient(135deg, rgba(var(--accent-orange-rgb), 0.25), rgba(var(--star-color-rgb), 0.15));
    color: var(--star-color);
    border: 1px solid rgba(var(--star-color-rgb), 0.3);
}

.support-ticket-status.resolved {
    background: linear-gradient(135deg, rgba(var(--success-rgb), 0.25), rgba(52, 211, 153, 0.15));
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.support-ticket-status.in_progress {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-light-rgb), 0.15));
    color: var(--primary-light);
    border: 1px solid rgba(var(--primary-light-rgb), 0.3);
}

.support-ticket-status.closed {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.25), rgba(156, 163, 175, 0.15));
    color: #9CA3AF;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.support-ticket-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.support-ticket-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.support-ticket-icon {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-pink-rgb), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}

.support-ticket-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
    opacity: 0.9;
}

.support-ticket-content {
    flex: 1;
    min-width: 0;
}

.support-ticket-content .support-ticket-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-ticket-content .support-ticket-meta::before {
    display: none;
}

.meta-icon {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
    opacity: 0.7;
}

.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-message { max-width: 85%; padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.chat-message.user { background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word; align-self: flex-end; border-bottom-right-radius: 6px; }
.chat-message.admin { background: var(--bg-card); align-self: flex-start; border-bottom-left-radius: 6px; }
.message-time { font-size: 11px; color: rgba(255, 255, 255, 0.5); margin-top: 6px; text-align: right; }
/* chat-input styles moved to bottom of file */
.send-btn { width: 48px; height: 48px; border-radius: 50%; background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.send-btn:active { transform: scale(0.95); }
.send-btn svg { width: 22px; height: 22px; fill: white; }

.deal-content { flex: 1; padding: 20px; overflow-y: auto; }
.deal-header-card { background: var(--gradient-card); border-radius: var(--border-radius-lg); padding: 24px; text-align: center; margin-bottom: 24px; border: 1px solid rgba(var(--primary-rgb), 0.15); }
.deal-header-card .deal-stars { font-size: 36px; justify-content: center; margin-bottom: 8px; }
.deal-header-card .deal-stars svg { width: 36px; height: 36px; }
.deal-header-card .deal-price { font-size: 20px; color: var(--text-secondary); }
.deal-details { display: flex; flex-direction: column; gap: 16px; }

/* ===== УЛУЧШЕННЫЙ ДИЗАЙН СДЕЛКИ ===== */
.deal-detail-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    position: relative;
    overflow: hidden;
}

.deal-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0.6;
}

.deal-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deal-detail-stars {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 800;
    color: var(--star-color);
}

.deal-detail-stars svg {
    width: 36px;
    height: 36px;
    fill: var(--star-color);
    filter: drop-shadow(0 0 10px var(--star-glow));
}

.deal-status {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-status.pending,
.deal-status.payment_pending {
    background: linear-gradient(135deg, rgba(var(--accent-orange-rgb), 0.25), rgba(var(--star-color-rgb), 0.15));
    color: var(--star-color);
    border: 1px solid rgba(var(--star-color-rgb), 0.3);
}

.deal-status.processing,
.deal-status.payment_received {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-light-rgb), 0.15));
    color: var(--primary-light);
    border: 1px solid rgba(var(--primary-light-rgb), 0.3);
}

.deal-status.completed,
.deal-status.stars_sent {
    background: linear-gradient(135deg, rgba(var(--success-rgb), 0.25), rgba(52, 211, 153, 0.15));
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.deal-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.detail-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.detail-icon {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-pink-rgb), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.deal-progress {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    opacity: 0.8;
}

.progress-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    position: relative;
}

.progress-step:last-child {
    padding-bottom: 0;
}

.progress-step:last-child .step-line {
    display: none;
}

.step-line {
    position: absolute;
    left: 21px;
    top: 48px;
    width: 2px;
    height: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.progress-step.completed .step-line {
    background: linear-gradient(180deg, var(--primary) 0%, rgba(var(--primary-rgb), 0.3) 100%);
}

.step-dot {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.progress-step.completed .step-dot {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.progress-step.active .step-dot {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--accent-pink-rgb), 0.2));
    border-color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.progress-step.pending .step-dot {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-dot svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.step-icon {
    font-size: 18px;
    opacity: 0.6;
}

.progress-step.completed .step-icon,
.progress-step.active .step-icon {
    opacity: 1;
}

.step-info {
    flex: 1;
    padding-top: 4px;
}

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

.progress-step.pending .step-title {
    color: var(--text-muted);
}

.step-time {
    font-size: 13px;
    color: var(--text-muted);
}

.progress-step.completed .step-time,
.progress-step.active .step-time {
    color: var(--text-secondary);
}

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

.deal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.2px;
}

.action-btn.primary {
    background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: white;
    box-shadow: var(--shadow-purple);
}

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

.action-btn.danger {
    background: linear-gradient(135deg, rgba(var(--error-rgb), 0.2), rgba(248, 113, 113, 0.1));
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

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

.action-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--bg-card); border-radius: var(--border-radius); }
.detail-label { color: var(--text-muted); font-size: 14px; }
.detail-value { font-weight: 600; font-size: 15px; }

#toast-container { position: fixed !important; top: 20px; left: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 16px 20px; background: var(--bg-primary); border-radius: var(--border-radius); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.1); pointer-events: auto; animation: toastIn 0.3s ease-out; display: flex; align-items: center; gap: 12px; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.hide { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastOut { to { transform: translateY(-20px); opacity: 0; } }

@media (max-width: 380px) {
    .packages-grid { gap: 10px !important; padding: 8px 16px 20px !important; }
    .package-card { padding: 14px; }
    .package-stars span { font-size: 18px; }
    .package-price { font-size: 16px; }
    .promo-banner { margin: 16px 12px; padding: 22px 18px; }
    .banner-icon { width: 60px; height: 60px; }
    .banner-text h3 { font-size: 20px; }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.5); }
::selection { background: rgba(var(--primary-rgb), 0.4); color: white; }

/* ===== УЛУЧШЕННЫЕ СТИЛИ СДЕЛОК v2 ===== */
.deals-list {
    padding: 16px;
}

.deal-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.deal-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    border-radius: 4px 0 0 4px;
}

.deal-item.pending::before { background: linear-gradient(180deg, var(--accent-orange), var(--star-color)); }
.deal-item.completed::before { background: linear-gradient(180deg, var(--success), #34D399); }
.deal-item.failed::before { background: linear-gradient(180deg, var(--error), #F87171); }

.deal-item:hover {
    transform: translateX(4px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.15);
}

.deal-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.deal-info {
    flex: 1;
    min-width: 0;
}

.deal-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.deal-recipient {
    color: var(--primary-light);
    font-size: 14px;
}

.deal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.deal-date {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.deal-amount {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.deal-stars {
    font-weight: 800;
    font-size: 17px;
    color: var(--star-color);
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 0 20px rgba(var(--star-color-rgb), 0.4);
}

.deal-stars svg {
    width: 20px; height: 20px;
    fill: var(--star-color);
    filter: drop-shadow(0 0 8px rgba(var(--star-color-rgb), 0.5));
}

.deal-status {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== УЛУЧШЕННАЯ СТРАНИЦА СДЕЛКИ ===== */
.deal-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deal-hero {
    background: var(--gradient-card);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

.deal-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.deal-hero-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    filter: drop-shadow(0 0 30px rgba(var(--star-color-rgb), 0.5));
}

.deal-hero-stars {
    font-size: 48px;
    font-weight: 900;
    color: var(--star-color);
    letter-spacing: -2px;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(var(--star-color-rgb), 0.4);
}

.deal-hero-status {
    display: inline-flex;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-hero-status.pending { background: rgba(var(--accent-orange-rgb), 0.2); color: var(--star-color); }
.deal-hero-status.completed { background: rgba(var(--success-rgb), 0.2); color: #34D399; }
.deal-hero-status.failed { background: rgba(var(--error-rgb), 0.2); color: #F87171; }

.deal-info-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.deal-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deal-info-row:last-child { border-bottom: none; }

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

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

.deal-info-value.highlight {
    color: var(--star-color);
}

.deal-progress {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.deal-progress h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-timeline {
    position: relative;
    padding-left: 32px;
}

.progress-step {
    position: relative;
    padding-bottom: 24px;
}

.progress-step:last-child { padding-bottom: 0; }

.progress-step::before {
    content: '';
    position: absolute;
    left: -24px; top: 8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--text-muted);
}

.progress-step.completed::before {
    background: var(--success);
    border-color: var(--success);
}

.progress-step.current::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.3);
}

.progress-step::after {
    content: '';
    position: absolute;
    left: -17px; top: 24px;
    width: 2px; height: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.1);
}

.progress-step:last-child::after { display: none; }

.progress-step.completed::after { background: var(--success); }

.progress-step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.progress-step-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== УЛУЧШЕННАЯ ПОДДЕРЖКА ===== */
.support-content {
    padding: 16px;
}

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

.ticket-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.ticket-item::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
}

.ticket-item.open::before { background: linear-gradient(180deg, #3B82F6, #60A5FA); }
.ticket-item.waiting_user::before { background: linear-gradient(180deg, var(--accent-orange), var(--star-color)); }
.ticket-item.resolved::before { background: linear-gradient(180deg, var(--success), #34D399); }

.ticket-item:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.15);
}

.ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ticket-subject {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
}

.ticket-status {
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ticket-status.open { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.ticket-status.waiting_user { background: rgba(var(--accent-orange-rgb), 0.2); color: var(--star-color); }
.ticket-status.resolved { background: rgba(var(--success-rgb), 0.2); color: #34D399; }

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.support-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.support-empty-icon {
    width: 80px; height: 80px;
    margin-bottom: 20px;
    opacity: 0.4;
}

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

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

/* ===== УЛУЧШЕННЫЙ ЧАТ ===== */
#chat-screen.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Hide bottom nav when chat is active */
#chat-screen.active ~ .bottom-nav,
.app-container:has(#chat-screen.active) .bottom-nav {
    display: none !important;
}

#chat-screen .screen-header {
    flex-shrink: 0;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    padding-bottom: 100px; /* Space for fixed input */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--primary-rgb), 0.03) 100%);
}

.chat-message {
    max-width: 80%;
    position: relative;
    animation: messageIn 0.3s ease-out;
}

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

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

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

.message-bubble {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.chat-message.user .message-bubble {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-bottom-right-radius: 6px;
}

.chat-message.admin .message-bubble {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-bottom-left-radius: 6px;
}

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

.chat-message.user .message-time { text-align: right; }
.chat-message.admin .message-time { text-align: left; }

.chat-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.chat-date-divider span {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-container {
    display: none; /* Hidden by default */
    gap: 12px;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(var(--bg-dark-rgb), 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Show only when chat screen is active */
#chat-screen.active .chat-input-container {
    display: flex;
}

.chat-input-container input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 25px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: all 0.3s;
}

.chat-input-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.send-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

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

.send-btn svg {
    width: 22px; height: 22px;
    fill: white;
}

/* ===== КАСТОМНОЕ КОЛ-ВО ЗВЁЗД ===== */
.custom-amount-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.custom-amount-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-amount-range {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted, rgba(255,255,255,0.5));
    margin-left: auto;
}

.custom-amount-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.custom-amount-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--star-color);
    text-align: center;
    outline: none;
    font-family: inherit;
    transition: all 0.3s;
}

.custom-amount-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.custom-amount-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.custom-amount-btn {
    padding: 14px 24px;
    background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.custom-amount-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-purple);
}

.custom-amount-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-amount-info {
    margin-top: 12px;
    padding: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-amount-price {
    font-weight: 700;
    color: var(--star-color);
}

/* Reviews Section */
.package-reviews-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
}

.reviews-rating .star-filled {
    width: 20px;
    height: 20px;
    fill: var(--star-color);
}

.reviews-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.all-reviews-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.all-reviews-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.reviews-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Review Card */
.review-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.review-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
}

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

.review-rating {
    font-size: 14px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.review-package {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* Reviews Modal */
.reviews-modal-content {
    max-height: 85vh;
}

.reviews-modal-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.reviews-big-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.big-rating-value {
    font-size: 48px;
    font-weight: 800;
    background: rgba(139, 92, 246, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.big-rating-stars {
    font-size: 24px;
    letter-spacing: 4px;
}

.big-rating-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.reviews-modal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-loading,
.reviews-empty,
.reviews-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.reviews-load-more {
    text-align: center;
    padding-top: 16px;
}

.load-more-btn {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Write Review Modal */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-select label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stars-select {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 32px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    filter: grayscale(1);
    opacity: 0.5;
}

.star-btn:hover {
    transform: scale(1.1);
}

.star-btn.selected {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.review-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.review-form textarea::placeholder {
    color: var(--text-muted);
}

.review-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.highlight-number {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Catalog Styles */
.catalog-content {
    padding: 16px;
    padding-bottom: 80px;
}

.catalog-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.catalog-product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.catalog-product-card:active {
    transform: scale(0.98);
}

.catalog-product-card .product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.catalog-product-card .product-info {
    padding: 12px;
}

.catalog-product-card .product-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: white;
}

.catalog-product-card .product-price {
    font-size: 13px;
    color: var(--primary);
    margin: 0;
}

/* Payment badge styles */
.deal-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-light);
    font-weight: 500;
    margin-left: 8px;
}

/* Paid deal styles */
.deal-item.deal-paid {
    border-color: rgba(var(--success-rgb), 0.3);
}

.deal-item.deal-paid::before {
    background: linear-gradient(180deg, var(--success), #34D399);
}

.deal-status.paid {
    background: rgba(var(--success-rgb), 0.2);
    color: #34D399;
}

/* Deal meta improvements */
.deal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Discount styles */
.discount-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

.discount-applied {
    color: #22C55E;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.original-price {
    color: #888;
    font-size: 14px;
    text-decoration: line-through;
    margin-bottom: 4px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#header-discount {
    padding: 0 16px;
}

/* Package discount styles */
.package-price.discounted {
    color: #22C55E;
    font-weight: 700;
}

.package-price-original {
    color: #888;
    font-size: 12px;
    text-decoration: line-through;
    margin-top: 2px;
}

.package-card .package-price-original {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
}

.package-card {
    position: relative;
    padding-bottom: 28px;
}

.discount-banner {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin: 8px 0 12px 0;
    animation: discountPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4); }
}

.discount-applied {
    color: #22C55E;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.original-price {
    color: #888;
    font-size: 14px;
    text-decoration: line-through;
    margin-bottom: 4px;
}

/* Referral bonus styles */
.bonus-value {
    color: #22C55E;
    font-weight: 700;
}
.bonus-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    text-align: center;
}
.friends-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px;
    margin: 16px 0;
}
.friends-stats .stat-item {
    text-align: center;
}
.friends-stats .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.friends-stats .stat-label {
    font-size: 12px;
    color: #888;
}

/* ===== MOBILE HORIZONTAL SCROLL FOR PACKAGES ===== */
}

/* ===== HORIZONTAL DRAG SCROLL ===== */
.packages-grid {
    cursor: grab;
}

.packages-grid.grabbing {
    cursor: grabbing;
    user-select: none;
}

.packages-grid.grabbing .package-card {
    pointer-events: none;
}

/* ===== MOBILE FIXED CUSTOM AMOUNT SECTION ===== */
#main-screen {
    overflow: auto;
}

/* EIFAVPN banner top spacing per viewport height */
@media (max-height: 600px) {
    .promo-banner.eifavpn-banner { margin-top: 10px; }
}
@media (min-height: 601px) and (max-height: 779px) {
    .promo-banner.eifavpn-banner { margin-top: 16px; }
}
@media (min-height: 780px) {
    .promo-banner.eifavpn-banner { margin-top: 20px; }
}

@media (max-width: 500px) {
    #main-screen .custom-amount-section {
        position: fixed !important;
        bottom: var(--nav-height, 70px);
        left: 0;
        right: 0;
        background: rgba(var(--bg-dark-rgb), 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(var(--primary-rgb), 0.2);
        padding: 12px 16px;
        margin: 0;
        z-index: 99;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    #main-screen .custom-amount-title {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    #main-screen .custom-amount-range {
        font-size: 11px;
    }
    
    #main-screen .custom-amount-input-wrapper {
        gap: 8px;
    }
    
    #main-screen .custom-amount-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #main-screen .custom-amount-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    #main-screen .custom-amount-info {
        margin-top: 8px;
        font-size: 12px;
    }
    
    /* Отступ для контента чтобы не скрывался за fixed блоком */
    #main-screen .packages-section {
        padding-bottom: 0;
    }
}

/* Скрываем fixed custom-amount когда main-screen не активен */
@media (max-width: 500px) {
    #main-screen:not(.active) .custom-amount-section {
        display: none !important;
    }
}

/* ===== PACKAGES GRID - 3 ROWS ===== */
.send-btn > *, .attach-btn > * { pointer-events: none; }
/* Mobile packages grid - 2 columns, no scroll */
@media (max-width: 768px) {
    .packages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-flow: row !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        gap: 12px !important;
        padding: 8px 16px 24px !important;
    }
    
    .package-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 16px 12px !important;
        min-height: 100px !important;
    }
    
    .package-star-icon {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }
    
    .package-stars {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }
    
    .package-stars span {
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    
    .package-price {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        text-align: center !important;
    }
}
/* MOBILE FIX - 2 columns grid, no scroll - OVERRIDE ALL */
.packages-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-rows: unset !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 12px !important;
    padding: 8px 16px 24px !important;
    max-width: 100% !important;
}

.package-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 16px 10px !important;
    min-height: 110px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.package-star-icon {
    font-size: 32px !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-align: center !important;
}

.package-stars {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
}

.package-stars span {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.package-price {
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* === MOBILE 2-COLUMN GRID === */
@media (max-width: 500px) {
    .packages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: unset !important;
        grid-auto-flow: row !important;
        grid-auto-columns: unset !important;
        gap: 12px !important;
        padding: 8px 16px 20px !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    .package-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 10px !important;
        min-height: 100px !important;
        min-width: unset !important;
    }
    .package-star-icon { font-size: 28px !important; margin-bottom: 6px !important; }
    .package-stars { display: flex !important; align-items: center !important; justify-content: center !important; margin-bottom: 4px !important; }
    .package-stars span { font-size: 18px !important; }
    .package-price { font-size: 14px !important; text-align: center !important; }
}
.chat-input-row { display: flex; align-items: center; gap: 12px; width: 100%; }
.attach-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-card); border: 1px solid rgba(var(--primary-rgb), 0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; } .attach-btn svg { width: 22px; height: 22px; fill: rgba(255, 255, 255, 0.6); } .attach-btn:hover { background: var(--bg-card-hover); border-color: var(--primary); }

/* Discount badge below promo-banner */
.header-discount {
    margin: 0 16px 16px;
    text-align: center;
}
.header-discount:empty {
    display: none;
    margin: 0;
}
.header-discount .discount-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 0;
    animation: discount-pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.15);
}
@keyframes discount-pulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(34, 197, 94, 0.15); }
    50% { box-shadow: 0 2px 20px rgba(34, 197, 94, 0.3); }
}

/* Username Avatar */
.username-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.25);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 8px;
    border: 2px solid var(--primary);
}
.username-avatar.visible { display: flex; }
.username-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chat image preview */
.chat-image-preview { position: relative; padding: 8px 16px; background: rgba(var(--primary-rgb), 0.1); border-radius: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.chat-image-preview img { max-width: 80px; max-height: 80px; border-radius: 8px; object-fit: cover; }
.chat-image-preview .remove-image-btn { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(239, 68, 68, 0.8); color: white; border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-image-preview .remove-image-btn:hover { background: #EF4444; }


/* Deal Review Display */
.deal-review-display {
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}
.deal-review-display .review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.deal-review-display .review-label {
    color: #A78BFA;
    font-weight: 500;
    font-size: 13px;
}
.deal-review-display .review-stars {
    color: #FFD700;
    font-size: 12px;
}
.deal-review-display .review-text {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Invited by display for mobile */
.enter-code-section.invited {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.invited-by-display {
    font-size: 18px;
    font-weight: 600;
    color: #22C55E;
    text-align: center;
    padding: 12px;
}

/* Fix: prevent clipping of package cards hover effects */

/* Fix: space for package card hover effects */
.packages-section {
    overflow: visible !important;
}

.packages-grid {
    padding-top: 8px !important;
}

.section-title + .packages-grid {
    margin-top: 8px;
}


/* Ensure hovered package cards appear above other elements */
.package-card:hover,
.package-card:active {
    z-index: 10 !important;
    position: relative !important;
}

/* CRITICAL FIX: Allow hover effects to extend beyond grid boundaries */
.packages-section,
.packages-section *:not(.package-card):not(.package-card *) {
    overflow: visible !important;
}

.packages-grid {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* ===== TICKET UNREAD BADGE ===== */
.support-ticket-card {
    position: relative;
}

.support-ticket-card.has-unread {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-card) 100%);
}

.ticket-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 10px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Status waiting_user - new reply */
.support-ticket-status.waiting_user {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Fix: allow badge to overflow ticket card */
.tickets-list,
#support-tickets-list {
    overflow: visible !important;
    padding: 8px;
}

.support-ticket-card {
    overflow: visible !important;
    margin: 8px 0;
}

.support-content {
    overflow: visible !important;
}

/* Badge on status element */
.support-ticket-status {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.support-ticket-status .ticket-unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
}

/* ========================================
   REFERRAL CARD MINI (Profile screen)
   ======================================== */

.referral-card-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 16px;
    margin: 0 0 16px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.referral-card-mini:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.15));
}

.referral-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.referral-card-info {
    flex: 1;
    min-width: 0;
}

.referral-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.referral-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.referral-card-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.5;
}

.referral-card-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    color: rgba(255, 255, 255, 0.6);
}

/* Referral loading state */
.referral-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    gap: 12px;
}

.loader-small {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* === Extra bottom padding for main-screen content === */
@media (max-width: 500px) {
    #main-screen.active {
        padding-bottom: calc(var(--nav-height, 70px) + 40px) !important;
    }
    
    #main-screen .premium-section {
        margin-bottom: 30px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAYMENT METHOD SELECTION MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.payment-method-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.payment-method-modal.visible {
    opacity: 1;
    visibility: visible;
}

.payment-method-content {
    background: var(--tg-theme-bg-color, #1a1a2e);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.payment-method-modal.visible .payment-method-content {
    transform: translateY(0);
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-method-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--tg-theme-text-color, #fff);
}

.payment-method-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--tg-theme-hint-color, #888);
    cursor: pointer;
    padding: 5px;
}

.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: var(--tg-theme-secondary-bg-color, #252542);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.payment-method-btn:hover {
    border-color: var(--tg-theme-button-color, #5865F2);
    transform: scale(1.02);
}

.payment-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.payment-method-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.payment-method-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #fff);
}

.payment-method-price {
    font-size: 14px;
    color: var(--tg-theme-button-color, #5865F2);
    font-weight: 500;
}

.payment-method-hint {
    margin-top: 16px;
    padding: 12px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: var(--tg-theme-hint-color, #888);
    text-align: center;
}

/* Desktop adjustments */
@media (min-width: 600px) {
    .payment-method-content {
        border-radius: 20px;
        margin-bottom: 20px;
    }
    
    .payment-method-modal {
        align-items: center;
    }
}

/* === Username Warning Banner === */
.username-warning-banner {
    margin: 8px 16px 0;
    padding: 12px 36px 12px 16px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    animation: warnSlide 0.3s ease-out;
}
@keyframes warnSlide { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.warning-icon { font-size: 18px; flex-shrink: 0; }
.warning-text { font-size: 12.5px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.warning-text b { color: #fbbf24; }
.warning-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; color: rgba(255,255,255,0.4);
    font-size: 18px; cursor: pointer;
}

/* === EIFAVPN Banner (clean style like screenshot) === */
.promo-banner.eifavpn-banner {
    margin: 20px 16px 16px 16px;
    background: linear-gradient(135deg, #0c1220 0%, #111b2e 40%, #152238 70%, #1a2d48 100%);
    border: 1px solid rgba(56, 189, 156, 0.2);
    border-radius: 16px;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    padding: 0;
    transition: none;
}
.promo-banner.eifavpn-banner:active {
    opacity: 0.85;
}
/* Kill parent pseudo-elements */
.promo-banner.eifavpn-banner::before { display: none; }
.promo-banner.eifavpn-banner::after { display: none; }

/* Content row */
.promo-banner.eifavpn-banner .banner-content {
    padding: 10px 14px;
    gap: 12px;
    align-items: center;
}

/* Logo container — no circle */
.promo-banner.eifavpn-banner .banner-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.promo-banner.eifavpn-banner .banner-icon::before { display: none; }

/* Kill ALL animations and transitions inside EIFAVPN banner */
.promo-banner.eifavpn-banner .banner-content,
.promo-banner.eifavpn-banner .banner-content * {
    animation: none !important;
    transition: none !important;
}
.promo-banner.eifavpn-banner .vpn-logo {
    width: 40px;
    height: 40px;
    display: block;
}

/* Text */
.promo-banner.eifavpn-banner .banner-text {
    flex: 1;
    min-width: 0;
}
.promo-banner.eifavpn-banner .banner-text h3 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 1px;
    background: linear-gradient(135deg, #fff 0%, #a7f3d0 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
}
.promo-banner.eifavpn-banner .banner-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    letter-spacing: 0;
}
.promo-banner.eifavpn-banner .vpn-shield {
    font-size: 11px;
    margin-left: 2px;
}

/* Chevron arrow */
.banner-chevron {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}
