:root {
  --bg: #07070c; --panel: #0f0f18; --card: #14141f; --card2: #1c1c2b; --border: #26263a; --text: #f1f1f7;
  --muted: #8e8ea6; --accent: #8b3dff; --accent2: #a970ff; --accent-glow: rgba(139, 61, 255, .35);
  --ok: #22c55e; --warn: #f5a524; --bad: #ef4444; --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.testbar { background: #2b1d05; color: #fbd38d; text-align: center; font-weight: 700; font-size: 13px; padding: 6px 12px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 12, .85); backdrop-filter: blur(14px);
       border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 21px; letter-spacing: -.4px; }
.logo i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #c79bff, var(--accent));
          box-shadow: 0 0 18px var(--accent-glow); display: inline-grid; place-items: center; font-style: normal; font-size: 15px; }
.menu { display: flex; gap: 20px; flex: 1; }
.menu a { color: var(--muted); font-weight: 700; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a.on, .menu a:hover { color: var(--text); border-color: var(--accent); }
.icons { display: flex; gap: 6px; align-items: center; }
.icon { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--text); }
.icon:hover { background: var(--card2); }
.icon svg { width: 20px; height: 20px; }
.icon b { position: absolute; top: 2px; right: 1px; background: var(--accent); color: #fff; font-size: 10px; min-width: 16px;
          height: 16px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 760px) { .menu { display: none; } .top .wrap { justify-content: space-between; } }
.mobile-menu { display: none; }
@media (max-width: 760px) {
  .mobile-menu { display: flex; justify-content: space-around; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
                 background: rgba(15, 15, 24, .96); border-top: 1px solid var(--border); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
  .mobile-menu a { color: var(--muted); font-size: 11px; font-weight: 700; display: grid; justify-items: center; gap: 2px; }
  .mobile-menu a.on { color: var(--accent2); }
  .mobile-menu svg { width: 22px; height: 22px; }
  body { padding-bottom: 70px; }
}

/* ---------- buttons + forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
       font: inherit; font-weight: 800; padding: 12px 20px; border-radius: 12px; background: var(--card2); color: var(--text);
       min-height: 46px; transition: transform .08s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 28px var(--accent-glow); }
.btn.primary:hover { background: #7a2cf0; }
.btn.ghost { background: transparent; border: 1px solid var(--border); }
.btn.danger { color: #fca5a5; }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
input, select, textarea { font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--border);
                          border-radius: 12px; padding: 11px 13px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; }
label.f { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
.inline { display: inline; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 24px; overflow: hidden; margin: 18px 0; min-height: 360px; display: flex;
        align-items: flex-end; background: linear-gradient(135deg, #1b0f33, #07070c) center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 12, .9) 0%,
               rgba(7, 7, 12, .55) 50%, rgba(7, 7, 12, .1) 100%), linear-gradient(0deg, rgba(7, 7, 12, .6), transparent 50%); }
.hero .in { position: relative; z-index: 1; padding: 36px; max-width: 620px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 52px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -1.2px; }
.hero p { color: #cfcfe0; margin: 0 0 22px; font-size: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.chip { padding: 8px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--border);
        color: #d7d7e6; font-weight: 700; font-size: 13px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 20px var(--accent-glow); }
.head { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 14px; }
.head h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.head a { color: var(--muted); font-weight: 700; font-size: 14px; }
.pagehead { margin: 26px 0 14px; }
.pagehead h1 { margin: 0; font-size: 30px; letter-spacing: -.6px; }

/* ---------- influencer cards ---------- */
.igrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.icard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
         transition: transform .15s, border-color .15s; }
.icard:hover { transform: translateY(-3px); border-color: #3a3a58; }
.icard .photo { aspect-ratio: 4 / 3.4; background: #1c1c2b center / cover no-repeat; position: relative; }
.icard .body { padding: 34px 14px 14px; position: relative; }
.icard .av { position: absolute; top: -26px; left: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--card); background: linear-gradient(135deg,
          var(--accent), #ff4fa3) center / cover no-repeat; display: grid; place-items: center; font-weight: 900; color: #fff;
          font-size: 20px; position: relative; }
.tick { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok);
        border: 2px solid var(--card); display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 900; }
.icard h3 { margin: 0; font-size: 17px; }
.icard .fol { color: var(--muted); font-size: 13px; }
.icard .from { color: var(--accent2); font-weight: 900; font-size: 18px; margin-top: 6px; }
.kind { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--card2); color: var(--accent2); }

/* ---------- video cards ---------- */
.vgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.vcard { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 9 / 13;
         border: 1px solid var(--border); }
.vcard .img { position: absolute; inset: 0; background: #14141f center / cover no-repeat; transition: transform .3s; }
.vcard:hover .img { transform: scale(1.04); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 45%); }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; width: 46px; height: 46px;
        border-radius: 50%; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .85); display: grid;
        place-items: center; }
.play::before { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
                margin-left: 4px; }
.vcard .meta { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; }
.vcard .meta b { display: block; font-size: 14px; }
.vcard .meta span { font-size: 12px; color: #d0d0dd; }
.price { position: absolute; z-index: 1; top: 9px; right: 9px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px);
         padding: 3px 10px; border-radius: 10px; font-weight: 900; font-size: 13px; }

