/* ============================================================
   Haske247 Support — Shared Design System
   (color tokens & components adapted from the Haske247 template)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #070b14;
  --surface: #0f172a;
  --surface2: #1e293b;
  --border: #1e293b;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --text: #cbd5e1;
  --text-white: #ffffff;
  --text-muted: #64748b;
  --success: #34d399;
  --danger: #f87171;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  padding-bottom: 4rem;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ping { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .4; } }
.animate-fade-in { animation: fadeIn .3s ease-out forwards; }

/* ── NAV ── */
nav.site-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(7,11,20,.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: 64px; display: flex; align-items: center;
}
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.logo { display: flex; align-items: center; gap: .65rem; min-width: 0; flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; background: var(--amber); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--bg); font-size: .85rem; box-shadow: 0 0 20px rgba(245,158,11,.3); flex-shrink: 0; }
.logo-text { font-size: 1.05rem; font-weight: 800; color: var(--text-white); letter-spacing: -.02em; }
.logo-text span { color: var(--amber); }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.nav-link:hover, .nav-link.active { color: var(--amber-light); }
.user-pill { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; min-width: 0; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; color: var(--amber); flex-shrink: 0; }
.user-pill-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.user-pill-text .uname { font-size: .65rem; font-weight: 700; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.user-pill-text .role { font-size: .5rem; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; gap: .5rem; }
  .logo-text { font-size: .92rem; }
  .logo-icon { width: 30px; height: 30px; }
  .user-pill-text .uname { max-width: 64px; }
  .user-pill-text .role { display: none; }
  .user-pill { padding: 5px 9px; }
}

/* ── LAYOUT ── */
main { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.container-sm { max-width: 560px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.page-head { text-align: center; margin-bottom: 2.5rem; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--text-white); margin-bottom: .5rem; letter-spacing: -.02em; }
.page-sub { color: var(--text-muted); font-size: .95rem; }

/* Two-column public pages (creator support page, campaign page) that
   stack to a single column on phones/tablets. */
.support-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; }
@media (max-width: 860px) {
  .support-layout { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 640px) {
  main { padding: 1.25rem 1rem; }
  .container-sm { padding: 1.5rem 1rem; }
  .page-head { margin-bottom: 1.5rem; }
  .card { padding: 1.1rem; border-radius: .8rem; }
  .support-cover { height: 120px !important; border-radius: .7rem !important; }
  .support-header-row { flex-wrap: wrap; }
  .support-avatar-lg { width: 52px !important; height: 52px !important; font-size: 1.1rem !important; }
  .manual-bank-grid { grid-template-columns: 1fr !important; }
}

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: .9rem; border: none; cursor: pointer; transition: filter .15s, background .15s; }
.btn-primary { background: var(--amber); color: var(--bg); box-shadow: 0 4px 20px rgba(245,158,11,.3); }
.btn-primary:hover { background: var(--amber-light); }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text-white); }
.btn-secondary:hover { background: var(--surface2); }
.btn-danger { background: var(--danger); color: #1a0000; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .78rem; }

/* ── CARDS ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.creator-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; transition: transform .2s, border-color .2s; }
.creator-card:hover { transform: translateY(-3px); border-color: rgba(245,158,11,.4); }
.creator-cover { height: 110px; background: linear-gradient(135deg, var(--surface2), var(--bg)); background-size: cover; background-position: center; }
.creator-body { padding: 1.25rem; position: relative; }
.creator-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface2); border: 3px solid var(--surface); margin-top: -42px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--amber); font-size: 1.1rem; overflow: hidden; }
.creator-name { font-size: 1.05rem; font-weight: 800; color: var(--text-white); margin-top: .6rem; }
.creator-headline { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }

/* ── PROGRESS BAR ── */
.progress-wrap { background: var(--surface2); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-light)); border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; font-size: .72rem; color: var(--text-muted); margin-top: .4rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: .8rem; font-weight: 700; color: var(--text-white); margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=file], textarea, select {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text-white);
  padding: 12px 14px; border-radius: .6rem; font-size: .9rem; font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); }
textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: .72rem; color: var(--text-muted); margin-top: .35rem; }
.check-row { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text); }
.check-row input { width: auto; }
.amount-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.amount-chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-white); font-weight: 700; font-size: .85rem; cursor: pointer; }
.amount-chip.active, .amount-chip:hover { border-color: var(--amber); color: var(--amber-light); }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: .6rem; font-size: .85rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.alert-success { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: var(--success); }
.alert-error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: var(--danger); }
.alert-info { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: var(--amber-light); }

/* ── TABLES ── */
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
td { color: var(--text); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge-completed { background: rgba(52,211,153,.15); color: var(--success); }
.badge-pending, .badge-pending_review { background: rgba(245,158,11,.15); color: var(--amber-light); }
.badge-failed, .badge-rejected { background: rgba(248,113,113,.15); color: var(--danger); }
.badge-active { background: rgba(56,189,248,.15); color: #38bdf8; }

/* ── STAT ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: .9rem; padding: 1.1rem; }
.stat-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text-white); }

/* ── WHATSAPP FAB ── */
.wa-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
@media (max-width: 480px) {
  .wa-fab { width: 48px; height: 48px; bottom: 1rem; right: 1rem; }
}

/* ── FOOTER ── */
footer.site-footer { background: #04070c; border-top: 1px solid var(--border); padding: 2rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy { font-size: .72rem; color: var(--text-muted); }

/* ── HERO (landing / feed page) ── */
.hero { position: relative; padding: 1rem 0 1.5rem; max-width: 900px; margin: 0 auto; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: .7rem; font-weight: 700; color: var(--amber); margin-bottom: 1.25rem; }

/* ── ECOSYSTEM LOGO MARQUEE ── */
@keyframes marquee { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-33.33%,0,0); } }
.animate-marquee { animation: marquee 25s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }
.marquee-wrap { margin: 0 auto 2rem; max-width: 1180px; position: relative; overflow: hidden; height: 112px; display: flex; align-items: center; }
.marquee-fade-l { position: absolute; top: 0; bottom: 0; left: 0; width: 80px; background: linear-gradient(to right, var(--bg), transparent); z-index: 10; pointer-events: none; }
.marquee-fade-r { position: absolute; top: 0; bottom: 0; right: 0; width: 80px; background: linear-gradient(to left, var(--bg), transparent); z-index: 10; pointer-events: none; }
.marquee-track { display: flex; gap: 2rem; white-space: nowrap; width: max-content; }
.tool-chip { flex: none; width: 128px; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.tool-icon-wrap { width: 56px; height: 56px; border-radius: 50%; background: rgba(30,41,59,.5); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
.tool-chip:hover .tool-icon-wrap { border-color: rgba(255,255,255,.4); }
.tool-name { font-size: .68rem; font-weight: 700; color: var(--text-white); transition: color .2s; }
.tool-chip:hover .tool-name { color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .animate-marquee { animation: none; } }
.hero-h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); font-weight: 900; color: var(--text-white); line-height: 1.05; margin-bottom: 1rem; letter-spacing: -.03em; }
.hero-h1 em { font-style: normal; color: var(--amber); text-shadow: 0 0 30px rgba(245,158,11,.45); }
.hero-sub { max-width: 34rem; margin: 0 auto 1.5rem; font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: .5rem; }
.hero-stats .stat-num { display: block; font-size: 1.5rem; font-weight: 900; color: var(--text-white); }
.hero-stats .stat-label { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); margin: 2.5rem 0; }
.section-heading { font-size: 1.2rem; font-weight: 800; color: var(--text-white); margin-bottom: 1rem; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.section-head-row .section-heading { margin-bottom: 0; }

/* ── LIVE BADGE / PING ── */
.live-badge { display: inline-flex; align-items: center; gap: .5rem; color: var(--amber); font-size: .75rem; font-weight: 600; }
.ping-dot-wrap { position: relative; display: inline-flex; width: 8px; height: 8px; }
.ping-dot-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--amber-light); opacity: .7; animation: ping 1.4s cubic-bezier(0,0,.2,1) infinite; }
.ping-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ── ACTIVITY FEED ── */
.feed-list { display: flex; flex-direction: column; gap: .6rem; }
.feed-item { display: flex; align-items: flex-start; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: .9rem; padding: 1rem 1.1rem; transition: border-color .2s, transform .2s; }
.feed-item:hover { border-color: rgba(245,158,11,.4); transform: translateY(-2px); }
.feed-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: .88rem; font-weight: 700; color: var(--text-white); }
.feed-desc { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; line-height: 1.5; }
.feed-time { font-size: .68rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; margin-top: .15rem; }
@media (max-width: 560px) {
  .feed-item { flex-wrap: wrap; }
  .feed-time { order: 3; margin-left: 52px; }
}

