/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d0f14; --surface: #161a23; --border: #242836;
  --accent: #6c63ff; --accent2: #4ecca3;
  --text: #e8eaf0; --muted: #7a7f96; --warn: #f5a623;
  --radius: 12px; --font: 'Segoe UI', system-ui, sans-serif;
}
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.nav__logo { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.nav__links { display: flex; gap: 1rem; align-items: center; }
.nav__user { color: var(--muted); font-size: .9rem; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.2rem; border-radius: var(--radius); font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: opacity .15s, transform .1s; }
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--sm { padding: .4rem .9rem; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Flash ── */
.flash { background: #2a1f0e; border-left: 3px solid var(--warn); padding: .75rem 2rem; color: var(--warn); }

/* ── Hero ── */
.hero { text-align: center; padding: 5rem 2rem 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero__sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding: 3rem 2rem; max-width: 960px; margin: 0 auto; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.feature__icon { font-size: 2rem; margin-bottom: .75rem; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ── Pricing ── */
.pricing { text-align: center; padding: 3rem 2rem 5rem; }
.pricing h2 { font-size: 2rem; margin-bottom: 2rem; }
.plans { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; min-width: 180px; position: relative; }
.plan--featured { border-color: var(--accent); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 99px; }
.plan__name { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.plan__price { font-size: 2.2rem; font-weight: 800; margin-bottom: .25rem; }
.plan__desc { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }

/* ── Auth ── */
.auth { display: flex; align-items: center; justify-content: center; padding: 4rem 1rem; flex: 1; }
.auth__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 400px; }
.auth__box h1 { margin-bottom: 1.5rem; font-size: 1.6rem; }
.auth__divider { text-align: center; margin: 1.5rem 0; color: var(--muted); font-size: .85rem; position: relative; }
.auth__divider::before, .auth__divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth__divider::before { left: 0; }
.auth__divider::after { right: 0; }
.auth__tg { display: flex; justify-content: center; }

/* ── Form ── */
.form__group { margin-bottom: 1rem; }
.form__group label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.form__group input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .7rem 1rem; color: var(--text); font-size: 1rem; }
.form__group input:focus { outline: none; border-color: var(--accent); }
.form { margin-bottom: 0; }
.form .btn { margin-top: .5rem; }

/* ── Dashboard ── */
.dashboard { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; flex: 1; }
.dashboard__header { margin-bottom: 2rem; }
.dashboard__header h1 { font-size: 1.8rem; }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card--active { border-color: #2d4a3a; }
.card--expired { border-color: #4a2d2d; opacity: .8; }
.card--empty { color: var(--muted); text-align: center; padding: 3rem; }
.card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card__name { font-weight: 600; }
.card__body { margin-bottom: 1.25rem; }
.card__row { display: flex; justify-content: space-between; font-size: .9rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.card__row:last-child { border: none; }
.card__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge { font-size: .75rem; padding: .2rem .6rem; border-radius: 99px; font-weight: 600; }
.badge--active { background: #1a3a2a; color: var(--accent2); }
.badge--frozen  { background: #1a2a3a; color: #63b3ff; }
.badge--expired { background: #3a1a1a; color: #ff6363; }
.text--warn { color: var(--warn); }

/* ── Modal ── */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; min-width: 300px; position: relative; }
.modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

/* ── Footer ── */
.footer { text-align: center; padding: 1.5rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); margin-top: auto; }