/* ---------- profile ---------- */
.banner { height: 230px; border-radius: 22px; background: linear-gradient(135deg, #2a1152, #0e0e18) center / cover no-repeat;
          margin-top: 16px; position: relative; }
.banner::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(0deg, var(--bg), transparent 70%); }
.profile { position: relative; margin-top: -60px; padding: 0 8px; z-index: 1; }
.profile .avatar { width: 108px; height: 108px; font-size: 40px; border-width: 4px; border-color: var(--bg); }
.profile .tick { width: 24px; height: 24px; font-size: 13px; border-color: var(--bg); }
.profile h1 { margin: 12px 0 0; font-size: 28px; display: flex; align-items: center; gap: 8px; }
.stats { display: flex; gap: 34px; margin: 16px 0; }
.stats b { display: block; font-size: 21px; }
.stats span { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); margin: 18px 0; }
.tabs a { padding: 10px 0; color: var(--muted); font-weight: 800; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--accent2); border-color: var(--accent); }

/* ---------- video detail ---------- */
.detail { display: grid; gap: 26px; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); margin-top: 18px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.player { width: 100%; border-radius: 20px; background: #000; aspect-ratio: 9 / 16; object-fit: cover; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.facts { display: grid; gap: 9px; margin: 16px 0; color: #d6d6e4; }
.facts div { display: flex; gap: 10px; align-items: center; }
.facts svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.by { display: flex; gap: 10px; align-items: center; }
.by .avatar { width: 40px; height: 40px; font-size: 15px; border-width: 2px; }
.bigprice { font-size: 26px; font-weight: 900; }

/* ---------- checkout ---------- */
.co { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); margin-top: 8px; }
@media (max-width: 860px) { .co { grid-template-columns: 1fr; } }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.item .grow { flex: 1; min-width: 0; }
.sum { display: flex; justify-content: space-between; padding: 8px 0; color: #d6d6e4; }
.sum.total { font-weight: 900; font-size: 18px; color: var(--text); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }
.methods { display: grid; gap: 8px; margin: 10px 0 16px; }
.method { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--card2);
          border: 1px solid var(--border); cursor: pointer; font-weight: 700; }
.method input { width: 18px; height: 18px; accent-color: var(--accent); }
.method .logo-m { width: 34px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.method:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.method .t { font-size: 11px; color: var(--warn); margin-left: auto; }
.terms { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- confirmation / tracking ---------- */
.done { text-align: center; padding: 42px 20px; position: relative; overflow: hidden; }
.bigcheck { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); display: grid;
            place-items: center; box-shadow: 0 0 40px rgba(34, 197, 94, .45); font-size: 46px; color: #fff; font-weight: 900; }
.confetti span { position: absolute; width: 8px; height: 8px; border-radius: 2px; opacity: .85; animation: fall 3s ease-in forwards; }
@keyframes fall { from { transform: translateY(-40px) rotate(0); } to { transform: translateY(260px) rotate(540deg); opacity: 0; } }
.pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.orow { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card);
        border: 1px solid var(--border); margin-bottom: 10px; }
.orow img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; }
.orow .grow { flex: 1; min-width: 0; }
.timeline { position: relative; margin: 10px 0 0 8px; padding-left: 22px; border-left: 2px solid var(--border); }
.timeline div { position: relative; padding: 0 0 18px; }
.timeline div::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
                        background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.notice { border-left: 4px solid var(--warn); background: var(--card); padding: 12px 14px; border-radius: 10px; margin: 12px 0; }
.adnote { font-size: 13px; color: var(--muted); background: var(--card2); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }

/* ---------- admin ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.two { display: grid; gap: 18px; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.admintabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.admintabs a { padding: 8px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-weight: 700; }
.admintabs a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.kpis b { font-size: 26px; display: block; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
footer { color: var(--muted); font-size: 13px; padding: 48px 0 30px; text-align: center; }

/* ---------- the account under each video ---------- */
.vitem { display: grid; gap: 7px; }
.who { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 2px; }
.stack { display: flex; }
.mini { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -6px; display: grid;
        place-items: center; font-size: 10px; color: #fff; font-weight: 900;
        background: linear-gradient(135deg, var(--accent), #ff4fa3) center / cover no-repeat; }
.mini:first-child { margin-left: 0; }
/* ---------- choose the account on the video page ---------- */
.accts { display: grid; gap: 8px; margin: 8px 0 4px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: var(--card2);
        border: 1px solid var(--border); cursor: pointer; }
.acct input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.acct:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.acct .avatar { width: 42px; height: 42px; font-size: 16px; border-width: 2px; border-color: var(--card2); flex: none; }
.acct .grow { flex: 1; min-width: 0; }
.acct .grow b { display: block; }
.acct .grow span { color: var(--muted); font-size: 12px; }
.acct .p { font-weight: 900; font-size: 17px; white-space: nowrap; }
.statbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.statbox div { background: var(--card2); border-radius: 12px; padding: 10px; text-align: center; }
.statbox b { display: block; font-size: 20px; }
.statbox span { color: var(--muted); font-size: 12px; }
.ccard { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #14141f center / cover
         no-repeat; border: 1px solid var(--border); display: flex; align-items: flex-end; }
.ccard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent 60%); }
.ccard .in { position: relative; z-index: 1; padding: 14px; width: 100%; }
.ccard h3 { margin: 0; font-size: 20px; }
.cgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.steps { padding-left: 20px; margin: 0; } .steps li { margin: 0 0 10px; line-height: 1.45; }
.panel .row .avatar { width: 30px; height: 30px; font-size: 12px; border-width: 2px; }
.logo img { display: block; height: 29px; width: auto; }
@media (max-width: 600px) { .logo img { height: 21px; } }
.ccard.upload { background: linear-gradient(135deg, #3b1d6e, #7c3aed 60%, #db2777); }
