/* ==================== БАЗОВЫЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --bg-dark: #0a0a0f;
    --bg-dark: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --glow: 0 0 40px rgba(99, 102, 241, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ==================== КОСМИЧЕСКИЙ ФОН ==================== */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0a0a0f 50%);
}

.stars-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 90px 10px, white, transparent),
        radial-gradient(1px 1px at 130px 50px, white, transparent),
        radial-gradient(2px 2px at 70px 100px, white, transparent);
    background-size: 200px 200px;
    opacity: 0;
    animation: stars-fade 3s ease-in forwards;
}

.stars-layer-1 {
    animation: stars-move 120s linear infinite, stars-fade 3s ease-in forwards;
}

.stars-layer-2 {
    animation: stars-move 180s linear infinite reverse, stars-fade 3s 0.5s ease-in forwards;
    opacity: 0.6;
}

.stars-layer-3 {
    animation: stars-move 240s linear infinite, stars-fade 3s 1s ease-in forwards;
    opacity: 0.4;
}

@keyframes stars-fade {
    to { opacity: 1; }
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Shooting Stars */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    height: 2px;
    width: 2px;
    background: white;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-150px);
}

.shooting-star:nth-child(1) { top: 10%; left: 20%; animation: shooting 4s 2s ease-out infinite; }
.shooting-star:nth-child(2) { top: 30%; left: 70%; animation: shooting 4s 5s ease-out infinite; }
.shooting-star:nth-child(3) { top: 50%; left: 30%; animation: shooting 4s 8s ease-out infinite; }
.shooting-star:nth-child(4) { top: 70%; left: 80%; animation: shooting 4s 11s ease-out infinite; }
.shooting-star:nth-child(5) { top: 20%; left: 50%; animation: shooting 4s 14s ease-out infinite; }

@keyframes shooting {
    0% { opacity: 0; transform: translate(0, 0) rotate(-45deg); }
    5% { opacity: 1; }
    100% { opacity: 0; transform: translate(-400px, 400px) rotate(-45deg); }
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    animation: hero-fade-in 1s ease-out;
}

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

/* Avatar Section */
.avatar-section {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.5), 0 0 100px rgba(99, 102, 241, 0.3);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.7), 0 0 120px rgba(99, 102, 241, 0.4);
}

/* Loading state for avatar */
.avatar[src=""] {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-card);
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    opacity: 0.5;
    animation: ring-rotate 10s linear infinite;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Avatar Fallback */
.avatar-wrapper.avatar-fallback {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.avatar-wrapper.avatar-fallback::before {
    content: 'P';
}

.status-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    animation: badge-slide-in 0.8s 0.5s ease-out both;
}

@keyframes badge-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Hero Text */
.hero-text {
    text-align: center;
    max-width: 800px;
}

.name-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

.name-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.name-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
}

.name-underline {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 1rem auto 0;
    max-width: 200px;
    border-radius: 2px;
    animation: underline-grow 1s 0.5s ease-out both;
}

@keyframes underline-grow {
    from { max-width: 0; }
    to { max-width: 200px; }
}

.role-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    animation: role-fade-in 0.8s 0.8s ease-out both;
}

@keyframes role-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-icon {
    font-size: 1.5rem;
    animation: icon-spin 20s linear infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.role {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Marquee / Бегущая строка */
.marquee-container {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    margin: 0 auto 3rem;
    padding: 1rem 0;
    position: relative;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(99, 102, 241, 0.1) 50%, 
        rgba(99, 102, 241, 0.05) 100%);
    border-radius: 12px;
    animation: marquee-fade-in 0.8s 1s ease-out both;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-dark), transparent);
}

.marquee {
    display: flex;
    gap: 4rem;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

@keyframes marquee-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    animation: social-fade-in 0.8s 1.2s ease-out both;
}

@keyframes social-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover .social-icon {
    transform: scale(1.2) rotate(5deg);
}

.social-label {
    position: relative;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: scroll-fade-in 1s 1.5s ease-out both;
}

@keyframes scroll-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, var(--primary), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { height: 60px; opacity: 1; }
    50% { height: 40px; opacity: 0.5; }
}

