/* ============================================================
   Fountain of Craft — Sigma EA website
   Theme: teal (from logo) + deep teal ink + paper white.
   Numbers use trading colours: green up, red down.
   ============================================================ */

:root {
  --teal: #2BABB6;
  --teal-deep: #1C8A94;
  --teal-soft: #DDF2F4;
  --deep: #0F3437;
  --deep-2: #164246;
  --ink: #14191A;
  --ink-2: #4A5A5C;
  --paper: #F3F8F8;
  --white: #FFFFFF;
  --line: #D6E3E4;
  --up: #1E9E5A;
  --down: #D64545;
  --wa: #25D366;
  --discord: #5865F2;
  --yt: #FF0000;

  --font-head: "Space Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.num { font-family: var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.up { color: var(--up); }
.down { color: var(--down); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--deep); color: var(--white); }
.section-dark .muted, .section-dark .lead { color: rgba(255,255,255,0.72); }
.section-dark a { color: var(--white); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0.4rem 0 0; max-width: 58ch; }
@media (max-width: 640px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-s);
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap; max-width: 100%;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
@media (max-width: 600px) { .btn { white-space: normal; text-align: left; line-height: 1.25; } .btn-row .btn { flex: 1 1 auto; justify-content: center; text-align: center; } }
.btn-primary { background: var(--teal); color: var(--deep); box-shadow: 0 6px 18px -8px rgba(43,171,182,0.9); }
.btn-primary:hover { background: #3fc0cb; color: var(--deep); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(43,171,182,0.95); }
.btn-lg { padding: 0.9rem 1.35rem; font-size: 1rem; border-radius: 8px; }
.btn-gold { background: linear-gradient(135deg, #FFD04A 0%, #FFB020 55%, #FF9A1F 100%); color: #2B1A00; font-weight: 700; box-shadow: 0 8px 22px -8px rgba(255,176,32,0.95), 0 0 0 1px rgba(255,210,100,0.35) inset; }
.btn-gold:hover { background: linear-gradient(135deg, #FFDA66 0%, #FFBC3A 55%, #FFA83A 100%); color: #2B1A00; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(255,176,32,1), 0 0 0 1px rgba(255,220,120,0.5) inset; }
.btn-gold svg { color: #2B1A00; }
.btn-lg svg { width: 1.25em; height: 1.25em; }
.hero .btn-row { gap: 0.85rem; }
@media (min-width: 601px) { .hero .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); } .hero .btn-row .btn { justify-content: center; } }
.hero .btn-outline:hover, .hero .btn-discord:hover { transform: translateY(-1px); }
.hero .btn-discord { box-shadow: 0 6px 18px -8px rgba(88,101,242,0.9); }
.btn-light { background: var(--white); color: var(--deep); border-color: var(--white); box-shadow: 0 8px 22px -10px rgba(0,0,0,0.6); }
.btn-light:hover { background: var(--teal-soft); color: var(--deep); border-color: var(--teal-soft); transform: translateY(-1px); }
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: var(--deep-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: var(--white); }
.section-dark .btn-outline, .hero .btn-outline, .page-head .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.55); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover, .page-head .btn-outline:hover { background: var(--white); color: var(--deep); border-color: var(--white); }
.btn-wa { background: var(--wa); color: #06301A; }
.btn-wa:hover { background: #33e07a; color: #06301A; }
.btn-discord { background: var(--discord); color: var(--white); }
.btn-discord:hover { background: #6a76f5; color: var(--white); }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Top bar (live + social) ---------- */
.topbar { background: #0B2628; color: rgba(255,255,255,0.85); font-size: 0.82rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 46px; }
.topbar-left { min-width: 0; display: flex; align-items: center; }
.topbar-tag { color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-social { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.topbar .soc { width: 26px; height: 26px; box-shadow: none; }
.topbar .soc svg { width: 14px; height: 14px; }
.topbar .soc:hover { transform: translateY(-1px) scale(1.08); box-shadow: 0 4px 10px rgba(0,0,0,0.35); }
.topbar .soc-n { width: 13px; height: 13px; font-size: 8px; right: -4px; bottom: -3px; }
.soc { position: relative; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; transition: transform .15s, box-shadow .15s; }
.soc svg { width: 16px; height: 16px; }
.soc:hover { transform: translateY(-2px) scale(1.06); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.35); }
.soc-lg { width: 42px; height: 42px; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.soc-lg svg { width: 22px; height: 22px; }
.soc-yt { background: #FF0000; }
.soc-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc-tt { background: #010101; box-shadow: 1px 0 0 #25F4EE inset, -1px 0 0 #FE2C55 inset; }
.soc-fb { background: #1877F2; }
.soc-wa { background: #25D366; }
.soc-dc { background: #5865F2; }
.soc-n { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: #111; font-style: normal; font-size: 9px; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 1px solid rgba(0,0,0,0.15); }
.soc-lg .soc-n { width: 17px; height: 17px; font-size: 10px; }
.live-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; white-space: nowrap; overflow: hidden; background: rgba(255,59,59,0.12); border: 1px solid rgba(255,92,92,0.35); border-radius: 999px; padding: 0.3rem 0.85rem 0.3rem 0.7rem; font-size: 0.78rem; letter-spacing: 0.02em; transition: background .15s; }
.live-link:hover { background: rgba(255,59,59,0.22); color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 0 0 rgba(255,59,59,0.7); animation: livepulse 1.6s infinite; flex: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,0.7); } 70% { box-shadow: 0 0 0 6px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
.live-txt { color: #FF6B6B; letter-spacing: 0.08em; }
.live-title { overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,0.85); font-weight: 500; }
.live-title::before { content: "·"; margin-right: 0.5rem; color: rgba(255,255,255,0.4); }
@media (max-width: 600px) {
  .topbar-in { height: 44px; gap: 0.75rem; }
  .live-title { display: none; }
  .live-link { padding: 0.25rem 0.6rem 0.25rem 0.55rem; font-size: 0.72rem; gap: 0.4rem; }
  .topbar-social { gap: 0.45rem; }
  .topbar .soc { width: 24px; height: 24px; }
  .topbar .soc svg { width: 13px; height: 13px; }
  .topbar .soc-n { width: 12px; height: 12px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 0.75rem; height: 72px; }
.nav-logo { flex: none; display: flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; max-width: none; flex: none; }
.site-header .wrap { max-width: 1340px; }   /* header content se thora wider ho sakta hai taa ke 8 menu items fit hon */
@media (min-width: 1260px) { .nav-links a { padding: 0.5rem 0.45rem; font-size: 0.9rem; } .nav-actions .btn-sm { padding: 0.42rem 0.7rem; font-size: 0.84rem; } .nav-actions { margin-left: 0.25rem; } }
@media (min-width: 1260px) and (max-width: 1340px) { .nav-links a { padding: 0.5rem 0.3rem; font-size: 0.84rem; } .nav-logo img { height: 40px; } .nav-actions .btn-sm { padding: 0.4rem 0.6rem; font-size: 0.8rem; } }
/* 9 menu items: on laptop widths the logo acts as Home and WhatsApp shows as icon only */
@media (min-width: 1260px) and (max-width: 1599px) { .nav-links li.nav-home { display: none; } }
@media (min-width: 1260px) and (max-width: 1500px) { .nav-actions .nav-wa .lbl { display: none; } .nav-actions .nav-wa { padding-left: 0.6rem; padding-right: 0.6rem; } .nav-actions .nav-wa svg { width: 18px; height: 18px; } }
.nav-links { display: flex; gap: 0.2rem; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 0.5rem 0.7rem; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 500; border-radius: var(--radius-s); }
.nav-links a:hover { background: var(--paper); color: var(--deep); }
.nav-links a.active { color: var(--teal-deep); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
/* dropdown */
.nav-links li { position: relative; }
.nav-links .chev { width: 14px; height: 14px; vertical-align: -2px; margin-left: 0.1rem; opacity: 0.7; }
.nav-links .sub { position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(15,52,55,0.35); padding: 0.45rem; margin: 0; list-style: none; display: none; z-index: 70; }
.nav-links .sub::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-links li.has-sub:hover > .sub, .nav-links li.has-sub:focus-within > .sub { display: block; }
.nav-links .sub li { position: static; }
.sub-toggle { display: none; }
.nav-links .sub a { padding: 0.55rem 0.75rem; font-size: 0.93rem; font-weight: 500; border-radius: 8px; white-space: normal; line-height: 1.35; box-shadow: none; color: var(--ink); }
.nav-links .sub a:hover { background: var(--paper); color: var(--deep); }
.nav-actions { display: flex; gap: 0.5rem; margin-left: 0.5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 0.45rem 0.6rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 1259px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-actions { display: none; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding-top: 0.7rem; padding-bottom: 1rem; }
  .site-header.open .nav-logo { height: 56px; display: flex; align-items: center; }
  .site-header.open .nav-toggle { order: 2; margin-left: auto; }
  .site-header.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin-left: 0; gap: 0; border-top: 1px solid var(--line); padding-top: 0.5rem; }
  .site-header.open .nav-links a { padding: 0.7rem 0.4rem; }
  .site-header.open .nav-links a.active { box-shadow: none; border-left: 3px solid var(--teal); padding-left: 0.8rem; }
  .site-header.open .nav-links li.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .site-header.open .nav-links li.has-sub > a { flex: 1; }
  .site-header.open .nav-links li.has-sub > a .chev { display: none; }
  .site-header.open .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--ink-2); cursor: pointer; }
  .site-header.open .sub-toggle .chev { width: 18px; height: 18px; transition: transform .2s; }
  .site-header.open li.open-sub .sub-toggle { background: var(--paper); color: var(--deep); }
  .site-header.open li.open-sub .sub-toggle .chev { transform: rotate(180deg); }
  .site-header.open .nav-links .sub { display: none; position: static; width: 100%; min-width: 0; border: none; box-shadow: none; border-radius: 0; padding: 0 0 0.4rem 1rem; }
  .site-header.open .nav-links li.open-sub > .sub { display: block; }
  .site-header.open .nav-links li.has-sub:hover > .sub { display: none; }
  .site-header.open .nav-links li.has-sub.open-sub:hover > .sub { display: block; }
  .site-header.open .nav-links .sub a { font-size: 0.9rem; padding: 0.45rem 0.4rem; color: var(--ink-2); }
  .site-header.open .nav-actions { display: flex; width: 100%; order: 4; margin-left: 0; margin-top: 0.6rem; }
  .site-header.open .nav-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); color: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
}
.hero-curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52%; pointer-events: none; }
.hero-curve path.line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hero-curve path.area { fill: url(#heroFill); }
.hero-curve.animate path.line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s cubic-bezier(.4,0,.2,1) .2s forwards; }
.hero-curve.animate path.area { opacity: 0; animation: fadein 1.2s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-curve.animate path.line { animation: none; stroke-dashoffset: 0; }
  .hero-curve.animate path.area { animation: none; opacity: 1; }
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 5rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 500; color: rgba(255,255,255,0.8); margin-bottom: 1.4rem; }
.hero-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(43,171,182,0.25); }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,0.78); margin-bottom: 2rem; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.14); max-width: 520px; }
.hero-facts div { display: grid; gap: 0.15rem; }
.hero-facts .num { font-size: 1.6rem; font-weight: 700; }
.hero-facts span { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.hero-side { position: relative; justify-self: end; width: min(100%, 400px); }
.hero-photo { position: relative; width: 100%; }
.hero-photo img { border-radius: var(--radius-l); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.hero-photo figcaption { margin-top: 0.9rem; display: grid; gap: 0.1rem; font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.hero-photo figcaption strong { color: var(--white); font-family: var(--font-head); font-weight: 600; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3.5rem; }
  .hero-side { justify-self: start; width: min(100%, 360px); }
  .hero-curve { height: 40%; }
}

/* ---------- Live stream in hero (home) ---------- */
.hero-live { margin: 0 0 1.4rem; }
.live-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.live-badge { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(255,59,59,0.16); border: 1px solid rgba(255,92,92,0.5); color: #FF7A7A; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.1em; font-size: 0.74rem; padding: 0.3rem 0.7rem; border-radius: 999px; }
.live-name { font-family: var(--font-head); font-weight: 600; color: #fff; }
.live-open { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.75); font-size: 0.85rem; text-decoration: none; }
.live-open svg { width: 16px; height: 16px; } .live-open:hover { color: #fff; }
.hero-live .yt { border-color: rgba(255,255,255,0.14); box-shadow: 0 30px 60px -22px rgba(0,0,0,0.75); border-radius: 14px; }
.hero.has-live h1 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); font-weight: 600; line-height: 1.35; letter-spacing: 0; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.hero-photo { margin: 0; }
.hero.has-live .hero-grid { align-items: start; }
@media (min-width: 881px) {
  .hero.has-live .hero-grid { gap: 1.75rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
  .hero.has-live .hero-side { margin: 2.6rem 0 0; width: 100%; max-width: 360px; justify-self: start; }
}
@media (max-width: 880px) { .hero.has-live .hero-side { margin-top: 0; } .live-open { margin-left: 0; } }
.btn-teal { background: linear-gradient(135deg, #1E8EA0 0%, #176F86 55%, #10556B 100%); color: #fff; font-weight: 700; box-shadow: 0 8px 22px -8px rgba(30,142,160,0.95), 0 0 0 1px rgba(255,255,255,0.14) inset; }
.btn-teal:hover { background: linear-gradient(135deg, #249DB0 0%, #1C7E96 55%, #14647B 100%); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(30,142,160,1), 0 0 0 1px rgba(255,255,255,0.2) inset; }
.btn-teal svg { color: #fff; }
.community-social { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.community-social .muted { margin-right: 0.3rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.8rem; }


/* ---------- Page hero (inner pages) ---------- */
.page-head { background: var(--deep); color: var(--white); padding: 3.4rem 0 3rem; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -6%; top: -30%; width: 42%; height: 180%; background: radial-gradient(closest-side, rgba(43,171,182,0.22), transparent 70%); pointer-events: none; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 0.6rem; }
.page-head .lead { color: rgba(255,255,255,0.75); margin: 0; }
.page-head .crumbs { font-size: 0.92rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.page-head .crumbs a { color: rgba(255,255,255,0.8); text-decoration: none; }
.page-head .crumbs a:hover { color: var(--white); }

/* ---------- Text columns (about / how it works) ---------- */
.cols-2 { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 3rem; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.cols-3 > div { border-top: 2px solid var(--teal); padding-top: 1.1rem; }
.cols-3 h3 { margin-bottom: 0.4rem; }
.cols-3 p { margin: 0; color: var(--ink-2); }
@media (max-width: 880px) { .cols-2 { grid-template-columns: 1fr; gap: 1.5rem; } .cols-3 { grid-template-columns: 1fr; gap: 1.6rem; } }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.2rem; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--font-head); font-weight: 700; font-size: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--teal-soft); color: var(--deep); display: grid; place-items: center; }
.steps h4 { margin: 0.3rem 0 0.2rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Tables (strategy-tester feel) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
table.report { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 0; }
table.report.setfiles { min-width: 760px; }
table.report th, table.report td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.report th { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink-2); background: var(--paper); }
table.report tr:last-child td { border-bottom: none; }
table.report td.n, table.report th.n { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-head); }
table.report tbody tr:hover { background: #F8FCFC; }
table.report a.pair { font-family: var(--font-head); font-weight: 700; color: var(--deep); text-decoration: none; }
table.report a.pair:hover { color: var(--teal-deep); text-decoration: underline; }
.tag { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-family: var(--font-head); font-weight: 600; background: var(--teal-soft); color: var(--deep); white-space: nowrap; }
.tag-agg { background: #FBE7E7; color: #8A2626; }
.tag-both { background: #E9E7FB; color: #3B3596; }
.tag-major { background: #E3EEF9; color: #1E4E7A; }
.tag-metal { background: #FBF1DA; color: #7A5510; }
.tag-index { background: #EAE6F7; color: #4B3A8A; }
.tag-crypto { background: #FCE9DA; color: #8A4A13; }
.tag-minor, .tag-exotic { background: #E8F0EA; color: #2E5A3A; }
.tag-live { background: #E3F6EA; color: #166B3B; display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1E9E5A; box-shadow: 0 0 0 3px rgba(30,158,90,.22); }
.live-line { margin: .9rem 0 0; font-size: .92rem; color: rgba(255,255,255,.75); }
.live-line a { color: #fff; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; align-items: start; padding-top: 0.8rem; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; box-shadow: 0 14px 34px -16px rgba(15,52,55,0.28); transition: transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -18px rgba(15,52,55,0.4); }
.plan-head { padding: 1.6rem 1.5rem 1.3rem; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #E3F4F6 0%, #F5FBFB 100%); }
.plan-head h3 { margin-bottom: 0.2rem; font-size: 1.4rem; }
.plan-head .accounts { font-family: var(--font-head); color: var(--teal-deep); font-weight: 700; }
.plan-head p { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.plan.featured { border-color: var(--teal); box-shadow: 0 28px 56px -20px rgba(43,171,182,0.6), 0 0 0 3px var(--teal-soft); transform: translateY(-8px); }
.plan.featured:hover { transform: translateY(-12px); }
.plan.featured .plan-head { background: linear-gradient(135deg, var(--deep) 0%, var(--teal-deep) 100%); color: var(--white); border-bottom-color: transparent; }
.plan.featured .plan-head p { color: rgba(255,255,255,0.82); }
.plan.featured .plan-head .accounts { color: #9FE6EC; }
.plan-badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #FFD04A, #FF9A1F); color: #2B1A00; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(255,160,30,0.9); }
.plan-agg .plan-head { background: linear-gradient(135deg, #FFEBDD 0%, #FFF7F0 100%); }
.plan-agg .plan-head .accounts { color: #C2410C; }
.plan-features { list-style: none; margin: 0; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.5rem; font-size: 0.95rem; color: var(--ink-2); }
.plan-features li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan-features li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; margin-top: 0.1rem; }
.plan-features li.no { color: #9AA8AA; }
.plan-features li.no::before { content: "–"; background: #EEF1F1; color: #9AA8AA; }
.plan-durations { display: grid; }
.plan-durations a { display: grid; grid-template-columns: 1fr auto auto; gap: 0.9rem; align-items: center; padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s; }
.plan-durations a:last-child { border-bottom: none; }
.plan-durations a:hover { background: #F0FBF4; }
.plan-durations .dur { font-family: var(--font-head); font-weight: 600; }
.plan-durations .price { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--deep); font-variant-numeric: tabular-nums; }
.plan-durations .save { display: inline-block; font-size: 0.74rem; color: #166B3B; background: #E3F6EA; font-family: var(--font-head); font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.3rem; vertical-align: middle; }
.plan-durations .go { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--wa); color: #06301A; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; padding: 0.4rem 0.75rem; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(37,211,102,0.9); white-space: nowrap; }
.plan-durations .go svg { width: 16px; height: 16px; }
.plan-durations a:hover .go { background: #33e07a; }
.plan-foot { padding: 1rem 1.5rem 1.4rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; gap: 1.4rem; } .plan.featured, .plan.featured:hover { transform: none; } }

.faq { display: grid; gap: 0.6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
.faq summary { padding: 1rem 1.2rem; cursor: pointer; font-family: var(--font-head); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-deep); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }

/* ---------- Setfiles ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.filters button { border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2); padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.filters button:hover { border-color: var(--teal); color: var(--deep); }
.filters button.on { background: var(--deep); border-color: var(--deep); color: var(--white); }
.note-box { border-left: 3px solid var(--teal); background: var(--paper); padding: 1rem 1.2rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink-2); font-size: 0.97rem; }
.note-box p:last-child { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.stat-grid > div { background: var(--white); padding: 1.1rem 1.2rem; }
.stat-grid .num { font-size: 1.7rem; font-weight: 700; display: block; }
.stat-grid span { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.chart-box { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.2rem 1.2rem 0.8rem; background: var(--white); }
.chart-box h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-box .legend { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.4rem; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.kv { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.kv li:last-child { border-bottom: none; }
.kv li span:first-child { color: var(--ink-2); }
.kv li span:last-child { font-family: var(--font-head); font-weight: 600; text-align: right; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.shots a { display: block; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.pair-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pair-list a { text-decoration: none; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-s); font-family: var(--font-head); font-weight: 600; color: var(--deep); }
.pair-list a:hover { border-color: var(--teal); background: var(--paper); }

/* ---------- Live stats (Myfxbook-style) ---------- */
.stat-grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-grid-12 .num { font-size: 1.35rem; }
.stat-grid-12 > div { padding: 0.9rem 1rem; }
@media (max-width: 1000px) { .stat-grid-12 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stat-grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.detail-grid-wide { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .detail-grid-wide { grid-template-columns: minmax(0, 1fr); } }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-box h3 small { font-weight: 500; font-size: 0.85rem; margin-left: 0.4rem; }
table.periods td, table.periods th { font-size: 0.92rem; white-space: nowrap; }
table.report .diff { font-size: 0.8rem; font-weight: 500; opacity: 0.8; margin-left: 0.2rem; }
table.report th small { font-weight: 500; color: var(--ink-2); }
.adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .adv-grid { grid-template-columns: 1fr; } }
.adv-grid .kv li { font-size: 0.9rem; padding: 0.6rem 0.9rem; }
.adv-grid .kv li span:last-child { font-size: 0.9rem; }
.adv-grid .kv li span:first-child { white-space: nowrap; }
.pbar { display: inline-block; width: 90px; height: 9px; border-radius: 5px; background: var(--down); overflow: hidden; vertical-align: middle; margin-right: 0.4rem; }
.pbar i { display: block; height: 100%; background: var(--up); }
.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs button { background: none; border: none; border-bottom: 2px solid transparent; padding: 0.6rem 0.9rem; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--ink-2); margin-bottom: -1px; }
.tabs button.on { color: var(--deep); border-bottom-color: var(--teal); }
.tabs .count { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0 0.5rem; font-size: 0.8rem; margin-left: 0.3rem; }
table.trades { min-width: 980px; font-size: 0.86rem; }
table.trades td, table.trades th { padding: 0.55rem 0.7rem; white-space: nowrap; }
.monthly-details summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--deep); }

/* ---------- Setfiles by users ---------- */
.file-hint { display: flex; align-items: center; gap: 0.4rem; margin: 0.8rem 0 0; font-size: 0.88rem; color: rgba(255,255,255,0.7); flex-wrap: wrap; }
.file-hint svg { width: 15px; height: 15px; flex: none; }
.file-hint span { font-family: var(--font-head); font-weight: 600; color: #fff; word-break: break-all; }
.files-count { display: inline-flex; gap: 0.6rem; align-items: center; color: var(--ink-2); font-size: 0.9rem; }
.files-count svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 2px; }
.post-text { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.3rem; color: var(--ink-2); line-height: 1.65; background: var(--white); word-break: break-word; }
.post-text strong { color: var(--ink); }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.shots-grid a, .shots-grid .rv { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--paper); cursor: zoom-in; }
.shots-grid img { width: 100%; height: auto; display: block; }
.shots-grid video { width: 100%; display: block; background: #000; }
.file-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.file-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.file-list li:last-child { border-bottom: none; }
.file-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; flex: none; }
.file-ic svg { width: 18px; height: 18px; }
.file-name { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name small { display: block; color: var(--ink-2); font-weight: 400; font-size: 0.78rem; }

/* ---------- Results / stories ---------- */
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.story { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.story-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.4rem 0; }
.story-top h3 { margin: 0 0 0.1rem; font-size: 1.15rem; }
.story-top .muted { font-size: 0.9rem; }
.story-gain { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.story blockquote { margin: 1rem 1.4rem; padding-left: 1rem; border-left: 3px solid var(--teal); color: var(--ink-2); font-size: 1rem; }
.story-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; padding: 0 1.4rem 1.2rem; font-size: 0.88rem; color: var(--ink-2); }
.story-meta b { color: var(--ink); font-weight: 600; }
.story-shots { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0 1.4rem 1.3rem; scrollbar-width: thin; }
.story-shots a { flex: none; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--paper); }
.story-shots img { display: block; height: 240px; width: auto; max-width: min(70vw, 520px); object-fit: contain; }
.story-shots .rv { flex: none; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: #000; }
.story-shots video { display: block; height: 240px; width: auto; max-width: min(70vw, 520px); background: #000; }
.story-shots.single .rv { max-width: 100%; }
.story-shots.single video { height: auto; max-height: 480px; max-width: 100%; width: auto; }
@media (max-width: 800px) { .stories { grid-template-columns: 1fr; } }
.story-text { padding: 1rem 1.4rem 0.4rem; color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; word-break: break-word; }
.story-text strong { color: var(--ink); }
.story-text code { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.4rem; font-size: 0.9em; }
.discord-story .story-shots { padding-top: 0.8rem; }
.story-shots.single a { max-width: 100%; }
.story-shots.single img { height: auto; max-height: 480px; max-width: 100%; }
.story-shots a { cursor: zoom-in; }
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,22,0.94); display: none; flex-direction: column; }
#lightbox.open { display: flex; }
#lightbox .lb-scroll { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; touch-action: pinch-zoom pan-x pan-y; -webkit-overflow-scrolling: touch; }
#lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); cursor: zoom-in; image-rendering: auto; }
#lightbox.zoomed .lb-scroll { display: block; padding: 0; }
#lightbox.zoomed img { max-width: none; max-height: none; width: auto; height: auto; border-radius: 0; cursor: zoom-out; }
#lightbox.small .lb-hint::after { content: " · low-resolution image as posted on Discord"; color: #FFB4B4; }
#lightbox .lb-close { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; cursor: pointer; display: grid; place-items: center; }
#lightbox .lb-close svg { width: 22px; height: 22px; }
#lightbox .lb-meta { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 4rem 0.5rem 1.2rem; color: rgba(255,255,255,0.75); font-size: 0.85rem; flex-wrap: wrap; }
#lightbox .lb-dims { font-family: var(--font-head); font-weight: 600; color: #fff; }
#lightbox .lb-open { margin-left: auto; color: #fff; display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0.25rem 0.7rem; }
#lightbox .lb-open svg { width: 14px; height: 14px; }
@media (max-width: 600px) { #lightbox .lb-hint { display: none; } }

/* ---------- Guide ---------- */
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.guide-toc { position: sticky; top: 90px; border-left: 2px solid var(--line); }
.guide-toc a { display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.guide-toc a:hover { color: var(--deep); }
.guide-toc a.on { color: var(--deep); border-left-color: var(--teal); font-weight: 600; }
.guide-section { padding: 1rem 0 2.6rem; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.guide-section:last-child { border-bottom: none; }
.guide-section h2 { font-size: 1.6rem; }
.guide-section img { border: 1px solid var(--line); border-radius: var(--radius-s); margin: 1rem 0; }
.guide-section ol, .guide-section ul { padding-left: 1.3rem; }
.guide-section li { margin-bottom: 0.4rem; }
.guide-section code { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.4rem; font-size: 0.9em; }
.guide-section .video { margin: 1.2rem 0; }
@media (max-width: 880px) { .guide-layout { grid-template-columns: 1fr; gap: 1.5rem; } .guide-toc { position: static; display: flex; flex-wrap: wrap; gap: 0.2rem; border-left: none; } .guide-toc a { border-left: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.88rem; } .guide-toc a.on { border-color: var(--teal); background: var(--teal-soft); } }

/* ---------- Guide videos ---------- */
.gvideos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.4rem; margin: 1.2rem 0 1.6rem; }
@media (max-width: 640px) { .gvideos { grid-template-columns: 1fr; } }
.gvideo h4 { margin: 0.7rem 0 0.25rem; font-size: 1.02rem; }
.gvideo p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.gpoints { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-2); }
.gpoints li { margin-bottom: 0.15rem; }
.gmeta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.6rem; font-size: 0.85rem; }
.gmeta .btn { white-space: normal; text-align: left; max-width: 100%; }
.gmeta .muted a { color: var(--ink-2); }
.playlist-box { margin: 1.2rem 0 1.4rem; }
.playlist-hint { font-size: 0.88rem; margin: 0.6rem 0 0; }
.yt.loaded { background: #000; }
.yt.fb { background: #1877F2; }
.fb-face { position: absolute; left: 1rem; top: 0.8rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.fb-mark { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1877F2; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; line-height: 1; }
.yt.fb button span, .yt.drive button span { background: rgba(255,255,255,0.95); }
.yt.fb button svg, .yt.drive button svg { fill: var(--deep); }
.yt.drive { background: var(--deep-2); }
.drive-folder { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }

/* ---------- Sessions / video ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.4rem; }
.video-card h3 { font-size: 1.08rem; margin: 0.8rem 0 0.25rem; }
.video-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.video-card .meta { font-size: 0.86rem; color: var(--ink-2); margin-top: 0.4rem; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--deep); border: 1px solid var(--line); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 60%); border: 0; cursor: pointer; display: grid; place-items: center; }
.yt button span { width: 64px; height: 44px; border-radius: 12px; background: var(--yt); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,0.35); transition: transform .15s; }
.yt button:hover span { transform: scale(1.06); }
.yt button svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.yt.soon { display: grid; place-items: center; color: rgba(255,255,255,0.7); font-family: var(--font-head); background: linear-gradient(135deg, var(--deep), var(--deep-2)); }
@media (max-width: 960px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .videos { grid-template-columns: 1fr; } }

/* ---------- Sessions page (rich rows) ---------- */
.session-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.3rem; margin-bottom: 1.4rem; background: var(--white); }
.session-row .playlist-box { margin: 0; }
.session-row .drive-folder { height: 340px; }
.session-text .meta { font-size: 0.86rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.session-text h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.session-text p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 880px) { .session-row { grid-template-columns: 1fr; } }
.folder-tile { display: block; text-decoration: none; }

/* ---------- Community band ---------- */
.community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.community a { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; padding: 1.3rem; border-radius: var(--radius-m); text-decoration: none; color: var(--white); border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); transition: background .15s, border-color .15s; }
.community a:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.3); }
.community .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.community .ic svg { width: 26px; height: 26px; fill: #fff; }
.community .ic.wa { background: var(--wa); }
.community .ic.dc { background: var(--discord); }
.community .ic.yt-ic { background: var(--yt); }
.community strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.community span { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
@media (max-width: 800px) { .community { grid-template-columns: 1fr; } }

/* ---------- Renew license ---------- */
.renew-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 880px) { .renew-grid { grid-template-columns: 1fr; gap: 2rem; } }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); padding: 1.8rem; box-shadow: 0 12px 30px -20px rgba(15,52,55,.35); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 0.45rem; }
.field input { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--white); }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field-error { color: var(--down); font-size: 0.9rem; margin-top: 0.4rem; font-weight: 600; }
.captcha-box { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.captcha-box canvas { border: 1.5px solid var(--line); border-radius: var(--radius-s); width: 180px; height: 60px; background: var(--paper); user-select: none; }
.captcha-refresh { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--teal-deep); cursor: pointer; display: grid; place-items: center; }
.captcha-refresh:hover { border-color: var(--teal); background: var(--paper); }
.captcha-refresh svg { width: 22px; height: 22px; }
#captcha-input { letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; }
.form-hint { font-size: 0.88rem; color: var(--ink-2); margin: 0.9rem 0 0; }
.notice-important { background: #FFF6DC; border: 2px solid #F2C94C; border-left-width: 8px; border-radius: var(--radius-m); padding: 1.3rem 1.5rem; color: #4A3600; font-size: 1.08rem; }
.notice-important .notice-title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: #8A5A00; margin-bottom: 0.6rem; }
.notice-important p { margin-bottom: 0.7rem; }
.notice-important p:last-child { margin-bottom: 0; }
.notice-important strong { color: #2B1F00; font-size: 1.12rem; }

/* ---------- Empty states ---------- */
.empty { border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 2.5rem 1.5rem; text-align: center; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.7); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr 1.1fr; gap: 1.6rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer img { height: 54px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: var(--white); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: 0.88rem; }
.disclaimer { font-size: 0.86rem; color: rgba(255,255,255,0.55); max-width: 80ch; margin-top: 1.6rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { background: #33e07a; }

/* ---------- Mobile: grid children may shrink, tables become cards ---------- */
.detail-grid > *, .guide-layout > *, .cols-2 > *, .renew-grid > *, .session-row > *, .hero-grid > *, .chart-grid > *, .adv-grid > *, .stories > *, .videos > *, .gvideos > *, .plans > *, .footer-grid > * { min-width: 0; }
main, .section { max-width: 100%; overflow-x: clip; }
.trade-cards { display: grid; gap: 0.6rem; }
.mob-only, .trade-cards.mob-only { display: none; }
.tcard { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.7rem 0.9rem; font-size: 0.9rem; background: var(--white); }
.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.tcard-top > b { font-family: var(--font-head); font-size: 1rem; white-space: nowrap; }
.tcard-mid { font-size: 0.82rem; margin: 0.25rem 0; }
.tcard-bot { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.85rem; }
.tag-buy { background: #E3F6EA; color: #166B3B; } .tag-sell { background: #FBE7E7; color: #8A2626; }
@media (max-width: 760px) {
  .desk-only { display: none; }
  .mob-only { display: block; }
  .trade-cards.mob-only { display: grid; }
  table.report.setfiles { min-width: 0; font-size: 0.88rem; }
  table.report.setfiles .m-hide { display: none; }
  table.report.setfiles a.pair { word-break: break-word; white-space: normal; }
  table.report.setfiles td, table.report.setfiles th { white-space: normal; }
  table.report.setfiles th, table.report.setfiles td { padding: 0.7rem 0.55rem; }
  table.periods, table.periods tbody, table.periods tr { display: block; width: 100%; }
  table.periods thead { display: none; }
  table.periods tr { padding: 0.5rem 0.9rem 0.6rem; border-bottom: 1px solid var(--line); }
  table.periods tr:last-child { border-bottom: none; }
  table.periods td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.28rem 0; border: none; text-align: right; white-space: normal; }
  table.periods td::before { content: attr(data-label); color: var(--ink-2); font-weight: 500; text-align: left; }
  table.periods td:first-child { display: block; font-family: var(--font-head); font-size: 1.02rem; padding: 0.2rem 0 0.4rem; }
  table.periods td:first-child::before { content: none; }
  .stat-grid-12 .num { font-size: 1.2rem; }
  .section { padding: 3rem 0; }
  .chart-box { padding: 0.9rem 0.7rem 0.6rem; }
  .tabs button { padding: 0.5rem 0.6rem; font-size: 0.92rem; }
}
@media (max-width: 480px) {
  table.report.setfiles { font-size: 0.82rem; }
  table.report.setfiles th, table.report.setfiles td { padding: 0.65rem 0.4rem; }
  table.report.setfiles td:first-child, table.report.setfiles th:first-child { padding-left: 0.7rem; }
  table.report.setfiles td:last-child, table.report.setfiles th:last-child { padding-right: 0.7rem; }
  table.report.setfiles a.pair { font-size: 0.9rem; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Live chat widget ---------- */
.chat-fab { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; display: inline-flex; align-items: center; gap: 0.55rem; height: 54px; padding: 0 1.15rem 0 0.95rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #1E8EA0 0%, #176F86 55%, #10556B 100%); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(16, 85, 107, 0.38); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.chat-fab:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(16, 85, 107, 0.45); }
.chat-fab svg { width: 26px; height: 26px; flex: none; }
.chat-fab .dot { position: absolute; top: 5px; right: 7px; width: 11px; height: 11px; border-radius: 50%; background: #3DDC84; border: 2px solid #fff; }
.chat-fab.is-hidden { display: none; }
.chat-panel { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70; width: 392px; max-width: calc(100vw - 2.2rem); height: 660px; max-height: calc(100vh - 2.2rem); display: flex; flex-direction: column;
  background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 64px rgba(10, 30, 34, 0.38), 0 0 0 1px rgba(10, 30, 34, 0.06); overflow: hidden; font-size: 0.95rem; line-height: 1.5; }
.chat-panel[hidden] { display: none; }
.chat-panel.drag { outline: 3px dashed var(--teal); outline-offset: -6px; }
.chat-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 0.8rem 0.8rem 0.95rem; background: var(--deep); color: #fff; flex: none; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2BABB6, #1C8A94); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; flex: none; }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-title b { font-family: var(--font-head); font-size: 1.02rem; }
.chat-title span { font-size: 0.78rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; margin-right: 0.4rem; vertical-align: 1px; }
.chat-hbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; text-decoration: none; }
.chat-hbtn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.chat-hbtn svg { width: 20px; height: 20px; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 0.9rem 0.5rem; background: var(--paper); display: flex; flex-direction: column; gap: 0.6rem; -webkit-overflow-scrolling: touch; }
.chat-msg { max-width: 86%; display: flex; flex-direction: column; gap: 0.35rem; }
.chat-msg.assistant { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-text { padding: 0.6rem 0.85rem; border-radius: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-msg.assistant .chat-text { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-text { background: linear-gradient(135deg, #1E8EA0, #176F86); color: #fff; border-bottom-right-radius: 4px; }
.chat-text code { background: rgba(0,0,0,0.06); padding: 0 0.3rem; border-radius: 4px; font-size: 0.88em; }
.chat-msg.user .chat-text code { background: rgba(255,255,255,0.18); }
.chat-text a { color: var(--teal-deep); font-weight: 600; }
.chat-text a.chat-vid { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--teal-soft); color: var(--deep); padding: 0.1rem 0.55rem 0.1rem 0.4rem; border-radius: 999px; text-decoration: none; font-size: 0.9em; margin: 0.1rem 0; }
.chat-text a.chat-vid svg { width: 14px; height: 14px; fill: var(--teal-deep); }
.chat-text a.chat-vid:hover { background: #cdeaed; }
.chat-imgs { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.chat-imgs img, .chat-imgph { width: 92px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--white); }
.chat-imgph { display: grid; place-items: center; color: var(--ink-2); } .chat-imgph svg { width: 22px; height: 22px; }
.chat-wa-btn { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--wa); color: #0b2b16; font-weight: 700; padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none; font-size: 0.9rem; }
.chat-wa-btn svg { width: 18px; height: 18px; } .chat-wa-btn:hover { background: #33e07a; color: #0b2b16; }
.chat-typing { display: inline-flex; gap: 4px; padding: 0.2rem 0; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); opacity: 0.5; animation: chatdot 1.2s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; } .chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatdot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.3rem 0.9rem 0.6rem; background: var(--paper); flex: none; }
.chat-quick[hidden] { display: none; }
.chat-quick button { border: 1px solid var(--teal-deep); background: var(--white); color: var(--teal-deep); border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.chat-quick button:hover { background: var(--teal-soft); }
.chat-form { flex: none; border-top: 1px solid var(--line); background: var(--white); padding: 0.55rem 0.6rem 0.4rem; }
.chat-row { display: flex; align-items: flex-end; gap: 0.4rem; }
.chat-row textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.8rem; font: inherit; font-size: 16px; line-height: 1.35; max-height: 140px; background: var(--paper); }
.chat-row textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.chat-attach, .chat-send { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-attach { background: var(--paper); color: var(--ink-2); } .chat-attach:hover { background: var(--teal-soft); color: var(--deep); }
.chat-send { background: linear-gradient(135deg, #1E8EA0, #10556B); color: #fff; } .chat-send:disabled { opacity: 0.45; cursor: default; }
.chat-attach svg, .chat-send svg { width: 20px; height: 20px; }
.chat-form.working .chat-attach { animation: chatspin 1s linear infinite; } @keyframes chatspin { to { transform: rotate(360deg); } }
.chat-previews { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.1rem 0.2rem 0.5rem; }
.chat-previews[hidden] { display: none; }
.chat-prev { position: relative; width: 64px; height: 50px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.chat-prev img { width: 100%; height: 100%; object-fit: cover; }
.chat-prev.loading { background: repeating-linear-gradient(45deg, var(--paper) 0 8px, var(--teal-soft) 8px 16px); animation: chatstripe 1s linear infinite; background-size: 200% 100%; } @keyframes chatstripe { to { background-position: 46px 0; } }
.chat-prev .vid { position: absolute; left: 4px; bottom: 3px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,0.6); display: grid; place-items: center; } .chat-prev .vid svg { width: 10px; height: 10px; fill: #fff; }
.chat-prev button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.65); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; } .chat-prev button svg { width: 11px; height: 11px; }
.chat-note { font-size: 0.82rem; color: var(--down); padding: 0 0.3rem 0.4rem; } .chat-note[hidden] { display: none; }
.chat-foot { flex: none; font-size: 0.74rem; color: var(--ink-2); text-align: center; padding: 0.3rem 0.6rem 0.5rem; background: var(--white); }
.chat-foot a { color: var(--ink-2); } .chat-foot button { border: 0; background: none; color: var(--teal-deep); font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .chat-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-fab span { display: none; }
  .chat-panel { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .chat-body { padding: 0.9rem 0.75rem 0.4rem; }
  .chat-msg { max-width: 90%; }
  html.chat-open, html.chat-open body { overflow: hidden; }
}

/* ---------- Risk notice (bold, highlighted) ---------- */
.risk-notice { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.85rem 1rem; border-radius: var(--radius-m); background: #FFF3DF; border: 1px solid #F3C98A; border-left: 5px solid #E08A00; color: #5A3600; }
.risk-notice svg { width: 22px; height: 22px; flex: none; color: #E08A00; margin-top: 0.1rem; }
.risk-notice p { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.risk-notice strong { color: inherit; font-weight: 800; }
.risk-notice.on-dark { margin-top: 1.1rem; background: rgba(255, 196, 92, 0.14); border-color: rgba(255, 196, 92, 0.45); border-left-color: #FFC45C; color: #FFE3B3; max-width: 760px; }
.risk-notice.on-dark svg { color: #FFC45C; }
#home-setfiles + [data-risk-notice] .risk-notice { margin-top: 1rem; }
@media (max-width: 600px) { .risk-notice { padding: 0.75rem 0.85rem; gap: 0.55rem; } .risk-notice p { font-size: 0.92rem; } }

/* ---------- MT5 License Activation pages ---------- */
.act-notes { display: grid; gap: 0.8rem; }
.act-note { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1rem 1.2rem; border-radius: var(--radius-m); font-size: 1.02rem; line-height: 1.5; }
.act-note svg { width: 26px; height: 26px; flex: none; margin-top: 0.05rem; }
.act-note p { margin: 0; }
.act-note strong { font-weight: 800; }
.act-note-time { background: var(--teal-soft); border: 1px solid #B9E2E6; border-left: 6px solid var(--teal); color: var(--deep); }
.act-note-time svg { color: var(--teal-deep); }
.act-note-expiry { background: #FFF6DC; border: 1px solid #F2C94C; border-left: 6px solid #E0A800; color: #4A3600; }
.act-note-expiry svg { color: #B57F00; }
.act-note-expiry a { color: #8A5A00; font-weight: 700; }
.act-card .field textarea { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--white); resize: vertical; min-height: 3.4rem; line-height: 1.5; }
.act-card .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field-help { font-size: 0.88rem; color: var(--ink-2); margin: 0.45rem 0 0; }
.count-pill { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--ink-2); vertical-align: 1px; font-family: var(--font-body); }
.count-pill.over { background: #FBE7E7; border-color: #F0B5B5; color: var(--down); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.seg button { text-align: left; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--white); cursor: pointer; display: grid; gap: 0.15rem; position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.seg button b { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); padding-right: 1.6rem; }
.seg button span { font-size: 0.82rem; color: var(--ink-2); }
.seg button em { font-style: normal; font-size: 0.8rem; color: var(--teal-deep); font-weight: 600; }
.seg button::after { content: ""; position: absolute; top: 0.9rem; right: 0.9rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); }
.seg button.on { border-color: var(--teal-deep); box-shadow: 0 0 0 3px var(--teal-soft); background: #F6FCFC; }
.seg button.on::after { border-color: var(--teal-deep); background: radial-gradient(circle, var(--teal-deep) 0 5px, var(--white) 6px); }
.seg button:hover { border-color: var(--teal); }
.id-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.id-chips[hidden] { display: none; }
.id-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem 0.25rem 0.3rem; border-radius: 999px; background: var(--teal-soft); color: var(--deep); font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.id-chip i { font-style: normal; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; font-size: 0.72rem; font-family: var(--font-head); }
.id-chip.bad { background: #FBE7E7; color: #8A2626; } .id-chip.bad i { background: var(--down); }
.id-chip.over { background: #FFF1D6; color: #7A4B00; } .id-chip.over i { background: #E08A00; }
.field-remove .lbl-remove { color: var(--down); } .field-add .lbl-add { color: var(--up); }
.msg-preview { margin-top: 1.1rem; border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--paper); }
.msg-preview summary { cursor: pointer; padding: 0.6rem 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.msg-preview pre { margin: 0; padding: 0.2rem 0.9rem 0.9rem; font-size: 0.86rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; font-family: Consolas, "Courier New", monospace; color: var(--ink); }
@media (max-width: 600px) {
  .seg { grid-template-columns: 1fr; }
  .act-note { padding: 0.85rem 0.95rem; font-size: 0.96rem; }
  .form-card { padding: 1.3rem 1.1rem; }
}

/* ---------- Plans without prices (pricing.js → showPrices:false) ---------- */
.plan-noprice { display: flex; flex-direction: column; }
.plan-noprice .plan-features { flex: 1; border-bottom: none; }
.plan-cta { padding: 1.1rem 1.5rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; }
.plan-cta .btn-wa { justify-content: center; }
.plan-cta .muted { margin: 0; font-size: 0.86rem; text-align: center; }
.plan-cta .plan-more { text-align: center; font-size: 0.9rem; font-weight: 600; }

/* ---------- Real / Demo tags, account filter, home result cards ---------- */
.tag-real { background: linear-gradient(135deg, #FFE9A8, #FFD04A); color: #4A3600; box-shadow: 0 0 0 1px rgba(224,138,0,.35) inset; }
.tag-demo { background: #E6EEF0; color: #3E5256; }
.filters.f-acc button.on { background: var(--deep); }
.rcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.rcard { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 14px 34px -24px rgba(15,52,55,.45); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; position: relative; overflow: hidden; }
.rcard:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(15,52,55,.55); border-color: var(--teal); color: var(--ink); }
.rcard.is-real { border-top: 4px solid #F2B227; }
.rcard.is-demo { border-top: 4px solid #9FB3B7; }
.rcard-top { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.rcard-top b { display: block; font-family: var(--font-head); font-size: 1.08rem; line-height: 1.25; word-break: break-word; }
.rcard-top .muted { display: block; font-size: 0.82rem; margin-top: 0.15rem; }
.rcard-tags { display: flex; gap: 0.35rem; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.rcard-gain { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.rcard-gain .num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.rcard-gain span { font-size: 0.82rem; color: var(--ink-2); }
.rcard .spark { width: 100%; height: 64px; display: block; }
.rcard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.rcard-stats div { display: flex; flex-direction: column; min-width: 0; }
.rcard-stats b { font-family: var(--font-head); font-size: 1rem; }
.rcard-stats span { font-size: 0.72rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.rcard-link { font-size: 0.88rem; font-weight: 700; color: var(--teal-deep); }
@media (max-width: 960px) { .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rcards { grid-template-columns: 1fr; gap: 0.9rem; } .rcard-gain .num { font-size: 1.9rem; } }

/* ---------- Hero: live results under the founder photo ---------- */
.hero-results:empty { display: none; }
.hero-results { margin-top: 1.3rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 0.85rem 0.95rem 0.8rem; backdrop-filter: blur(6px); }
.hres-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-bottom: 0.55rem; }
.hres-head span { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.4rem; }
.hres-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,0.25); }
.hres-head a { color: #9FE6EC; font-size: 0.82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hres-head a:hover { color: #fff; }
.hres { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name gain" "meta spark"; column-gap: 0.7rem; row-gap: 0.1rem; align-items: center; padding: 0.6rem 0.2rem; border-top: 1px solid rgba(255,255,255,0.1); color: var(--white); text-decoration: none; border-radius: 8px; }
.hres:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.hres-name { grid-area: name; display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.hres-name b { font-family: var(--font-head); font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hres-name .tag { font-size: 0.68rem; padding: 0.05rem 0.45rem; flex: none; }
.hres-gain { grid-area: gain; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; text-align: right; }
.hres-gain.up { color: #3DDC84; } .hres-gain.down { color: #FF7A7A; }
.hres-meta { grid-area: meta; font-size: 0.76rem; color: rgba(255,255,255,0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hres .spark { grid-area: spark; width: 86px; height: 24px; justify-self: end; }
.hres-risk { margin: 0.6rem 0 0; padding-top: 0.6rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.74rem; line-height: 1.4; color: #FFD58A; }
.hres-risk strong { color: #FFE3B3; }

/* ======================================================================
   MARKETPLACE (market/*.php)
   ====================================================================== */
.flashes { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.flash { padding: 0.8rem 1rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); font-weight: 600; }
.flash-ok { background: #E3F6EA; border-color: #9ad8b2; color: #0E4D2A; } .flash-err { background: #FBE7E7; border-color: #f0b5b5; color: #7A1F1F; } .flash-info { background: var(--teal-soft); border-color: #B9E2E6; color: var(--deep); }
.auth-wrap { max-width: 520px; } .auth-card h2 { margin-bottom: 1rem; }
.prefix-input { display: flex; align-items: stretch; } .prefix-input > span { display: flex; align-items: center; padding: 0 0.8rem; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-s) 0 0 var(--radius-s); background: var(--paper); color: var(--ink-2); font-weight: 600; } .prefix-input input { border-radius: 0 var(--radius-s) var(--radius-s) 0 !important; }
.field select, .field textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field textarea { resize: vertical; line-height: 1.5; min-height: 6rem; }
.field label small { font-weight: 500; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-family: var(--font-body) !important; font-weight: 500 !important; } .check input { margin-top: 0.3rem; flex: none; }
.captcha-box { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; } .captcha-box img { border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; } .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: hsl(var(--h, 190) 55% 38%); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; flex: none; letter-spacing: 0.02em; }
.avatar.sm { width: 28px; height: 28px; font-size: 0.72rem; } .avatar.xs { width: 20px; height: 20px; font-size: 0.6rem; } .avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.ulink { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 600; color: var(--deep); }
.dash-hello { display: flex; align-items: center; gap: 0.9rem; } .dash-hello > span { display: flex; flex-direction: column; } .dash-hello small { font-size: 0.95rem; font-weight: 400; font-family: var(--font-body); color: rgba(255,255,255,0.75); letter-spacing: 0; } .dash-hello small a { color: #9FE6EC; }
.dtabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
.dtabs a { padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 600; color: var(--ink-2); border: 1px solid transparent; font-size: 0.95rem; }
.dtabs a.on { background: var(--deep); color: #fff; } .dtabs a:hover:not(.on) { background: var(--paper); color: var(--deep); }
.dtabs .count { display: inline-block; min-width: 1.3em; padding: 0 0.4em; border-radius: 999px; background: var(--teal-soft); color: var(--deep); font-size: 0.75rem; text-align: center; margin-left: 0.2rem; } .dtabs a.on .count { background: rgba(255,255,255,0.2); color: #fff; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; } @media (max-width: 880px) { .dash-cols { grid-template-columns: 1fr; } }
.dtable td { vertical-align: middle; }
.pbadge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }
.pbadge.free { background: #E3F6EA; color: #166B3B; } .pbadge.paid { background: linear-gradient(135deg, #FFE9A8, #FFD04A); color: #4A3600; }
.sbadge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.sbadge.s-approved, .sbadge.s-paid, .sbadge.s-attached, .sbadge.s-active, .sbadge.s-ok { background: #E3F6EA; color: #166B3B; border-color: #9ad8b2; }
.sbadge.s-pending { background: #FFF6DC; color: #8A5A00; border-color: #F2C94C; } .sbadge.s-rejected, .sbadge.s-failed, .sbadge.s-banned { background: #FBE7E7; color: #8A2626; border-color: #f0b5b5; }
.mk-stats { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 1.2rem; } .mk-stats div { display: flex; flex-direction: column; } .mk-stats b { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; } .mk-stats span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.mk-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; }
.mk-filters input[type=search], .mk-filters select { padding: 0.6rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 0.95rem; background: var(--white); color: var(--ink); min-width: 0; }
.mk-filters input[type=search] { flex: 1 1 220px; }
@media (max-width: 600px) { .mk-filters select { flex: 1 1 45%; } .mk-filters .btn { flex: 1 1 100%; justify-content: center; } }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.mcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); text-decoration: none; color: var(--ink); overflow: hidden; box-shadow: 0 14px 34px -26px rgba(15,52,55,.45); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.mcard:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 22px 44px -22px rgba(15,52,55,.5); color: var(--ink); }
.mcard-img { position: relative; aspect-ratio: 16 / 10; background: var(--paper); overflow: hidden; } .mcard-img img { width: 100%; height: 100%; object-fit: cover; } .mcard-noimg { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-size: 0.9rem; }
.mcard-img .pbadge { position: absolute; top: 10px; left: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.mcard-body { padding: 0.85rem 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; } .mcard-body > b { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; } .mcard-meta { font-size: 0.85rem; color: var(--ink-2); }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.82rem; } .mcard-seller { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--deep); }
.pager { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; } .pager a { padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; font-weight: 600; } .pager a.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.shot { margin: 0; } .shot-img { display: block; position: relative; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; } .shot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.4rem; font-weight: 600; }
.shot.locked .shot-img img { filter: blur(6px) saturate(.7); transform: scale(1.06); }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; background: rgba(15,52,55,0.45); color: #fff; text-align: center; } .lock-overlay svg { width: 30px; height: 30px; margin-bottom: 0.2rem; } .lock-overlay b { font-family: var(--font-head); font-size: 1.05rem; } .lock-overlay span { font-size: 0.82rem; opacity: 0.9; }
.seller-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.2rem; background: var(--white); display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; } .seller-card > b { font-family: var(--font-head); font-size: 1.1rem; margin-top: 0.4rem; } .seller-card p { font-size: 0.9rem; color: var(--ink-2); margin: 0.3rem 0 0; }
.seller-nums { display: flex; gap: 1.2rem; margin: 0.6rem 0 0.9rem; } .seller-nums div { display: flex; flex-direction: column; } .seller-nums b { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.1; } .seller-nums span { font-size: 0.76rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.upload-card { max-width: 920px; }
.upgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.upbox { border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 0.8rem; background: var(--paper); display: flex; flex-direction: column; gap: 0.5rem; } .upbox.has-err { border-color: var(--down); }
.upbox label { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 0.4rem; align-items: baseline; } .upbox label em { font-style: normal; font-size: 0.72rem; color: var(--down); font-weight: 700; } .upbox label .muted, .upbox .lockhint { font-size: 0.72rem; font-weight: 600; color: var(--ink-2); } .lockhint { color: #8A5A00 !important; }
.upbox input[type=file] { font-size: 0.85rem; width: 100%; } .upprev { min-height: 80px; display: grid; place-items: center; background: var(--white); border-radius: var(--radius-s); overflow: hidden; font-size: 0.82rem; text-align: center; padding: 0.4rem; } .upprev img { max-height: 160px; width: auto; max-width: 100%; border-radius: 4px; }
.seg-sm { grid-template-columns: 1fr 1fr; } .segopt { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font-weight: 600; cursor: pointer; font-family: var(--font-body) !important; } .segopt:has(input:checked) { border-color: var(--teal-deep); background: var(--teal-soft); }
.review-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; background: var(--white); margin-bottom: 1rem; box-shadow: 0 12px 30px -24px rgba(15,52,55,.4); }
.review-head b { font-family: var(--font-head); font-size: 1.1rem; }
.review-shots { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; align-items: flex-start; } .review-shots a.lb { width: 150px; text-decoration: none; font-size: 0.75rem; color: var(--ink-2); font-weight: 600; } .review-shots a.lb img { width: 150px; height: 94px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; margin-bottom: 0.2rem; } .review-set { align-self: center; font-weight: 700; }
.review-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.6rem; } .reject-form { display: flex; gap: 0.4rem; flex: 1 1 320px; } .reject-form input { flex: 1; padding: 0.5rem 0.7rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 0.9rem; min-width: 0; }
code.secret { filter: blur(5px); cursor: pointer; user-select: none; } code.secret.show { filter: none; user-select: text; }
.addr-box { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0.5rem 0 0.3rem; } .addr-box code { font-size: 0.95rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.5rem 0.7rem; word-break: break-all; flex: 1 1 260px; }
.rcard-static { color: var(--ink); } .rcards .rcard-static { box-shadow: none; }
.nav-account svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .mcards { grid-template-columns: 1fr 1fr; gap: 0.7rem; } .mcard-body { padding: 0.65rem 0.75rem; } .mcard-body > b { font-size: 0.92rem; } .mcard-foot { flex-direction: column; align-items: flex-start; gap: 0.2rem; } .review-shots a.lb { width: 46%; } .review-shots a.lb img { width: 100%; height: auto; aspect-ratio: 16/10; } .mk-stats b { font-size: 1.25rem; } .dash-hello .avatar.lg { width: 48px; height: 48px; font-size: 1.1rem; } .seller-nums { gap: 0.9rem; } }

/* ---------- Messages (buyer ↔ seller chat) ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 0.35rem; border-radius: 999px; background: #E8505B; color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1; vertical-align: middle; }
.nav-badge[hidden] { display: none; }
.inbox { display: grid; gap: 0.5rem; max-width: 860px; }
.inbox-item { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow 0.15s, transform 0.15s; }
.inbox-item:hover { box-shadow: 0 8px 22px rgba(15,52,55,0.08); transform: translateY(-1px); }
.inbox-item.unread { border-color: var(--teal); background: #F3FBFB; }
.inbox-main { min-width: 0; flex: 1; }
.inbox-top { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; font-size: 0.95rem; }
.inbox-about { color: var(--ink-2); font-size: 0.82rem; }
.inbox-snip { color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.15rem; }
.inbox-item.unread .inbox-snip { color: var(--ink); font-weight: 600; }
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex: none; font-size: 0.78rem; color: var(--ink-2); }
.unread-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E8505B; color: #fff; font-size: 0.72rem; font-weight: 700; }
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; align-items: start; }
.chat-wrap { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0.9rem; }
.chat-body { height: min(52vh, 480px); min-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.55rem; padding: 0.8rem; background: #F4F8F8; border-radius: 10px; scroll-behavior: smooth; }
.chat-body > .msg:first-child, .chat-body > .chat-empty { margin-top: auto; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-2); max-width: 32ch; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.me { align-self: flex-end; align-items: flex-end; } .msg.them { align-self: flex-start; align-items: flex-start; }
.msg-b { padding: 0.55rem 0.8rem; border-radius: 14px; line-height: 1.45; font-size: 0.95rem; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.me .msg-b { background: var(--deep); color: #fff; border-bottom-right-radius: 4px; }
.msg.them .msg-b { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg time { font-size: 0.7rem; color: var(--ink-2); margin: 0.15rem 0.3rem 0; }
.chat-form { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.7rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.chat-form textarea { flex: 1; resize: vertical; min-height: 44px; max-height: 200px; padding: 0.6rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 0.95rem; }
.chat-form textarea:focus { outline: none; border-color: var(--teal); }
@media (max-width: 860px) { .chat-grid { grid-template-columns: 1fr; } .chat-aside { order: 2; } .chat-body { height: 50vh; } .msg { max-width: 88%; } .inbox-meta time { display: none; } .chat-form textarea { font-size: 16px; } }

/* ---------- Setfile details template (fixed labels) ---------- */
.spec { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; background: #fff; font-size: 0.95rem; }
.spec-group { padding: 0.35rem 0; } .spec-group + .spec-group { border-top: 1px dashed var(--line); }
.spec-row { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 0.6rem; padding: 0.18rem 0; }
.spec-k { color: var(--ink-2); font-weight: 600; } .spec-v { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.spec-note { margin-top: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: #FFF4E5; border: 1px solid #F5C98A; color: #7A4A00; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.spec-note b { font-weight: 800; } .spec-arrow { font-size: 1.25rem; }
.spec-note-form { margin: 0.2rem 0 1rem; }
.spec.compact { padding: 0.6rem 0.8rem; font-size: 0.85rem; } .spec.compact .spec-row { grid-template-columns: minmax(150px, 260px) 1fr; padding: 0.1rem 0; } .spec.compact .spec-note { font-size: 0.9rem; padding: 0.45rem 0.7rem; }
.field label em { color: #E8505B; font-style: normal; font-weight: 700; }
@media (max-width: 600px) { .spec-row { grid-template-columns: 1fr; gap: 0.1rem; } .spec-k { font-size: 0.82rem; } }

/* ---------- Marketplace: Setfiles | Users tabs + member cards ---------- */
.market-tabs { margin-bottom: 1rem; }
.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.ucard { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.ucard:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 22px 44px -22px rgba(15,52,55,.5); color: var(--ink); }
.ucard-top { display: flex; align-items: center; gap: 0.8rem; } .ucard-name { display: flex; flex-direction: column; min-width: 0; } .ucard-name b { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; } .ucard-name .small { font-size: 0.78rem; }
.ucard-bio { margin: 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.ucard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.ucard-stat { display: flex; flex-direction: column; padding: 0.5rem 0.65rem; border-radius: 10px; background: var(--paper); border-left: 3px solid var(--line); }
.ucard-stat b { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; } .ucard-stat span { font-size: 0.74rem; color: var(--ink-2); }
.ucard-stat.real { border-left-color: #1E9E5A; } .ucard-stat.demo { border-left-color: #8A96A3; } .ucard-stat.paid { border-left-color: #E8A33D; } .ucard-stat.free { border-left-color: var(--teal); }
.ucard-foot { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: auto; } .ucard-foot .up { color: var(--up); font-weight: 700; } .ucard-foot .down { color: var(--down); font-weight: 700; }
@media (max-width: 600px) { .ucards { grid-template-columns: 1fr; } }

/* ---------- Wallet / credits ---------- */
.pay-box { border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem 1rem; background: var(--paper); }
.pay-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.98rem; } .pay-row:last-child { border-bottom: 0; } .pay-row b { font-family: var(--font-head); font-size: 1.05rem; }
.sbadge.s-cancelled { background: var(--paper); color: var(--ink-2); }
.tag-owner { background: #EEF6F7; color: var(--deep); border: 1px solid #B9E2E6; text-decoration: none; }
.section .mk-stats span, .mk-stats.on-light span { color: var(--ink-2); }
.dash-cols > * { min-width: 0; } .dash-cols .table-wrap { max-width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ---------- Avatars ---------- */
.avatar-img { background: transparent; overflow: hidden; padding: 0; }
.avatar-img img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.nav-av { width: 22px; height: 22px; border-radius: 50%; margin-right: 0.15rem; vertical-align: middle; background: #fff; }
.av-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.av-opt { position: relative; cursor: pointer; border-radius: 50%; padding: 3px; border: 2px solid transparent; display: inline-flex; }
.av-opt input { position: absolute; opacity: 0; pointer-events: none; }
.av-opt:hover { border-color: var(--line); } .av-opt:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,171,182,.2); }
.av-opt input:focus-visible + .avatar { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 600px) { .av-opt .avatar.lg { width: 52px; height: 52px; } }
.acc-name { font-size: 0.85rem; color: var(--deep); font-weight: 600; margin-top: 0.15rem; }
