/* FC Auto Buyer – website (home, login, account, admin share this file) */
:root {
  --bg: #080a14;
  --bg2: #0d1020;
  --card: #121528;
  --card2: #181c33;
  --border: #252a47;
  --text: #f3f4fa;
  --muted: #9298b8;
  --faint: #5f6585;
  --accent: #6d72ff;
  --accent2: #a46bff;
  --grad: linear-gradient(135deg, #6d72ff 0%, #a46bff 100%);
  --good: #3ddc84;
  --bad: #ff4d6a;
  --warn: #ffb020;
  --coin: #f2b53a;
  --radius: 18px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------------- Nav ---------------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(8, 10, 20, .72); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 17px; }
.brand .logo { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 0 18px rgba(109, 114, 255, .55); }
.brand .logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(109, 114, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(109, 114, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 114, 255, .28) 0%, rgba(164, 107, 255, .12) 35%, transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(109, 114, 255, .12); border: 1px solid rgba(109, 114, 255, .35); color: #c6c8ff; font-size: 13px; font-weight: 600; }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; margin: 18px 0 18px; font-weight: 800; text-transform: uppercase; letter-spacing: -.5px; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero p.lead b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--good); }

.showcase { position: relative; display: flex; justify-content: center; }
.showcase .frame {
  position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, rgba(109, 114, 255, .5), rgba(164, 107, 255, .15) 50%, rgba(255, 255, 255, .04));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 80px rgba(109, 114, 255, .25); transform: rotate(-2.5deg);
}
.showcase .frame img { width: 300px; border-radius: 14px; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(18, 21, 40, .92); border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  font-size: 13px; white-space: nowrap; backdrop-filter: blur(8px); animation: float 5s ease-in-out infinite;
}
.chip b { display: block; font-size: 15px; }
.chip .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.chip .ico svg { width: 18px; height: 18px; }
.chip-1 { top: 12%; left: -6%; }
.chip-2 { bottom: 16%; right: -4%; animation-delay: -2.5s; }
.chip-3 { bottom: -2%; left: 4%; animation-delay: -1.2s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------------- Sections ---------------- */
section.block { padding: 90px 0; }
section.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 10px 0 12px; text-transform: uppercase; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.strip div { background: var(--card); padding: 22px; text-align: center; }
.strip b { display: block; font-size: 26px; font-weight: 800; }
.strip span { color: var(--muted); font-size: 13px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s; overflow: hidden;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(109, 114, 255, .6); }
.feature::after { content: ''; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(109, 114, 255, .18), transparent 70%); }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(109, 114, 255, .14); color: #b9bbff; display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); font-weight: 800; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.plan.popular { border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; box-shadow: 0 20px 60px rgba(109, 114, 255, .25); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 99px; background: var(--grad); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.plan h3 { margin: 0; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.plan .price { font-size: 44px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .save { color: var(--good); font-size: 13px; font-weight: 600; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: #d4d6e8; }
.plan li svg { width: 18px; height: 18px; color: var(--good); flex: none; margin-top: 2px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--border); padding: 0 22px; }
.faq details[open] { border-color: rgba(109, 114, 255, .55); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.cta { text-align: center; padding: 56px 24px; border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgba(164, 107, 255, .35), transparent 60%), var(--card); border: 1px solid var(--border); }
.cta h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; text-transform: uppercase; }
.cta p { color: var(--muted); margin: 0 0 26px; }

footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .brand { font-size: 14px; color: var(--text); }
footer .brand .logo { width: 28px; height: 28px; }
footer .brand .logo svg { width: 16px; height: 16px; }
footer p { margin: 6px 0 0; max-width: 560px; }
footer nav { display: flex; gap: 20px; }
footer nav a:hover { color: var(--text); }

