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

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

body {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #2a3441 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
}

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

#loading-overlay {
    text-align: center;
    padding: 60px 0;
}

.loading-circle {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(41, 128, 185, 0.2);
    border-top-color: #2980b9;
    border-bottom-color: #3498db;
    border-radius: 50%;
    animation: rotate-loading 1.2s linear infinite;
    margin: 0 auto 16px;
}

.loading-text {
    color: #8a9ba8;
    font-size: 14px;
    font-weight: 500;
}

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

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 0 8px 32px rgba(52, 152, 219, 0.5);
    }
}

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

.profile-section {
    margin-bottom: 32px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(135deg, #3498db, #2980b9);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.4);
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .profile-pic {
        width: 140px;
        height: 140px;
    }
}

.page-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .page-heading {
        font-size: 32px;
    }
}

.benefits-compact {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.benefits-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.15);
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-number {
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 16px;
    color: #e1e8ed;
    font-weight: 500;
}

.cta-section {
    margin: 40px 0;
}

.tg-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    text-decoration: none;
    padding: 20px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    animation: pulse-glow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    justify-content: center;
}

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

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

.tg-link:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #3498db, #5dade2);
}

.tg-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.site-footer {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 24px 16px;
    color: #8a9ba8;
    font-size: 14px;
}

.footer-notice {
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.footer-nav-link:hover {
    color: #3498db;
}

/* Cookie Banner Styles */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(16px);
    padding: 16px;
    display: none;
    z-index: 1000;
    border-top: 1px solid rgba(52, 152, 219, 0.3);
}

.banner-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.banner-message {
    color: #e1e8ed;
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.banner-link {
    color: #3498db;
    text-decoration: none;
}

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

.banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.banner-button {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.accept-btn {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
}

.accept-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}

.decline-btn {
    background: transparent;
    color: #8a9ba8;
    border: 1px solid #8a9ba8;
}

.decline-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

@media (max-width: 480px) {
    .banner-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .banner-message {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .banner-actions {
        flex-shrink: 0;
        width: 90px;
    }
    
    .banner-button {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 70px;
    }
}

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

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

.modal-container {
    background: linear-gradient(135deg, #1a2332 0%, #2a3441 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    margin: auto;
    padding: 32px;
    position: relative;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

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

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    color: #3498db;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-modal-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #5dade2;
    transform: scale(1.1);
}

.modal-container h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 60px 0 32px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-text-content {
    color: #e1e8ed;
    line-height: 1.6;
}

.modal-text-content h2 {
    color: white;
    margin: 24px 0 16px;
    font-size: 18px;
    font-weight: 600;
}

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

/* Language Switcher Styles */
.language-selector {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 2001;
}

.language-option {
    background: transparent;
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #8a9ba8;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 12px;
}

.language-option.active {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border-color: #3498db;
}

.language-option:hover {
    color: #3498db;
    border-color: #3498db;
}

.language-version {
    display: block;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .page-wrapper {
        padding: 32px 0;
    }
    
    .page-heading {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .benefit-card {
        padding: 16px 20px;
    }
    
    .benefit-text {
        font-size: 15px;
    }
    
    .tg-link {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .modal-container {
        padding: 24px;
    }
    
    .modal-container h1 {
        font-size: 24px;
        margin: 50px 0 24px;
    }
}

/* Loading state improvements */
.shine-effect {
    position: relative;
    overflow: hidden;
}

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

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