/* Campaign Panel - public theme (matches Cashback-style dark glass UI) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg0: #0a1628;
  --bg1: #0f2137;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #34d399;
  --accent2: #2dd4bf;
  --gold: #fbbf24;
  --warn: #f59e0b;
  --danger: #f87171;
  --radius: 14px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}
body {
  font-family: var(--font);
  min-height: 100vh;
  color: var(--text);
  background: var(--bg0);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(52, 211, 153, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(251, 191, 36, 0.08), transparent 45%);
  padding: 20px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
a { color: var(--accent); text-decoration: none; }
.site-top { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--bg0); box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35); }
.brand-text { line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--gold); }
.brand-tag { font-size: 0.72rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.offers-wrap { width: 100%; max-width: 420px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px 22px 28px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); }
.card + .card { margin-top: 16px; }
.camp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-full); background: var(--surface2); border: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; max-width: 100%; }
.camp-pill i { color: var(--accent); }
.camp-pill strong { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-main { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; line-height: 1.2; text-align: center; margin-bottom: 6px; letter-spacing: -0.03em; }
.title-main .title-sub { display: block; font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.title-amount { background: linear-gradient(105deg, #6ee7b7, #34d399, #2dd4bf); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ticker-wrap { overflow: hidden; margin: 18px 0 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-inner { display: flex; gap: 12px; animation: tickerSlideH 28s linear infinite; width: max-content; }
.ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerSlideH { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-row { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 0.8rem; color: var(--muted); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: var(--radius-full); flex-shrink: 0; white-space: nowrap; }
.ticker-row .ticker-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #059669); display: flex; align-items: center; justify-content: center; color: var(--bg0); font-size: 0.65rem; }
.ticker-row .ticker-amount { font-weight: 700; color: var(--accent); }
.ticker-row .ticker-num { font-size: 0.78rem; opacity: 0.9; }
.field-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 14px; background: rgba(0, 0, 0, 0.22); padding: 4px 4px 4px 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.input-wrap:focus-within { border-color: rgba(52, 211, 153, 0.45); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12); }
.input-wrap .icon { color: var(--muted); margin-right: 10px; font-size: 1rem; }
.input-wrap input { flex: 1; min-height: 46px; border: none; padding: 10px 14px; font-size: 1.05rem; outline: none; background: transparent; font-family: inherit; color: var(--text); -webkit-tap-highlight-color: transparent; -webkit-appearance: none; }
.input-wrap input::placeholder { color: #64748b; }
.input-wrap input:-webkit-autofill, .input-wrap input:-webkit-autofill:hover, .input-wrap input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px #0f2137 inset !important; box-shadow: 0 0 0 40px #0f2137 inset !important; -webkit-text-fill-color: var(--text) !important; }
.btn { width: 100%; padding: 15px 20px; font-size: 1rem; font-weight: 700; font-family: var(--font-display); border: none; border-radius: var(--radius-full); cursor: pointer; position: relative; transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s; }
.btn-green { background: linear-gradient(135deg, #34d399 0%, #14b8a6 100%); color: #042f2e; box-shadow: 0 8px 28px rgba(52, 211, 153, 0.35); }
.btn-green:hover:not(:disabled):not(.loading) { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(52, 211, 153, 0.45); }
.btn-green:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }
.btn:focus, .btn:active, .btn:focus-visible { outline: none !important; }
.btn { -webkit-tap-highlight-color: transparent; -webkit-appearance: none; user-select: none; }
.btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-loader { display: none; width: 22px; height: 22px; border: 2px solid rgba(4, 47, 46, 0.25); border-top-color: #042f2e; border-radius: 50%; animation: btnSpin 0.7s linear infinite; position: absolute; left: 50%; top: 50%; margin-left: -11px; margin-top: -11px; }
.btn-green.loading .btn-text { visibility: hidden; }
.btn-green.loading .btn-loader { display: block; }
.btn-green.loading { pointer-events: none; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
.important-box { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: var(--radius); padding: 14px 16px; margin: 22px 0; font-size: 0.84rem; color: #fcd34d; line-height: 1.55; }
.important-box strong { color: #fef3c7; }
.steps-head { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.steps-wrap { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.step-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.step-num { width: 26px; height: 26px; background: linear-gradient(135deg, var(--accent), #059669); color: var(--bg0); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; flex-shrink: 0; font-family: var(--font-display); }
.credit-strip { margin-top: 22px; padding: 14px 16px; border-radius: var(--radius); text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.25); }
.credit-strip .amt { color: var(--accent); font-size: 1.05rem; }
.not-found, .paused-box { text-align: center; padding: 36px 12px 28px; }
.state-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--muted); }
.not-found h2, .paused-box h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 10px; font-weight: 800; letter-spacing: -0.02em; }
.not-found p, .paused-box p { color: var(--muted); margin-bottom: 22px; font-size: 0.92rem; line-height: 1.5; }
.not-found a, .paused-box a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; background: linear-gradient(135deg, var(--accent), #14b8a6); color: #042f2e !important; font-weight: 700; font-size: 0.9rem; font-family: var(--font-display); text-decoration: none; border-radius: var(--radius-full); box-shadow: 0 6px 20px rgba(52, 211, 153, 0.3); }
.form-block { display: block; }
.alert-error { display: block; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 0.82rem; background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.alert-ok { display: block; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 0.82rem; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); color: #bbf7d0; }
.search-user-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 100; }
.search-user-btn { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #34d399, #0d9488); color: #042f2e; border: none; box-shadow: 0 8px 28px rgba(52, 211, 153, 0.45); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; transition: transform 0.2s; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.search-user-btn:hover { transform: scale(1.06); }
.page-foot { margin-top: 28px; text-align: center; font-size: 0.75rem; color: #64748b; max-width: 420px; }

/* Home offer list */
.home-head { text-align: center; margin-bottom: 18px; }
.home-head h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.home-head p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.offer-list { display: grid; gap: 12px; }
.offer-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: border-color .2s, transform .15s; }
.offer-row:hover { border-color: rgba(52,211,153,.4); transform: translateY(-1px); color: var(--text); }
.offer-row .thumb { width: 54px; height: 54px; border-radius: 12px; background: var(--surface2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-weight: 800; color: var(--accent); font-family: var(--font-display); }
.offer-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-row .meta { flex: 1; min-width: 0; }
.offer-row .meta .nm { font-weight: 700; font-family: var(--font-display); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-row .meta .pay { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-top: 2px; }
.offer-row .go { color: var(--muted); font-size: 1rem; }

/* Track / refer earnings table */
.earn-total { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius); text-align: center; font-family: var(--font-display); font-weight: 700; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.25); }
.earn-total .amt { color: var(--accent); font-size: 1.2rem; }
.earn-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin-top: 8px; }
.earn-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--border); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .4px; }
.earn-table td { padding: 10px 6px; border-bottom: 1px solid var(--border); color: var(--text); }
.copy-box { display: flex; gap: 8px; margin: 12px 0; }
.copy-box input { flex: 1; min-width: 0; background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 12px; color: var(--text); font-size: 0.82rem; }
.copy-box button { padding: 0 16px; border: none; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), #14b8a6); color: #042f2e; font-weight: 700; cursor: pointer; }
.muted-link { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.85rem; }
.muted-link a { color: var(--accent); }
