:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #151520;
    --bg-card: #1a1a27;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #818cf8;
    --telegram: #24a1de;
    --telegram-hover: #1e87bb;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d2d3f;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

/* Navigation */
.nav {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.nav-profile img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.btn-logout {
    color: var(--error) !important;
    font-size: 13px !important;
}

/* Hero Section */
.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.btn-telegram {
    background: var(--telegram);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-telegram:hover {
    background: var(--telegram-hover);
}

.btn-primary-sm {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-price {
    font-size: 56px;
    font-weight: 800;
    margin: 16px 0 8px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 32px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Purchase Card */
.purchase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
}

.purchase-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--telegram), var(--telegram-hover));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
}

.purchase-card h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.purchase-text {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-secondary);
}

.profile-info h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.profile-username {
    color: var(--accent-light);
    font-size: 15px;
    margin-bottom: 4px;
}

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

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

.profile-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* Subscription Status */
.subscription-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.subscription-status.active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
}

.subscription-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
}

.subscription-status i {
    font-size: 32px;
}

.subscription-status.active i {
    color: var(--success);
}

.subscription-status.inactive i {
    color: var(--error);
}

.subscription-status strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.subscription-status span {
    color: var(--text-secondary);
    font-size: 13px;
}

.subscription-details {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    font-size: 14px;
}

.status-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Login Card */
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--telegram), var(--telegram-hover));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
}

.login-card h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.login-text {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.telegram-login-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-error,
.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-top: 20px;
}

.login-prompt {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-top: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        font-size: 13px;
    }

    .nav-profile span {
        display: none;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .purchase-card,
    .profile-card,
    .login-card {
        padding: 32px 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .lang-selector {
        top: 12px;
        right: 12px;
    }
}
