:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #0088cc; /* Telegram Blue */
    --accent-hover: #0077b5;
    --danger: #ff4d4d;
    --success: #00cc66;
    --gold: #ffd700;
    --border-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.vip { color: var(--gold); }

.nav-links a {
    margin-left: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white !important;
}
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
    background-color: #444;
    color: white !important;
}
.btn-secondary:hover { background-color: #555; }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary) !important;
}
.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary) !important;
}

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; }

.logout { color: var(--danger) !important; }

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.telegram-login { margin: 2rem 0; }
.note { font-size: 0.9rem; color: var(--text-secondary); }

/* Dashboard */
.dashboard-container { display: flex; flex-direction: column; gap: 2rem; }

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info { display: flex; align-items: center; gap: 1rem; }
.profile-pic { width: 60px; height: 60px; border-radius: 50%; }
.user-text h1 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.user-text p { color: var(--text-secondary); }

.quick-actions { display: flex; gap: 1rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    background: rgba(0, 136, 204, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.stat-details h3 { font-size: 0.9rem; color: var(--text-secondary); font-weight: normal; }
.stat-number { font-size: 1.8rem; font-weight: bold; }

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Subscriptions */
.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sub-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sub-header {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-id { font-weight: bold; font-family: monospace; color: var(--text-primary); }
.status-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.active { background-color: rgba(0, 204, 102, 0.2); color: var(--success); border: 1px solid rgba(0, 204, 102, 0.3); }
.status-badge.expired { background-color: rgba(255, 77, 77, 0.2); color: var(--danger); border: 1px solid rgba(255, 77, 77, 0.3); }

.sub-body { padding: 1.5rem; }
.info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.03); padding-bottom: 0.5rem; }
.info-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-row .label { color: var(--text-secondary); font-weight: 500; }
.info-row .value { font-family: 'Roboto Mono', monospace; color: var(--text-primary); }

.blur-text { filter: blur(5px); cursor: pointer; transition: all 0.3s ease; user-select: none; }
.blur-text:hover { filter: blur(3px); }
.blur-text.revealed { filter: none; }

.copy-text { cursor: pointer; transition: color 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.copy-text:hover { color: var(--accent); }
.copy-text i { font-size: 0.8rem; opacity: 0.7; }

.sub-footer { padding: 1rem; background-color: rgba(0,0,0,0.2); border-top: 1px solid var(--border-color); text-align: right; }

/* MACs */
.macs-list { display: flex; flex-direction: column; gap: 1rem; }
.mac-item {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}
.mac-address { font-family: monospace; font-weight: bold; }
.mac-app { color: var(--text-secondary); font-size: 0.9rem; margin-left: 0.5rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.status-dot.active { background-color: var(--success); }
.status-dot.inactive { background-color: var(--danger); }

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    color: var(--text-secondary);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* Pricing Page */
.pricing-container { text-align: center; }
.page-header { margin-bottom: 3rem; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }

.pricing-tabs { margin-bottom: 2rem; display: flex; justify-content: center; gap: 1rem; }
.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.app-type-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 50px;
    display: inline-flex;
}

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.plan-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s;
}
.plan-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.plan-card.featured { border: 2px solid var(--accent); box-shadow: 0 0 20px rgba(0, 136, 204, 0.2); }

.best-value {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold);
    color: black;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-header h3 { font-size: 1.2rem; color: var(--text-secondary); }
.plan-header .price { font-size: 2.5rem; font-weight: bold; color: var(--text-primary); margin: 1rem 0; }

.plan-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.plan-features li { margin-bottom: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.plan-features i { color: var(--success); }

/* Instructions Page */
.device-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.device-btn {
    background: var(--card-bg);
    border: none;
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.device-btn.active { background-color: var(--accent); color: white; }

.instruction-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.instruction-card h2 { margin-bottom: 0.5rem; }
.subtitle { color: var(--text-secondary); margin-bottom: 2rem; }

.step-group { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.step-group:last-child { border-bottom: none; }
.step-group h3 { margin-bottom: 1rem; color: var(--accent); }
.step-group ul { list-style: none; padding-left: 1rem; }
.step-group li { margin-bottom: 0.5rem; }

.code-badge {
    background-color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.setup-steps ol { padding-left: 1.5rem; }
.setup-steps li { margin-bottom: 0.8rem; }

/* Support Page */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.icon-wrapper {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.faq-list { text-align: left; margin-top: 2rem; }
.faq-list details {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}
.faq-list summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq-list p { padding: 1rem; color: var(--text-secondary); border-top: 1px solid var(--border-color); }

/* Schedule */
.schedule-container { max-width: 800px; margin: 0 auto; }
.schedule-card { background-color: var(--card-bg); border-radius: 15px; overflow: hidden; border: 1px solid var(--border-color); }
.schedule-header { padding: 1.5rem; background-color: rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); }
.live-badge { background-color: var(--danger); color: white; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-weight: bold; animation: pulse 2s infinite; }

.schedule-list { padding: 0; }
.event-item { display: flex; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
.event-item:last-child { border-bottom: none; }
.event-item:hover { background-color: rgba(255,255,255,0.02); }

.event-time { font-weight: bold; color: var(--accent); width: 80px; font-size: 1.1rem; }
.event-details { flex: 1; }
.event-sport { font-weight: bold; margin-bottom: 0.2rem; }
.event-match { color: var(--text-secondary); margin-bottom: 0.2rem; }
.event-channel { font-size: 0.9rem; color: var(--gold); }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Activation */
.activation-container { max-width: 600px; margin: 0 auto; text-align: center; }
.activation-card { background-color: var(--card-bg); padding: 2rem; border-radius: 15px; border: 1px solid var(--border-color); text-align: left; }
.activation-form input { width: 100%; padding: 1rem; background-color: #121212; border: 1px solid var(--border-color); color: white; border-radius: 8px; font-size: 1.1rem; margin-bottom: 0.5rem; font-family: monospace; }
.info-box { background-color: rgba(0, 136, 204, 0.1); border: 1px solid rgba(0, 136, 204, 0.3); padding: 1rem; border-radius: 8px; display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0; }
.info-box i { color: var(--accent); font-size: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .quick-actions { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .pricing-tabs { flex-direction: column; }
    .device-tabs { flex-direction: column; }
    .navbar .container { flex-direction: column; gap: 1rem; }
    .nav-links { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .nav-links a { margin-left: 0; }
}
