/* ============================================
   Trideia — Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#0b0e14; --bg-soft:#0f131c; --surface:#141926; --surface2:#1b2233;
  --border:#242e45; --border-soft:#1c2438;
  --text:#eef1f8; --muted:#94a0b8; --faint:#5d6a85;
  --primary:#7c6cf6; --primary-h:#6a58f0; --primary-glow:rgba(124,108,246,.35);
  --accent:#2dd4bf; --green:#34d399; --red:#f87171; --yellow:#fbbf24;
  --grad:linear-gradient(135deg,#7c6cf6 0%,#2dd4bf 100%);
  --radius:14px; --shadow:0 12px 40px rgba(0,0,0,.45);
}
html { scroll-behavior:smooth; }
body { background:var(--bg); color:var(--text); font-family:'Inter',system-ui,-apple-system,sans-serif; line-height:1.65; font-size:15px; }
h1,h2,h3 { font-family:'Sora','Inter',sans-serif; letter-spacing:-.02em; }
a { color:var(--accent); text-decoration:none; transition:color .15s; }
a:hover { color:#5eead4; }
.container { max-width:1240px; margin:0 auto; padding:0 24px; }

/* ---------- Topbar ---------- */
.topbar { background:rgba(11,14,20,.85); backdrop-filter:blur(14px); border-bottom:1px solid var(--border-soft); position:sticky; top:0; z-index:100; }
.nav { display:flex; align-items:center; gap:22px; padding:15px 24px; flex-wrap:wrap; }
.logo { font-family:'Sora',sans-serif; font-size:1.35em; font-weight:800; color:var(--text); white-space:nowrap; }
.logo span { background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.searchbox { flex:1; display:flex; min-width:220px; }
.searchbox input { flex:1; padding:10px 16px; border:1px solid var(--border); background:var(--bg-soft); color:var(--text); border-radius:10px 0 0 10px; outline:none; font-size:.95em; transition:border-color .15s; }
.searchbox input:focus { border-color:var(--primary); }
.searchbox button { padding:10px 18px; background:var(--surface2); border:1px solid var(--border); border-left:none; border-radius:0 10px 10px 0; cursor:pointer; color:var(--muted); }
.searchbox button:hover { color:var(--text); }
.navlinks { display:flex; align-items:center; gap:16px; }
.btn-link { color:var(--muted); background:none; border:none; cursor:pointer; font-size:.94em; font-weight:500; font-family:inherit; }
.btn-link:hover { color:var(--text); }
.badge-balance { background:rgba(52,211,153,.12); border:1px solid rgba(52,211,153,.35); color:var(--green); padding:5px 13px; border-radius:20px; font-size:.83em; font-weight:600; }

/* ---------- Dropdown ---------- */
.dropdown { position:relative; }
.dropdown-menu { display:none; position:absolute; top:calc(100% + 6px); left:0; background:var(--surface); border:1px solid var(--border); border-radius:12px; min-width:250px; padding:8px; box-shadow:var(--shadow); }
.dropdown:hover .dropdown-menu { display:block; }
.dropdown-menu a { display:block; padding:9px 14px; color:var(--text); border-radius:8px; font-size:.93em; }
.dropdown-menu a:hover { background:var(--surface2); color:var(--accent); }

/* ---------- Botões ---------- */
.btn { display:inline-block; padding:11px 24px; border-radius:10px; border:none; cursor:pointer; font-weight:600; font-size:.93em; font-family:inherit; transition:all .18s; text-align:center; }
.btn-primary { background:var(--primary); color:#fff; box-shadow:0 4px 20px var(--primary-glow); }
.btn-primary:hover { background:var(--primary-h); color:#fff; transform:translateY(-1px); }
.btn-success { background:var(--green); color:#06281c; }
.btn-success:hover { filter:brightness(1.08); color:#06281c; }
.btn-danger { background:rgba(248,113,113,.12); border:1px solid rgba(248,113,113,.4); color:var(--red); }
.btn-danger:hover { background:rgba(248,113,113,.22); color:var(--red); }
.btn-outline { background:transparent; border:1px solid var(--border); color:var(--text); }
.btn-outline:hover { border-color:var(--primary); color:var(--text); }
.btn-ghost { background:var(--surface2); color:var(--text); border:1px solid var(--border-soft); }
.btn-sm { padding:6px 14px; font-size:.83em; border-radius:8px; }
.btn-block { display:block; width:100%; }

/* ---------- Hero ---------- */
.hero { position:relative; text-align:center; padding:96px 24px 72px; overflow:hidden; }
.hero::before { content:''; position:absolute; top:-160px; left:50%; transform:translateX(-50%); width:820px; height:520px; background:radial-gradient(ellipse, rgba(124,108,246,.22) 0%, transparent 65%); pointer-events:none; }
.hero .kicker { display:inline-block; background:rgba(124,108,246,.12); border:1px solid rgba(124,108,246,.35); color:#b1a7fa; padding:6px 16px; border-radius:20px; font-size:.82em; font-weight:600; margin-bottom:22px; }
.hero h1 { font-size:3.1em; line-height:1.15; margin-bottom:18px; font-weight:800; }
.hero h1 em { font-style:normal; background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero p { color:var(--muted); font-size:1.13em; max-width:620px; margin:0 auto 32px; }
.hero .actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.hero .actions .btn { padding:13px 30px; font-size:1em; }

/* ---------- Stats strip ---------- */
.stats-strip { display:flex; justify-content:center; gap:56px; padding:26px; background:var(--bg-soft); border:1px solid var(--border-soft); border-radius:var(--radius); margin:0 auto 20px; max-width:820px; flex-wrap:wrap; }
.stats-strip .item { text-align:center; }
.stats-strip .n { font-family:'Sora',sans-serif; font-size:1.7em; font-weight:800; background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stats-strip .l { color:var(--faint); font-size:.85em; font-weight:500; }

/* ---------- Grids ---------- */
.grid { display:grid; gap:22px; margin:26px 0; }
.grid-4 { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
.grid-cats { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:14px; }

/* ---------- Cards de produto ---------- */
.card { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius); overflow:hidden; transition:transform .2s, border-color .2s, box-shadow .2s; display:block; }
.card:hover { transform:translateY(-4px); border-color:var(--primary); box-shadow:0 16px 44px rgba(0,0,0,.5); }
.card .thumb-wrap { position:relative; overflow:hidden; }
.card .thumb { width:100%; height:200px; object-fit:cover; background:var(--surface2); display:flex; align-items:center; justify-content:center; font-size:3em; transition:transform .35s; }
.card:hover img.thumb { transform:scale(1.05); }
.card .body { padding:15px 17px 17px; }
.card .title { font-weight:600; color:var(--text); display:block; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card .seller { color:var(--faint); font-size:.84em; }
.card .meta-row { display:flex; justify-content:space-between; align-items:center; margin-top:11px; }
.card .price { color:var(--green); font-weight:700; font-size:1.08em; font-family:'Sora',sans-serif; }
.card .social-mini { color:var(--faint); font-size:.8em; display:flex; gap:10px; }
.cat-card { text-align:center; padding:20px 10px 16px; }
.cat-card .icon { font-size:2em; margin-bottom:4px; }
.cat-card .body { padding:0; font-size:.9em; font-weight:600; }

/* ---------- Seções ---------- */
.section-head { display:flex; justify-content:space-between; align-items:baseline; margin:44px 0 4px; }
.section-title { margin:40px 0 4px; font-size:1.55em; font-weight:700; }
.section-head .section-title { margin:0; }
.section-sub { color:var(--muted); margin-bottom:12px; font-size:.95em; }
.see-all { font-size:.9em; font-weight:600; }

/* ---------- CTA band ---------- */
.cta-band { background:linear-gradient(135deg, rgba(124,108,246,.14), rgba(45,212,191,.10)); border:1px solid rgba(124,108,246,.3); border-radius:18px; text-align:center; padding:54px 30px; margin:60px 0 40px; }
.cta-band h2 { font-size:1.9em; margin-bottom:10px; }
.cta-band p { color:var(--muted); margin-bottom:24px; max-width:560px; margin-left:auto; margin-right:auto; }

/* ---------- Como funciona ---------- */
.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin:26px 0; }
.step { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius); padding:26px 22px; }
.step .snum { width:34px; height:34px; border-radius:10px; background:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; margin-bottom:14px; font-family:'Sora',sans-serif; }
.step h3 { font-size:1.02em; margin-bottom:6px; }
.step p { color:var(--muted); font-size:.9em; }

/* ---------- Formulários ---------- */
.form-box { max-width:460px; margin:56px auto; background:var(--surface); border:1px solid var(--border-soft); border-radius:16px; padding:38px; }
.form-box h2 { margin-bottom:22px; }
.form-wide { max-width:780px; }
label { display:block; margin:15px 0 6px; font-weight:600; font-size:.87em; color:#c3cadb; }
input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],select,textarea {
  width:100%; padding:11px 15px; background:var(--bg-soft); border:1px solid var(--border); color:var(--text); border-radius:10px; outline:none; font-family:inherit; font-size:.95em; transition:border-color .15s;
}
input:focus,select:focus,textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(124,108,246,.15); }
textarea { min-height:110px; resize:vertical; }
input[type=file] { color:var(--muted); margin-top:4px; font-size:.9em; }
.form-note { color:var(--faint); font-size:.82em; margin-top:5px; }

/* ---------- Alerts ---------- */
.alert { padding:13px 18px; border-radius:12px; margin:18px 0; font-size:.93em; }
.alert-success { background:rgba(52,211,153,.1); border:1px solid rgba(52,211,153,.35); color:var(--green); }
.alert-error { background:rgba(248,113,113,.1); border:1px solid rgba(248,113,113,.35); color:var(--red); }
.alert-info { background:rgba(124,108,246,.1); border:1px solid rgba(124,108,246,.3); color:#b1a7fa; }

/* ---------- Tabelas ---------- */
.table { width:100%; border-collapse:separate; border-spacing:0; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius); overflow:hidden; margin:18px 0; }
.table th { background:var(--surface2); text-align:left; padding:12px 15px; font-size:.76em; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.table td { padding:13px 15px; border-top:1px solid var(--border-soft); font-size:.92em; vertical-align:middle; }
.table tr:hover td { background:rgba(124,108,246,.04); }
.table img.mini { width:46px; height:46px; object-fit:cover; border-radius:8px; }

/* ---------- Tags ---------- */
.tag { padding:3px 12px; border-radius:20px; font-size:.76em; font-weight:600; white-space:nowrap; }
.tag-pending { background:rgba(251,191,36,.13); color:var(--yellow); border:1px solid rgba(251,191,36,.3); }
.tag-approved,.tag-paid,.tag-active { background:rgba(52,211,153,.13); color:var(--green); border:1px solid rgba(52,211,153,.3); }
.tag-rejected,.tag-cancelled,.tag-removed,.tag-blocked,.tag-refunded { background:rgba(248,113,113,.13); color:var(--red); border:1px solid rgba(248,113,113,.3); }
.tag-none,.tag-paused { background:rgba(148,160,184,.13); color:var(--muted); border:1px solid rgba(148,160,184,.25); }

/* ---------- Perfil ---------- */
.profile-head { display:flex; gap:28px; align-items:center; background:linear-gradient(160deg,var(--surface) 60%, rgba(124,108,246,.08)); border:1px solid var(--border-soft); border-radius:18px; padding:34px; margin:28px 0; flex-wrap:wrap; }
.avatar { width:112px; height:112px; border-radius:50%; object-fit:cover; border:3px solid var(--primary); background:var(--surface2); display:flex; align-items:center; justify-content:center; font-size:2.5em; flex-shrink:0; }
.profile-head h1 { font-size:1.65em; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.profile-head .ptitle { color:var(--accent); font-weight:600; font-size:.95em; }
.profile-head .pbio { color:var(--muted); max-width:620px; font-size:.93em; margin-top:6px; }
.pstats { display:flex; gap:26px; margin-top:12px; color:var(--muted); font-size:.88em; }
.pstats b { color:var(--text); font-family:'Sora',sans-serif; }

/* ---------- Painéis ---------- */
.panel-layout { display:grid; grid-template-columns:236px 1fr; gap:28px; margin:30px 0; }
.sidemenu { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius); padding:10px; height:fit-content; position:sticky; top:86px; }
.sidemenu a { display:block; padding:10px 16px; color:var(--muted); font-size:.92em; font-weight:500; border-radius:9px; margin:2px 0; }
.sidemenu a:hover { background:var(--surface2); color:var(--text); }
.sidemenu a.active { background:rgba(124,108,246,.14); color:#b1a7fa; }
.stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:16px; margin-bottom:26px; }
.stat { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius); padding:20px 22px; }
.stat .num { font-family:'Sora',sans-serif; font-size:1.55em; font-weight:700; color:var(--text); }
.stat .lbl { color:var(--faint); font-size:.82em; font-weight:500; margin-top:2px; }

/* ---------- Página de produto ---------- */
.product-view { display:grid; grid-template-columns:1fr 400px; gap:34px; margin:34px 0; }
.product-view .pimg { width:100%; border-radius:16px; border:1px solid var(--border-soft); }
.buy-box { background:var(--surface); border:1px solid var(--border-soft); border-radius:16px; padding:28px; height:fit-content; position:sticky; top:90px; }
.buy-box .bprice { font-family:'Sora',sans-serif; font-size:2.1em; font-weight:800; color:var(--green); }

/* ---------- Barra social ---------- */
.social-bar { display:flex; gap:10px; align-items:center; margin:18px 0; flex-wrap:wrap; }
.social-stat { display:inline-flex; align-items:center; gap:7px; background:var(--surface); border:1px solid var(--border-soft); border-radius:10px; padding:8px 15px; color:var(--muted); font-size:.88em; font-weight:500; }
.social-stat b { color:var(--text); }
button.social-btn { cursor:pointer; font-family:inherit; transition:all .15s; }
button.social-btn:hover { border-color:var(--primary); color:var(--text); }
button.social-btn.on { background:rgba(124,108,246,.14); border-color:var(--primary); color:#b1a7fa; }

/* ---------- Comentários ---------- */
.comments { margin:40px 0; max-width:760px; }
.comment { display:flex; gap:14px; padding:18px 0; border-bottom:1px solid var(--border-soft); }
.comment .cavatar { width:42px; height:42px; border-radius:50%; object-fit:cover; background:var(--surface2); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.comment .cname { font-weight:600; font-size:.92em; }
.comment .cdate { color:var(--faint); font-size:.78em; margin-left:8px; }
.comment .ctext { color:var(--muted); font-size:.93em; margin-top:3px; white-space:pre-line; }
.comment-form textarea { min-height:80px; }

/* ---------- Footer ---------- */
.footer { border-top:1px solid var(--border-soft); background:var(--bg-soft); margin-top:70px; padding:46px 0 30px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:36px; margin-bottom:30px; }
.footer h4 { font-size:.85em; text-transform:uppercase; letter-spacing:.08em; color:var(--faint); margin-bottom:12px; }
.footer a { display:block; color:var(--muted); font-size:.9em; padding:3px 0; }
.footer a:hover { color:var(--text); }
.footer .fdesc { color:var(--faint); font-size:.88em; max-width:320px; margin-top:8px; }
.footer .copy { border-top:1px solid var(--border-soft); padding-top:20px; color:var(--faint); font-size:.82em; text-align:center; }

@media (max-width:860px) {
  .panel-layout,.product-view { grid-template-columns:1fr; }
  .hero h1 { font-size:2.2em; }
  .stats-strip { gap:30px; }
  .footer-grid { grid-template-columns:1fr; gap:22px; }
  .buy-box { position:static; }
  .sidemenu { position:static; }
}