/* ── ICON COLORS (feed / ecosystem module cards) ── */
.c-amber-main { color: var(--amber); }
.c-sky { color: #38bdf8; }
.c-indigo { color: #818cf8; }
.c-red { color: #ef4444; }
.c-emerald { color: #34d399; }
.c-orange { color: #fb923c; }
.c-purple { color: #c084fc; }
.c-amber { color: #fbbf24; }
.c-pink { color: #f472b6; }

/* ── ECOSYSTEM PAGE ── */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.module-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color .2s, transform .2s; }
.module-card:hover { border-color: rgba(245,158,11,.4); transform: translateY(-3px); }
.module-icon { width: 44px; height: 44px; border-radius: .8rem; background: var(--surface2); display: flex; align-items: center; justify-content: center; }
.module-name { font-size: 1.02rem; font-weight: 800; color: var(--text-white); }
.module-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.module-status { align-self: flex-start; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.module-status.live { background: rgba(52,211,153,.15); color: var(--success); }
.module-status.soon { background: rgba(100,116,139,.2); color: var(--text-muted); }

/* ── ECOSYSTEM LOGO MARQUEE (ported from the original mockup) ── */
@keyframes marquee { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-33.333%,0,0); } }
.animate-marquee { display: flex; animation: marquee 25s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }
.marquee-wrap { margin-bottom: 1rem; position: relative; overflow: hidden; height: 128px; display: flex; align-items: center; }
.marquee-fade-l { position: absolute; top: 0; bottom: 0; left: 0; width: 80px; background: linear-gradient(to right, var(--bg), transparent); z-index: 10; pointer-events: none; }
.marquee-fade-r { position: absolute; top: 0; bottom: 0; right: 0; width: 80px; background: linear-gradient(to left, var(--bg), transparent); z-index: 10; pointer-events: none; }
.marquee-track { display: flex; gap: 2rem; white-space: nowrap; }
.tool-chip { flex: none; width: 144px; display: flex; flex-direction: column; align-items: center; }
.tool-icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: rgba(30,41,59,.5); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin-bottom: .4rem; transition: border-color .2s; }
.tool-chip:hover .tool-icon-wrap { border-color: rgba(255,255,255,.4); }
.tool-name { font-size: .7rem; font-weight: 700; color: var(--text-white); transition: color .2s; white-space: normal; text-align: center; }
.tool-chip:hover .tool-name { color: var(--amber); }

/* ── GLOWS (marquee icon wraps) ── */
.glow-sky { box-shadow: 0 0 15px rgba(56,189,248,.3); }
.glow-indigo { box-shadow: 0 0 15px rgba(129,140,248,.3); }
.glow-red { box-shadow: 0 0 15px rgba(239,68,68,.3); }
.glow-emerald { box-shadow: 0 0 15px rgba(52,211,153,.3); }
.glow-orange { box-shadow: 0 0 15px rgba(251,146,60,.3); }
.glow-purple { box-shadow: 0 0 15px rgba(192,132,252,.3); }
.glow-amber { box-shadow: 0 0 15px rgba(251,191,36,.3); }
.glow-pink { box-shadow: 0 0 15px rgba(244,114,182,.3); }
.glow-amber-main { box-shadow: 0 0 15px rgba(245,158,11,.35); }

/* ── UTIL ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
