/* =====================================================================
   广告联盟系统 - 全局样式
   配色：深色侧边栏 + 青绿色高亮(导航) + 紫色强调(数据/按钮)
   ===================================================================== */

:root {
  --sidebar-bg: #15161f;
  --sidebar-bg-hover: #1f212e;
  --accent-teal: #00b8a9;
  --accent-teal-dark: #019287;
  --accent-violet: #7c5cff;
  --accent-violet-dark: #6440f2;
  --accent-violet-light: #efebff;
  --bg-canvas: #f4f5f9;
  --card-bg: #ffffff;
  --text-main: #1f2430;
  --text-muted: #767c8c;
  --border-soft: #eaebf1;
  --success: #1cb87e;
  --danger: #e5484d;
  --warning: #f5a623;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(20, 21, 31, 0.04), 0 4px 14px rgba(20, 21, 31, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--accent-violet); text-decoration: none; }
a:hover { color: var(--accent-violet-dark); }

h1, h2, h3, h4 { margin: 0 0 4px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 8px; }

/* ----------------------------- App shell ----------------------------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #c7c9d9;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand .dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-teal));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0;
}
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 8px; color: #aeb1c4; font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
}
.sidebar-nav a:hover { background: var(--sidebar-bg-hover); color: #fff; }
.sidebar-nav a.active { background: var(--accent-teal); color: #06231f; font-weight: 700; }
.sidebar-nav .nav-icon { width: 16px; text-align: center; opacity: 0.9; }
.sidebar-foot {
  padding: 14px 18px; font-size: 11px; color: #565a6e;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--border-soft);
  padding: 14px 26px; position: sticky; top: 0; z-index: 5;
}
.topbar-crumb { color: var(--text-muted); font-size: 13px; }
.topbar-crumb b { color: var(--text-main); }
.topbar-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.topbar-balance { color: var(--text-main); font-weight: 700; }
.topbar-balance .label { color: var(--text-muted); font-weight: 400; margin-right: 4px; }
.topbar-user { display: flex; align-items: center; gap: 6px; font-weight: 600; }

.content { padding: 26px; }
.page-title { font-size: 22px; margin-bottom: 18px; }
.page-sub { color: var(--text-muted); margin-top: -8px; margin-bottom: 18px; }

/* ----------------------------- KPI cards ----------------------------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px;
}
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-card {
  background: var(--card-bg); border-top: 3px solid var(--accent-teal);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 16px 16px 14px;
}
.kpi-card .kpi-value { font-size: 22px; font-weight: 700; }
.kpi-card .kpi-label { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.kpi-card.violet { border-top-color: var(--accent-violet); }

/* ----------------------------- Cards / panels ----------------------------- */
.card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 20px; margin-bottom: 20px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.card-head h3 { font-size: 15px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent-violet); color: #fff; }
.btn-primary:hover { background: var(--accent-violet-dark); }
.btn-outline { background: #fff; border-color: var(--border-soft); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.btn-teal { background: var(--accent-teal); color: #06231f; }
.btn-teal:hover { background: var(--accent-teal-dark); }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ----------------------------- Forms ----------------------------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-soft);
  border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: var(--text-main);
}
.form-control:focus { outline: none; border-color: var(--accent-violet); box-shadow: 0 0 0 3px var(--accent-violet-light); }
.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }

/* ----------------------------- Tables ----------------------------- */
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th {
  text-align: left; color: var(--text-muted); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 12px; border-bottom: 2px solid var(--border-soft);
}
table.data-table td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafafe; }

