/* =========================================================
   AIBuildZone — Public Theme
   ========================================================= */
:root {
  --primary: #6366f1;
  --primary-600: #4f46e5;
  --pink: #ec4899;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7f8fc;
  --card: #ffffff;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b, #ef4444 60%, #ec4899);
  --grad-cool: linear-gradient(135deg, #06b6d4, #6366f1);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(30, 41, 59, .18);
  --shadow-lg: 0 30px 60px -20px rgba(79, 70, 229, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 22px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--red) !important; }
.text-success { color: var(--green) !important; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: .95rem; font-family: inherit;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease; white-space: nowrap; line-height: 1.2;
}
.btn-sm { padding: 9px 16px; font-size: .875rem; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-gradient { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(139, 92, 246, .55); background-size: 150% 150%; }
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(236, 72, 153, .55); background-position: 100% 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(99, 102, 241, .08); color: var(--primary); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary-600); }
.btn-white:hover { color: var(--pink); transform: translateY(-2px); }
.btn-outline-white { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .7); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18); }
.nav-wrap { display: flex; align-items: center; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.15rem; box-shadow: 0 8px 18px -6px rgba(139, 92, 246, .6);
}
.brand.light, .brand.light:hover { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .main-nav > .nav-dropdown > a {
  padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 5px;
}
.main-nav > a:hover, .main-nav > .nav-dropdown > a:hover { background: rgba(99, 102, 241, .07); color: var(--primary); }
.main-nav a.active { color: var(--primary); background: rgba(99, 102, 241, .09); }
.main-nav .bi-chevron-down { font-size: .7rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, .25); border: 1px solid var(--line); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 50;
}
.dropdown-panel.right { left: auto; right: 0; }
.nav-dropdown:hover .dropdown-panel, .nav-dropdown.open .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.dropdown-panel a:hover { background: #f5f3ff; color: var(--primary); }
.dropdown-panel a i { color: var(--muted); }
.dd-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.dd-icon i { color: var(--c) !important; }
.dd-all { border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 10px 10px !important; color: var(--primary) !important; justify-content: space-between; }
.dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dd-head strong { display: block; color: var(--ink); }
.dd-head small { color: var(--muted); }
.avatar-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 4px; color: var(--muted); font-family: inherit; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 12px; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.nav-mobile-actions { display: none; }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 88px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.flash {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .25); border-left: 4px solid var(--primary); animation: slideIn .4s ease; font-weight: 500; font-size: .93rem;
}
.flash i { font-size: 1.2rem; margin-top: 1px; }
.flash span { flex: 1; color: var(--ink-2); }
.flash-success { border-color: var(--green); } .flash-success i { color: var(--green); }
.flash-error { border-color: var(--red); } .flash-error i { color: var(--red); }
.flash-warning { border-color: var(--amber); } .flash-warning i { color: var(--amber); }
.flash-info i { color: var(--primary); }
.flash-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #0b1023; color: #cbd5e1; padding: 100px 0 120px; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: #6366f1; top: -160px; left: -120px; animation: float 14s ease-in-out infinite; }
.hero::after { width: 480px; height: 480px; background: #ec4899; bottom: -200px; right: -80px; animation: float 16s ease-in-out infinite reverse; }
.hero .blob-3 { position: absolute; width: 360px; height: 360px; background: #06b6d4; border-radius: 50%; filter: blur(100px); opacity: .35; top: 30%; left: 45%; animation: float 18s ease-in-out infinite; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 20px; }
.hero h1 .gradient-text { background: linear-gradient(90deg, #a5b4fc, #f0abfc, #fda4af, #fcd34d); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { font-size: 1.15rem; color: #94a3b8; max-width: 560px; margin-bottom: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e2e8f0; font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.pill b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .75rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; color: #fff; font-size: 1.8rem; font-weight: 800; }
.hero-stats div span { font-size: .85rem; color: #94a3b8; }
.hero-visual { position: relative; }
.code-window {
  background: rgba(15, 23, 42, .75); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.code-head { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); align-items: center; }
.code-head span { width: 12px; height: 12px; border-radius: 50%; }
.code-head span:nth-child(1) { background: #ff5f57; } .code-head span:nth-child(2) { background: #febc2e; } .code-head span:nth-child(3) { background: #28c840; }
.code-head small { margin-left: 10px; color: #64748b; font-family: var(--mono); font-size: .78rem; }
.code-body { padding: 20px 22px; font-family: var(--mono); font-size: .85rem; line-height: 1.85; color: #cbd5e1; white-space: pre; overflow-x: auto; }
.code-body .k { color: #c084fc; } .code-body .s { color: #86efac; } .code-body .f { color: #7dd3fc; } .code-body .c { color: #64748b; } .code-body .v { color: #fda4af; }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .35); color: var(--ink); font-weight: 700; font-size: .9rem; animation: bob 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.float-card .fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.float-card.one { bottom: -24px; left: -30px; } .float-card.two { top: -22px; right: -10px; animation-delay: 1.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(236,72,153,.1)); color: var(--primary); margin-bottom: 14px;
}
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }

.page-hero { position: relative; overflow: hidden; background: #0b1023; padding: 70px 0 80px; color: #94a3b8; }
.page-hero::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #8b5cf6; filter: blur(110px); opacity: .45; top: -200px; left: 10%; }
.page-hero::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #ec4899; filter: blur(110px); opacity: .35; bottom: -220px; right: 8%; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.page-hero p { font-size: 1.1rem; max-width: 640px; margin: 0; }
.page-hero.center { text-align: center; } .page-hero.center p { margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 14px; color: #94a3b8; flex-wrap: wrap; }
.breadcrumb a { color: #c7d2fe; } .breadcrumb a:hover { color: #fff; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, .8); padding: 28px; }
.card-title { font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card-title i { color: var(--primary); }

/* Category tiles */
.cat-tile {
  display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); transition: all .3s; color: var(--ink);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.cat-tile .ct-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.45rem; color: #fff; background: var(--c); box-shadow: 0 10px 20px -8px var(--c); flex-shrink: 0; }
.cat-tile strong { display: block; font-size: 1.02rem; }
.cat-tile small { color: var(--muted); }

/* Product card */
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(226, 232, 240, .9);
  transition: all .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card .pc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef2ff; }
.product-card .pc-media img, .product-card .pc-media .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .pc-media img, .product-card:hover .pc-media .thumb-placeholder { transform: scale(1.06); }
.pc-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.pc-badge { padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px); }
.pc-badge.hot { background: var(--grad-warm); color: #fff; }
.pc-badge.sale { background: var(--green); color: #fff; }
.product-card .pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: .78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.product-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--primary); }
.product-card p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; flex: 1; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px dashed var(--line); }
.price { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.price del { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.price.free { color: var(--green); }
.pc-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 12px; }
.thumb-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 20px; position: relative; overflow: hidden; }
.thumb-placeholder::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 40%), radial-gradient(circle at 80% 90%, rgba(255,255,255,.2), transparent 40%); }
.thumb-placeholder i { font-size: 2.6rem; position: relative; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.thumb-placeholder span { font-weight: 800; font-size: 1.05rem; position: relative; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0,0,0,.15); }

/* Service card */
.service-card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: all .35s;
}
.service-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.svc-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); margin-bottom: 22px; transition: all .35s; }
.service-card:hover .svc-icon { background: var(--c); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .95rem; }
.svc-link { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; color: var(--c); }
.svc-from { font-size: .82rem; color: var(--muted); margin-bottom: 14px; font-weight: 600; }

.svc-row { margin-bottom: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; scroll-margin-top: 100px; }
.svc-row-cta { text-align: right; min-width: 170px; }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; } .svc-row-cta { text-align: left; } }

/* Features list */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li i { color: var(--green); font-size: 1.1rem; margin-top: 2px; }
.feature-list.cols-2 { grid-template-columns: 1fr 1fr; }

/* Why / process */
.why-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-card .w-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; margin-bottom: 16px; }
.why-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.steps { counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: '0' counter(step); font-size: 2.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; line-height: 1; }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Stats band */
.stats-band { background: var(--grad); border-radius: 26px; padding: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 10% 10%, rgba(255,255,255,.25), transparent 30%), radial-gradient(circle at 90% 100%, rgba(255,255,255,.18), transparent 35%); }
.stats-band div { text-align: center; position: relative; }
.stats-band strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.stats-band span { opacity: .85; font-weight: 600; font-size: .92rem; }

