/* ── Variables ── */
:root {
    --bg:     #0d1117;
    --bg2:    #161b22;
    --card:   #1c2128;
    --border: #30363d;
    --green:  #3fb950;
    --red:    #f85149;
    --yellow: #e3b341;
    --blue:   #58a6ff;
    --orange: #f07b39;
    --purple: #bc8cff;
    --text:   #e6edf3;
    --muted:  #8b949e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
input, button, select { font-family: inherit; font-size: 14px; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Layout ── */
.wrap { max-width: 900px; margin: 0 auto; padding: 32px 20px; }
.wrap-sm { max-width: 440px; margin: 0 auto; padding: 40px 20px; }

/* ── Nav ── */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}
.logo { display: flex; align-items: center; }
.nav-links { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
    text-align: center;
}
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-blue   { background: var(--blue); color: #000; }
.btn-green  { background: var(--green); color: #000; }
.btn-orange { background: var(--orange); color: #fff !important; }
.btn-ghost  { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-block  { display: block; width: 100%; }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; color: #1f1f1f;
    border: 1px solid #dadce0; border-radius: 7px;
    padding: 11px; font-weight: 600; cursor: pointer; width: 100%;
    transition: box-shadow .15s;
    text-decoration: none;
}
.btn-google:hover { box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Form ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.form-input {
    width: 100%; padding: 11px 14px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 7px; color: var(--text);
    transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--blue); }
.form-input::placeholder { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Card ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}
.card-sm { padding: 20px; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-err  { background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.3); color: var(--red); }
.alert-ok   { background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.3); color: var(--green); }
.alert-info { background: rgba(88,166,255,.1); border: 1px solid rgba(88,166,255,.3); color: var(--blue); }

/* ── Status cards ── */
.status-card { border-radius: 12px; padding: 24px 28px; margin-bottom: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.status-card.trial   { background: rgba(88,166,255,.07); border: 1px solid rgba(88,166,255,.3); }
.status-card.active  { background: rgba(63,185,80,.07); border: 1px solid rgba(63,185,80,.3); }
.status-card.expired { background: rgba(248,81,73,.06); border: 1px solid rgba(248,81,73,.25); }
.status-icon { font-size: 34px; flex-shrink: 0; }
.status-info { flex: 1; }
.status-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.status-main { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.status-detail { font-size: 12px; color: var(--muted); }
.days-pill { padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.05); border: 1px solid var(--border); flex-shrink: 0; }

/* ── Plan cards ── */
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media(max-width: 540px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px 22px; cursor: pointer; transition: border-color .2s; position: relative; }
.plan-card:hover { border-color: var(--blue); }
.plan-card.best { border-color: rgba(63,185,80,.4); background: rgba(63,185,80,.04); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green); color: #000; font-size: 9px; font-weight: 800; padding: 3px 12px; border-radius: 10px; letter-spacing: .5px; white-space: nowrap; }
.plan-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.plan-price { font-size: 34px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.plan-price sup { font-size: 18px; font-weight: 700; vertical-align: super; }
.plan-per { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.plan-features { font-size: 12px; color: var(--muted); line-height: 2.1; }
.plan-btn { width: 100%; padding: 11px; border: none; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 18px; transition: opacity .15s; }
.plan-btn:hover { opacity: .85; }
.plan-btn:disabled { opacity: .45; cursor: not-allowed; }
.plan-btn-monthly { background: var(--blue); color: #000; }
.plan-btn-yearly  { background: var(--green); color: #000; }

/* ── Hero / Landing ── */
.hero { text-align: center; padding: 70px 20px 50px; }
.hero-tag { display: inline-block; background: rgba(88,166,255,.12); border: 1px solid rgba(88,166,255,.3); color: var(--blue); font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 20px; letter-spacing: .5px; }
.hero h1 { font-size: 42px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: #f0b429; }
.hero p { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto 32px; line-height: 1.65; }
@media(max-width: 600px) { .hero h1 { font-size: 28px; } }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 50px 0; }
.feature-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px 18px; }
.feature-icon { font-size: 24px; margin-bottom: 10px; }
.feature-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── Pay status ── */
#pay-status { padding: 12px; border-radius: 8px; margin-top: 14px; font-size: 13px; display: none; text-align: center; }
#pay-status.ok  { background: rgba(63,185,80,.12); border: 1px solid rgba(63,185,80,.3); color: var(--green); }
#pay-status.err { background: rgba(248,81,73,.12); border: 1px solid rgba(248,81,73,.3); color: var(--red); }

/* ── Queue ── */
.queue-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
.queue-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 12px; }
.queue-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(48,54,61,.5); font-size: 12px; }
.queue-row:last-child { border-bottom: none; }

/* ── Misc ── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
