/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2aabee;
    --primary-dark: #1e8bcd;
    --primary-light: #6bc8ff;
    --dark: #1a1a2e;
    --gray: #6c6c7a;
    --light: #f5f5fa;
    --white: #ffffff;
    --success: #10b866;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 12px;
}

/* ---------- АНИМИРОВАННЫЙ ФОН ---------- */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -2;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s linear infinite;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
}

.bg-particles::before {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-particles::after {
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ---------- TOPBAR ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 0 16px;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
}

.brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.brand-icon svg {
    width: 24px;
    height: 24px;
}

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

.download {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ---------- MAIN CARD ---------- */
.main {
    width: 100%;
    max-width: 400px;
    margin: 68px auto 0;
    animation: fadeInUp 0.6s ease-out;
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ---------- АВАТАР ---------- */
.avatar-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.avatar-glow {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(8px);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.02);
}

.avatar-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 44px);
    background: transparent;
    border-radius: 50%;
    padding: 0;
    z-index: 2;
}

.avatar-badge svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ---------- CARD CONTENT ---------- */
.card-content {
    padding: 16px 24px 24px;
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
}

.username {
    font-size: 13px;
    color: var(--primary);
    background: rgba(42, 171, 238, 0.1);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.username:hover {
    background: rgba(42, 171, 238, 0.2);
    transform: scale(1.02);
}

/* ---------- СТАТИСТИКА ---------- */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 10px;
    color: var(--gray);
    margin-top: 2px;
}

/* ---------- OFFER CHIP ---------- */
.offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff8eb, #fff0d4);
    border-radius: 40px;
    padding: 6px 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(164, 91, 0, 0.2);
    transition: all 0.2s ease;
}

.offer-chip:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(164, 91, 0, 0.1);
}

.offer-icon {
    font-size: 12px;
}

.offer-text {
    font-size: 10px;
    font-weight: 600;
    color: #a45b00;
}

/* ---------- ПЕРЕЛИВАНИЕ ТОНКОЙ РАМКИ ДЛЯ БОНУСА ---------- */
@keyframes borderColorFlow {
    0% {
        border-color: rgba(164, 91, 0, 0.3);
    }
    33% {
        border-color: rgba(245, 158, 11, 0.7);
    }
    66% {
        border-color: rgba(217, 119, 6, 0.7);
    }
    100% {
        border-color: rgba(164, 91, 0, 0.3);
    }
}

.offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff8eb, #fff0d4);
    border-radius: 40px;
    padding: 8px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(164, 91, 0, 0.3);
    animation: borderColorFlow 3s ease-in-out infinite;
}

/* ---------- ОСНОВНАЯ КНОПКА (TELEGRAM) ---------- */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 48px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(42, 171, 238, 0.4);
    background: linear-gradient(135deg, #3db8f5, #229ed9);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-primary:hover svg:last-child {
    transform: translateX(4px);
}

/* ---------- ВТОРИЧНАЯ КНОПКА (ВЕБ-ВЕРСИЯ) ---------- */
.btn-web {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b866 0%, #0a9a56 100%);
    color: white;
    text-decoration: none;
    border-radius: 48px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-web svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-web:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 184, 102, 0.4);
    background: linear-gradient(135deg, #12c96e 0%, #0baf5e 100%);
}

.btn-web:hover svg {
    transform: translateX(3px);
}

/* ---------- РАЗДЕЛИТЕЛЬНАЯ ПОЛОСКА МЕЖДУ КНОПКАМИ ---------- */
.divider-light {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 14px 0;
}

/* ---------- ТАЙМЕР ---------- */
.countdown-wrapper {
    margin-top: 16px;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-circle {
    position: relative;
    width: 36px;
    height: 36px;
}

.countdown-svg {
    width: 36px;
    height: 36px;
    transform: rotate(-90deg);
}

.countdown-bg {
    stroke: #e0e0e0;
}

.countdown-progress {
    stroke: var(--primary);
    transition: stroke-dashoffset 0.1s linear;
}

.countdown-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.countdown-label {
    font-size: 11px;
    color: var(--gray);
}

/* ---------- ПРОКСИ КАРТОЧКА ---------- */
.proxy-card {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.proxy-card:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.proxy-icon {
    width: 34px;
    height: 34px;
    background: rgba(42, 171, 238, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s ease;
}

.proxy-card:hover .proxy-icon {
    background: rgba(42, 171, 238, 0.2);
    transform: scale(1.05);
}

.proxy-icon svg {
    width: 16px;
    height: 16px;
}

.proxy-content {
    flex: 1;
}

.proxy-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

.proxy-desc {
    font-size: 9px;
    color: var(--gray);
    margin-top: 1px;
}

/* ---------- КНОПКА ПРОКСИ (ЯРКАЯ И ЗАМЕТНАЯ) ---------- */
.btn-proxy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 40px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    cursor: pointer;
}

.btn-proxy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-proxy svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
}

.btn-proxy:hover svg {
    transform: translateX(3px);
}

/* ---------- FOOTER ---------- */
.footer {
    margin-top: 16px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 450px) {
    body {
        padding: 8px;
    }
    
    .main {
        max-width: 360px;
        margin: 64px auto 0;
    }
    
    .card-content {
        padding: 12px 20px 20px;
    }
    
    .avatar {
        width: 72px;
        height: 72px;
    }
    
    .avatar-glow {
        width: 88px;
        height: 88px;
    }
    
    .avatar-badge {
        right: calc(50% - 40px);
    }
    
    h1 {
        font-size: 22px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .btn-primary, .btn-web {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .main {
        max-width: 340px;
        margin: 60px auto 0;
    }
    
    .card-content {
        padding: 10px 16px 16px;
    }
    
    .avatar {
        width: 64px;
        height: 64px;
    }
    
    .avatar-glow {
        width: 80px;
        height: 80px;
    }
    
    .avatar-badge {
        top: 2px;
        right: calc(50% - 36px);
    }
    
    .avatar-badge svg {
        width: 14px;
        height: 14px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 10px;
    }
    
    .username {
        font-size: 11px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .offer-text {
        font-size: 9px;
    }
    
    .btn-primary, .btn-web {
        padding: 9px 12px;
        font-size: 12px;
    }
    
    .btn-primary svg, .btn-web svg {
        width: 14px;
        height: 14px;
    }
    
    .countdown-value {
        font-size: 12px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
}

/* ---------- МОДАЛЬНОЕ ОКНО ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    background: var(--card-bg);
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--card-bg);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
    transform: scale(1.05);
}

.modal-body {
    padding: 20px 24px;
    max-height: 55vh;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray);
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body strong {
    color: var(--dark);
    font-weight: 600;
}

.modal-body a {
    color: var(--primary);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
}

/* Адаптив для модального окна */
@media (max-width: 500px) {
    .modal-container {
        width: 92%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 14px 20px;
    }
    
    .modal-body {
        padding: 16px 20px;
        font-size: 12px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
}