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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 35%, #334155 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    line-height: 1.6;
}

.main-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

#initial-loader {
    text-align: center;
    padding: 80px 0;
}

.spinner-element {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(59, 130, 246, 0.15);
    border-top-color: #3b82f6;
    border-bottom-color: #1d4ed8;
    border-radius: 50%;
    animation: spin-loader 1.4s linear infinite;
    margin: 0 auto 20px;
}

.loading-message {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

@keyframes glow-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35);
    }
    50% { 
        transform: scale(1.04);
        box-shadow: 0 10px 40px rgba(59, 130, 246, 0.55);
    }
}

#content-container {
    width: 100%;
    text-align: center;
    display: none;
}

.avatar-container {
    margin-bottom: 35px;
}

.channel-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.45);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

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

@media (min-width: 768px) {
    .channel-avatar {
        width: 150px;
        height: 150px;
    }
}

.primary-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 45px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .primary-title {
        font-size: 34px;
    }
}

.features-grid {
    margin-bottom: 45px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 18px;
    padding: 20px 24px;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    display: flex;
    justify-content: center;
}

.feature-description {
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 500;
    flex: 1;
}

.action-section {
    margin: 45px 0;
}

.telegram-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, #1d4ed8, #3b82f6);
    color: white;
    text-decoration: none;
    padding: 22px 52px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 19px;
    transition: all 0.35s ease;
    animation: glow-pulse 3.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    min-width: 300px;
    justify-content: center;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.telegram-channel-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.7s ease;
}

.telegram-channel-link:hover::before {
    left: 100%;
}

.telegram-channel-link:hover {
    transform: scale(1.06);
    box-shadow: 0 15px 45px rgba(59, 130, 246, 0.5);
    background: linear-gradient(145deg, #3b82f6, #60a5fa);
}

.telegram-svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.page-footer {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 28px 20px;
    color: #94a3b8;
    font-size: 14px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.cookie-notice {
    margin-bottom: 18px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #3b82f6;
}

/* Cookie Consent Banner */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    padding: 18px;
    display: none;
    z-index: 1000;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.consent-content {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.consent-text {
    color: #e2e8f0;
    flex: 1;
    min-width: 220px;
    line-height: 1.6;
}

.consent-link {
    color: #3b82f6;
    text-decoration: none;
}

.consent-link:hover {
    text-decoration: underline;
}

.consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.consent-btn {
    padding: 10px 22px;
    border-radius: 60px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    min-width: 85px;
    text-align: center;
}

.accept-consent {
    background: linear-gradient(145deg, #1d4ed8, #3b82f6);
    color: white;
}

.accept-consent:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.decline-consent {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #94a3b8;
}

.decline-consent:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

@media (max-width: 480px) {
    .consent-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .consent-text {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        line-height: 1.5;
    }
    
    .consent-buttons {
        flex-shrink: 0;
        width: 95px;
    }
    
    .consent-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 75px;
    }
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.modal-active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 22px;
    width: 92%;
    max-width: 520px;
    max-height: 92vh;
    margin: auto;
    padding: 36px;
    position: relative;
    overflow-y: auto;
    transform: translateY(-25px);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

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

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    color: #3b82f6;
    cursor: pointer;
    width: 42px;
    height: 42px;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-close-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    transform: scale(1.12);
}

.modal-content h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 65px 0 35px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-text {
    color: #e2e8f0;
    line-height: 1.7;
}

.modal-text h2 {
    color: white;
    margin: 28px 0 18px;
    font-size: 19px;
    font-weight: 600;
}

.modal-text p {
    margin-bottom: 18px;
}

/* Language Tabs */
.language-tabs {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 10px;
    z-index: 2001;
}

.lang-tab {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #94a3b8;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 13px;
}

.lang-tab.active-tab {
    background: rgba(59, 130, 246, 0.18);
    color: #3b82f6;
    border-color: #3b82f6;
}

.lang-tab:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

.language-content {
    display: block;
}

.language-content.hidden-content {
    display: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-wrapper {
        padding: 35px 0;
    }
    
    .primary-title {
        font-size: 26px;
        margin-bottom: 38px;
    }
    
    .feature-card {
        padding: 16px 20px;
    }
    
    .feature-description {
        font-size: 15px;
    }
    
    .telegram-channel-link {
        padding: 16px 32px;
        font-size: 16px;
        min-width: 260px;
    }
    
    .modal-content {
        padding: 28px;
    }
    
    .modal-content h1 {
        font-size: 26px;
        margin: 55px 0 28px;
    }
}

/* Loading improvements */
.pulse-animation {
    position: relative;
    overflow: hidden;
}

.pulse-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: shimmer 2.2s ease-in-out infinite;
}

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