/* Bilitchi 1.3 — fan club, notifications, sharing, dynamic pricing */

/* ---------- fan club (account) ---------- */
.club-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); padding: 22px; display: grid; gap: 16px; }
.club-hero::after { content: ""; position: absolute; inset: -40% -25% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--tier-glow, rgba(255, 178, 36, .28)), transparent); pointer-events: none; }
.club-hero .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.club-hero .pts { font-size: 2.3rem; font-weight: 900; color: var(--accent); line-height: 1.2; }
.club-hero .k { color: var(--on-ink-muted); font-size: .85rem; font-weight: 700; }
.tier-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--r-pill); font-weight: 900; font-size: .9rem; color: #1d1a27; background: var(--tier, #b8743c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.tier-badge svg { width: 18px; height: 18px; }
.tier-track { position: relative; z-index: 1; display: grid; gap: 8px; }
.tier-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tier-step { text-align: center; font-size: .75rem; color: var(--on-ink-muted); }
.tier-step i { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); margin-bottom: 6px; overflow: hidden; }
.tier-step i b { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.tier-step.on { color: var(--on-ink); font-weight: 800; }
.tier-note { font-size: .86rem; color: var(--on-ink-muted); }
.tier-note b { color: var(--on-ink); }
.perk-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.perk { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.perk svg { width: 22px; height: 22px; color: #8a5a00; flex: none; margin-top: 3px; }
.perk b { display: block; font-size: .92rem; }
.perk span { font-size: .82rem; color: var(--text-muted); line-height: 1.7; }
.invite-box { display: flex; gap: 8px; align-items: stretch; }
.invite-box .input { flex: 1; min-width: 0; direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .d { min-width: 0; }
.ledger-row .d b { display: block; font-size: .92rem; }
.ledger-row .d small { color: var(--text-muted); font-size: .8rem; }
.ledger-row .p { font-weight: 900; white-space: nowrap; direction: ltr; }
.ledger-row .p.pos { color: var(--success); } .ledger-row .p.neg { color: var(--danger); }
.follow-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.follow-chip { display: inline-flex; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .88rem; }
.follow-chip form { margin: 0; }
.follow-chip .btn { padding: 2px 8px; min-height: 0; }

/* ---------- event page: share / follow / live price / club presale ---------- */
.social-card .card-body { display: grid; gap: 14px; }
.share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-row .btn { flex-direction: column; gap: 4px; padding-block: 10px; font-size: .82rem; height: auto; }
.share-row .btn svg { width: 20px; height: 20px; }
.follow-row { display: flex; gap: 8px; flex-wrap: wrap; }
.follow-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.follow-btn .cnt { font-size: .78rem; opacity: .75; }
.price-live li { align-items: center; }
.price-live .was { text-decoration: line-through; color: var(--text-faint); font-size: .8rem; margin: 0 6px; }
.price-live .why { display: block; font-size: .75rem; color: var(--text-muted); }
.trend { display: inline-flex; align-items: center; gap: 2px; font-size: .75rem; font-weight: 800; border-radius: var(--r-pill); padding: 1px 8px; }
.trend.up { color: var(--danger); background: var(--danger-soft); }
.trend.down { color: var(--success); background: var(--success-soft); }
.club-presale { border: 1px solid rgba(255, 178, 36, .45); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
.club-presale .card-body { display: grid; gap: 10px; }
.club-presale .ph { display: flex; gap: 10px; align-items: center; }
.club-presale .ph svg { width: 22px; height: 22px; color: #8a5a00; }

/* ---------- checkout points ---------- */
.points-box { border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: 12px; display: grid; gap: 8px; background: var(--surface-2); }
.points-box .row-between b { font-size: .92rem; }
.points-box input[type=range] { width: 100%; accent-color: var(--accent-hover); }
.points-box .hint { margin: 0; }

/* ---------- notifications (account) ---------- */
.channel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.channel-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; background: var(--surface); display: grid; gap: 10px; }
.channel-card .ch-head { display: flex; gap: 12px; align-items: center; }
.channel-card .ch-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.1rem; flex: none; }
.channel-card .ch-logo.bale { background: #00a99d; } .channel-card .ch-logo.telegram { background: #2aabee; } .channel-card .ch-logo.sms { background: var(--ink-3); }
.channel-card .ch-logo svg { width: 22px; height: 22px; }
.channel-card .ch-head b { display: block; } .channel-card .ch-head small { color: var(--text-muted); font-size: .8rem; }
.pref-table { width: 100%; border-collapse: collapse; }
.pref-table th, .pref-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: center; font-size: .9rem; }
.pref-table th:first-child, .pref-table td:first-child { text-align: start; }
.pref-table thead th { font-size: .8rem; color: var(--text-muted); font-weight: 800; }
.pref-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }
.pref-table td.off { color: var(--text-faint); font-size: .78rem; }
@media (max-width: 520px) { .pref-table th, .pref-table td { padding: 10px 4px; font-size: .82rem; } }

/* ---------- admin / panel ---------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.kpi .k { font-size: .8rem; color: var(--text-muted); font-weight: 700; }
.kpi .v { font-size: 1.35rem; font-weight: 900; }
.tier-bars { display: grid; gap: 8px; }
.tier-bar { display: grid; grid-template-columns: 70px 1fr 54px; gap: 10px; align-items: center; font-size: .85rem; }
.tier-bar .t { height: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.tier-bar .t i { display: block; height: 100%; background: var(--c); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--text-faint); }
.status-dot.ok { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.status-dot.warn { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.copy-field { display: flex; gap: 6px; }
.copy-field .input { flex: 1; min-width: 0; font-size: .78rem; }
.note-box { background: var(--info-soft); border: 1px solid #c9d7f4; border-radius: var(--r-md); padding: 14px 16px; font-size: .88rem; line-height: 1.9; }
.note-box b { color: var(--info); }
.rule-card { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.rule-card:last-child { border-bottom: 0; }
.rule-card .rh { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.rule-card .rh b { display: inline-flex; gap: 8px; align-items: center; }
.rule-card .rh b svg { width: 18px; height: 18px; color: #8a5a00; }
.rule-card .rd { color: var(--text-muted); font-size: .86rem; }
.rule-card.off { opacity: .55; }
.type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.type-tabs label { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px; cursor: pointer; text-align: center; font-weight: 800; font-size: .86rem; background: var(--surface); }
.type-tabs label small { display: block; font-weight: 500; color: var(--text-muted); font-size: .74rem; line-height: 1.6; }
.type-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.type-tabs input:checked + span { color: var(--ink); }
.type-tabs label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-soft); }
.type-tabs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rule-fields[hidden] { display: none; }
.zone-price-table td .now { font-weight: 900; }
.sim { display: grid; gap: 12px; }
.sim .ctrl { display: grid; gap: 4px; }
.sim input[type=range] { width: 100%; accent-color: var(--ink); }
.sim-out { display: grid; gap: 6px; }
.sim-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .88rem; }
.sim-row .r { font-size: .74rem; color: var(--text-muted); display: block; }
.chart-wrap { overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; min-width: 520px; height: auto; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); }
.chart-legend span { display: inline-flex; gap: 6px; align-items: center; }
.chart-legend i { width: 14px; height: 4px; border-radius: 2px; background: var(--c); display: inline-block; }