/* ----------------------------- Badges ----------------------------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11.5px; font-weight: 700;
}
.badge-active, .badge-confirmed, .badge-paid   { background: #e3f8ee; color: var(--success); }
.badge-pending, .badge-draft                   { background: #fef3e0; color: var(--warning); }
.badge-rejected, .badge-disabled               { background: #fde9ea; color: var(--danger); }
.badge-paused, .badge-completed                { background: #ececf3; color: var(--text-muted); }

/* ----------------------------- Alerts / flash ----------------------------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 13.5px; }
.alert-success { background: #e3f8ee; color: #0a8a59; }
.alert-error   { background: #fde9ea; color: #c2272c; }
.alert-info    { background: var(--accent-violet-light); color: var(--accent-violet-dark); }

/* ----------------------------- Auth pages ----------------------------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #15161f 0%, #262a45 100%); padding: 24px;
}
.auth-card {
  background: #fff; width: 380px; border-radius: 14px; padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.auth-card .dot {
  width: 40px; height: 40px; border-radius: 10px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff;
}
.auth-title { text-align: center; font-size: 18px; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.role-pick { display: flex; gap: 10px; margin-bottom: 18px; }
.role-pick a {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 8px;
  background: var(--bg-canvas); color: var(--text-main); font-weight: 600; font-size: 13px;
}
.role-pick a.active { background: var(--accent-violet); color: #fff; }

/* ----------------------------- Format picker (campaign step 1) ----------------------------- */
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .format-grid { grid-template-columns: repeat(2, 1fr); } }
.format-card {
  background: #fff; border: 2px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px; cursor: pointer; text-align: center; transition: all .15s ease;
}
.format-card:hover { border-color: var(--accent-violet); }
.format-card.selected { border-color: var(--accent-violet); background: var(--accent-violet-light); }
.format-card .fmt-preview {
  height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.format-card .fmt-name { font-weight: 700; font-size: 13.5px; }
.fmt-chip {
  background: var(--accent-violet); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 5px; padding: 3px 9px;
}

/* ----------------------------- Stepper ----------------------------- */
.stepper { display: flex; gap: 6px; margin-bottom: 22px; }
.stepper .step {
  flex: 1; text-align: center; padding: 9px 4px; border-radius: 8px; font-size: 12.5px;
  font-weight: 700; background: var(--border-soft); color: var(--text-muted);
}
.stepper .step.active { background: var(--accent-violet); color: #fff; }
.stepper .step.done { background: var(--accent-violet-light); color: var(--accent-violet-dark); }

/* ----------------------------- Misc ----------------------------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state .big { font-size: 32px; margin-bottom: 10px; }
.code-box {
  background: #14151f; color: #d6e0ff; border-radius: 8px; padding: 16px;
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.copy-btn { margin-top: 8px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .sidebar { display: none; }
  .content { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; gap: 0; }
}

/* ----------------------------- Landing page ----------------------------- */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(124,92,255,0.35), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(0,184,169,0.30), transparent 45%),
    linear-gradient(135deg, #11121b 0%, #1c1f33 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.landing-inner { width: 100%; max-width: 760px; text-align: center; }
.landing-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 28px;
}
.landing-brand .dot {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
}
.landing-title {
  color: #fff; font-size: 32px; font-weight: 800; line-height: 1.35; margin-bottom: 14px;
  letter-spacing: 0.2px;
}
.landing-sub {
  color: rgba(255,255,255,0.62); font-size: 15px; line-height: 1.7;
  max-width: 540px; margin: 0 auto 36px;
}
.landing-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px;
}
.lf-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 22px 16px; text-align: left;
  backdrop-filter: blur(6px);
}
.lf-icon {
  width: 38px; height: 38px; border-radius: 10px; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.lf-violet { background: rgba(124,92,255,0.22); }
.lf-teal   { background: rgba(0,184,169,0.22); }
.lf-amber  { background: rgba(255,170,60,0.22); }
.lf-title { color: #fff; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.lf-desc  { color: rgba(255,255,255,0.55); font-size: 12.5px; line-height: 1.6; }
.landing-actions {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 360px; margin: 0 auto;
}
.landing-actions .btn { padding: 13px 0; font-size: 14.5px; }
.landing-actions .btn-outline { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff; }
.landing-actions .btn-outline:hover { border-color: var(--accent-violet); color: var(--accent-violet); background: #fff; }

@media (max-width: 720px) {
  .landing-features { grid-template-columns: 1fr; }
  .landing-title { font-size: 25px; }
}

/* ----------------------------- Auth page polish ----------------------------- */
.auth-wrap {
  background:
    radial-gradient(circle at 20% 15%, rgba(124,92,255,0.14), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(0,184,169,0.12), transparent 45%),
    var(--bg-canvas);
}
.role-badge {
  display: inline-block; margin: 6px auto 4px; padding: 3px 12px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.role-badge-advertiser { background: var(--accent-violet-light); color: var(--accent-violet-dark); }
.role-badge-publisher  { background: rgba(0,184,169,0.14); color: var(--accent-teal-dark); }
.role-badge-admin      { background: var(--bg-canvas); color: var(--text-main); }

/* ----------------------------- Landing page v2 (marketing) ----------------------------- */
.landing-body { background: var(--bg-canvas); }

.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.lp-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; color: var(--text-main); }
.lp-brand .dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
}
.lp-nav-actions { display: flex; gap: 10px; }
.lp-nav-actions .btn { padding: 8px 18px; }

.lp-hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(124,92,255,0.16), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0,184,169,0.14), transparent 50%),
    linear-gradient(180deg, #f8f7ff 0%, #f4f5f9 100%);
  padding: 76px 24px 60px;
  border-bottom: 1px solid var(--border-soft);
}
.lp-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.lp-badge {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent-violet-light); color: var(--accent-violet-dark); border: 1px solid rgba(124,92,255,0.18);
}
.lp-title { color: var(--text-main); font-size: 38px; font-weight: 800; line-height: 1.32; margin-bottom: 18px; }
.lp-sub {
  color: var(--text-muted); font-size: 15px; line-height: 1.75;
  max-width: 560px; margin: 0 auto 32px;
}
.lp-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.lp-cta .btn { padding: 13px 26px; font-size: 14.5px; }
.lp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 640px; margin: 0 auto;
}
.lp-stat {
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 16px 8px; box-shadow: 0 4px 16px rgba(20,20,40,0.04);
}
.lp-stat-num { color: var(--accent-violet-dark); font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.lp-stat-label { color: var(--text-muted); font-size: 11.5px; }

.lp-section { padding: 64px 24px; }
.lp-section-alt { background: #fff; }
.lp-section-inner { max-width: 1080px; margin: 0 auto; }
.lp-section-head { text-align: center; margin-bottom: 36px; }
.lp-eyebrow { color: var(--accent-violet); font-weight: 700; font-size: 12.5px; letter-spacing: 0.5px; margin-bottom: 8px; text-transform: uppercase; }
.lp-section-head h2 { font-size: 24px; font-weight: 800; color: var(--text-main); margin: 0; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 24px 20px; transition: transform 0.15s, box-shadow 0.15s;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,20,40,0.08); }
.lp-section-alt .lp-card { background: var(--bg-canvas); border-color: transparent; }

.lp-footer { background: #fff; padding: 28px 24px; border-top: 1px solid var(--border-soft); }
.lp-footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.lp-footer .lp-brand { color: var(--text-main); }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: var(--text-muted); font-size: 13px; }
.lp-footer-links a:hover { color: var(--accent-violet); }

.lp-card .lf-title { color: var(--text-main); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.lp-card .lf-desc { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 760px) {
  .lp-title { font-size: 27px; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-nav-actions .btn { padding: 7px 12px; font-size: 12.5px; }
}

/* ----------------------------- Landing page v3 (dark neon, flashy) ----------------------------- */
.lp-dark { background: #06070d; }

.lp-bg-fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lp-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  animation: lp-float 14s ease-in-out infinite;
}
.lp-orb-1 { width: 520px; height: 520px; background: #7c5cff; top: -160px; left: -120px; animation-delay: 0s; }
.lp-orb-2 { width: 460px; height: 460px; background: #00b8a9; bottom: -160px; right: -100px; animation-delay: -5s; }
.lp-orb-3 { width: 360px; height: 360px; background: #ff4fd8; top: 38%; left: 48%; opacity: 0.30; animation-delay: -9s; }
@keyframes lp-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-40px) scale(1.08); }
}
.lp-grid-fx {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.lp-dark .lp-nav, .lp-dark .lp-section, .lp-dark .lp-footer,
.lp-nav-dark, .lp-section-dark, .lp-footer-dark { position: relative; z-index: 1; }

.lp-nav-dark { background: rgba(8,9,16,0.72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.lp-nav-dark .lp-brand { color: #fff; }
.lp-nav-dark .btn-outline { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff; }
.lp-nav-dark .btn-outline:hover { border-color: var(--accent-violet); color: #fff; background: rgba(124,92,255,0.25); }

.lp-hero-dark { padding: 100px 24px 70px; background: transparent; border: none; }
.lp-badge-glow {
  background: rgba(124,92,255,0.16); color: #c9bbff; border: 1px solid rgba(124,92,255,0.4);
  box-shadow: 0 0 24px rgba(124,92,255,0.25);
}
.lp-title-glow { color: #fff; font-size: 44px; text-shadow: 0 0 40px rgba(124,92,255,0.25); }
.lp-gradient-text {
  background: linear-gradient(90deg, #a78bff, #6ce8da 60%, #ff8ae0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub-dark { color: rgba(255,255,255,0.62); }

.btn-glow-violet, .btn-glow-teal {
  display: inline-flex; align-items: center; gap: 6px; padding: 14px 28px;
  border-radius: 10px; font-weight: 700; font-size: 14.5px; color: #fff; border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-glow-violet { background: linear-gradient(135deg, #7c5cff, #9b7bff); box-shadow: 0 0 28px rgba(124,92,255,0.55), 0 8px 20px rgba(124,92,255,0.25); }
.btn-glow-teal { background: linear-gradient(135deg, #00b8a9, #1fe0cd); box-shadow: 0 0 28px rgba(0,184,169,0.45), 0 8px 20px rgba(0,184,169,0.2); }
.btn-glow-violet:hover, .btn-glow-teal:hover { transform: translateY(-2px); }

.lp-stats-dark { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 640px; margin: 0 auto; }
.lp-stat-dark {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; padding: 16px 8px; backdrop-filter: blur(6px);
}
.lp-stat-num-dark { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.lp-stat-label-dark { color: rgba(255,255,255,0.5); font-size: 11.5px; }

.lp-section-dark { background: transparent; padding: 70px 24px; }
.lp-section-alt-dark { background: rgba(255,255,255,0.02); }
.lp-eyebrow-dark { color: #9b8bff; }
.lp-h2-dark { color: #fff; font-size: 25px; font-weight: 800; margin: 0; }

.lp-card-glass {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px); border-radius: 16px; padding: 26px 20px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.lp-card-glass:hover {
  transform: translateY(-4px); border-color: rgba(124,92,255,0.45);
  box-shadow: 0 16px 36px rgba(124,92,255,0.18);
}
.lf-title-dark { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.lf-desc-dark { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.7; }

.lp-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 880px; margin: 0 auto; }
.lp-step { flex: 1; text-align: center; padding: 0 12px; }
.lp-step-num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, #7c5cff, #00b8a9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 0 22px rgba(124,92,255,0.45);
}
.lp-step-line { flex: 0 0 60px; height: 2px; background: linear-gradient(90deg, rgba(124,92,255,0.5), rgba(0,184,169,0.5)); margin-top: 22px; }
@media (max-width: 760px) { .lp-steps { flex-direction: column; gap: 28px; } .lp-step-line { display: none; } }

.lp-final-cta {
  position: relative; z-index: 1; padding: 80px 24px; text-align: center;
  background: radial-gradient(ellipse at center, rgba(124,92,255,0.14), transparent 70%);
}
.lp-final-cta-inner { max-width: 600px; margin: 0 auto; }
.lp-final-cta h2 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.lp-final-cta p { color: rgba(255,255,255,0.6); margin-bottom: 28px; font-size: 14.5px; }
.lp-final-cta .lp-cta { justify-content: center; }

.lp-footer-dark { background: #06070d; border-top: 1px solid rgba(255,255,255,0.08); }
.lp-footer-dark .lp-brand { color: #fff; }
.lp-footer-dark .lp-footer-links a { color: rgba(255,255,255,0.5); }
.lp-footer-dark .lp-footer-links a:hover { color: #fff; }

/* Floating Telegram customer-service button */
.lp-cs-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff;
  padding: 13px 20px 13px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 8px 26px rgba(34,158,217,0.5);
  transition: transform 0.15s;
}
.lp-cs-float:hover { transform: translateY(-3px) scale(1.03); color: #fff; }
.lp-cs-icon { font-size: 16px; }
.lp-cs-pulse {
  position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid rgba(34,158,217,0.6);
  animation: lp-cs-pulse 1.8s ease-out infinite;
}
@keyframes lp-cs-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 760px) {
  .lp-title-glow { font-size: 28px; }
  .lp-stats-dark { grid-template-columns: repeat(2, 1fr); }
  .lp-cs-text { display: none; }
  .lp-cs-float { padding: 14px; }
}

.lp-cs-nav-link {
  font-size: 12.5px; font-weight: 700; color: var(--accent-teal);
  padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(0,184,169,0.35);
  margin-right: 4px; transition: background 0.15s;
}
.lp-cs-nav-link:hover { background: rgba(0,184,169,0.12); color: var(--accent-teal); }

/* =====================================================================
   Landing page v3 — light & vivid (ailen ads)
   ===================================================================== */
.v3-body { background: #fff; overflow-x: hidden; }

.v3-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.v3-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  animation: v3float 16s ease-in-out infinite;
}
.v3-blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, #a78bfa, transparent 70%); top: -120px; left: -100px; }
.v3-blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, #5eead4, transparent 70%); top: 280px; right: -120px; animation-delay: -5s; }
.v3-blob-3 { width: 380px; height: 380px; background: radial-gradient(circle, #fda4af, transparent 70%); top: 900px; left: 30%; animation-delay: -10s; }
@keyframes v3float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.v3-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,20,40,0.06);
}
.v3-nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.v3-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--text-main); }
.v3-logo {
  width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7c5cff, #00d4b8); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 16px rgba(124,92,255,0.35);
}
.v3-nav-actions { display: flex; align-items: center; gap: 10px; }
.v3-cs-link {
  font-size: 12.5px; font-weight: 700; color: var(--accent-teal-dark);
  padding: 7px 13px; border-radius: 999px; background: rgba(0,184,169,0.10);
}
.v3-cs-link:hover { background: rgba(0,184,169,0.18); color: var(--accent-teal-dark); }

.v3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; white-space: nowrap;
}
.v3-btn-ghost { background: #fff; border: 1px solid rgba(20,20,40,0.10); color: var(--text-main); }
.v3-btn-ghost:hover { border-color: #7c5cff; color: #7c5cff; }
.v3-btn-grad {
  background: linear-gradient(135deg, #7c5cff, #9b7bff); color: #fff;
  box-shadow: 0 8px 20px rgba(124,92,255,0.35);
}
.v3-btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124,92,255,0.45); color: #fff; }
.v3-btn-grad-teal {
  background: linear-gradient(135deg, #00b8a9, #2dd9c8); color: #fff;
  box-shadow: 0 8px 20px rgba(0,184,169,0.32);
}
.v3-btn-grad-teal:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,184,169,0.42); color: #fff; }
.v3-btn-lg { padding: 14px 28px; font-size: 14.5px; border-radius: 12px; }
.v3-btn-white { background: #fff; color: #7c5cff; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.v3-btn-white:hover { transform: translateY(-2px); color: #6440f2; }
.v3-btn-white-outline { background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.v3-btn-white-outline:hover { background: rgba(255,255,255,0.22); color: #fff; }

.v3-hero { position: relative; z-index: 1; padding: 90px 24px 70px; text-align: center; }
.v3-hero-inner { max-width: 780px; margin: 0 auto; }
.v3-badge {
  display: inline-block; margin-bottom: 22px; padding: 7px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #6440f2;
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(0,184,169,0.12));
  border: 1px solid rgba(124,92,255,0.18);
}
.v3-title { font-size: 44px; font-weight: 800; line-height: 1.28; color: var(--text-main); margin-bottom: 20px; letter-spacing: -0.5px; }
.v3-grad-text {
  background: linear-gradient(120deg, #7c5cff 0%, #00b8a9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v3-sub { font-size: 16px; line-height: 1.8; color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; }
.v3-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.v3-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 680px; margin: 0 auto; }
.v3-stat {
  background: #fff; border-radius: 14px; padding: 18px 8px;
  box-shadow: 0 10px 28px rgba(20,20,40,0.06); border: 1px solid rgba(20,20,40,0.04);
}
.v3-stat-num { font-size: 21px; font-weight: 800; background: linear-gradient(120deg, #7c5cff, #00b8a9); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }
.v3-stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }

.v3-section { position: relative; z-index: 1; padding: 64px 24px; }
.v3-section-tint { background: linear-gradient(180deg, rgba(124,92,255,0.04), rgba(0,184,169,0.04)); }
.v3-section-inner { max-width: 1120px; margin: 0 auto; }
.v3-section-head { text-align: center; margin-bottom: 38px; }
.v3-eyebrow { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 0.6px; margin-bottom: 8px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.v3-eyebrow-violet { color: #6440f2; background: var(--accent-violet-light); }
.v3-eyebrow-teal { color: var(--accent-teal-dark); background: rgba(0,184,169,0.12); }
.v3-eyebrow-amber { color: #b35e00; background: rgba(255,170,60,0.16); }
.v3-section-head h2 { font-size: 27px; font-weight: 800; color: var(--text-main); margin: 0; }

.v3-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v3-bento-3 { grid-template-columns: repeat(3, 1fr); }
.v3-card {
  background: #fff; border-radius: 18px; padding: 28px 24px;
  border: 1px solid rgba(20,20,40,0.05); box-shadow: 0 4px 18px rgba(20,20,40,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.v3-card h3 { font-size: 16px; font-weight: 800; color: var(--text-main); margin: 0 0 8px; }
.v3-card p { font-size: 13.5px; line-height: 1.75; color: var(--text-muted); margin: 0; }
.v3-card-big { grid-column: span 1; }
.v3-glow-violet:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(124,92,255,0.20); }
.v3-glow-teal:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,184,169,0.20); }
.v3-glow-amber:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(255,170,60,0.22); }
.v3-icon {
  width: 46px; height: 46px; border-radius: 13px; font-size: 21px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.v3-icon-violet { background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(124,92,255,0.06)); }
.v3-icon-teal { background: linear-gradient(135deg, rgba(0,184,169,0.18), rgba(0,184,169,0.06)); }
.v3-icon-amber { background: linear-gradient(135deg, rgba(255,170,60,0.20), rgba(255,170,60,0.06)); }

.v3-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 920px; margin: 0 auto; }
.v3-step { flex: 1; text-align: center; padding: 0 16px; }
.v3-step h3 { font-size: 15px; font-weight: 800; color: var(--text-main); margin: 14px 0 6px; }
.v3-step p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.v3-step-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7c5cff, #00b8a9); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 20px rgba(124,92,255,0.30);
}
.v3-step-line { flex: 0 0 60px; height: 2px; background: linear-gradient(90deg, #7c5cff, #00b8a9); margin-top: 23px; opacity: 0.35; }

.v3-final {
  position: relative; z-index: 1; margin: 40px 24px 0; border-radius: 28px; padding: 70px 24px; text-align: center;
  background: linear-gradient(120deg, #7c5cff 0%, #6a4dee 50%, #00b8a9 100%);
  box-shadow: 0 30px 60px rgba(124,92,255,0.25);
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.v3-final h2 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.v3-final p { color: rgba(255,255,255,0.85); font-size: 14.5px; margin-bottom: 30px; }

.v3-footer { position: relative; z-index: 1; padding: 32px 24px; border-top: 1px solid rgba(20,20,40,0.06); margin-top: 40px; }
.v3-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.v3-footer .v3-brand { color: var(--text-main); }
.v3-footer-links { display: flex; gap: 22px; }
.v3-footer-links a { color: var(--text-muted); font-size: 13px; }
.v3-footer-links a:hover { color: #7c5cff; }

.v3-cs-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #2bb3ec, #1591d6); color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 10px 28px rgba(21,145,214,0.40);
  transition: transform 0.15s;
}
.v3-cs-float:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.v3-cs-pulse {
  position: absolute; inset: -4px; border-radius: 999px; border: 2px solid #2bb3ec;
  animation: v3pulse 1.8s ease-out infinite;
}
@keyframes v3pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 880px) {
  .v3-bento, .v3-bento-3 { grid-template-columns: 1fr; }
  .v3-stats { grid-template-columns: repeat(2, 1fr); }
  .v3-title { font-size: 32px; }
  .v3-steps { flex-direction: column; align-items: center; gap: 24px; }
  .v3-step-line { display: none; }
  .v3-nav-actions .v3-btn { padding: 7px 12px; font-size: 12px; }
  .v3-cs-link { display: none; }
}

/* ----------------------------- Quick-start guide card ----------------------------- */
.qs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qs-item {
  background: var(--bg-canvas); border-radius: 12px; padding: 18px 16px;
  border: 1px solid var(--border-soft); text-align: left;
}
.qs-icon {
  width: 38px; height: 38px; border-radius: 10px; font-size: 17px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.qs-icon-violet { background: var(--accent-violet-light); }
.qs-icon-teal { background: rgba(0,184,169,0.14); }
.qs-icon-amber { background: rgba(255,170,60,0.16); }
.qs-title { font-weight: 700; font-size: 14px; color: var(--text-main); margin-bottom: 6px; }
.qs-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; min-height: 48px; }

@media (max-width: 880px) {
  .qs-grid { grid-template-columns: repeat(2, 1fr); }
}
