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

:root {
    --bg: #0f0f13;
    --bg2: #1a1a24;
    --bg3: #22222f;
    --accent: #6c63ff;
    --accent2: #ff6584;
    --text: #e8e8f0;
    --text2: #9090a8;
    --green: #4caf7d;
    --red: #f44336;
    --radius: 12px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* Navbar */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: var(--bg2); border-bottom: 1px solid #ffffff10; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text2); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn-primary { background: var(--accent); color: #fff !important; padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 600; }
.btn-primary:hover { background: #5a52e0; opacity: 1 !important; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent) !important; padding: 0.5rem 1.2rem; border-radius: 8px; }
.btn-outline:hover { background: var(--accent); color: #fff !important; opacity: 1 !important; }
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; font-size: 1rem; transition: 0.2s; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; border-radius: 10px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #3d9e68; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #5a52e0; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Hero */
.hero { text-align: center; padding: 5rem 2rem 4rem; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text2); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto 4rem; padding: 0 2rem; }
.feature-card { background: var(--bg2); border-radius: var(--radius); padding: 1.5rem; border: 1px solid #ffffff08; }
.feature-card .icon { font-size: 2rem; margin-bottom: 0.8rem; }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { color: var(--text2); font-size: 0.9rem; }

/* Pricing */
.pricing { max-width: 900px; margin: 0 auto 4rem; padding: 0 2rem; text-align: center; }
.pricing h2 { font-size: 2rem; margin-bottom: 2rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.plan-card { background: var(--bg2); border-radius: var(--radius); padding: 2rem 1.5rem; border: 1px solid #ffffff10; transition: 0.2s; }
.plan-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.plan-card.popular { border-color: var(--accent); position: relative; }
.plan-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.plan-card .price { font-size: 2.5rem; font-weight: 800; margin: 0.5rem 0; }
.plan-card .price span { font-size: 1rem; color: var(--text2); font-weight: 400; }
.plan-card p { color: var(--text2); margin-bottom: 1.5rem; }

/* Dashboard */
.dashboard { max-width: 900px; margin: 0 auto; padding: 2rem; }
.dashboard h1 { font-size: 1.8rem; margin-bottom: 2rem; }
.card { background: var(--bg2); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid #ffffff08; }
.card h2 { font-size: 1.1rem; color: var(--text2); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.status-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.status-active { background: #4caf7d20; color: var(--green); }
.status-expired { background: #f4433620; color: var(--red); }
.status-none { background: #ffffff10; color: var(--text2); }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid #ffffff08; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text2); font-size: 0.9rem; }
.info-row .value { font-weight: 500; }
.progress-bar { background: var(--bg3); border-radius: 6px; height: 8px; margin-top: 0.8rem; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 6px; transition: width 0.5s; }
.code-block { background: var(--bg3); border-radius: 8px; padding: 0.8rem 1rem; font-family: monospace; font-size: 0.85rem; word-break: break-all; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.copy-btn { background: var(--accent); border: none; color: #fff; padding: 0.3rem 0.7rem; border-radius: 6px; cursor: pointer; font-size: 0.8rem; white-space: nowrap; }

/* Login */
.auth-wrap { max-width: 440px; margin: 4rem auto; padding: 0 1rem; }
.auth-card { background: var(--bg2); border-radius: var(--radius); padding: 2rem; border: 1px solid #ffffff10; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.auth-card p { color: var(--text2); margin-bottom: 1.5rem; }
.tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 1px solid #ffffff10; }
.tab { padding: 0.7rem 1.2rem; cursor: pointer; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text2); }
.form-group input { width: 100%; background: var(--bg3); border: 1px solid #ffffff15; border-radius: 8px; padding: 0.7rem 1rem; color: var(--text); font-size: 1rem; }
.form-group input:focus { outline: none; border-color: var(--accent); }
.tg-btn { display: flex; align-items: center; justify-content: center; gap: 0.7rem; background: #2aabee; color: #fff; border-radius: 8px; padding: 0.8rem; font-weight: 600; width: 100%; margin-bottom: 1rem; }
.tg-btn:hover { background: #1a9bde; color: #fff; }
.divider { text-align: center; color: var(--text2); margin: 1rem 0; font-size: 0.85rem; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #ffffff15; }
.divider::before { left: 0; }
.divider::after { right: 0; }
.error { background: #f4433615; border: 1px solid #f4433640; border-radius: 8px; padding: 0.7rem 1rem; color: var(--red); margin-bottom: 1rem; font-size: 0.9rem; }

/* Setup */
.setup { max-width: 800px; margin: 0 auto; padding: 2rem; }
.setup h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.setup .subtitle { color: var(--text2); margin-bottom: 2rem; }
.os-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.os-tab { padding: 0.6rem 1.2rem; background: var(--bg2); border-radius: 8px; cursor: pointer; border: 1px solid #ffffff10; }
.os-tab.active { border-color: var(--accent); color: var(--accent); }
.step { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.step-num { width: 32px; height: 32px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.step-content h3 { margin-bottom: 0.3rem; }
.step-content p { color: var(--text2); font-size: 0.95rem; }

/* Footer */
footer { text-align: center; padding: 2rem; color: var(--text2); font-size: 0.85rem; border-top: 1px solid #ffffff08; margin-top: 2rem; }

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .navbar { padding: 1rem; }
    .nav-links { gap: 0.8rem; }
}