/* Testimonials */
.testimonial { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); position: relative; }
.testimonial::before { content: '\201C'; position: absolute; top: 6px; right: 22px; font-size: 5rem; line-height: 1; font-family: Georgia, serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.stars { color: var(--amber); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { color: var(--text); font-size: .98rem; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.t-author .avatar { width: 44px; height: 44px; }
.t-author strong { display: block; color: var(--ink); font-size: .95rem; }
.t-author small { color: var(--muted); }

/* CTA band */
.cta-band { padding: 0 22px; margin: 40px 0 -70px; position: relative; z-index: 3; }
.cta-inner {
  background: var(--grad); border-radius: 26px; padding: 44px 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden; max-width: 1176px;
}
.cta-inner::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.12); right: -80px; top: -120px; }
.cta-inner h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.cta-inner p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; z-index: 2; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1023; color: #94a3b8; padding: 130px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand p { margin: 18px 0; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #94a3b8; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-line a { display: inline; padding: 0; }
.contact-line i { color: #a5b4fc; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #cbd5e1; padding: 0; transition: all .25s; }
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; padding: 24px 22px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label, label.form-label { display: block; font-weight: 700; color: var(--ink-2); font-size: .9rem; margin-bottom: 7px; }
.form-label .req { color: var(--pink); }
.form-control {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11 3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-left: 42px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 600; font-size: .9rem; transition: all .2s; background: #fff; height: 100%;
}
.choice span i { font-size: 1.2rem; color: var(--c, var(--primary)); }
.choice input:checked + span { border-color: var(--primary); background: #f5f3ff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: #0b1023; position: relative; overflow: hidden; padding: 60px; display: flex; flex-direction: column; justify-content: center; color: #94a3b8; }
.auth-side::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: #6366f1; filter: blur(100px); opacity: .5; top: -100px; left: -100px; }
.auth-side::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: #ec4899; filter: blur(100px); opacity: .4; bottom: -150px; right: -100px; }
.auth-side > * { position: relative; z-index: 2; }
.auth-side h2 { color: #fff; font-size: 2.2rem; }
.auth-side .feature-list li { color: #cbd5e1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 28px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .92rem; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-primary { background: #e0e7ff; color: #4338ca; }
.badge-pink { background: #fce7f3; color: #be185d; }
.badge-muted { background: #f1f5f9; color: #475569; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.table td { padding: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbff; }

/* ---------- Products page ---------- */
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filter-card { position: sticky; top: 94px; }
.filter-card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.filter-card h4:first-child { margin-top: 0; }
.filter-link { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.filter-link:hover { background: #f5f3ff; color: var(--primary); }
.filter-link.active { background: var(--grad); color: #fff; }
.filter-link small { opacity: .7; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; max-width: 420px; }
.search-box input { padding-left: 44px; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.pd-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); background: #eef2ff; }
.pd-media img, .pd-media .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.pd-media .thumb-placeholder i { font-size: 4rem; } .pd-media .thumb-placeholder span { font-size: 1.6rem; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 30px 0 24px; overflow-x: auto; }
.tab-btn { background: none; border: 0; padding: 12px 18px; font-family: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: .95rem; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.tab-pane { display: none; } .tab-pane.active { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prose { color: var(--text); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose img { border-radius: 12px; }
.buy-box { position: sticky; top: 94px; }
.license-opt { display: block; cursor: pointer; margin-bottom: 12px; }
.license-opt input { position: absolute; opacity: 0; }
.license-opt .lo-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 2px solid var(--line); border-radius: 14px; transition: all .2s; }
.license-opt .lo-inner strong { display: block; color: var(--ink); }
.license-opt .lo-inner small { color: var(--muted); font-size: .8rem; }
.license-opt .lo-price { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.license-opt input:checked + .lo-inner { border-color: var(--primary); background: #f5f3ff; }
.meta-list { list-style: none; padding: 0; margin: 20px 0 0; font-size: .9rem; }
.meta-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.meta-list li:last-child { border: 0; }
.meta-list span { color: var(--muted); }
.meta-list strong { color: var(--ink); text-align: right; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); font-size: .8rem; font-weight: 600; margin: 0 6px 6px 0; }
.changelog { white-space: pre-wrap; font-family: var(--mono); font-size: .85rem; background: #0f172a; color: #e2e8f0; padding: 22px; border-radius: 14px; overflow-x: auto; }

/* ---------- Verify / License ---------- */
.verify-box { max-width: 720px; margin: -50px auto 0; position: relative; z-index: 5; }
.result-card { border-radius: var(--radius); padding: 28px; margin-top: 24px; display: flex; gap: 20px; align-items: flex-start; }
.result-card.ok { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border: 1px solid #a7f3d0; }
.result-card.bad { background: linear-gradient(135deg, #fef2f2, #fff1f2); border: 1px solid #fecaca; }
.result-card .r-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; flex-shrink: 0; }
.result-card.ok .r-icon { background: var(--green); } .result-card.bad .r-icon { background: var(--red); }
.result-card h3 { margin-bottom: 6px; }
.key-box { display: flex; align-items: center; gap: 10px; background: #0f172a; color: #e2e8f0; padding: 10px 12px 10px 16px; border-radius: 12px; font-family: var(--mono); font-size: .9rem; }
.key-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .04em; }
.copy-btn { background: rgba(255,255,255,.1); border: 0; color: #fff; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: .8rem; font-family: inherit; }
.copy-btn:hover { background: var(--primary); }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; padding: 40px 0 60px; }
.account-nav { position: sticky; top: 94px; padding: 16px; }
.account-nav .acc-user { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.account-nav .acc-user strong { display: block; color: var(--ink); line-height: 1.3; }
.account-nav .acc-user small { color: var(--muted); font-size: .8rem; word-break: break-all; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.account-nav a:hover { background: #f5f3ff; color: var(--primary); }
.account-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(139, 92, 246, .7); }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.acc-head h1 { font-size: 1.7rem; margin: 0; }
.stat-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.stat-card .s-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; flex-shrink: 0; }
.stat-card strong { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.bg-grad { background: var(--grad); } .bg-warm { background: var(--grad-warm); } .bg-cool { background: var(--grad-cool); } .bg-green { background: linear-gradient(135deg, #10b981, #14b8a6); }
.license-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px; }
.license-item .li-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.license-item h4 { margin: 0; font-size: 1.05rem; }
.license-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.license-meta b { color: var(--ink); }
.domain-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: #f1f5f9; font-size: .82rem; font-weight: 600; margin: 4px 6px 0 0; color: var(--ink-2); }

/* Message thread */
.thread { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; max-width: 85%; }
.msg .bubble { padding: 14px 18px; border-radius: 16px; background: #f1f5f9; font-size: .93rem; }
.msg .bubble small { display: block; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.msg.admin .avatar { background: var(--grad-cool); }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--grad); color: #fff; }
.msg.me .bubble small { color: rgba(255,255,255,.75); }

/* Empty */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 3rem; display: block; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty h4 { color: var(--ink); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination .dots { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; padding: 0 10px; }
.pagination a.active { background: var(--grad); color: #fff; border-color: transparent; }
.pagination a:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.pagination .dots { border: 0; background: none; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--muted); margin: 0; }

/* Info box */
.info-box { padding: 18px 20px; border-radius: 14px; background: #f5f3ff; border: 1px solid #e0e7ff; color: var(--ink-2); font-size: .92rem; }
.info-box.warn { background: #fffbeb; border-color: #fde68a; }
.info-box.success { background: #ecfdf5; border-color: #a7f3d0; }
.bank-details { white-space: pre-wrap; font-family: var(--mono); font-size: .88rem; background: #f8fafc; padding: 16px; border-radius: 12px; border: 1px dashed var(--line); }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 16px; }
.contact-card .c-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; flex-shrink: 0; }
.contact-card strong { display: block; color: var(--ink); }
.contact-card span, .contact-card a { color: var(--muted); font-size: .93rem; word-break: break-word; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: all .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .main-nav {
    position: fixed; top: 74px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px; gap: 4px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; margin: 0;
  }
  .main-nav.open { transform: none; }
  .main-nav > a, .main-nav > .nav-dropdown > a { padding: 14px 16px; font-size: 1.05rem; }
  .main-nav .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .main-nav .nav-dropdown.open .dropdown-panel { display: block; }
  .nav-mobile-actions { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
  .nav-mobile-actions a { padding: 14px 16px; font-weight: 600; color: var(--ink-2); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-actions { margin-left: auto; }
  .hero-inner, .pd-layout, .shop-layout, .account-layout, .auth-wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .filter-card, .buy-box, .account-nav { position: static; }
  .auth-side { display: none; }
  .cta-inner { flex-direction: column; text-align: center; padding: 36px 28px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .form-row, .feature-list.cols-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 90px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .stats-band { padding: 30px 20px; }
  .stats-band strong { font-size: 1.8rem; }
  .flash-stack { left: 16px; right: 16px; max-width: none; }
  .msg { max-width: 100%; }
}
@media (max-width: 420px) { .hide-xs { display: none; } .footer-grid { grid-template-columns: 1fr; } }