/* ---------------- Forms / cards ---------------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 114, 255, .2); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.pw-eye svg { width: 18px; height: 18px; }
.form-msg { min-height: 22px; font-size: 14px; margin: 4px 0 12px; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--good); }
.panel-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; }

/* Login */
.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 0; position: relative; overflow: hidden; }
.auth::before { content: ''; position: absolute; width: 760px; height: 760px; border-radius: 50%; top: -280px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(109, 114, 255, .25), transparent 65%); pointer-events: none; }
.auth-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(940px, 100% - 32px); overflow: hidden; }
.auth-side { padding: 44px; background: radial-gradient(circle at 20% 0%, rgba(164, 107, 255, .35), transparent 60%), var(--card2); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth-side h2 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; text-transform: uppercase; }
.auth-side p { color: var(--muted); margin: 0; }
.auth-side img { width: 220px; border-radius: 14px; margin: 0 auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.auth-form { padding: 44px; }
.auth-form h1 { font-size: 26px; margin: 0 0 6px; text-transform: uppercase; }
.auth-form > p { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.auth-foot { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: #c6c8ff; }

/* Account */
.account { padding: 40px 0 80px; }
.account-box { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; min-height: 620px; }
.side { border-right: 1px solid var(--border); background: var(--card2); display: flex; flex-direction: column; }
.profile { padding: 32px 24px 24px; text-align: center; border-bottom: 1px solid var(--border); }
.avatar { position: relative; width: 92px; height: 92px; margin: 0 auto 4px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 34px; font-weight: 800; box-shadow: 0 0 0 4px rgba(109, 114, 255, .25), 0 0 40px rgba(109, 114, 255, .4); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; transform: translateY(-10px); border: 2px solid var(--card2); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.active { background: #123d2a; color: var(--good); }
.status.expired, .status.blocked { background: #44151f; color: var(--bad); }
.profile dl { margin: 4px 0 20px; display: grid; gap: 10px; }
.profile dt { font-size: 13px; color: var(--muted); }
.profile dd { margin: 0; font-weight: 600; color: #c6c8ff; word-break: break-all; }
.side-nav { padding: 14px 0; display: grid; }
.side-nav button { display: flex; align-items: center; gap: 12px; padding: 13px 24px; background: none; border: 0; border-left: 3px solid transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 14px; font-weight: 500; }
.side-nav button svg { width: 18px; height: 18px; }
.side-nav button:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.side-nav button.on { color: var(--text); background: rgba(109, 114, 255, .14); border-left-color: var(--accent); }
.main { padding: 36px 40px; min-width: 0; }
.main h1 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; text-transform: uppercase; }
.main h2 { font-size: 18px; margin: 34px 0 14px; }
.main > p, .tab > p { color: var(--muted); margin: 0 0 22px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 14px; background: rgba(255, 176, 32, .08); border: 1px solid rgba(255, 176, 32, .4); }
.notice.bad { background: rgba(255, 77, 106, .08); border-color: rgba(255, 77, 106, .45); }
.notice.info { background: rgba(109, 114, 255, .1); border-color: rgba(109, 114, 255, .45); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.kpi-card { padding: 16px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border); position: relative; overflow: hidden; }
.kpi-card::after { content: ''; position: absolute; inset: auto -30px -50px auto; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(109, 114, 255, .2), transparent 70%); }
.kpi-card span { color: var(--muted); font-size: 13px; display: block; }
.kpi-card b { display: block; font-size: 26px; font-weight: 800; margin: 2px 0; }
.kpi-card b.up { color: var(--good); } .kpi-card b.down { color: var(--bad); }
.kpi-card small { color: var(--faint); font-size: 12px; }
@media (max-width: 720px) { .kpi-row { grid-template-columns: 1fr; } }
.setup { display: grid; gap: 12px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.setup li { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border); font-size: 14px; color: #d4d6e8; }
.setup li::before { counter-increment: s; content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(109, 114, 255, .2); color: #c6c8ff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.setup code { background: var(--card2); padding: 2px 7px; border-radius: 6px; font-size: 13px; color: #c6c8ff; }
.devices { display: grid; gap: 10px; }
.device { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border); }
.device .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(109, 114, 255, .14); color: #b9bbff; display: grid; place-items: center; flex: none; }
.device .ico svg { width: 22px; height: 22px; }
.device b { display: block; }
.device small { color: var(--muted); }
.pill { margin-left: auto; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.pill.good { color: var(--good); } .pill.warn { color: var(--warn); }
.max-w { max-width: 440px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; padding: 12px 20px; border-radius: 12px; background: var(--card2); border: 1px solid var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: .25s; z-index: 50; font-size: 14px; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .showcase { margin-top: 30px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .grid-3, .steps, .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .auth-box { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .account-box { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--border); }
  .side-nav { grid-auto-flow: column; overflow-x: auto; padding: 0; }
  .side-nav button { border-left: 0; border-bottom: 3px solid transparent; justify-content: center; padding: 14px 16px; white-space: nowrap; }
  .side-nav button.on { border-bottom-color: var(--accent); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; text-align: center; }
  .nav-links .btn { margin-top: 6px; }
  .hero { padding: 40px 0 70px; }
  section.block { padding: 64px 0; }
  .showcase .frame img { width: 240px; }
  .chip { font-size: 12px; padding: 8px 10px; }
  .chip-3 { display: none; }
  .auth-form, .main { padding: 26px 20px; }
  footer .wrap { flex-direction: column; text-align: center; align-items: center; }
}