.scroll-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==================== DISCORD SECTION ==================== */
.discord-section,
.partners-section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    animation: section-fade-in 0.8s ease-out;
}

@keyframes section-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-primary);
}

.section-title-number {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.6;
    font-weight: 300;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* Discord Grid */
.discord-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.discord-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: card-fade-in 0.8s ease-out;
    cursor: pointer;
    
    /* Фоновое изображение */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.discord-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.92) 0%,
        rgba(19, 19, 26, 0.95) 50%,
        rgba(10, 10, 15, 0.92) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.discord-card-content {
    position: relative;
    z-index: 1;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.discord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.5s;
}

.discord-card:hover::before {
    opacity: 1;
}

.discord-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.discord-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.discord-card:hover .discord-icon {
    transform: scale(1.1);
}

/* Стили для карточек партнеров с ошибками */
.discord-card.error-card {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.discord-card.error-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.1);
}

.discord-online .offline {
    background: #ef4444;
}

.error-message {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.discord-link.disabled {
    background: rgba(113, 113, 122, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.discord-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.discord-online {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

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

.stat {
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discord-link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.discord-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.discord-link:hover::before {
    width: 300px;
    height: 300px;
}

.discord-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.discord-link span {
    position: relative;
    z-index: 1;
}

/* Loading Card */
.loading-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Partner Badge */
.partner-card {
    position: relative;
}

.partner-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    color: #e879f9;
    border: 1px solid rgba(168, 85, 247, 0.4);
    animation: badge-glow 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    }
}

/* Partner Stats Centering */
.partner-stats {
    justify-content: center;
}

.partner-stats .stat {
    text-align: center;
}

/* ==================== BOTS SECTION ==================== */
.bots-section {
    padding: 120px 0;
    position: relative;
}

.bots-subsection {
    margin-bottom: 4rem;
}

.bots-subsection:last-child {
    margin-bottom: 0;
}

.bots-subsection-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.bots-subsection-title svg {
    color: var(--primary);
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.telegram-bots {
    margin-bottom: 3rem;
}

.discord-bots {
    margin-top: 2rem;
}

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: card-fade-in 0.8s ease-out;
}

.bot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.5s;
}

.bot-card:hover::before {
    opacity: 1;
}

.bot-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.bot-platform-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.discord-badge {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.telegram-badge {
    background: rgba(34, 165, 240, 0.15);
    color: #22a5f0;
    border: 1px solid rgba(34, 165, 240, 0.3);
}

.bot-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.bot-avatar {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bot-card:hover .bot-avatar {
    transform: scale(1.1) rotate(5deg);
}

.bot-info {
    text-align: center;
    margin-bottom: 2rem;
}

.bot-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bot-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bot-stats {
    display: grid;
    grid-template-columns: 1fr; /* одна колонка, чтобы всё было по центру */
    justify-items: center;
    gap: 1rem;
}

.bot-stat {
    text-align: center;
}

.bot-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.bot-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.bot-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bot-link:hover::before {
    width: 300px;
    height: 300px;
}

.bot-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.bot-link span {
    position: relative;
    z-index: 1;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: right;
}

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

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .discord-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .avatar-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .avatar-glow {
        width: 200px;
        height: 200px;
    }
    
    .status-badge {
        bottom: 5px;
        right: -5px;
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    .name {
        font-size: 2.25rem;
    }
    
    .role {
        font-size: 1.125rem;
    }
    
    .marquee-container {
        max-width: 100%;
        padding: 0.75rem 0;
        margin: 0 -1.25rem 2rem;
        width: calc(100% + 2.5rem);
        border-radius: 0;
    }
    
    .marquee-container::before,
    .marquee-container::after {
        width: 60px;
    }
    
    .marquee-text {
        font-size: 0.9375rem;
    }
    
    .marquee {
        animation: marquee-scroll 20s linear infinite;
    }
    
    .social-links {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        padding-bottom: 20px;
    }
    
    .discord-section {
        padding: 80px 0;
    }
    
    .bots-section {
        padding: 80px 0;
    }
    
    .bots-subsection {
        margin-bottom: 3rem;
    }
    
    .bots-subsection-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-left: 0.75rem;
        border-left-width: 3px;
    }
    
    .bots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bot-card {
        padding: 2rem 1.5rem;
    }
    
    .bot-avatar-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title-number {
        font-size: 1.25rem;
    }
    
    .discord-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .discord-card {
        padding: 1.75rem 1.25rem;
        margin: 0 -0.25rem;
    }
    
    .discord-header {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .discord-icon {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .discord-info h3 {
        font-size: 1.25rem;
    }
    
    .discord-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.375rem;
    }
    
    .discord-link-wrapper {
        margin-top: 1.5rem;
    }
    
    .discord-link {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 0.9375rem;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 40px 0 20px;
        min-height: auto;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .avatar-section {
        margin-bottom: 1rem;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .avatar-glow {
        width: 180px;
        height: 180px;
    }
    
    .avatar-ring {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-width: 1.5px;
    }
    
    .name {
        font-size: 1.875rem;
    }
    
    .name-underline {
        max-width: 150px;
        height: 3px;
    }
    
    .role {
        font-size: 1rem;
    }
    
    .role-icon {
        font-size: 1.25rem;
    }
    
    .marquee-container {
        padding: 0.5rem 0;
        margin: 0 -1rem 1.5rem;
        width: calc(100% + 2rem);
    }
    
    .marquee-container::before,
    .marquee-container::after {
        width: 40px;
    }
    
    .marquee-text {
        font-size: 0.875rem;
    }
    
    .marquee {
        animation: marquee-scroll 15s linear infinite;
        gap: 3rem;
    }
    
    .social-links {
        gap: 0.625rem;
    }
    
    .social-link {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .discord-section {
        padding: 60px 0;
    }
    
    .bots-section {
        padding: 60px 0;
    }
    
    .bots-subsection {
        margin-bottom: 2.5rem;
    }
    
    .bots-subsection-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
    
    .bots-subsection-title svg {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
    
    .bot-card {
        padding: 1.5rem 1.25rem;
    }
    
    .bot-avatar-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .bot-name {
        font-size: 1.25rem;
    }
    
    .bot-description {
        font-size: 0.875rem;
    }
    
    .bot-stats {
        gap: 0.75rem;
    }
    
    .bot-stat-value {
        font-size: 1.125rem;
    }
    
    .bot-link {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .section-title-number {
        font-size: 1.125rem;
    }
    
    .section-subtitle {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .discord-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .discord-header {
        margin-bottom: 1.25rem;
    }
    
    .discord-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .discord-info h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .discord-online {
        font-size: 0.875rem;
    }
    
    .discord-stats {
        gap: 0.625rem;
        margin-bottom: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.6875rem;
        margin-bottom: 0.375rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .discord-link-wrapper {
        margin-top: 1.25rem;
    }
    
    .discord-link {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }
    
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-text {
        font-size: 0.875rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-link {
        font-size: 0.875rem;
    }
    
    .footer-copyright {
        font-size: 0.8125rem;
    }
}

/* --- Discord Server Cards (полный красивый стиль) --- */

.discord-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    padding: 22px;
    transition: transform .45s ease, opacity .45s ease;
    opacity: 0;
    transform: translateY(25px);
    min-height: 180px;
    background-color: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-card.show {
    opacity: 1;
    transform: translateY(0);
}

.discord-card:hover {
    transform: translateY(-6px);
}

/* Тёмный оверлей */
.discord-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Контент карточки */
.discord-card-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Header */
.discord-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.discord-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.discord-info {
    margin-left: 14px;
}

.discord-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.discord-online {
    display: flex;
    align-items: center;
    margin-top: 4px;
    font-size: 14px;
    opacity: 0.9;
}

.online-dot {
    width: 9px;
    height: 9px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 6px;
}

/* Статистика */
.discord-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-label {
    font-size: 13px;
    opacity: 0.75;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}

/* Кнопка */
.discord-link-wrapper {
    margin-top: 18px;
    text-align: right;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: background .25s ease;
}

.discord-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .discord-card {
        padding: 16px;
    }

    .discord-icon {
        width: 50px;
        height: 50px;
    }

    .discord-info h3 {
        font-size: 18px;
    }

    .discord-stats {
        flex-direction: column;
        gap: 8px;
    }
}



.music-section {
    padding: 80px 0;
}

.music-player {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(120, 90, 255, 0.15);
}

.play-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7a4cff, #5430c9);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.play-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 0 12px rgba(130, 110, 255, 0.5);
}

.music-info {
    flex-grow: 1;
}

.music-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.music-artist {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.progress-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7b60ff, #b589ff);
    transition: width 0.15s linear;
}

.chat-section {
  padding: 40px 0;
  text-align: center;
}

.chat-window {
  background: rgba(0,0,0,0.7);
  color: #fff;
  height: 300px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 15px auto;
  border-radius: 10px;
  padding: 10px;
  overflow-y: auto;
  text-align: left;
}

.chat-input-container {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.chat-input-container input {
  flex: 1;
  padding: 10px;
  border-radius: 5px 0 0 5px;
  border: none;
  font-size: 16px;
}

.chat-input-container button {
  padding: 10px 15px;
  border: none;
  background: #222;
  color: #fff;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  font-size: 16px;
}

.chat-input-container button:hover {
  background: #444;
}




/* =========================
   Сетка отзывов (если нужна обычная сетка)
   ========================= */
.reviews-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 1rem;
}

/* =========================
   Карточка отзыва
   ========================= */
.review-card {
    min-width: 300px;            /* фиксированная ширина для карусели */
    max-width: 300px;
    background: #1b1b1b;
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;              /* чтобы flex не сжимал карточку */
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

/* =========================
   Контент карточки
   ========================= */
.review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.review-username {
    font-weight: bold;
    margin: 0;
}

.review-tag {
    font-size: 0.75rem;
    color: #aaa;
}

.review-content {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.review-image {
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 8px;
}

.reviews-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.reviews-carousel {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
}

.review-card {
    min-width: 300px;
    max-width: 300px;
    background: #2b2b3b;
    background: #1b1b1b;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.review-username {
    font-weight: bold;
    margin: 0;
}

.review-tag {
    font-size: 0.75rem;
    color: #aaa;
}

.review-content {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.review-image {
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}





/* ======================================================= */
/* 01. СЕТКА И ВЫРАВНИВАНИЕ ВЫСОТЫ КАРТОЧЕК */
/* ======================================================= */

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    /* КЛЮЧ: Гарантирует одинаковую высоту обеих карточек */
    align-items: stretch; 
}

/* ======================================================= */
/* 02. ОБЩИЕ СТИЛИ КАРТОЧЕК И FLEX-ЛОГИКА */
/* ======================================================= */

/* 2a. Базовые стили и Flex-структура для ОБЕИХ карточек */
.bot-card, .bot-card-fancy {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    /* КЛЮЧ: ОБА класса должны быть Flex-контейнерами */
    display: flex; 
    flex-direction: column;
    /* КЛЮЧ: Центрирование контента по горизонтали */
    align-items: center; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bot-card:hover, .bot-card-fancy:hover {
    transform: translateY(-10px); 
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

/* --- ВЫРАВНИВАНИЕ ВЕРХНЕЙ ЧАСТИ (ИКОНКА И ИМЯ) --- */

/* Унификация отступов контейнеров иконки/аватара */
.bot-avatar-wrapper, .bot-fancy-icon-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px; 
}

/* Стили иконок внутри */
.bot-avatar, .bot-fancy-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* SVG иконки */
.bot-fancy-icon[src$=".svg"] {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

/* Унификация стилей имени */
.bot-name, .bot-fancy-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

/* Унификация стилей описания */
.bot-description, .bot-fancy-description {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 15px; 
    text-align: center; /* Текст уже по центру */
}


/* --- ВНУТРЕННЯЯ FLEX-ЛОГИКА И ВЫРАВНИВАНИЕ НИЖНЕЙ ЧАСТИ --- */

/* Контент Discord-карточки (.bot-info) */
.bot-card .bot-info {
    flex-grow: 1; /* КЛЮЧ: Растягивает блок информации */
    width: 100%;
    display: flex;
    flex-direction: column;
    /* КЛЮЧ: Центрирование контента внутри bot-info */
    align-items: center; 
    text-align: center;
    margin-bottom: 15px; 
}

/* Блок статистики Discord (.bot-stats) */
.bot-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 250px;
    /* КЛЮЧ: Прижимает блок статистики к низу */
    margin-top: auto; 
    margin-bottom: 15px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Контент Telegram-карточки (.bot-fancy-content) */
.bot-fancy-content {
    display: flex;
    flex-direction: column;
    height: 100%; 
    width: 100%;
    /* КЛЮЧ: Центрирование контента внутри bot-fancy-content */
    align-items: center; 
    text-align: center;
}

/* Блок деталей Telegram (.bot-fancy-details-grid) */
.bot-fancy-details-grid {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 250px;
    margin-top: auto; /* Прижимает блок деталей к низу */
    margin-bottom: 15px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопка Discord */
.bot-card .bot-link {
    margin-top: auto; /* Прижимает кнопку к низу карточки */
    width: 100%;
}

/* Кнопка Telegram */
.bot-fancy-button {
    margin-top: 15px; 
    width: 100%;
}


/* ======================================================= */
/* 03. ЦВЕТОВАЯ СХЕМА (УНИФИЦИРОВАННАЯ) */
/* ======================================================= */

/* Унификация бейджей (Discord badge) */
.bot-platform-badge, .bot-fancy-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.telegram-badge-fancy, .discord-badge-fancy {
    background: #5865f2; 
}

.telegram-glow, .discord-glow {
    background: rgba(88, 101, 242, 0.1); /* Легкий фон */
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); /* Эффект свечения */
}

.platform-tg, .platform-discord {
    color: #5865f2; 
}

/* Унификация стилей кнопки */
.telegram-button, .discord-button, .bot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe); 
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.status-active {
    /* 1. Задаем градиентный фон (зеленый/бирюзовый) */
    background: linear-gradient(45deg, #10b981, #22c55e, #34d399); 
    
    /* 2. Накладываем фон только на текст (WebKit-браузеры) */
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    
    /* 3. Обычный цвет (fallback) для старых браузеров */
    color: #4CAF50; 

    /* Дополнительный стиль: легкое свечение текста */
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}




/* --- VPN NOTICE STYLES --- */

.vpn-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный фон */
    z-index: 10000; /* Поверх всего */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.vpn-notice-overlay.show {
    opacity: 1;
    visibility: visible;
}

.vpn-notice-card {
    position: relative;
    background-color: #1a1a2e; /* Темно-фиолетовый фон в тему */
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2), 0 0 15px rgba(0, 255, 255, 0.1);
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3); /* Голубая обводка */
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.vpn-notice-overlay.show .vpn-notice-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notice-icon {
    font-size: 30px;
    color: #00ffff; /* Светло-голубой, соответствует теме */
    flex-shrink: 0;
}

.notice-content {
    text-align: left;
    flex-grow: 1;
}

.notice-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
}

.notice-text {
    color: #b3ccff; /* Светлый текст */
    font-size: 1rem;
    margin: 0;
}

.notice-text strong {
    color: #00ffff;
    font-weight: 600;
}

.notice-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #b3ccff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s ease;
}

.notice-close:hover {
    color: #fff;
}

/* Добавление свечения в карточку */
.notice-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff0077, #00ffff);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 12px;
    filter: blur(8px);
    opacity: 0.3;
    animation: glow-animation 8s infinite alternate;
}

@keyframes glow-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== BOT MODAL STYLES ==================== */
.bot-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.bot-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 700px;
    width: 85%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Кастомный скроллбар для модального окна */
.bot-modal-content::-webkit-scrollbar {
    width: 6px;
}

.bot-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 8px 0;
}

.bot-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.bot-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    width: 8px;
}

.bot-modal-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

/* Анимированный скроллбар трек */
.bot-modal-content::-webkit-scrollbar-track:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Firefox скроллбар */
.bot-modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.03);
}

/* Анимации закрытия модального окна */
.bot-modal.modal-closing {
    animation: modalFadeOut 0.3s ease-in forwards;
}

.bot-modal-content.modal-content-closing {
    animation: modalSlideOut 0.3s ease-in forwards;
}

@keyframes modalFadeOut {
    from { 
        opacity: 1;
        backdrop-filter: blur(5px);
    }
    to { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes modalSlideOut {
    0% { 
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }
    100% { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9) rotateX(-10deg);
        filter: blur(5px);
    }
}

@keyframes modalSlideIn {
    0% { 
        opacity: 0;
        transform: translateY(-100px) scale(0.8) rotateX(15deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.05) rotateX(5deg);
        filter: blur(2px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

.bot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.bot-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    opacity: 0;
    transform: translateX(-30px);
    animation: titleSlideIn 0.6s ease-out 0.2s forwards;
}

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

.bot-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.bot-modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 59, 48, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.bot-modal-close:hover::before {
    width: 100%;
    height: 100%;
}

.bot-modal-close:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.3);
}

.bot-modal-close:active {
    transform: rotate(90deg) scale(0.9);
}

.bot-modal-body {
    padding: 1.5rem 2rem;
}

.bot-modal-section {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFadeIn 0.6s ease-out forwards;
}

.bot-modal-section:nth-child(1) { animation-delay: 0.1s; }
.bot-modal-section:nth-child(2) { animation-delay: 0.2s; }
.bot-modal-section:nth-child(3) { animation-delay: 0.3s; }
.bot-modal-section:nth-child(4) { animation-delay: 0.4s; }
.bot-modal-section:nth-child(5) { animation-delay: 0.5s; }
.bot-modal-section:nth-child(6) { animation-delay: 0.6s; }

.bot-modal-section:last-child {
    margin-bottom: 0;
}

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

.bot-modal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bot-modal-section p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.875rem;
    font-size: 0.95rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: featureSlideIn 0.6s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.feature-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.feature-item li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

.commands-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.command-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.command-item code {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.625rem;
}

.advantage-tag {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(10px);
    animation: tagFadeIn 0.5s ease-out forwards;
}

.advantage-tag:nth-child(1) { animation-delay: 0.1s; }
.advantage-tag:nth-child(2) { animation-delay: 0.2s; }
.advantage-tag:nth-child(3) { animation-delay: 0.3s; }
.advantage-tag:nth-child(4) { animation-delay: 0.4s; }
.advantage-tag:nth-child(5) { animation-delay: 0.5s; }
.advantage-tag:nth-child(6) { animation-delay: 0.6s; }

.advantage-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.setup-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.setup-steps li {
    counter-increment: step-counter;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 3rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.setup-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.bot-modal-footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
}

.modal-bot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #22a5f0, #1e90ff);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 165, 240, 0.3);
}

.modal-bot-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 165, 240, 0.4);
}

/* Bot Buttons Styles */
.bot-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.bot-info-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 20px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(99, 102, 241, 0.4);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
    flex: 1;
}

.bot-info-button:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.bot-info-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4);
}

.bot-fancy-button {
    flex: 1;
    /* Сбросим дополнительный отступ и гарантируем одинаковые padding */
    margin-top: 0;
    padding: 16px 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bot-modal-content {
        width: 95%;
        max-height: 85vh;
        max-width: 500px;
    }
    
    .bot-modal-header {
        padding: 1.25rem 1.5rem 0.75rem;
    }
    
    .bot-modal-body {
        padding: 1.25rem 1.5rem;
    }
    
    .bot-modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .bot-buttons {
        flex-direction: column;
    }
    
    .bot-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .bot-modal-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bot-modal-content {
        width: 98%;
        max-height: 90vh;
    }
    
    .bot-modal-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .bot-modal-body {
        padding: 1rem;
    }
    
    .bot-modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .bot-modal-header h2 {
        font-size: 1.125rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .bot-modal-section {
        margin-bottom: 1.25rem;
    }
}