/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, button, select, textarea { font-family: inherit; }

/* === LANDING PAGE — molty.me inspired === */
.lp { background: #09090b; min-height: 100vh; overflow-x: hidden; color: #f4f4f5; }
.lp-bg { position: fixed; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(234,88,12,0.09), transparent 55%), radial-gradient(ellipse 50% 25% at 80% 45%, rgba(220,38,38,0.05), transparent 50%), radial-gradient(ellipse 50% 25% at 15% 65%, rgba(234,88,12,0.05), transparent 50%), radial-gradient(ellipse 60% 20% at 50% 90%, rgba(234,88,12,0.06), transparent 50%); pointer-events: none; z-index: 0; }
.lp > * { position: relative; z-index: 1; }

/* Nav */
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 48px; max-width: 1200px; margin: 0 auto; height: 64px; border-bottom: 1px solid rgba(255,255,255,0.06); }
[data-theme="light"] .lp-nav { border-bottom-color: rgba(0,0,0,0.06); }
.lp-nav-logo { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: center; height: 64px; color: #a1a1aa; }
.lp-nav-logo strong { font-weight: 800; color: #f4f4f5; }
.lp-nav-logo span { color: var(--accent); font-weight: 800; }
.lp-nav-right { display: flex; align-items: center; gap: 10px; height: 64px; }
.lp-nav-link { color: #a1a1aa; font-size: 0.84rem; font-weight: 500; text-decoration: none; transition: color 0.2s; display: flex; align-items: center; height: 36px; }
.lp-nav-link:hover { color: #f4f4f5; }
.lp-nav-btn { background: linear-gradient(135deg, #dc2626, #ea580c); color: #fff; font-size: 0.84rem; font-weight: 600; text-decoration: none; border-radius: 10px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 20px; }
.lp-nav-btn:hover { transform: scale(1.05); color: #fff; }

/* Hero */
.lp-hero { text-align: center; padding: 56px 24px 48px; max-width: 800px; margin: 0 auto; position: relative; }
/* Platform carousel */
.lp-carousel-wrap { position: relative; overflow: hidden; margin: 0 -24px 32px; }
.lp-carousel-fade { position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.lp-carousel-fade-l { left: 0; background: linear-gradient(to right, var(--bg, #09090b) 0%, transparent 100%); }
.lp-carousel-fade-r { right: 0; background: linear-gradient(to left, var(--bg, #09090b) 0%, transparent 100%); }
.lp-carousel-track { display: flex; align-items: center; gap: 16px; width: max-content; animation: lp-scroll 30s linear infinite; }
.lp-ci { flex-shrink: 0; display: flex; align-items: center; gap: 16px; }
.lp-ci span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: #3f3f46; }
.lp-ci::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #3f3f46; opacity: 0.4; flex-shrink: 0; }
.lp-ci:last-child::after { display: none; }
.lp-carousel-wrap:hover .lp-carousel-track { animation-play-state: paused; }
.lp-carousel-wrap:hover .lp-ci span { color: #52525b; }
@keyframes lp-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.lp-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 10px; border: 1px solid rgba(234,88,12,0.15); background: rgba(234,88,12,0.05); color: var(--accent); font-size: 0.76rem; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.04em; backdrop-filter: blur(8px); }
.lp-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; color: #fafafa; margin: 0 0 16px; background: linear-gradient(135deg, #ffffff 30%, #ea580c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lp-hero-sub { font-size: clamp(0.95rem, 2vw, 1.1rem); color: #a1a1aa; line-height: 1.7; max-width: 480px; margin: 0 auto 32px; }

/* CTA buttons */
.lp-hero-cta { display: flex; justify-content: center; gap: 14px; margin-bottom: 0; }
.lp-btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; background: linear-gradient(135deg, #dc2626, #ea580c); color: #fff; font-weight: 700; font-size: 1rem; border-radius: 14px; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 24px rgba(234,88,12,0.3), 0 0 60px rgba(234,88,12,0.1); position: relative; overflow: hidden; }
.lp-btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%); pointer-events: none; }
.lp-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 8px 40px rgba(234,88,12,0.4), 0 0 80px rgba(234,88,12,0.15); }
.lp-btn-primary svg { flex-shrink: 0; }
.lp-btn-ghost { display: inline-flex; align-items: center; padding: 16px 36px; border: 1px solid rgba(63,63,70,0.5); color: #a1a1aa; font-weight: 600; font-size: 1rem; border-radius: 14px; text-decoration: none; transition: all 0.3s; background: rgba(24,24,27,0.3); backdrop-filter: blur(8px); }
.lp-btn-ghost:hover { border-color: rgba(234,88,12,0.3); color: #f4f4f5; transform: translateY(-2px); background: rgba(24,24,27,0.5); }

/* Hero stats */
.lp-hero-stats { display: inline-flex; justify-content: center; align-items: center; gap: 0; padding: 24px 12px; margin-top: 40px; background: rgba(24,24,27,0.4); border: 1px solid rgba(63,63,70,0.25); border-radius: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: relative; overflow: hidden; }
.lp-hero-stats::before { content: ''; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; background: linear-gradient(135deg, rgba(234,88,12,0.15), transparent 40%, transparent 60%, rgba(220,38,38,0.1)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.lp-hero-stat { padding: 0 32px; text-align: center; font-size: 0.72rem; color: #71717a; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.lp-hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg, #f4f4f5, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 4px; }
.lp-hero-divider { width: 1px; height: 44px; background: linear-gradient(to bottom, transparent, rgba(63,63,70,0.5), transparent); }

/* Sections */
.lp-section { max-width: 1100px; margin: 0 auto; padding: 56px 48px; position: relative; }
.lp-section h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 40px; color: #fafafa; letter-spacing: -0.03em; }
/* Section ambient glows */
.lp-section-glow-left { position: relative; }
.lp-section-glow-left::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(220,38,38,0.04); filter: blur(80px); left: -100px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 0; }
.lp-section-glow-right { position: relative; }
.lp-section-glow-right::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(234,88,12,0.04); filter: blur(80px); right: -100px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 0; }

/* Two columns — earn/promo cards */
.lp-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-col { position: relative; background: rgba(24,24,27,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(39,39,42,0.5); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; overflow: hidden; transition: all 0.3s; }
.lp-col:hover { border-color: rgba(63,63,70,0.5); transform: translateY(-2px); }
.lp-col-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(80px); opacity: 0.15; top: -60px; right: -40px; pointer-events: none; }
.lp-col-earn .lp-col-glow { background: #dc2626; }
.lp-col-promo .lp-col-glow { background: #ea580c; }
.lp-col-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; width: fit-content; }
.lp-col-earn .lp-col-tag { background: rgba(220,38,38,0.1); color: #ef4444; }
.lp-col-promo .lp-col-tag { background: rgba(234,88,12,0.1); color: #f97316; }
.lp-col h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; color: #fafafa; letter-spacing: -0.02em; }
.lp-col-desc { font-size: 0.86rem; color: #71717a; margin: 0 0 20px; line-height: 1.6; }
.lp-perks { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lp-perks li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: #d4d4d8; line-height: 1.4; }
.lp-check { width: 17px; height: 17px; flex-shrink: 0; }
.lp-col-earn .lp-check { color: #ef4444; }
.lp-col-promo .lp-check { color: #f97316; }
.lp-col-btn { display: block; text-align: center; padding: 12px; color: #fff; font-weight: 700; font-size: 0.86rem; border-radius: 999px; text-decoration: none; transition: all 0.2s; }
.lp-col-btn:hover { transform: scale(1.03); color: #fff; }
.lp-col-btn-earn { background: linear-gradient(135deg, #dc2626, #ea580c); box-shadow: 0 4px 20px rgba(220,38,38,0.15); }
.lp-col-btn-promo { background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 4px 20px rgba(234,88,12,0.15); }

/* How it works — timeline */
.lp-how-header { text-align: center; margin-bottom: 48px; }
.lp-how-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(234,88,12,0.2); background: rgba(234,88,12,0.05); margin-bottom: 16px; }
.lp-how-sub { font-size: 1rem; color: #71717a; margin: 12px 0 0; }

.lp-timeline { position: relative; max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.lp-timeline-line { position: absolute; left: 78px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(to bottom, rgba(234,88,12,0.1), rgba(234,88,12,0.3), rgba(234,88,12,0.1)); z-index: 0; }

.lp-tl-item { display: grid; grid-template-columns: 106px 1fr; gap: 24px; align-items: start; position: relative; z-index: 1; padding: 20px 0; }
.lp-tl-left { display: flex; flex-direction: column; align-items: center; position: relative; }
.lp-tl-big { font-size: clamp(5rem, 10vw, 8rem); font-weight: 900; line-height: 0.85; letter-spacing: -0.04em; color: rgba(234,88,12,0.06); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); user-select: none; }
.lp-tl-item:hover .lp-tl-big { color: rgba(234,88,12,0.12); transform: scale(1.05); }
.lp-tl-node { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #dc2626, #ea580c); box-shadow: 0 0 12px rgba(234,88,12,0.4); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.lp-tl-node::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(234,88,12,0.2); animation: lp-node-pulse 2.5s ease-in-out infinite; }
@keyframes lp-node-pulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.5); opacity: 0; } }

.lp-tl-card { display: flex; gap: 18px; padding: 24px; background: rgba(24,24,27,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(39,39,42,0.5); border-radius: 16px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.lp-tl-item:hover .lp-tl-card { border-color: rgba(234,88,12,0.2); transform: translateX(6px); box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 40px rgba(234,88,12,0.04); }
.lp-tl-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(234,88,12,0.08); border: 1px solid rgba(234,88,12,0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s; }
.lp-tl-item:hover .lp-tl-icon { background: rgba(234,88,12,0.14); border-color: rgba(234,88,12,0.25); transform: scale(1.06); }
.lp-tl-icon svg { width: 22px; height: 22px; }
.lp-tl-content { flex: 1; min-width: 0; }
.lp-tl-content h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; color: #f4f4f5; }
.lp-tl-content p { font-size: 0.84rem; color: #a1a1aa; margin: 0 0 12px; line-height: 1.6; }
.lp-tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-tl-chip { padding: 4px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 600; background: rgba(234,88,12,0.06); color: #ea580c; border: 1px solid rgba(234,88,12,0.1); letter-spacing: 0.02em; }

/* Light theme overrides for timeline */
[data-theme="light"] .lp-how-sub { color: #71717a; }
[data-theme="light"] .lp-tl-big { color: rgba(234,88,12,0.07); }
[data-theme="light"] .lp-tl-item:hover .lp-tl-big { color: rgba(234,88,12,0.14); }
[data-theme="light"] .lp-tl-card { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .lp-tl-item:hover .lp-tl-card { border-color: rgba(234,88,12,0.2); box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 40px rgba(234,88,12,0.03); }
[data-theme="light"] .lp-tl-content h3 { color: #18181b; }
[data-theme="light"] .lp-tl-content p { color: #71717a; }
[data-theme="light"] .lp-timeline-line { background: linear-gradient(to bottom, rgba(234,88,12,0.06), rgba(234,88,12,0.2), rgba(234,88,12,0.06)); }
[data-theme="light"] .lp-tl-chip { background: rgba(234,88,12,0.05); border-color: rgba(234,88,12,0.12); }

/* Trust strip */
.lp-trust { display: flex; justify-content: center; gap: 36px; padding: 48px 48px; max-width: 1100px; margin: 0 auto; }
.lp-trust-item { display: flex; align-items: center; gap: 10px; color: #a1a1aa; font-size: 0.84rem; font-weight: 500; transition: color 0.2s; }
.lp-trust-item:hover { color: #d4d4d8; }
.lp-trust-icon { width: 32px; height: 32px; border-radius: 10px; background: rgba(234,88,12,0.08); border: 1px solid rgba(234,88,12,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.lp-trust-item:hover .lp-trust-icon { background: rgba(234,88,12,0.12); border-color: rgba(234,88,12,0.2); }
.lp-trust-icon svg { width: 15px; height: 15px; color: #ea580c; }

/* Price table */
.lp-prices { max-width: 800px; margin: 0 auto; background: rgba(24,24,27,0.5); border: 1px solid rgba(39,39,42,0.5); border-radius: 20px; overflow: hidden; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: relative; }
.lp-prices::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(234,88,12,0.08); filter: blur(60px); top: -40px; right: -30px; pointer-events: none; }
.lp-price-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.lp-price-table thead { position: relative; }
.lp-price-table th { text-align: left; padding: 14px 20px; color: #a1a1aa; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(24,24,27,0.4); }
.lp-price-table thead tr { border-bottom: 1px solid rgba(234,88,12,0.15); }
.lp-price-table th:last-child { text-align: right; }
.lp-price-table td { padding: 12px 20px; color: #a1a1aa; border-bottom: 1px solid rgba(39,39,42,0.2); transition: background 0.2s, color 0.2s; }
.lp-price-table td:last-child { text-align: right; }
.lp-price-table tr:last-child td { border-bottom: none; }
.lp-price-table tbody tr { transition: background 0.2s; }
.lp-price-table tbody tr:hover td { background: rgba(234,88,12,0.06); }
.lp-price-table tbody tr:hover .lp-price-platform { color: #fff; }
.lp-price-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; flex-shrink: 0; }
.lp-price-platform { color: #f4f4f5; font-weight: 600; transition: color 0.2s; }
.lp-price-action { color: #71717a; font-weight: 400; margin-left: 4px; }
.lp-price-green { color: #34d399; font-weight: 700; font-size: 0.88rem; }
.lp-price-cost { color: #71717a; font-weight: 500; }

/* Live feed */
.lp-feed-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lp-feed-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative; flex-shrink: 0; }
.lp-feed-live-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: #22c55e; opacity: 0.4; animation: lp-pulse 2s ease-in-out infinite; }
@keyframes lp-pulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.8); opacity: 0; } }
.lp-feed-wrap { max-width: 800px; margin: 0 auto; position: relative; max-height: 340px; overflow: hidden; }
.lp-feed-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, #09090b); pointer-events: none; z-index: 2; }
.lp-feed { display: flex; flex-direction: column; gap: 8px; }
.lp-feed-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(24,24,27,0.5); border: 1px solid rgba(39,39,42,0.3); border-radius: 10px; font-size: 0.82rem; color: #a1a1aa; animation: lp-feed-in 0.4s ease-out; }
@keyframes lp-feed-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.lp-feed-item.lp-feed-out { animation: lp-feed-out 0.3s ease-in forwards; }
@keyframes lp-feed-out { from { opacity: 1; max-height: 60px; margin-bottom: 0; } to { opacity: 0; max-height: 0; margin-bottom: -8px; padding-top: 0; padding-bottom: 0; } }
.lp-feed-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0; text-transform: uppercase; }
.lp-feed-name { color: #f4f4f5; font-weight: 600; }
.lp-feed-action-earned { color: #22c55e; font-weight: 600; }
.lp-feed-action-order { color: #ea580c; font-weight: 600; }
.lp-feed-detail { color: #a1a1aa; font-weight: 500; }
.lp-feed-time { margin-left: auto; color: #52525b; font-size: 0.75rem; flex-shrink: 0; white-space: nowrap; }

/* Landing FAQ — two columns */
.lp-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.lp-faq-col { display: flex; flex-direction: column; gap: 10px; }
.lp-faq-col-tag { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.lp-faq-col-tag-earn { background: rgba(220,38,38,0.08); color: #ef4444; border: 1px solid rgba(220,38,38,0.12); }
.lp-faq-col-tag-promo { background: rgba(234,88,12,0.08); color: #f97316; border: 1px solid rgba(234,88,12,0.12); }
.lp-faq-item { background: rgba(24,24,27,0.5); border: 1px solid rgba(39,39,42,0.5); border-radius: 12px; overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.lp-faq-item:hover { border-color: rgba(63,63,70,0.6); }
.lp-faq-item.open { border-color: rgba(234,88,12,0.2); background: rgba(24,24,27,0.7); }
.lp-faq-q { padding: 14px 16px; font-size: 0.86rem; font-weight: 600; color: #d4d4d8; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; user-select: none; transition: color 0.2s; }
.lp-faq-q:hover { color: #f4f4f5; }
.lp-faq-item.open .lp-faq-q { color: #f4f4f5; }
.lp-faq-q svg { width: 16px; height: 16px; color: #52525b; flex-shrink: 0; transition: transform 0.3s ease, color 0.2s; }
.lp-faq-q:hover svg { color: #a1a1aa; }
.lp-faq-item.open .lp-faq-q svg { transform: rotate(180deg); color: #ea580c; }
.lp-faq-a { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out, padding 0.35s ease-out; font-size: 0.82rem; color: #a1a1aa; line-height: 1.7; }
.lp-faq-item.open .lp-faq-a { max-height: 300px; padding: 0 16px 14px 28px; border-left: 2px solid rgba(234,88,12,0.25); margin-left: 16px; }

/* Bottom CTA */
.lp-bottom { text-align: center; padding: 64px 24px; position: relative; }
.lp-bottom::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(234,88,12,0.04), transparent 70%); pointer-events: none; }
.lp-bottom h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: #fafafa; margin: 0 0 10px; letter-spacing: -0.02em; position: relative; }
.lp-bottom p { color: #71717a; font-size: 0.92rem; margin: 0 0 24px; position: relative; }
.lp-bottom .lp-btn-primary { position: relative; }

/* Footer */
.lp-footer { text-align: center; padding: 24px; color: #3f3f46; font-size: 0.72rem; border-top: 1px solid rgba(39,39,42,0.3); }

/* Lang select */
.lang-select { appearance: none; -webkit-appearance: none; background: rgba(24,24,27,0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2371717a'/%3E%3C/svg%3E") no-repeat right 8px center; border: 1px solid rgba(39,39,42,0.5); color: #a1a1aa; font-size: 0.78rem; font-weight: 600; height: 36px; padding: 0 24px 0 10px; border-radius: 999px; cursor: pointer; outline: none; transition: border-color 0.2s; backdrop-filter: blur(4px); }
.lang-select:hover { border-color: #3f3f46; }
.lang-select:focus { border-color: var(--accent); }
.lang-select option { background: #18181b; color: #d4d4d8; }

/* Landing responsive */
@media (max-width: 768px) {
  .lp-nav { padding: 0 16px; }
  .lp-hero { padding: 36px 16px 28px; }
  .lp-hero-badge { margin-bottom: 16px; }
  .lp-hero-sub { margin-bottom: 24px; }
  .lp-carousel-wrap { margin-bottom: 20px; }
  .lp-carousel-track { gap: 28px; animation-duration: 25s; }
  .lp-carousel-fade { width: 40px; }
  .lp-hero-cta { flex-direction: column; align-items: center; gap: 10px; }
  .lp-btn-primary, .lp-btn-ghost { width: 100%; max-width: 320px; text-align: center; justify-content: center; }
  /* Stats — horizontal row even on mobile */
  .lp-hero-stats { flex-direction: row; gap: 0; margin-top: 24px; padding: 16px 4px; }
  .lp-hero-stat { padding: 0 14px; flex: 1; }
  .lp-hero-stat strong { font-size: 1.2rem; }
  .lp-hero-stat { font-size: 0.68rem; }
  .lp-hero-divider { width: 1px; height: 32px; }
  .lp-two-cols { grid-template-columns: 1fr; gap: 14px; }
  .lp-col { padding: 24px 20px; }
  /* Timeline mobile */
  .lp-tl-item { grid-template-columns: 60px 1fr; gap: 14px; padding: 14px 0; }
  .lp-tl-big { font-size: 3.5rem; }
  .lp-timeline-line { left: 48px; }
  .lp-tl-card { flex-direction: column; padding: 18px; gap: 12px; }
  .lp-tl-icon { width: 42px; height: 42px; }
  .lp-tl-content h3 { font-size: 1rem; }
  .lp-tl-content p { font-size: 0.82rem; }
  .lp-how-header { margin-bottom: 28px; }
  .lp-section { padding: 28px 16px; }
  .lp-section h2 { margin-bottom: 24px; }
  .lp-trust { flex-wrap: wrap; gap: 20px 28px; padding: 28px 16px 32px; justify-content: center; }
  .lp-trust-item { font-size: 0.76rem; }
  .lp-trust-icon { width: 26px; height: 26px; border-radius: 8px; }
  .lp-trust-icon svg { width: 12px; height: 12px; }
  .lp-prices { border-radius: 16px; }
  .lp-price-table th, .lp-price-table td { padding: 10px 14px; font-size: 0.78rem; }
  .lp-price-green { font-size: 0.82rem; }
  .lp-price-action { display: block; margin-left: 16px; margin-top: 1px; font-size: 0.72rem; }
  .lp-feed-item { font-size: 0.78rem; padding: 8px 12px; }
  .lp-bottom { padding: 36px 16px; }
  .lp-faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .lp-faq-col-tag { font-size: 0.7rem; }
  .lp-faq-q { font-size: 0.82rem; padding: 12px 14px; }
  .lp-faq-a { font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .lp-nav-link { display: none; }
  .lp-hero h1 { font-size: 1.85rem; }
  .lp-hero-stat { padding: 0 10px; }
  .lp-prices { margin: 0 -8px; border-radius: 14px; }
  .lp-price-table th, .lp-price-table td { padding: 9px 10px; font-size: 0.74rem; }
  .lp-price-dot { width: 6px; height: 6px; margin-right: 6px; }
}

/* === AUTH LAYOUT (login/register) === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
  top: -200px; right: -100px;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: linear-gradient(135deg, #ff6b35, #ea580c);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  bottom: -100px; left: -50px;
}
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h1 {
  font-size: var(--font-3xl);
  font-weight: 800;
  color: #f4f4f5;
  letter-spacing: -1px;
}
.auth-logo p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin-top: 4px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-card h2 {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: 24px;
}

/* === FORM ELEMENTS === */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--font-base);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
select.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-input::placeholder {
  color: var(--text-muted);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  width: 100%;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}
.btn-sm { padding: 8px 16px; font-size: var(--font-sm); }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}
.auth-footer a {
  font-weight: 600;
}
.form-error {
  color: var(--danger);
  font-size: var(--font-sm);
  margin-top: 8px;
  display: none;
}
.form-error.visible { display: block; }

/* === APP LAYOUT (dashboard) === */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-logo {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f4f4f5;
  letter-spacing: -0.02em;
}
.sidebar-nav {
  flex: 1;
  padding: 10px 10px;
  overflow-y: auto;
}
.sidebar-section {
  margin-bottom: 14px;
}
.sidebar-section-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.sidebar-link:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}
.sidebar-link.active {
  background: var(--accent-light);
  color: var(--accent);
}
.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}
.sidebar-link.active svg { opacity: 1; }
.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 10px 10px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-lang {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.sidebar-lang-btn {
  flex: 1;
  padding: 5px 0;
  border-radius: 6px;
  border: 1px solid rgba(39,39,42,0.5);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-lang-btn:hover {
  border-color: rgba(234,88,12,0.3);
  color: var(--text-secondary);
}
.sidebar-lang-btn.active {
  background: rgba(234,88,12,0.12);
  border-color: rgba(234,88,12,0.4);
  color: var(--accent);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-user:hover { background: var(--bg-card); }
.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: white;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-balance {
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
}

/* === MAIN CONTENT === */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}
.page-header {
  padding: 24px 32px 0;
}
.page-header h1 {
  font-size: var(--font-2xl);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin-top: 4px;
}
.page-content {
  padding: 24px 32px;
}

/* === STAT CARDS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}
.stat-label {
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-size: var(--font-2xl);
  font-weight: 800;
  letter-spacing: -1px;
}
.stat-value.accent { color: var(--accent); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }

/* === CARDS / PANELS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 {
  font-size: var(--font-base);
  font-weight: 700;
}
.card-body { padding: 20px; }

/* === TASK TOOLBAR — chips + sort in one row === */
.task-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* === PLATFORM CHIPS === */
.platform-chips {
  display: flex;
  gap: 6px;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0;
}
.platform-chips::-webkit-scrollbar { display: none; }
.platform-chip {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.platform-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.platform-chip:hover { border-color: var(--border-light); color: var(--text-primary); }
.platform-chip.active { border-color: var(--pc, var(--accent)); color: var(--pc, var(--accent)); background: color-mix(in srgb, var(--pc, var(--accent)) 10%, transparent); }
.chip-count { font-size: 0.625rem; opacity: 0.6; font-weight: 600; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: var(--font-lg); color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: var(--font-sm); }

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 500;
  z-index: 10000;
  animation: slideIn 0.3s ease;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--success); color: #000; }
.toast.error { background: var(--danger); color: white; }
.toast.info { background: var(--info); color: white; }
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.lang-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-btn:hover {
  border-color: var(--border-light);
  color: var(--text-secondary);
}
.lang-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* === HAMBURGER (mobile) === */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.hamburger:active { background: rgba(255,255,255,0.12); transform: scale(0.92); }
.hamburger svg { width: 18px; height: 18px; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

/* === MOBILE / TABLET === */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-container { padding: 4vw; }
  .auth-card { padding: 6vw; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* === DASHBOARD HERO === */
.dash-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(234,88,12,0.2);
}
.dash-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(234,88,12,0.15) 0%, rgba(168,85,247,0.08) 50%, rgba(59,130,246,0.06) 100%);
  z-index: 0;
}
.dash-hero-bg::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,0.2), transparent 70%);
  top: -60px; right: -40px;
}
.dash-hero-bg::after {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15), transparent 70%);
  bottom: -40px; left: 20%;
}
.dash-hero-content { position: relative; z-index: 1; text-align: center; }
.dash-hero-label { font-size: var(--font-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.dash-hero-amount { font-size: 2.8rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.dash-hero-stats { display: flex; justify-content: center; align-items: center; gap: 0; }
.dash-hero-stat { display: flex; align-items: center; gap: 5px; padding: 0 16px; font-size: var(--font-xs); color: var(--text-muted); }
.dash-hero-stat svg { width: 14px; height: 14px; flex-shrink: 0; }
.dash-hero-stat span:first-of-type { font-weight: 700; font-size: var(--font-sm); }
.dash-hero-divider { width: 1px; height: 20px; background: var(--border); }

/* === DASHBOARD ACTIONS === */
.dash-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.dash-action-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
}
.dash-action-card:hover { border-color: var(--border-light); transform: translateX(4px); }
.dash-action-card:active { transform: translateX(2px); }
.dash-action-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-action-icon svg { width: 22px; height: 22px; }
.dash-action-text { flex: 1; min-width: 0; }
.dash-action-title { font-size: var(--font-sm); font-weight: 600; }
.dash-action-sub { font-size: var(--font-xs); color: var(--text-muted); margin-top: 1px; }
.dash-action-arrow { width: 18px; height: 18px; color: var(--text-muted); opacity: 0.4; flex-shrink: 0; transition: transform 0.2s; }
.dash-action-card:hover .dash-action-arrow { opacity: 0.8; transform: translateX(2px); }

/* === DASHBOARD PLATFORMS === */
.dash-section-title { font-size: var(--font-sm); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.dash-platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 24px; }
.dash-platform-card {
  text-align: center; padding: 16px 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
  border-top: 2px solid var(--pc);
}
.dash-platform-card:hover { border-color: var(--pc); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.dash-platform-icon { width: 32px; height: 32px; margin: 0 auto 8px; }
.dash-platform-icon svg { width: 100%; height: 100%; }
.dash-platform-name { font-size: var(--font-xs); font-weight: 600; margin-bottom: 4px; }
.dash-platform-count { font-size: var(--font-xl); font-weight: 800; color: var(--pc); }
.dash-platform-label { font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

/* Chart */
.dash-chart-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px 16px 12px; }
.dash-chart-container { width: 100%; min-height: 180px; position: relative; }
.dash-chart-container svg { display: block; width: 100%; height: 180px; }
.dash-chart-empty { text-align: center; color: var(--text-muted); padding: 50px 0; font-size: var(--font-sm); }
.dash-chart-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.dash-chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.dash-chart-legend-item span:first-child { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

@media (max-width: 1024px) {
  .dash-hero { padding: 20px 16px; margin-bottom: 14px; }
  .dash-hero-amount { font-size: 2.2rem; margin-bottom: 14px; }
  .dash-hero-stat { padding: 0 10px; }
  .dash-hero-stat span:first-of-type { font-size: var(--font-xs); }
  .dash-actions { gap: 6px; margin-bottom: 18px; }
  .dash-action-card { padding: 12px 14px; gap: 10px; }
  .dash-action-icon { width: 38px; height: 38px; border-radius: 10px; }
  .dash-action-icon svg { width: 18px; height: 18px; }
  .dash-platforms { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .dash-platform-card { padding: 12px 6px; }
  .dash-platform-icon { width: 26px; height: 26px; margin-bottom: 6px; }
  .dash-platform-count { font-size: var(--font-lg); }
}
@media (max-width: 480px) {
  .dash-platforms { grid-template-columns: repeat(2, 1fr); }
  .dash-hero-stats { flex-wrap: wrap; gap: 8px; }
  .dash-hero-divider { display: none; }
}

/* === CREATE ORDER === */
.co-form {
  background: rgba(24,24,27,0.5);
  border: 1px solid rgba(39,39,42,0.5);
  border-radius: 16px;
  padding: 24px;
}
.co-step {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(39,39,42,0.3);
  transition: opacity 0.3s;
}
.co-step:last-of-type { border-bottom: none; padding-bottom: 0; }
.co-step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.co-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.co-step[style*="opacity: 0.4"] .co-step-num,
.co-step[style*="opacity:0.4"] .co-step-num {
  background: rgba(39,39,42,0.5);
  color: var(--text-muted);
}

/* Platform buttons */
.co-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.co-plat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(63,63,70,0.6);
  background: rgba(39,39,42,0.3);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.co-plat-btn:hover {
  border-color: var(--pc, rgba(234,88,12,0.5));
  background: rgba(39,39,42,0.5);
  color: var(--text-primary);
}
.co-plat-btn.active {
  border-color: var(--pc, #ea580c);
  color: var(--pc, #ea580c);
  background: color-mix(in srgb, var(--pc, #ea580c) 10%, rgba(39,39,42,0.4));
  box-shadow: 0 0 16px color-mix(in srgb, var(--pc, #ea580c) 12%, transparent);
}
.co-plat-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.co-plat-icon svg { width: 20px; height: 20px; }
.co-plat-name { white-space: nowrap; }

/* Action buttons */
.co-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.co-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(63,63,70,0.6);
  background: rgba(39,39,42,0.3);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.co-action-btn:hover {
  border-color: var(--pc, rgba(234,88,12,0.5));
  background: rgba(39,39,42,0.5);
  color: var(--text-primary);
}
.co-action-btn.active {
  border-color: var(--pc, #ea580c);
  color: var(--pc, #ea580c);
  background: color-mix(in srgb, var(--pc, #ea580c) 10%, rgba(39,39,42,0.4));
}
.co-action-icon { width: 18px; height: 18px; display: flex; }
.co-action-icon svg { width: 18px; height: 18px; }
.co-action-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
}

.co-total-bar {
  background: rgba(39,39,42,0.3);
  border: 1px solid rgba(39,39,42,0.4);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0 16px;
  transition: opacity 0.2s;
}
.co-total-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: var(--font-sm); color: var(--text-secondary); }
.co-total-row span:last-child { color: var(--text-primary); font-weight: 500; }
.co-total-main { border-top: 1px solid rgba(39,39,42,0.4); margin-top: 6px; padding-top: 8px; }
.co-total-main span:last-child { font-size: var(--font-lg); font-weight: 700; color: var(--accent); }
.co-total-balance { font-size: var(--font-xs); }
.co-total-balance span:last-child { color: var(--text-muted); font-weight: 400; }

@media (max-width: 600px) {
  .co-form { padding: 16px; }
  .co-plat-btn { padding: 8px 14px; font-size: 0.78rem; }
  .co-action-btn { padding: 8px 14px; font-size: 0.78rem; }
}

/* Orders list */
/* Orders empty state */
.orders-empty { text-align: center; padding: 48px 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; }
.orders-empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--accent); opacity: 0.6; }
.orders-empty-icon svg { width: 56px; height: 56px; }
.orders-empty h3 { font-size: var(--font-lg); color: var(--text-primary); margin: 0 0 6px; }
.orders-empty p { font-size: var(--font-sm); color: var(--text-muted); margin: 0; }

/* Orders list */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: border-color 0.15s; }
.order-card:hover { border-color: rgba(234,88,12,0.3); }
.order-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.order-card-platform { width: 32px; height: 32px; flex-shrink: 0; }
.order-card-platform svg { width: 32px; height: 32px; }
.order-card-info { flex: 1; min-width: 0; }
.order-card-label { font-weight: 600; font-size: var(--font-sm); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-target { font-size: var(--font-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-status { font-size: var(--font-xs); font-weight: 600; padding: 4px 10px; border-radius: 8px; flex-shrink: 0; }
.order-status-active { background: rgba(16,185,129,0.12); color: #10b981; }
.order-status-paused { background: rgba(245,158,11,0.12); color: #f59e0b; }
.order-status-completed { background: rgba(234,88,12,0.12); color: #ea580c; }
.order-status-cancelled { background: rgba(239,68,68,0.12); color: #ef4444; }
.order-card-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.order-card-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.order-card-bottom { display: flex; align-items: center; justify-content: space-between; font-size: var(--font-xs); color: var(--text-muted); }
.order-card-bottom span:first-child { font-weight: 600; color: var(--text-secondary); }
.order-cancel-btn {
  background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25);
  padding: 3px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.order-cancel-btn:hover { background: rgba(239,68,68,0.25); }
.order-cancel-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .order-card-top { flex-wrap: wrap; }
}

/* === ACTION TABS (sub-filter below platform chips) === */
.action-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 2px;
}
.action-tabs::-webkit-scrollbar { display: none; }
.action-tabs:empty, .action-tabs[style*="display: none"] { margin-bottom: 0; }
.action-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: var(--font-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.action-tab svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.6; }
.action-tab:hover { border-color: var(--border-light); color: var(--text-primary); }
.action-tab.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.action-tab.active svg { opacity: 1; }
.action-tab-count { font-size: 0.6rem; opacity: 0.6; margin-left: 2px; }

/* === TASKS GRID === */
/* Task list: single column for compact readability */
.tasks-grid { display: flex; flex-direction: column; gap: 6px; }

/* === Load more button === */
.tasks-load-more-wrap { display: flex; justify-content: center; padding: 16px 0 8px; }
.tasks-load-more {
  padding: 10px 32px;
  font-size: var(--font-sm);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
}

/* === Task link prompt (no linked account) === */
.tasks-link-prompt {
  text-align: center;
  padding: 40px 20px;
  grid-column: 1 / -1;
}
.tasks-link-prompt .tlp-icon { width: 56px; height: 56px; margin: 0 auto 12px; opacity: 0.5; }
.tasks-link-prompt .tlp-icon svg { width: 100%; height: 100%; }
.tasks-link-prompt h3 { font-size: var(--font-base); font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.tasks-link-prompt p { font-size: var(--font-sm); color: var(--text-muted); max-width: 320px; margin: 0 auto; line-height: 1.5; }
.tasks-link-prompt svg { margin-bottom: 8px; opacity: 0.3; }

/* Chip locked state */
.platform-chip.chip-locked { opacity: 0.5; }
.platform-chip.chip-locked:hover { opacity: 0.7; }
.chip-lock { display: flex; align-items: center; margin-left: 1px; }
.chip-lock svg { width: 10px; height: 10px; opacity: 0.5; }

/* === Task group header === */
.task-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 4px;
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  grid-column: 1 / -1;
}
.task-group-header:first-child { padding-top: 0; }
.task-group-header svg { opacity: 0.5; }
.task-group-count { margin-left: auto; font-weight: 500; opacity: 0.5; text-transform: none; letter-spacing: 0; }

/* === Task card: unified structure === */
.task-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; cursor: pointer; transition: all 0.15s; width: 100%;
}
.task-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); }

/* Row: always visible (icon | name/sub | reward) */
.task-card-row { display: flex; align-items: center; gap: 12px; }
.tc-icon { width: 36px; height: 36px; flex-shrink: 0; }
.tc-icon svg { width: 100%; height: 100%; }
.tc-body { flex: 1; min-width: 0; overflow: hidden; }
.tc-name { font-size: var(--font-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sub { font-size: var(--font-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-rem { display: none; } /* shown on mobile only */
.tc-reward {
  flex-shrink: 0;
  font-size: var(--font-lg); font-weight: 800; color: var(--accent);
  text-align: right; white-space: nowrap;
}
.tc-reward span { font-size: var(--font-xs); font-weight: 500; opacity: .6; margin-left: 2px; }

/* Extra: desc, progress, badges — desktop only */
.task-card-extra { margin-top: 10px; }
.task-desc { font-size: var(--font-xs); color: var(--text-secondary); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-progress-bar { height: 3px; background: var(--bg-input); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.task-progress-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.task-meta { display: flex; justify-content: space-between; align-items: center; }
.task-remaining { font-size: var(--font-xs); color: var(--text-muted); }
.task-badges { display: flex; gap: 4px; }
.task-badge { padding: 2px 8px; border-radius: 10px; font-weight: 600; font-size: 0.625rem; text-transform: uppercase; }
.task-badge.quick { background: rgba(16,185,129,0.15); color: #10b981; }
.task-badge.effort { background: rgba(245,158,11,0.15); color: #f59e0b; }
.task-badge.standard { background: var(--bg-input); color: var(--text-muted); }
.chip-count { font-size: 0.625rem; opacity: 0.7; margin-left: 2px; }

/* === WALLET === */
.w-balance-card {
  background: linear-gradient(135deg, rgba(234,88,12,0.15) 0%, rgba(168,85,247,0.08) 100%);
  border: 1px solid rgba(234,88,12,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
}
.w-balance-label { font-size: var(--font-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.w-balance-amount { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: 16px; }
.w-balance-stats { display: flex; justify-content: center; align-items: center; gap: 0; }
.w-stat { display: flex; align-items: center; gap: 4px; padding: 0 12px; }
.w-stat svg { width: 14px; height: 14px; flex-shrink: 0; }
.w-stat-val { font-size: var(--font-sm); font-weight: 700; }
.w-stat-lbl { font-size: var(--font-xs); color: var(--text-muted); }
.w-stat-divider { width: 1px; height: 20px; background: var(--border); }

.w-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.w-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: var(--radius-md); border: none; cursor: pointer;
  font-size: var(--font-sm); font-weight: 600; font-family: inherit;
  transition: all 0.15s;
}
.w-action-btn:active { transform: scale(0.97); }
.w-deposit { background: var(--accent); color: #fff; }
.w-deposit:hover { background: var(--accent-hover); }
.w-withdraw { background: var(--bg-card); border: 1.5px solid var(--border); color: var(--text-primary); }
.w-withdraw:hover { border-color: var(--border-light); }
.w-action-icon { display: flex; }
.w-action-icon svg { width: 18px; height: 18px; }
.w-withdraw-hint { text-align: center; font-size: var(--font-xs); color: var(--text-muted); margin-bottom: 20px; }

.w-history-section { margin-top: 4px; }
.w-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w-history-header h3 { font-size: var(--font-base); font-weight: 700; }
.w-filter-chips { display: flex; gap: 4px; }
.w-chip {
  padding: 4px 10px; border-radius: 10px; font-size: var(--font-xs); font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.w-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.w-tx-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.w-tx-row:last-child { border-bottom: none; }
.w-tx-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.w-tx-icon svg { width: 18px; height: 18px; }
.w-tx-body { flex: 1; min-width: 0; }
.w-tx-label { font-size: var(--font-sm); font-weight: 600; }
.w-tx-desc { font-size: var(--font-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tx-amount { font-size: var(--font-sm); font-weight: 700; flex-shrink: 0; }

.w-empty { text-align: center; padding: 40px 20px; }
.w-empty svg { width: 48px; height: 48px; margin-bottom: 12px; }
.w-empty-title { font-size: var(--font-sm); color: var(--text-secondary); margin-bottom: 4px; }
.w-empty-hint { font-size: var(--font-xs); color: var(--text-muted); }

/* Email verification banner */
.dash-verify-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(234,88,12,0.1), rgba(220,38,38,0.05));
  border: 1px solid rgba(234,88,12,0.3); border-radius: var(--radius);
}
.dash-verify-icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--accent); }
.dash-verify-icon svg { width: 100%; height: 100%; }
.dash-verify-text { flex: 1; font-size: var(--font-sm); color: var(--text-secondary); }
.dash-verify-text strong { display: block; color: var(--text); margin-bottom: 2px; }
.dash-verify-text span { font-size: var(--font-xs); }

/* Wallet tabs */
.w-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.w-tab {
  padding: 8px 16px; border: none; background: none; color: var(--text-muted);
  font-size: var(--font-sm); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.w-tab:hover { color: var(--text-secondary); }
.w-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* === SORT TOGGLE === */
.sort-bar { display: none; }
.sort-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  padding-left: 8px;
}
.sort-btn {
  width: 34px; height: 34px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.sort-btn svg { width: 16px; height: 16px; }
.sort-btn:hover { border-color: var(--border-light); color: var(--text-secondary); }
.sort-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.15s;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-content {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  color: var(--text-muted); font-size: 24px; cursor: pointer; z-index: 10; padding: 4px 8px; border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--bg-card); color: var(--text-primary); }
.task-modal { padding: 20px; }

/* Task Modal components */
.tm-header { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 14px; }
.tm-title { font-size: var(--font-base); font-weight: 700; }
.tm-target { font-size: var(--font-xs); color: var(--text-muted); }

.tm-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tm-info-item { text-align: center; padding: 10px 8px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.tm-info-value { font-size: var(--font-lg); font-weight: 800; }
.tm-info-label { font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.tm-desc { background: var(--bg-card); padding: 12px 14px; border-radius: var(--radius-sm); font-size: var(--font-sm); color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; border-left: 3px solid var(--warning); }

.tm-steps { margin-bottom: 14px; }
.tm-steps-title { font-size: var(--font-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.tm-step { display: flex; align-items: center; gap: 10px; font-size: var(--font-sm); color: var(--text-secondary); padding: 4px 0; }
.tm-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: var(--font-xs); font-weight: 700; flex-shrink: 0; }
.tm-step.done .tm-step-num { background: rgba(16,185,129,0.15); color: #10b981; }

.tm-link-box { margin-bottom: 14px; }
.tm-link-label { font-size: var(--font-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.tm-link-row { display: flex; gap: 8px; align-items: center; background: var(--bg-card); padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.tm-link { flex: 1; font-size: var(--font-sm); color: var(--accent); word-break: break-all; min-width: 0; }
.tm-link-locked { justify-content: space-between; opacity: 0.6; cursor: default; }
.tm-link-blur { flex: 1; font-size: var(--font-sm); color: var(--text-muted); filter: blur(5px); user-select: none; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-link-locked svg { flex-shrink: 0; color: var(--text-muted); }
.tm-link-hint { font-size: var(--font-xs); color: var(--text-muted); margin-top: 6px; text-align: center; }

/* Task action states */
.tm-action { border-top: 1px solid var(--border); padding-top: 16px; }
.tm-action-hint { font-size: var(--font-xs); color: var(--text-muted); text-align: center; margin-top: 8px; }

.tm-status-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm); font-size: var(--font-sm); font-weight: 600; margin-bottom: 14px;
}
.tm-status-bar.in-progress { background: rgba(59,130,246,0.12); color: #3b82f6; }
.tm-status-bar.pending { background: rgba(245,158,11,0.12); color: #f59e0b; animation: pulse-bg 2s infinite; }
.tm-status-bar.approved { background: rgba(16,185,129,0.12); color: #10b981; }
.tm-status-bar.rejected { background: rgba(239,68,68,0.12); color: #ef4444; }
@keyframes pulse-bg { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

/* Upload area */
.tm-upload { margin-bottom: 12px; }
.tm-upload-title { font-size: var(--font-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.upload-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.upload-text-desktop { font-size: var(--font-sm); color: var(--text-secondary); font-weight: 500; }
.upload-text-mobile { font-size: var(--font-base); color: var(--accent); font-weight: 600; display: none; }
.upload-icon-mobile { display: none; }
.upload-hint { font-size: var(--font-xs); color: var(--text-muted); }
.upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--accent); background: var(--accent-light); }
.tm-preview {}
.tm-preview-img { width: 100%; max-height: 200px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 8px; background: var(--bg-card); }
.tm-preview-info { display: flex; justify-content: space-between; align-items: center; font-size: var(--font-xs); color: var(--text-muted); }

.tm-uploading { text-align: center; padding: 20px; }
.tm-uploading-text { font-size: var(--font-sm); color: var(--text-muted); margin-top: 8px; }
.upload-progress-bar { height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden; }
.upload-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.2s; width: 0%; }

/* Tips */
.tm-tips { background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.tm-tips-title { font-size: var(--font-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.tm-tip { font-size: var(--font-xs); color: var(--text-secondary); padding: 2px 0 2px 16px; position: relative; }
.tm-tip::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 700; }

/* Pending review */
.tm-screenshot-preview { margin-bottom: 12px; }
.tm-submitted-at { font-size: var(--font-xs); color: var(--text-muted); margin-top: 6px; }
.tm-what-next { background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.tm-what-next-title { font-size: var(--font-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.tm-what-next-item { font-size: var(--font-xs); color: var(--text-secondary); padding: 3px 0 3px 16px; position: relative; }
.tm-what-next-item::before { content: '●'; position: absolute; left: 0; color: var(--accent); font-size: 8px; top: 6px; }
.tm-nav-btns { display: flex; gap: 8px; }

/* Rejected */
.tm-reject-reason { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: var(--font-sm); color: #ef4444; margin-bottom: 8px; }

/* === MY TASKS === */
.my-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.my-stat-card { text-align: center; padding: 14px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.my-stat-value { font-size: var(--font-xl); font-weight: 800; }
.my-stat-label { font-size: var(--font-xs); color: var(--text-muted); margin-top: 2px; }
.my-filter-chips { margin-bottom: 16px; }

.my-task-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 6px; cursor: pointer; transition: all 0.15s;
}
.my-task-row:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.my-task-icon { width: 28px; height: 28px; flex-shrink: 0; }
.my-task-icon svg { width: 100%; height: 100%; }
.my-task-info { flex: 1; min-width: 0; }
.my-task-name { font-size: var(--font-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-task-username { font-weight: 400; color: var(--text-muted); }
.my-task-meta { display: flex; gap: 12px; align-items: center; margin-top: 2px; }
.my-task-status { display: flex; align-items: center; gap: 4px; font-size: var(--font-xs); font-weight: 500; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot.in-progress { background: #3b82f6; }
.status-dot.pending { background: #f59e0b; animation: pulse-dot 1.5s infinite; }
.status-dot.approved { background: #10b981; }
.status-dot.rejected { background: #ef4444; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.my-task-status.in-progress { color: #3b82f6; }
.my-task-status.pending { color: #f59e0b; }
.my-task-status.approved { color: #10b981; }
.my-task-status.rejected { color: #ef4444; }
.my-task-time { font-size: var(--font-xs); color: var(--text-muted); }
.my-task-reward { font-weight: 700; font-size: var(--font-sm); color: var(--accent); white-space: nowrap; }
.my-task-reward small { font-weight: 400; font-size: var(--font-xs); opacity: .6; }

/* === MOBILE: FLUID RESPONSIVE === */
@media (max-width: 1024px) {
  /* --- Fluid page layout --- */
  .page-header { padding: 3vw 4vw 0; padding-top: 13vw; }
  .page-header h1 { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }
  .page-header p { font-size: clamp(0.65rem, 2.8vw, 0.8rem); margin-top: 0.5vw; }
  .page-content { padding: 3vw; }

  /* --- Toolbar: chips + sort fluid --- */
  .task-toolbar { gap: 4px; margin-bottom: 8px; }
  .platform-chips { gap: 3px; }
  .platform-chip { padding: 5px 6px; font-size: 0.6rem; border-radius: 10px; gap: 2px; }
  .platform-chip svg { width: 14px; height: 14px; }
  .chip-count { font-size: 0.5rem; }
  .sort-toggle { padding-left: 4px; gap: 2px; }
  .sort-btn { width: 30px; height: 30px; border-radius: 8px; }
  .sort-btn svg { width: 14px; height: 14px; }

  /* --- Action tabs mobile --- */
  .action-tabs { gap: 4px; margin-bottom: 10px; }
  .action-tab { padding: 4px 8px; font-size: 0.6rem; border-radius: 14px; }
  .action-tab svg { width: 10px; height: 10px; }
  .action-tab-count { font-size: 0.5rem; }

  /* --- Task cards: compact rows on mobile --- */
  .tasks-grid { gap: 4px; }
  .task-card {
    padding: 10px 12px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .task-card:hover { transform: none; }
  .task-card:active { background: var(--bg-card-hover); }

  /* Compact row */
  .task-card-row { gap: 10px; }
  .tc-icon { width: 32px; height: 32px; }
  .tc-name { font-size: 0.82rem; }
  .tc-sub { font-size: 0.7rem; }
  .tc-rem { display: inline; } /* show "· 200 remaining" */
  .tc-reward { font-size: 1rem; }
  .tc-reward span { font-size: 0.6rem; }

  /* Hide extra details on mobile */
  .task-card-extra { display: none; }

  /* --- Bottom sheet modal: fluid --- */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-content {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 4vw 4vw 0 0;
    border-bottom: none;
    animation: slideUp 0.25s ease-out;
  }
  .task-modal { padding: 3.5vw 4vw 5vw; }
  .task-modal::before {
    content: '';
    display: block;
    width: 9vw;
    height: 1vw;
    max-height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin: 0 auto 3vw;
  }
  .modal-close { top: 1vw; right: 2vw; font-size: clamp(1.2rem, 5vw, 1.5rem); }

  /* Modal components fluid */
  .tm-header { padding: 2.5vw 3vw; gap: 2.5vw; margin-bottom: 2.5vw; }
  .tm-header .task-platform-icon { width: 8vw; height: 8vw; max-width: 36px; max-height: 36px; }
  .tm-title { font-size: clamp(0.8rem, 3.5vw, 1rem); }
  .tm-target { font-size: clamp(0.6rem, 2.6vw, 0.75rem); }
  .tm-info-grid { gap: 1.5vw; margin-bottom: 2.5vw; }
  .tm-info-item { padding: 2vw 1.5vw; }
  .tm-info-value { font-size: clamp(0.9rem, 4vw, 1.25rem); }
  .tm-info-label { font-size: clamp(0.5rem, 2.2vw, 0.625rem); }
  .tm-desc { padding: 2.5vw 3vw; margin-bottom: 2.5vw; font-size: clamp(0.65rem, 2.8vw, 0.8rem); }
  .tm-steps { margin-bottom: 2.5vw; }
  .tm-steps-title { font-size: clamp(0.6rem, 2.5vw, 0.7rem); margin-bottom: 1.5vw; }
  .tm-step { font-size: clamp(0.65rem, 2.8vw, 0.8rem); gap: 2vw; padding: 0.8vw 0; }
  .tm-step-num { width: 5vw; height: 5vw; max-width: 22px; max-height: 22px; font-size: clamp(0.5rem, 2.2vw, 0.65rem); }
  .tm-link-box { margin-bottom: 2.5vw; }
  .tm-link-label { font-size: clamp(0.55rem, 2.3vw, 0.68rem); margin-bottom: 1.2vw; }
  .tm-link-row { padding: 2vw 2.5vw; gap: 1.5vw; }
  .tm-link { font-size: clamp(0.6rem, 2.6vw, 0.75rem); }
  .tm-action { padding-top: 3vw; }
  .tm-action-hint { font-size: clamp(0.6rem, 2.4vw, 0.7rem); }

  /* Upload: camera style */
  .upload-dropzone {
    padding: 4vw;
    min-height: 20vw;
    border-style: solid;
    border-width: 1px;
    border-color: var(--accent);
    background: rgba(139,92,246,0.05);
  }
  .upload-icon-desktop { display: none; }
  .upload-icon-mobile { display: block; }
  .upload-text-desktop { display: none; }
  .upload-text-mobile { display: block; font-size: clamp(0.75rem, 3.2vw, 0.9rem); }
  .upload-hint { font-size: clamp(0.55rem, 2.3vw, 0.68rem); }

  .tm-tips { padding: 2.5vw 3vw; margin-bottom: 2vw; }
  .tm-tips-title { font-size: clamp(0.55rem, 2.3vw, 0.68rem); margin-bottom: 1.2vw; }
  .tm-tip { font-size: clamp(0.6rem, 2.5vw, 0.72rem); }

  .tm-preview-img { max-height: 40vw; }
  .tm-preview-info { font-size: clamp(0.55rem, 2.3vw, 0.68rem); }

  /* Pending/next/reject */
  .tm-status-bar { padding: 2.5vw 3vw; font-size: clamp(0.7rem, 3vw, 0.85rem); margin-bottom: 3vw; }
  .tm-what-next { padding: 2.5vw 3vw; margin-bottom: 3vw; }
  .tm-what-next-title { font-size: clamp(0.55rem, 2.3vw, 0.68rem); }
  .tm-what-next-item { font-size: clamp(0.6rem, 2.5vw, 0.72rem); }
  .tm-reject-reason { padding: 2.5vw 3vw; font-size: clamp(0.65rem, 2.8vw, 0.8rem); }
  .tm-nav-btns { gap: 2vw; }

  /* Sticky action button */
  .tm-action-sticky {
    position: sticky;
    bottom: 0;
    background: var(--bg-secondary);
    margin: 0 -4vw -5vw;
    padding: 2.5vw 4vw calc(env(safe-area-inset-bottom, 0px) + 3vw);
    border-top: 1px solid var(--border);
  }
  .tm-action-sticky .btn { font-size: clamp(0.8rem, 3.5vw, 1rem); padding: 3vw; }

  /* --- My Tasks: fluid --- */
  .my-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5vw; margin-bottom: 3vw; }
  .my-stat-card { padding: 2.5vw 2vw; }
  .my-stat-value { font-size: clamp(1rem, 4.5vw, 1.5rem); }
  .my-stat-label { font-size: clamp(0.55rem, 2.3vw, 0.68rem); }
  .my-filter-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.5vw;
    margin-bottom: 3vw;
  }
  .my-filter-chips::-webkit-scrollbar { display: none; }
  .my-filter-chips .platform-chip { flex-shrink: 0; }
  .my-task-row { padding: 2.5vw 3vw; gap: 2.5vw; margin-bottom: 1.2vw; }
  .my-task-icon { width: 6vw; height: 6vw; max-width: 28px; max-height: 28px; }
  .my-task-name { font-size: clamp(0.68rem, 3vw, 0.8rem); }
  .my-task-meta { gap: 2.5vw; }
  .my-task-status { font-size: clamp(0.58rem, 2.5vw, 0.7rem); }
  .my-task-time { font-size: clamp(0.55rem, 2.3vw, 0.65rem); }
  .my-task-reward { font-size: clamp(0.68rem, 3vw, 0.8rem); }
  .my-task-reward small { display: none; }

  /* Buttons fluid */
  .btn-sm { padding: 1.5vw 3vw; font-size: clamp(0.65rem, 2.8vw, 0.8rem); }
}

/* === SUPPORT TICKETS === */
.sup-ticket-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 6px; cursor: pointer; transition: all 0.15s;
}
.sup-ticket-row:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.sup-ticket-body { flex: 1; min-width: 0; }
.sup-ticket-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sup-ticket-subject { font-size: var(--font-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.sup-ticket-preview { font-size: var(--font-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.sup-ticket-meta { display: flex; align-items: center; gap: 10px; }
.sup-ticket-time { font-size: var(--font-xs); color: var(--text-muted); }
.sup-ticket-msgs { font-size: var(--font-xs); color: var(--text-muted); }
.sup-ticket-arrow { flex-shrink: 0; color: var(--text-muted); opacity: 0.5; }

/* Category badges */
.sup-cat-badge {
  padding: 2px 8px; border-radius: 10px; font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; flex-shrink: 0;
}
.sup-cat-general { background: rgba(234,88,12,0.12); color: #ea580c; }
.sup-cat-payment { background: rgba(16,185,129,0.12); color: #10b981; }
.sup-cat-task { background: rgba(59,130,246,0.12); color: #3b82f6; }
.sup-cat-account { background: rgba(245,158,11,0.12); color: #f59e0b; }
.sup-cat-bug { background: rgba(239,68,68,0.12); color: #ef4444; }

/* Status badges */
.sup-status-badge {
  padding: 2px 8px; border-radius: 10px; font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
}
.sup-status-open { background: rgba(59,130,246,0.12); color: #3b82f6; }
.sup-status-answered { background: rgba(16,185,129,0.12); color: #10b981; }
.sup-status-closed { background: rgba(128,128,128,0.12); color: #888; }

/* Back link */
.sup-back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--font-sm); color: var(--text-muted); cursor: pointer;
  margin-bottom: 16px; transition: color 0.15s;
}
.sup-back-link:hover { color: var(--accent); }

/* Ticket detail header */
.sup-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 16px;
}
.sup-detail-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Chat messages */
.sup-chat {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 50vh; overflow-y: auto; padding: 16px 0; margin-bottom: 16px;
}
.sup-msg { display: flex; }
.sup-msg-own { justify-content: flex-end; }
.sup-msg-admin { justify-content: flex-start; }
.sup-msg-bubble {
  max-width: 75%; padding: 10px 14px;
  border-radius: 12px; font-size: var(--font-sm); line-height: 1.5;
}
.sup-msg-own .sup-msg-bubble {
  background: rgba(234,88,12,0.15); border: 1px solid rgba(234,88,12,0.25);
  border-bottom-right-radius: 4px;
}
.sup-msg-admin .sup-msg-bubble {
  background: var(--bg-card); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.sup-msg-text { word-break: break-word; }
.sup-msg-meta {
  display: flex; gap: 8px; margin-top: 4px;
  font-size: 0.625rem; color: var(--text-muted);
}

/* Reply form */
.sup-reply-form { border-top: 1px solid var(--border); padding-top: 16px; }
.sup-closed-notice {
  text-align: center; padding: 16px; font-size: var(--font-sm);
  color: var(--text-muted); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}

/* Mobile support */
@media (max-width: 1024px) {
  .sup-ticket-row { padding: 10px 12px; gap: 8px; }
  .sup-ticket-subject { font-size: 0.78rem; }
  .sup-ticket-preview { font-size: 0.65rem; }
  .sup-ticket-meta { gap: 6px; }
  .sup-cat-badge, .sup-status-badge { font-size: 0.55rem; padding: 2px 6px; }
  .sup-detail-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .sup-chat { max-height: 40vh; }
  .sup-msg-bubble { max-width: 85%; padding: 8px 10px; font-size: 0.78rem; }
}


/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* === LOADING SPINNER === */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === PROFILE / SOCIAL ACCOUNTS === */
.profile-hint {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.social-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.2s;
}
.social-card:hover { border-color: var(--border-light); }
.social-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.social-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-card-info { flex: 1; }
.social-card-name {
  font-weight: 600;
  font-size: var(--font-base);
}
.social-card-status {
  font-size: var(--font-xs);
  font-weight: 500;
  margin-top: 2px;
}
.social-card-status.muted { color: var(--text-muted); }
.social-card-status.warning { color: #f59e0b; }
.social-card-status.success { color: #10b981; }
.social-card-status.danger { color: #ef4444; }
.social-card-badge { flex-shrink: 0; }
.social-card-form {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.social-card-reject {
  font-size: var(--font-xs);
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.social-card-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-sm);
  color: #f59e0b;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.social-card-linked {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: var(--font-sm);
  font-weight: 500;
}
@media (max-width: 480px) {
  .social-cards-grid { grid-template-columns: 1fr; }
}

/* === REFERRAL === */
/* === REFERRAL PAGE === */
.ref-banner { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(234,88,12,0.12) 100%); border: 1px solid rgba(16,185,129,0.2); border-radius: 16px; padding: 20px 24px; margin-bottom: 20px; }
.ref-banner-badge { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #ea580c, #ff6b35); color: #fff; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ref-banner-title { font-size: var(--font-lg); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.ref-banner-desc { font-size: var(--font-sm); color: var(--text-secondary); line-height: 1.5; }

.ref-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.ref-stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; }
.ref-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.ref-stat-icon svg { width: 18px; height: 18px; }
.ref-stat-num { font-size: var(--font-xl); font-weight: 700; color: var(--text-primary); word-break: break-all; }
.ref-stat-lbl { font-size: var(--font-xs); color: var(--text-muted); margin-top: 2px; }

.ref-link-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.ref-link-label { font-size: var(--font-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 10px; }
.ref-link-box { display: flex; gap: 8px; }
.ref-link-input { flex: 1; min-width: 0; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text-primary); font-size: var(--font-sm); font-family: var(--font-mono, monospace); outline: none; }
.ref-link-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font-weight: 600; font-size: var(--font-sm); cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.ref-link-btn:hover { opacity: 0.85; }
.ref-link-btn svg { width: 16px; height: 16px; }

.ref-how { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.ref-how-title { font-weight: 700; font-size: var(--font-base); color: var(--text-primary); margin-bottom: 16px; }
.ref-how-steps { display: flex; flex-direction: column; gap: 16px; }
.ref-how-step { display: flex; align-items: flex-start; gap: 12px; }
.ref-how-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(234,88,12,0.15); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.ref-how-step-title { font-weight: 600; font-size: var(--font-sm); color: var(--text-primary); }
.ref-how-step-desc { font-size: var(--font-sm); color: var(--text-muted); margin-top: 2px; }

.ref-people { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.ref-people-title { font-weight: 700; font-size: var(--font-base); color: var(--text-primary); margin-bottom: 12px; }
.ref-people-empty { text-align: center; padding: 24px 0; color: var(--text-muted); font-size: var(--font-sm); }
.ref-people-hint { font-size: var(--font-xs); color: var(--text-muted); margin-top: 4px; }
.ref-person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ref-person:last-child { border-bottom: none; }
.ref-person-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ea580c, #ff6b35); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.ref-person-info { flex: 1; min-width: 0; }
.ref-person-name { font-weight: 600; font-size: var(--font-sm); color: var(--text-primary); }
.ref-person-date { font-size: var(--font-xs); color: var(--text-muted); }
.ref-person-bonus { font-weight: 700; color: #10b981; font-size: var(--font-sm); white-space: nowrap; }

@media (max-width: 600px) {
  .ref-stats-row { grid-template-columns: 1fr; }
  .ref-banner { flex-direction: column; text-align: center; }
  .ref-link-box { flex-direction: column; }
  .ref-link-btn { justify-content: center; }
}

/* === FAQ PAGE === */
.faq-search {
  position: relative;
  margin-bottom: 16px;
}
.faq-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.faq-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 10px;
  border: 1px solid rgba(39,39,42,0.5);
  background: rgba(24,24,27,0.5);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search input::placeholder { color: var(--text-muted); }
.faq-search input:focus {
  border-color: rgba(234,88,12,0.4);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.06);
}

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}
.faq-nav-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(39,39,42,0.5);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.faq-nav-pill:hover {
  border-color: rgba(234,88,12,0.3);
  color: var(--accent);
  background: rgba(234,88,12,0.05);
}
.faq-nav-pill svg { width: 13px; height: 13px; }

.faq-sections { display: flex; flex-direction: column; gap: 12px; }

.faq-section {
  background: rgba(24,24,27,0.4);
  border: 1px solid rgba(39,39,42,0.5);
  border-radius: 12px;
  overflow: hidden;
}
.faq-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 12px 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(234,88,12,0.04);
  border-bottom: 1px solid rgba(39,39,42,0.3);
}
.faq-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-section-icon svg { width: 14px; height: 14px; color: #fff; }
.faq-section-count {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 7px;
  border-radius: 999px;
}
.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid rgba(39,39,42,0.25);
  cursor: pointer;
  transition: background 0.15s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: rgba(234,88,12,0.03); }
.faq-item.open { background: rgba(234,88,12,0.04); }

.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  user-select: none;
  transition: color 0.15s;
}
.faq-q .faq-num {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(234,88,12,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex: 0 0 22px;
  transition: all 0.2s;
}
.faq-item.open .faq-q .faq-num {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
}
.faq-q .faq-text { flex: 1; min-width: 0; }
.faq-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--text-muted);
  transition: all 0.25s ease;
  opacity: 0.4;
}
.faq-item:hover .faq-chevron { opacity: 0.8; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); opacity: 1; }
.faq-item.open .faq-q { color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px 0 50px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 16px 12px 50px;
}

@media (max-width: 600px) {
  .faq-section-title { padding: 10px 12px; font-size: 0.78rem; }
  .faq-section-icon { width: 24px; height: 24px; border-radius: 6px; }
  .faq-section-icon svg { width: 12px; height: 12px; }
  .faq-q { padding: 10px 12px; font-size: 0.8rem; gap: 8px; }
  .faq-q .faq-num { width: 20px; min-width: 20px; max-width: 20px; height: 20px; flex: 0 0 20px; font-size: 0.6rem; }
  .faq-item.open .faq-a { padding: 0 12px 10px 40px; font-size: 0.78rem; }
  .faq-a { padding-left: 40px; }
  .faq-nav { gap: 4px; }
  .faq-nav-pill { padding: 5px 9px; font-size: 0.68rem; }
  .faq-search input { padding: 10px 10px 10px 36px; font-size: 0.82rem; }
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */

/* --- Landing page --- */
[data-theme="light"] .lp { background: #f8f8fa; color: #18181b; }
[data-theme="light"] .lp-bg { background: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(234,88,12,0.06), transparent 55%), radial-gradient(ellipse 50% 25% at 80% 45%, rgba(220,38,38,0.03), transparent 50%), radial-gradient(ellipse 50% 25% at 15% 65%, rgba(234,88,12,0.03), transparent 50%), radial-gradient(ellipse 60% 20% at 50% 90%, rgba(234,88,12,0.04), transparent 50%); }

/* Nav */
[data-theme="light"] .lp-nav-logo { color: #71717a; }
[data-theme="light"] .lp-nav-logo strong { color: #18181b; }
[data-theme="light"] .lp-nav-link { color: #71717a; }
[data-theme="light"] .lp-nav-link:hover { color: #18181b; }
[data-theme="light"] .lp-nav-btn { color: #fff; }
[data-theme="light"] .lp-nav-btn:hover { color: #fff; }

/* Hero */
[data-theme="light"] .lp-hero h1 { background: linear-gradient(135deg, #18181b 30%, #ea580c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .lp-hero-sub { color: #71717a; }
[data-theme="light"] .lp-hero-badge { border-color: rgba(234,88,12,0.2); background: rgba(234,88,12,0.06); }

/* Carousel */
[data-theme="light"] .lp-carousel-fade-l { background: linear-gradient(to right, #f8f8fa 0%, transparent 100%); }
[data-theme="light"] .lp-carousel-fade-r { background: linear-gradient(to left, #f8f8fa 0%, transparent 100%); }
[data-theme="light"] .lp-ci span { color: #a1a1aa; }
[data-theme="light"] .lp-ci::after { background: #a1a1aa; }
[data-theme="light"] .lp-carousel-wrap:hover .lp-ci span { color: #71717a; }

/* CTA */
[data-theme="light"] .lp-btn-primary { box-shadow: 0 4px 24px rgba(234,88,12,0.2), 0 0 40px rgba(234,88,12,0.06); color: #fff; }
[data-theme="light"] .lp-btn-primary:hover { color: #fff; box-shadow: 0 8px 40px rgba(234,88,12,0.3); }
[data-theme="light"] .lp-btn-ghost { border-color: rgba(0,0,0,0.12); color: #52525b; background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); }
[data-theme="light"] .lp-btn-ghost:hover { border-color: rgba(234,88,12,0.3); color: #18181b; background: rgba(255,255,255,0.8); }

/* Stats */
[data-theme="light"] .lp-hero-stats { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); backdrop-filter: blur(16px); }
[data-theme="light"] .lp-hero-stats::before { background: linear-gradient(135deg, rgba(234,88,12,0.1), transparent 40%, transparent 60%, rgba(220,38,38,0.06)); }
[data-theme="light"] .lp-hero-stat { color: #a1a1aa; }
[data-theme="light"] .lp-hero-stat strong { background: linear-gradient(135deg, #18181b, #52525b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .lp-hero-divider { background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent); }

/* Trust strip */
[data-theme="light"] .lp-trust-item { color: #3f3f46; }
[data-theme="light"] .lp-trust-item:hover { color: #18181b; }
[data-theme="light"] .lp-trust-icon { background: rgba(234,88,12,0.1); border-color: rgba(234,88,12,0.2); box-shadow: 0 2px 8px rgba(234,88,12,0.08); }
[data-theme="light"] .lp-trust-item:hover .lp-trust-icon { background: rgba(234,88,12,0.15); border-color: rgba(234,88,12,0.3); box-shadow: 0 4px 16px rgba(234,88,12,0.12); }

/* Section headings */
[data-theme="light"] .lp-section h2 { color: #18181b; }
[data-theme="light"] .lp-section-glow-left::before { background: rgba(220,38,38,0.03); }
[data-theme="light"] .lp-section-glow-right::before { background: rgba(234,88,12,0.03); }

/* Two columns */
[data-theme="light"] .lp-col { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); backdrop-filter: blur(8px); }
[data-theme="light"] .lp-col:hover { border-color: rgba(0,0,0,0.14); }
[data-theme="light"] .lp-col h3 { color: #18181b; }
[data-theme="light"] .lp-col-desc { color: #71717a; }
[data-theme="light"] .lp-perks li { color: #3f3f46; }
[data-theme="light"] .lp-col-btn { color: #fff; }
[data-theme="light"] .lp-col-btn:hover { color: #fff; }

/* Steps */
/* (old .lp-step light overrides removed — now uses .lp-tl-* timeline) */

/* Price table */
[data-theme="light"] .lp-prices { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .lp-price-table th { color: #71717a; background: rgba(0,0,0,0.02); }
[data-theme="light"] .lp-price-table thead tr { border-bottom-color: rgba(234,88,12,0.1); }
[data-theme="light"] .lp-price-table td { color: #71717a; border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .lp-price-table tbody tr:hover td { background: rgba(234,88,12,0.04); }
[data-theme="light"] .lp-price-table tbody tr:hover .lp-price-platform { color: #18181b; }
[data-theme="light"] .lp-price-platform { color: #18181b; }
[data-theme="light"] .lp-price-action { color: #a1a1aa; }
[data-theme="light"] .lp-price-cost { color: #a1a1aa; }

/* Feed */
[data-theme="light"] .lp-feed-wrap::after { background: linear-gradient(to bottom, transparent, #f8f8fa); }
[data-theme="light"] .lp-feed-item { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.06); color: #71717a; }
[data-theme="light"] .lp-feed-name { color: #18181b; }
[data-theme="light"] .lp-feed-detail { color: #71717a; }
[data-theme="light"] .lp-feed-time { color: #a1a1aa; }

/* FAQ */
[data-theme="light"] .lp-faq-item { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .lp-faq-item:hover { border-color: rgba(0,0,0,0.14); }
[data-theme="light"] .lp-faq-item.open { border-color: rgba(234,88,12,0.2); background: rgba(255,255,255,0.9); }
[data-theme="light"] .lp-faq-q { color: #3f3f46; }
[data-theme="light"] .lp-faq-q:hover { color: #18181b; }
[data-theme="light"] .lp-faq-item.open .lp-faq-q { color: #18181b; }
[data-theme="light"] .lp-faq-q svg { color: #a1a1aa; }
[data-theme="light"] .lp-faq-q:hover svg { color: #71717a; }
[data-theme="light"] .lp-faq-a { color: #71717a; }
[data-theme="light"] .lp-faq-item.open .lp-faq-a { border-left-color: rgba(234,88,12,0.2); }

/* Bottom CTA */
[data-theme="light"] .lp-bottom h2 { color: #18181b; }
[data-theme="light"] .lp-bottom p { color: #71717a; }
[data-theme="light"] .lp-bottom::before { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(234,88,12,0.03), transparent 70%); }

/* Footer */
[data-theme="light"] .lp-footer { color: #a1a1aa; border-top-color: rgba(0,0,0,0.06); }

/* Lang select (landing) */
[data-theme="light"] .lang-select { background-color: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.12); color: #52525b; }
[data-theme="light"] .lang-select:hover { border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .lang-select option { background: #fff; color: #18181b; }

/* --- Auth pages --- */
[data-theme="light"] .auth-page { background: var(--bg-primary); }
[data-theme="light"] .auth-logo h1 { color: #18181b; }

/* --- App: sidebar --- */
[data-theme="light"] .sidebar { box-shadow: 1px 0 0 rgba(0,0,0,0.06); }
[data-theme="light"] .sidebar-logo h1 { color: #18181b; }
[data-theme="light"] .sidebar-lang-btn { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .sidebar-lang-btn:hover { border-color: rgba(234,88,12,0.3); }

/* --- Hamburger --- */
[data-theme="light"] .hamburger { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .hamburger:active { background: rgba(0,0,0,0.08); }
[data-theme="light"] .sidebar-overlay { background: rgba(0,0,0,0.3); }

/* --- Dashboard --- */
[data-theme="light"] .dash-hero-bg { background: linear-gradient(135deg, rgba(234,88,12,0.08) 0%, rgba(168,85,247,0.04) 50%, rgba(59,130,246,0.03) 100%); }
[data-theme="light"] .dash-hero { border-color: rgba(234,88,12,0.12); }

/* --- Cards / modal --- */
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.3); }

/* --- Create order --- */
[data-theme="light"] .co-form { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .co-step { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .co-plat-btn { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); }
[data-theme="light"] .co-plat-btn:hover { border-color: var(--pc, rgba(234,88,12,0.4)); background: rgba(0,0,0,0.04); }
[data-theme="light"] .co-action-btn { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); }
[data-theme="light"] .co-action-btn:hover { border-color: var(--pc, rgba(234,88,12,0.4)); background: rgba(0,0,0,0.04); }
[data-theme="light"] .co-total-bar { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .co-total-main { border-top-color: rgba(0,0,0,0.06); }

/* --- Orders --- */
[data-theme="light"] .order-card:hover { border-color: rgba(234,88,12,0.2); }

/* --- FAQ page (app) --- */
[data-theme="light"] .faq-search input { border-color: rgba(0,0,0,0.1); background: rgba(255,255,255,0.8); }
[data-theme="light"] .faq-section { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .faq-section-title { background: rgba(234,88,12,0.03); border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .faq-section-count { background: rgba(0,0,0,0.04); }
[data-theme="light"] .faq-item { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .faq-item:hover { background: rgba(234,88,12,0.02); }
[data-theme="light"] .faq-item.open { background: rgba(234,88,12,0.03); }
[data-theme="light"] .faq-nav-pill { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .faq-nav-pill:hover { border-color: rgba(234,88,12,0.3); background: rgba(234,88,12,0.04); }

/* --- Support --- */
[data-theme="light"] .sup-msg-own .sup-msg-bubble { background: rgba(234,88,12,0.08); border-color: rgba(234,88,12,0.15); }

/* --- Wallet --- */
[data-theme="light"] .w-balance-card { background: linear-gradient(135deg, rgba(234,88,12,0.06) 0%, rgba(168,85,247,0.03) 100%); border-color: rgba(234,88,12,0.12); }

/* --- Spinner --- */
[data-theme="light"] .spinner { border-color: rgba(0,0,0,0.15); border-top-color: var(--accent); }

/* --- Scrollbar --- */
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* --- Toast --- */
[data-theme="light"] .toast.success { color: #fff; }

/* --- Theme toggle button --- */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(39,39,42,0.5);
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
  padding: 0; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text-secondary); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .theme-toggle:hover { border-color: var(--accent); }
