/* =========================================================
   Creand — Creators & Brands | Design system
   ========================================================= */
:root {
  --cyan: #4fd1ff;
  --cyan-2: #22b8f0;
  --cyan-soft: rgba(79, 209, 255, .12);
  --bg: #07090d;
  --bg-2: #0d1117;
  --card: #11161e;
  --card-2: #161c26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef4f8;
  --muted: #8b98a8;
  --green: #2fd59a;
  --red: #ff5a72;
  --amber: #ffbf47;
  --violet: #a78bfa;
  --blue: #4f9dff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.text-cyan { color: var(--cyan); }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .85em; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
::selection { background: var(--cyan); color: #000; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--card-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; background: var(--b);
  font-weight: 600; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap; font-size: .95rem; line-height: 1.3;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cyan); color: #04121a; }
.btn-primary:hover { background: #7fdfff; box-shadow: 0 10px 30px -10px var(--cyan); }
.btn-dark { background: #050608; color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 12px 30px -12px #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-soft { background: var(--cyan-soft); color: var(--cyan); }
.btn-soft:hover { background: rgba(79, 209, 255, .2); }
.btn-success { background: rgba(47, 213, 154, .15); color: var(--green); }
.btn-success:hover { background: var(--green); color: #032015; }
.btn-danger { background: rgba(255, 90, 114, .12); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.btn-xs { padding: 4px 10px; font-size: .78rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; padding: 14px 0;
  background: linear-gradient(to bottom, rgba(7, 9, 13, .92), rgba(7, 9, 13, .75));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); padding: 8px 0; }
.nav-wrap { display: flex; align-items: center; gap: 24px; }
.brand-logo img { width: 58px; height: auto; filter: drop-shadow(0 0 14px rgba(79, 209, 255, .35)); }
.main-nav { display: flex; gap: 6px; flex: 1; justify-content: center; }
.main-nav > a { padding: 8px 14px; border-radius: 10px; font-size: .95rem; color: #cfd8e2; transition: .2s; }
.main-nav > a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.main-nav > a.active { color: var(--cyan); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-login { font-size: .92rem; color: #cfd8e2; }
.nav-login:hover { color: var(--cyan); }
.nav-avatar .avatar { margin-inline-start: 2px; }
.nav-mobile-actions { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: 18px; border-radius: 26px; overflow: hidden; min-height: 420px;
  display: flex; align-items: center; isolation: isolate; box-shadow: 0 30px 80px -40px rgba(79, 209, 255, .55);
}
.hero-media, .hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -1; background: linear-gradient(135deg, #1aa6e0, #66dcff 55%, #b6f0ff); }
.hero-tint { background: linear-gradient(90deg, rgba(41, 182, 240, .2), rgba(79, 209, 255, .55) 70%), linear-gradient(0deg, rgba(0, 120, 180, .25), transparent 60%); mix-blend-mode: normal; }
.hero-media video, .hero-media img { filter: saturate(1.1); }
.hero-media video + .hero-tint, .hero-media img + .hero-tint { background: linear-gradient(90deg, rgba(17, 140, 200, .35), rgba(79, 209, 255, .72) 75%); }
.hero-content { padding: 48px clamp(22px, 5vw, 56px); max-width: 640px; }
.hero-kicker { display: inline-block; font-family: var(--font-display); font-size: .82rem; letter-spacing: .5px; background: rgba(0, 0, 0, .78); color: var(--cyan); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; direction: ltr; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); color: #04121a; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.hero p { color: #062634; font-size: 1.08rem; font-weight: 500; max-width: 470px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- CRE shapes ---------- */
.cre-shapes { display: grid; grid-template-columns: 1fr 1.05fr 1.2fr; gap: clamp(14px, 3vw, 36px); align-items: end; margin-top: 70px; color: var(--cyan); }
.shape { position: relative; aspect-ratio: 185 / 230; }
.shape-e { background: var(--cyan); display: flex; flex-direction: column; color: #04121a; padding: 0; }
.shape-e span { flex: 1; display: flex; align-items: center; justify-content: flex-start; padding-inline: 12% 8%; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 3.4vw, 2.2rem); }
.shape-e i { display: block; height: 5%; width: 58%; background: var(--bg); align-self: flex-start; }
.shape-r svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--cyan); }
.shape-r .vlogger { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 96%; max-width: none; height: auto; max-height: 118%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: bob 5s ease-in-out infinite; }
.vlogger .rec { animation: blink 1.2s steps(2) infinite; }
.shape-c { aspect-ratio: 1; align-self: center; }
.shape-c svg { width: 100%; height: 100%; color: var(--cyan); filter: drop-shadow(0 0 40px rgba(79, 209, 255, .18)); }
.shape-c .c-txt { font-family: var(--font-display); font-weight: 800; font-size: 25px; fill: #04121a; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-6px); } }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Reels ---------- */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 4vw, 52px); margin-top: 60px; padding-inline: clamp(0px, 4vw, 40px); }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; border: 3px solid var(--cyan);
  background: radial-gradient(circle at 30% 20%, var(--c1), transparent 60%), linear-gradient(160deg, var(--c2), #10131a 85%);
  box-shadow: 0 20px 60px -25px rgba(79, 209, 255, .5); transition: transform .4s;
}
.reel:hover { transform: translateY(-6px) rotate(-.5deg); }
.reel > video, .reel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-scene { position: absolute; inset: 0; overflow: hidden; }
.reel-light { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: 10%; right: -18%; border: 10px solid rgba(255, 255, 255, .55); box-shadow: 0 0 40px rgba(255, 255, 255, .5), inset 0 0 30px rgba(255, 255, 255, .4); animation: pulse 3s ease-in-out infinite; animation-delay: var(--d); }
.reel-emoji { position: absolute; left: 50%; top: 46%; font-size: clamp(3rem, 10vw, 6rem); transform: translate(-50%, -50%); animation: reelzoom 6s ease-in-out infinite; animation-delay: var(--d); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.reel-hearts span { position: absolute; bottom: 18%; left: 16%; color: #ff4d79; font-size: 1.1rem; opacity: 0; animation: heart 4s ease-in infinite; }
.reel-hearts span:nth-child(2) { left: 22%; animation-delay: 1s; font-size: .9rem; }
.reel-hearts span:nth-child(3) { left: 12%; animation-delay: 2s; }
.reel-hearts span:nth-child(4) { left: 19%; animation-delay: 3s; font-size: 1.3rem; }
.reel-ui { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 40%, transparent 80%, rgba(0, 0, 0, .35)); padding: 12px; display: flex; flex-direction: column; }
.reel-progress { height: 3px; background: rgba(255, 255, 255, .3); border-radius: 3px; overflow: hidden; }
.reel-progress b { display: block; height: 100%; background: #fff; animation: prog 8s linear infinite; animation-delay: var(--d); }
.reel-tag { align-self: flex-start; margin-top: 10px; font-size: .68rem; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 6px; direction: ltr; backdrop-filter: blur(4px); }
.reel-side { position: absolute; left: 10px; bottom: 70px; display: flex; flex-direction: column; gap: 12px; align-items: center; font-size: 1rem; }
.reel-side span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.reel-side small { font-size: .62rem; opacity: .85; }
.reel-bottom { margin-top: auto; padding-left: 34px; }
.reel-bottom strong { font-size: .85rem; direction: ltr; display: block; text-align: right; }
.reel-bottom p { font-size: .76rem; margin: 2px 0 0; opacity: .9; line-height: 1.5; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }
@keyframes reelzoom { 0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(-4deg); } 50% { transform: translate(-50%, -56%) scale(1.12) rotate(4deg); } }
@keyframes heart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160px) translateX(20px) scale(1.2); } }
@keyframes prog { from { width: 0; } to { width: 100%; } }

/* ---------- Brands marquee ---------- */
.brands-band { margin-top: 70px; }
.section-title { font-size: clamp(1.35rem, 3.4vw, 2.1rem); margin-bottom: 22px; }
.marquee-wall { background: #000; padding: 24px 0; overflow: hidden; display: grid; gap: 14px; border-block: 1px solid var(--line); }
.marquee { direction: ltr; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; direction: ltr; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 44s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-logo { flex: 0 0 auto; width: clamp(130px, 15vw, 180px); height: 84px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; margin: 0 8px; border-radius: 16px; background: #0b0e13; border: 1px solid var(--line); }
.m-logo img { max-height: 56px; max-width: 100%; object-fit: contain; transition: transform .3s; }
.m-logo:hover img { transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta-block { margin-top: 80px; margin-bottom: 80px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
  background: radial-gradient(circle at 0% 0%, rgba(79, 209, 255, .22), transparent 45%), linear-gradient(135deg, #0f1620, #0a0d12); border: 1px solid var(--line-2);
}
.cta-card::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; background: url(../img/logo.svg) no-repeat center / contain; opacity: .05; }
.eyebrow { display: inline-block; color: var(--cyan); font-weight: 700; font-family: var(--font-display); margin-bottom: 8px; }
.cta-text h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.cta-text p { color: #b8c4d1; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-stats { display: grid; gap: 12px; }
.cta-stats > div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; align-items: baseline; gap: 10px; }
.cta-stats b { font-family: var(--font-display); font-size: 2rem; color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #05070a; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-about img { width: 86px; filter: drop-shadow(0 0 14px rgba(79, 209, 255, .35)); }
.footer-sub { color: var(--cyan); font-family: var(--font-display); font-size: .85rem; margin: 6px 0 12px; direction: ltr; text-align: right; }
.footer-about p:last-child { color: var(--muted); font-size: .92rem; }
.site-footer h4 { font-size: 1rem; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); font-size: .93rem; }
.footer-links a:hover { color: var(--cyan); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); font-size: .72rem; font-weight: 700; }
.socials a:hover { background: var(--cyan); color: #000; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding: 70px 0 40px; text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: -380px; transform: translateX(-50%); background: radial-gradient(circle, rgba(79, 209, 255, .25), transparent 65%); z-index: -1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: #b8c4d1; max-width: 680px; margin-inline: auto; font-size: 1.08rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan); font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.section-head p { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(180deg, var(--card), #0c1016); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .3s; position: relative; overflow: hidden;
}
.feature:hover { border-color: rgba(79, 209, 255, .4); transform: translateY(-4px); }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--cyan-soft); margin-bottom: 16px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
.feature .big { font-family: var(--font-display); font-size: 2.6rem; color: var(--cyan); line-height: 1; margin-bottom: 8px; display: block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.split p { color: #b8c4d1; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--cyan); color: #000; display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: 2px; }
.visual-card { position: relative; border-radius: 26px; aspect-ratio: 4 / 3.4; overflow: hidden; background: linear-gradient(140deg, #18a9e3, #4fd1ff 55%, #a9ecff); display: grid; place-items: center; }
.visual-card .logo-big { width: 62%; filter: brightness(0) drop-shadow(0 20px 40px rgba(0, 0, 0, .25)); opacity: .9; }
.visual-card .float { position: absolute; background: rgba(5, 8, 12, .85); backdrop-filter: blur(8px); border-radius: 14px; padding: 10px 14px; font-size: .85rem; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }
.visual-card .float b { color: var(--cyan); }
.visual-card .f1 { top: 10%; right: 6%; } .visual-card .f2 { bottom: 12%; left: 6%; animation-delay: 2s; } .visual-card .f3 { bottom: 40%; right: 4%; animation-delay: 4s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.step { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: relative; }
.step::before { content: counter(s); font-family: var(--font-display); font-size: .9rem; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--cyan); color: #000; font-weight: 800; margin-bottom: 12px; }
.step h4 { font-size: 1rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .88rem; margin: 0; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.price-table th { background: var(--cyan); color: #04121a; padding: 14px; text-align: right; font-family: var(--font-display); font-size: .95rem; }
.price-table td { padding: 14px; border-top: 1px solid var(--line); background: var(--card); }
.price-table tr:hover td { background: var(--card-2); }
.pkg { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.pkg.featured { border-color: var(--cyan); box-shadow: 0 20px 60px -30px var(--cyan); }
.pkg.featured::before { content: "الأكثر طلباً"; position: absolute; top: -12px; right: 20px; background: var(--cyan); color: #000; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.pkg h3 { font-size: 1.1rem; margin: 0; }
.pkg .price { font-family: var(--font-display); font-size: 2rem; color: var(--cyan); }
.pkg .price small { font-size: .85rem; color: var(--muted); }
.pkg ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 6px; color: #c9d4df; }
.pkg ul li::before { content: "•"; color: var(--cyan); margin-left: 8px; }
.quote { border-right: 3px solid var(--cyan); padding: 6px 18px; color: #c9d4df; font-size: 1.05rem; background: var(--cyan-soft); border-radius: 0 12px 12px 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .92rem; color: #dbe4ec; }
.field .hint, .hint { font-size: .8rem; color: var(--muted); }
.req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; background: #0a0e14; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; outline: none; transition: border .2s, box-shadow .2s; min-height: 46px;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(79, 209, 255, .14); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 20px, 13px 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 34px; }
.input[type=file] { padding: 9px; }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); direction: ltr; font-size: .9rem; }
.input-group .input { padding-left: 34px; }
.note { background: rgba(255, 191, 71, .08); border: 1px solid rgba(255, 191, 71, .25); color: #ffd98a; border-radius: 12px; padding: 10px 14px; font-size: .85rem; }
.note-info { background: var(--cyan-soft); border-color: rgba(79, 209, 255, .25); color: #b9ecff; }

/* chips (multi-select checkboxes) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #0a0e14; cursor: pointer; font-size: .9rem; transition: .15s; user-select: none; }
.choice span:hover { border-color: rgba(79, 209, 255, .5); }
.choice input:checked + span { background: var(--cyan); color: #04121a; border-color: var(--cyan); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79, 209, 255, .35); }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.choice-cards .choice span { border-radius: 14px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; width: 100%; height: 100%; }
.choice-cards .choice span small { color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.5; }
.choice-cards .choice span em { font-style: normal; font-size: .75rem; opacity: .7; direction: ltr; }
.choice-cards .choice input:checked + span small { color: #0b3a4d; }
.platform-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.payout-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.payout-pick .choice span { width: 100%; flex-direction: column; gap: 8px; padding: 12px 8px; border-radius: 14px; text-align: center; }
.payout-pick .choice span img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.payout-pick .choice span b { font-size: .82rem; }
.payout-pick .choice input:checked + span { box-shadow: 0 0 0 2px var(--cyan); }
.platform-pick .choice span { width: 100%; justify-content: center; border-radius: 14px; padding: 14px; font-size: 1rem; }

/* tabs for role on register */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #0a0e14; padding: 6px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 22px; }
.seg a { text-align: center; padding: 10px 6px; border-radius: 12px; font-weight: 600; color: var(--muted); font-size: .92rem; }
.seg a.active { background: var(--cyan); color: #04121a; }

.auth-wrap { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 40px 0 60px; }
.auth-card { width: min(520px, 100%); }
.auth-card.wide { width: min(860px, 100%); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#map, .map { height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); z-index: 0; }
.leaflet-container { font-family: var(--font); }

/* ---------- Alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin: 12px auto; width: min(1180px, 100% - 32px); font-size: .93rem; border: 1px solid; animation: slidein .3s; }
.panel .alert { width: 100%; }
.alert-success { background: rgba(47, 213, 154, .1); border-color: rgba(47, 213, 154, .3); color: #7ff0c6; }
.alert-error { background: rgba(255, 90, 114, .1); border-color: rgba(255, 90, 114, .3); color: #ffa4b2; }
.alert-info { background: var(--cyan-soft); border-color: rgba(79, 209, 255, .3); color: #b9ecff; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: rgba(47, 213, 154, .12); color: var(--green); }
.badge-red { background: rgba(255, 90, 114, .12); color: var(--red); }
.badge-amber { background: rgba(255, 191, 71, .12); color: var(--amber); }
.badge-blue { background: rgba(79, 157, 255, .12); color: var(--blue); }
.badge-violet { background: rgba(167, 139, 250, .14); color: var(--violet); }
.badge-gray { background: rgba(255, 255, 255, .07); color: var(--muted); }
.badge-cyan { background: var(--cyan-soft); color: var(--cyan); }
.tag { display: inline-block; font-size: .75rem; padding: 2px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #c9d4df; margin: 2px; }

.avatar { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.avatar-xs { width: 24px; height: 24px; border-radius: 8px; font-size: .7rem; }
.avatar-sm { width: 32px; height: 32px; border-radius: 10px; }
.avatar-lg { width: 84px; height: 84px; border-radius: 24px; font-size: 2rem; }
.avatar-ph { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--cyan), #6c5cff); color: #04121a; font-weight: 800; font-family: var(--font-display); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }

/* =========================================================
   PANEL (dashboards)
   ========================================================= */
body.panel { background: #06080b; }
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #0a0d12; border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.sidebar .logo img { width: 52px; }
.sidebar .logo small { color: var(--muted); font-size: .75rem; display: block; line-height: 1.3; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #aeb9c6; font-size: .93rem; transition: .15s; position: relative; }
.side-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.side-nav a.active { background: var(--cyan-soft); color: var(--cyan); font-weight: 600; }
.side-nav a.active::before { content: ""; position: absolute; right: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--cyan); }
.side-nav .ico { width: 22px; height: 22px; flex: 0 0 22px; }
.side-nav .count { margin-right: auto; background: var(--red); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; font-weight: 700; }
.side-sep { font-size: .72rem; color: #5d6976; padding: 14px 12px 4px; letter-spacing: .3px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(6, 8, 11, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.2rem; margin: 0; flex: 1; }
.topbar .mlogo { display: none; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; transition: .2s; color: #cfd8e2; }
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.icon-btn svg { width: 20px; height: 20px; }
.dot-count { position: absolute; top: -5px; left: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #06080b; }
.dot-count:empty, .dot-count[data-n="0"] { display: none; }
.content { padding: 26px 28px 40px; flex: 1; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-actions h2 { font-size: 1.25rem; margin: 0; }

.notif-panel { position: absolute; top: 60px; left: 20px; width: min(380px, calc(100vw - 24px)); background: #0e131a; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 60px -20px #000; display: none; overflow: hidden; z-index: 60; }
.notif-panel.open { display: block; animation: slidein .2s; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-head b { font-family: var(--font-display); }
.notif-head button { background: none; border: 0; color: var(--cyan); cursor: pointer; font-size: .82rem; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: .15s; }
.notif-item:hover { background: rgba(255, 255, 255, .03); }
.notif-item.unread { background: rgba(79, 209, 255, .05); }
.notif-item .ni { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); font-size: 1rem; }
.notif-item b { font-size: .88rem; display: block; }
.notif-item p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.notif-item time { font-size: .72rem; color: #5d6976; }
.notif-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.toasts { position: fixed; z-index: 100; left: 18px; bottom: 18px; display: grid; gap: 10px; width: min(360px, calc(100vw - 36px)); }
.toast { background: #111821; border: 1px solid rgba(79, 209, 255, .35); border-radius: 16px; padding: 12px 14px; box-shadow: 0 20px 40px -10px #000; display: flex; gap: 12px; animation: toastin .35s cubic-bezier(.2, .9, .3, 1.3); cursor: pointer; }
.toast b { display: block; font-size: .9rem; }
.toast p { margin: 0; font-size: .8rem; color: var(--muted); }
.toast .ni { font-size: 1.3rem; }
@keyframes toastin { from { opacity: 0; transform: translateY(20px) scale(.95); } }

/* cards / stats */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 1.05rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.stat .s-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-soft); font-size: 1.2rem; margin-bottom: 12px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.accent { background: linear-gradient(135deg, #1aa6e0, var(--cyan)); color: #04121a; border: 0; }
.stat.accent span { color: #08364a; }
.stat.accent .s-ico { background: rgba(0, 0, 0, .12); }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.cols-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: right; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 12px 14px; background: #0c1016; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .e-ico { font-size: 2.4rem; margin-bottom: 8px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .input { min-height: 40px; padding: 8px 12px; width: auto; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; overflow-x: auto; }
.pill-tabs a { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); white-space: nowrap; }
.pill-tabs a.active { background: var(--cyan); color: #04121a; border-color: var(--cyan); font-weight: 600; }
.pill-tabs a .n { opacity: .7; margin-right: 4px; }

/* order cards (creator) */
.order-cards { display: grid; gap: 14px; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.order-card.is-new { border-color: rgba(79, 209, 255, .45); box-shadow: 0 0 0 1px rgba(79, 209, 255, .15), 0 20px 40px -30px var(--cyan); }
.oc-head { display: flex; align-items: center; gap: 12px; }
.oc-head .brand-logo-sm { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: #fff; }
.oc-head h3 { font-size: 1.05rem; margin: 0; }
.oc-head small { color: var(--muted); }
.oc-amount { margin-right: auto; text-align: left; }
.oc-amount b { font-family: var(--font-display); color: var(--cyan); font-size: 1.25rem; display: block; }
.oc-amount small { color: var(--muted); font-size: .75rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kv > div { background: #0b0f15; border-radius: 12px; padding: 10px 12px; }
.kv small { display: block; color: var(--muted); font-size: .75rem; }
.kv b { font-size: .9rem; font-weight: 600; }
.oc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.deadline-warn { color: var(--amber); }
.deadline-over { color: var(--red); }
.video-box { border-radius: 14px; overflow: hidden; background: #000; max-width: 360px; }
.video-box video { width: 100%; max-height: 520px; }

/* profile */
.profile-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: radial-gradient(circle at 100% 0, rgba(79, 209, 255, .25), transparent 50%), var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 18px; }
.profile-hero h2 { margin: 0; font-size: 1.4rem; }
.level-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cyan); color: #04121a; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.progress { height: 10px; border-radius: 10px; background: #0b0f15; overflow: hidden; }
.progress b { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #6c5cff); border-radius: 10px; transition: width 1s; }
.rewards { display: flex; flex-wrap: wrap; gap: 10px; }
.reward { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; text-align: center; padding: 12px 6px; border-radius: 16px; background: #0b0f15; border: 1px solid var(--line); }
.reward .ri { font-size: 1.9rem; filter: drop-shadow(0 6px 10px rgba(79, 209, 255, .3)); }
.reward small { font-size: .72rem; color: #c9d4df; line-height: 1.4; }
.reward.locked { opacity: .35; filter: grayscale(1); }

/* wallet */
.wallet-card { border-radius: 24px; padding: 26px; background: radial-gradient(circle at 0 0, rgba(255, 255, 255, .35), transparent 40%), linear-gradient(135deg, #1294cc, var(--cyan) 70%, #9de9ff); color: #04121a; position: relative; overflow: hidden; }
.wallet-card::after { content: ""; position: absolute; left: -40px; bottom: -60px; width: 220px; height: 220px; background: url(../img/logo.svg) no-repeat center / contain; filter: brightness(0); opacity: .08; }
.wallet-card small { font-weight: 600; opacity: .75; }
.wallet-card .bal { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; line-height: 1.2; margin: 6px 0 14px; }
.wallet-card .row { display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx .ti { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.tx .ti.in { background: rgba(47, 213, 154, .12); color: var(--green); }
.tx .ti.out { background: rgba(255, 90, 114, .12); color: var(--red); }
.tx .amt { margin-right: auto; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.tx .amt.in { color: var(--green); } .tx .amt.out { color: var(--red); }
.tx small { color: var(--muted); display: block; font-size: .78rem; }

/* chat */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 150px); min-height: 480px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.chat-layout.single { grid-template-columns: 1fr; }
.threads { border-left: 1px solid var(--line); overflow-y: auto; }
.threads .search { padding: 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.thread { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.thread:hover { background: rgba(255, 255, 255, .03); }
.thread.active { background: var(--cyan-soft); }
.thread .t-body { flex: 1; min-width: 0; }
.thread b { font-size: .9rem; display: block; }
.thread p { margin: 0; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .t-meta { text-align: left; font-size: .7rem; color: var(--muted); display: grid; gap: 4px; justify-items: end; }
.thread .t-meta .count { position: static; background: var(--cyan); color: #000; }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head small { color: var(--green); font-size: .78rem; display: block; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(circle at 50% 120%, rgba(79, 209, 255, .06), transparent 60%); }
.msg { max-width: min(78%, 520px); padding: 9px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.6; word-wrap: break-word; white-space: pre-wrap; animation: slidein .2s; }
.msg time { display: block; font-size: .68rem; opacity: .6; margin-top: 2px; }
.msg.me { align-self: flex-start; background: var(--cyan); color: #04121a; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-end; background: var(--card-2); border-bottom-left-radius: 4px; }
.msg a.att { display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; font-weight: 600; }
.msg img.att-img { max-width: 220px; border-radius: 10px; margin-top: 4px; }
.day-sep { align-self: center; font-size: .72rem; color: var(--muted); background: rgba(255, 255, 255, .04); padding: 3px 12px; border-radius: 999px; margin: 6px 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; }
.chat-form .icon-btn { flex: 0 0 46px; height: 46px; width: 46px; }
.chat-form .send { background: var(--cyan); color: #000; border: 0; }
.chat-empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 20px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; animation: slidein .2s; }
.modal-box { background: #0f141b; border: 1px solid var(--line-2); border-radius: 22px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px; }
.modal-box h3 { margin-bottom: 14px; }

/* creator selector (orders) */
.creator-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
.creator-pick label { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); background: #0a0e14; cursor: pointer; transition: .15s; }
.creator-pick label:hover { border-color: rgba(79, 209, 255, .5); }
.creator-pick input { accent-color: var(--cyan); width: 18px; height: 18px; }
.creator-pick label:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.creator-pick .cp-body { flex: 1; min-width: 0; }
.creator-pick small { color: var(--muted); display: block; font-size: .76rem; }
.amount-list { display: grid; gap: 8px; }
.amount-row { display: flex; gap: 10px; align-items: center; background: #0b0f15; padding: 8px 12px; border-radius: 12px; }
.amount-row .input { max-width: 160px; min-height: 38px; padding: 6px 10px; }
.amount-row span { flex: 1; }

.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: .92rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.timeline { display: grid; gap: 0; }
.tl { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.tl .tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); margin-top: 8px; flex: 0 0 10px; }
.tl small { color: var(--muted); display: block; font-size: .76rem; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; padding: 0 10px; }
.pagination .active { background: var(--cyan); color: #000; border-color: var(--cyan); }
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .input { min-height: 40px; padding: 8px 12px; }
.media-prev { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0b0f15; display: grid; place-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.media-prev img, .media-prev video { width: 100%; height: 100%; object-fit: cover; }
.media-prev.tall { aspect-ratio: 9/14; }

/* bottom tab bar (mobile app feel) */
.tabbar { display: none; }
.install-btn { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .app { grid-template-columns: 220px 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 15px; }
  .main-nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: rgba(7, 9, 13, .98); padding: 16px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
  body.nav-open .main-nav { transform: none; }
  .main-nav > a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-mobile-actions { display: grid; gap: 8px; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .nav-login { display: none; }
  .nav-wrap { justify-content: space-between; }
  .hero { min-height: 380px; border-radius: 22px; }
  .hero-content { padding: 32px 22px; }
  .cre-shapes { margin-top: 56px; }
  .grid-3, .split, .cta-card, .cols-even { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .reels { gap: 10px; padding: 0; }
  .reel { border-width: 2px; border-radius: 14px; }
  .reel-bottom p, .reel-side small { display: none; }
  .reel-bottom { padding-left: 0; }
  .reel-bottom strong { font-size: .7rem; }
  .reel-side { bottom: 44px; left: 6px; gap: 8px; font-size: .8rem; }

  /* panel → app */
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 0 0 auto; width: 280px; z-index: 80; transform: translateX(100%); transition: transform .3s; box-shadow: -20px 0 60px #000; }
  body.side-open .sidebar { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 70; }
  .topbar { padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar .mlogo { display: block; width: 40px; }
  .topbar h1 { font-size: 1.02rem; }
  .content { padding: 16px 14px calc(96px + var(--safe-b)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(10, 13, 18, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: #7d8996; padding: 6px 2px; border-radius: 12px; position: relative; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--cyan); }
  .tabbar a.active::before { content: ""; position: absolute; top: -7px; width: 26px; height: 3px; border-radius: 3px; background: var(--cyan); }
  .tabbar .count { position: absolute; top: 0; left: calc(50% - 18px); background: var(--red); color: #fff; font-size: .62rem; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 170px - var(--safe-b)); border-radius: 16px; }
  .chat-layout.has-active .threads { display: none; }
  .chat-layout:not(.has-active):not(.single) .chat { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 1.35rem; }
  .card { padding: 16px; border-radius: 16px; }
  .notif-panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
  .toasts { bottom: calc(80px + var(--safe-b)); left: 12px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border-top: 1px solid var(--line); padding: 8px 4px; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 6px 10px; }
  .table.responsive td::before { content: attr(data-l); color: var(--muted); font-size: .78rem; }
  .table.responsive td.actions { justify-content: flex-start; flex-wrap: wrap; }
  .table.responsive td.actions::before { display: none; }
  .install-btn { display: grid; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; padding: 12px 10px; font-size: .95rem; }
  .cta-actions .btn { flex: 1; }
  .seg a { font-size: .82rem; }
  .platform-pick { grid-template-columns: 1fr 1fr; }
  .oc-head { flex-wrap: wrap; }
}
