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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #080b12;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(12, 16, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    color: #00d4ff;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav div a {
    color: #8892a4;
    text-decoration: none;
    margin-left: 1.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav div a:hover {
    color: #00d4ff;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

section {
    display: none;
    animation: fadeIn 0.3s ease;
}

section.active {
    display: block;
}

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

.hero {
    text-align: center;
    padding: 5rem 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    color: #8892a4;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    box-shadow: 0 4px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 35px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
}

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

.feature {
    background: #111827;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.feature p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

form {
    max-width: 420px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    padding: 14px 18px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

button {
    padding: 14px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

h2 {
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    color: #00d4ff;
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tariff-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tariff-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
}

.tariff-card .badge {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.tariff-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.tariff-card .price {
    font-size: 2.5rem;
    color: #00d4ff;
    font-weight: 800;
    margin: 1rem 0;
}

.tariff-card .details {
    color: #6b7280;
    margin: 1rem 0;
    line-height: 1.8;
}

.tariff-card button {
    width: 100%;
}

.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.subscription-card.active {
    border-left: 3px solid #10b981;
}

.subscription-card.expired {
    border-left: 3px solid #ef4444;
    opacity: 0.6;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.status.active { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status.expired { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status.disabled { background: rgba(107, 114, 128, 0.2); color: #6b7280; }
.status.pending { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

.config-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #00d4ff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
}

.telegram-section {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.telegram-section p {
    color: #8892a4;
    margin-bottom: 1rem;
}

.telegram-section input {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.error {
    color: #ef4444;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

footer {
    background: #111827;
    text-align: center;
    padding: 1.5rem;
    color: #4b5563;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    margin-top: auto;
}

a {
    color: #00d4ff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
}
