/* ==========================================================================
   Modern theme — dark dashboard design system
   Accent colour comes from admin "Base Color" via --accent (set in layouts).
   ========================================================================== */

:root {
  /* Neutral charcoal, not blue-tinted: colour comes only from the brand accent */
  --bg: #111315;
  --bg-2: #15181b;
  --surface: #1a1d21;
  --surface-2: #202429;
  --surface-3: #2a2f35;
  --border: #2e3339;
  --border-soft: #25292e;
  --text: #ededed;
  --text-2: #c2c5ca;
  --muted: #8d939b;
  --accent: #0099ff;
  --accent-rgb: 0, 153, 255;
  --accent-2: #e8a33d; /* secondary highlight: warm amber, used sparingly */
  --success: #3fb950;
  --success-rgb: 63, 185, 80;
  --warning: #e8a33d;
  --warning-rgb: 232, 163, 61;
  --danger: #e5534b;
  --danger-rgb: 229, 83, 75;
  --info: #4aa3c7;
  --info-rgb: 74, 163, 199;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .3);
  --shadow-sm: none;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* kept for compatibility: everything that used the gradient is now a flat colour */
  --gradient: var(--accent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
p { color: var(--text-2); margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--text); text-decoration: none; }
img { max-width: 100%; }
hr { border-color: var(--border); }
small, .small { color: var(--muted); }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg-2); }

.text-muted { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-primary { color: var(--accent) !important; }
.text-white { color: #fff !important; }
.text-dark { color: var(--text) !important; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.bg-surface { background: var(--surface) !important; }
.bg-white, .bg--white { background: var(--surface) !important; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }

/* ---------- Buttons ---------- */
.btn, .cmn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  padding: .7rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:focus, .cmn-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .35); }
.btn:active { transform: translateY(1px); }
.btn i, .cmn-btn i { font-size: 1.1em; }
.btn-primary, .cmn-btn, .btn--primary, .btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff !important;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), .3);
}
.btn-primary:hover, .cmn-btn:hover, .btn--primary:hover, .btn-accent:hover {
  background: var(--accent); filter: brightness(1.1); color: #fff; box-shadow: 0 8px 24px rgba(var(--accent-rgb), .45);
}
.btn-gradient { background: var(--gradient); color: #fff !important; border: 0; box-shadow: 0 8px 24px rgba(var(--accent-rgb), .35); }
.btn-gradient:hover { filter: brightness(1.1); color: #fff; }
.btn-secondary, .btn-ghost, .btn-light {
  background: var(--surface-2); border-color: var(--border); color: var(--text) !important;
}
.btn-secondary:hover, .btn-ghost:hover, .btn-light:hover { background: var(--surface-3); border-color: var(--surface-3); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text) !important; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff !important; }
.btn-success:hover { filter: brightness(1.1); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff !important; }
.btn-danger:hover { filter: brightness(1.1); color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #111 !important; }
.btn-info { background: var(--info); border-color: var(--info); color: #fff !important; }
.btn-dark { background: var(--bg); border-color: var(--border); color: var(--text) !important; }
.btn-link { background: none; border: 0; color: var(--accent); box-shadow: none; }
.btn-sm { padding: .45rem .8rem; font-size: 13px; }
.btn-lg { padding: .9rem 1.6rem; font-size: 15px; }
.btn-block, .w-100.btn, .w-100.cmn-btn { display: flex; width: 100%; }
.btn[disabled], .btn:disabled, button[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 10px; }

/* ---------- Cards ---------- */
.card, .m-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow-sm);
}
.card-header, .card-footer { background: transparent; border-color: var(--border-soft); padding: 1.1rem 1.4rem; }
.card-header h5, .card-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--text); }
.card-body { padding: 1.4rem; }
.m-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border-soft); }
.m-card__head h5 { margin: 0; font-size: 16px; }
.m-card__body { padding: 1.4rem; }
.m-card--flush .m-card__body { padding: 0; }

/* Stat card */
.stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.25rem 1.3rem; display: flex; gap: 1rem; align-items: center; height: 100%;
  transition: transform .2s, border-color .2s;
}
a.stat:hover { transform: translateY(-2px); border-color: var(--border); }
.stat__icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(var(--accent-rgb), .14); color: var(--accent);
}
.stat__icon--success { background: rgba(var(--success-rgb), .14); color: var(--success); }
.stat__icon--warning { background: rgba(var(--warning-rgb), .14); color: var(--warning); }
.stat__icon--danger { background: rgba(var(--danger-rgb), .14); color: var(--danger); }
.stat__icon--info { background: rgba(var(--info-rgb), .14); color: var(--info); }
.stat__icon--purple { background: rgba(139, 92, 246, .16); color: var(--accent-2); }
.stat__label { font-size: 13px; color: var(--muted); margin: 0 0 .15rem; font-weight: 500; }
.stat__value { font-size: 22px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.2; word-break: break-word; }
.stat__value small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Hero balance card */
.balance-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 1.75rem; background: var(--gradient); color: #fff; height: 100%;
  box-shadow: 0 18px 40px rgba(var(--accent-rgb), .25);
}
.balance-card::before, .balance-card::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.balance-card::before { width: 260px; height: 260px; right: -80px; top: -120px; }
.balance-card::after { width: 180px; height: 180px; right: 60px; bottom: -110px; }
.balance-card > * { position: relative; z-index: 1; }
.balance-card__label { color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 500; margin: 0; }
.balance-card__amount { font-size: 38px; font-weight: 800; color: #fff; margin: .35rem 0 1.2rem; letter-spacing: -.02em; line-height: 1.1; }
.balance-card__amount span { font-size: 18px; font-weight: 600; opacity: .85; }
.balance-card .btn { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); color: #fff !important; box-shadow: none; backdrop-filter: blur(6px); }
.balance-card .btn:hover { background: rgba(255, 255, 255, .26); }
.balance-card .btn-white { background: #fff; color: #111 !important; border-color: #fff; }

/* Progress */
.progress { background: var(--surface-3); border-radius: 50px; height: 8px; overflow: hidden; }
.progress-bar { background: var(--gradient); border-radius: 50px; }

/* ---------- Forms ---------- */
label, .form-label { color: var(--text-2); font-size: 13px; font-weight: 600; margin-bottom: .45rem; display: inline-block; }
.form-group { margin-bottom: 1.1rem; }
.form-control, .custom-select, select.form-control, textarea.form-control,
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  background: var(--bg-2) !important; border: 1px solid var(--border) !important; color: var(--text) !important;
  border-radius: var(--radius-sm); padding: .7rem .95rem; font-size: 14px; height: auto; min-height: 46px;
  transition: border-color .2s, box-shadow .2s; font-family: var(--font);
}
.form-control::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder { color: #5b6580; }
.form-control:focus, .contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18) !important; outline: none;
}
.form-control[readonly], .form-control:disabled { background: var(--surface-2) !important; color: var(--text-2) !important; opacity: 1; }
.form-control-lg { font-size: 15px; min-height: 50px; }
select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237f89a0' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 1rem center !important; padding-right: 2.5rem; }
select.form-control option { background: var(--surface); color: var(--text); }
textarea.form-control { min-height: 120px; resize: vertical; }
input[type=file].form-control { padding: .55rem .8rem; }
input[type=file]::file-selector-button { background: var(--surface-3); color: var(--text); border: 0; border-radius: 6px; padding: .35rem .8rem; margin-right: .8rem; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.input-group { display: flex; flex-wrap: nowrap; align-items: stretch; width: 100%; }
.input-group > .form-control { flex: 1 1 auto; min-width: 0; }
.input-group-text, .input-group-prepend .input-group-text, .input-group-append .input-group-text {
  background: var(--surface-2) !important; border: 1px solid var(--border) !important; color: var(--text-2) !important;
  border-radius: var(--radius-sm); padding: 0 .95rem; display: flex; align-items: center; font-size: 14px;
}
.input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0 !important; }
.input-group > .input-group-prepend + .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-append > .input-group-text,
.input-group > .form-control + .input-group-prepend > .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0 !important; }
.copy-field { display: flex; gap: .5rem; }
.copy-field .form-control { flex: 1; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: .35rem; }

/* password strength popup (secure_password.js) */
.hover-input-popup { position: relative; }
.hover-input-popup:hover .input-popup, .hover-input-popup:focus-within .input-popup { opacity: 1; visibility: visible; }
.input-popup {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 260px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text); padding: 14px 16px;
  border-radius: var(--radius-sm); opacity: 0; visibility: hidden; transition: .2s; z-index: 20; box-shadow: var(--shadow);
}
.input-popup p { padding-left: 22px; position: relative; margin: 0 0 4px; font-size: 13px; color: var(--text-2); }
.input-popup p::before { position: absolute; left: 0; top: 2px; font-family: 'Line Awesome Free'; font-weight: 900; font-size: 16px; line-height: 1; }
.input-popup p.error { text-decoration: line-through; }
.input-popup p.error::before { content: "\f057"; color: var(--danger); }
.input-popup p.success::before { content: "\f058"; color: var(--success); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; margin: 0; color: var(--text); border-collapse: separate; border-spacing: 0; background: transparent; }
.table thead th, .table thead.thead-dark th {
  background: var(--surface-2) !important; color: var(--muted) !important; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; border: 0 !important; border-bottom: 1px solid var(--border) !important;
  padding: .9rem 1.2rem; white-space: nowrap;
}
.table td { border: 0; border-bottom: 1px solid var(--border-soft); padding: 1rem 1.2rem; vertical-align: middle; color: var(--text-2); font-size: 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table td strong { color: var(--text); }
.table .empty-row td { text-align: center; padding: 3rem 1rem; color: var(--muted); }
@media (max-width: 767px) {
  .table-responsive--sm thead, .table-mobile thead { display: none; }
  .table-responsive--sm tbody tr, .table-mobile tbody tr { display: block; border-bottom: 1px solid var(--border); padding: .5rem 0; }
  .table-responsive--sm td, .table-mobile td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: right; border: 0; padding: .55rem 1rem; }
  .table-responsive--sm td::before, .table-mobile td::before { content: attr(data-label); color: var(--muted); font-weight: 600; font-size: 12.5px; text-align: left; }
  .table-mobile .empty-row td { display: block; text-align: center; }
  .table-mobile .empty-row td::before { content: none; }
}

/* ---------- Badges / pills ---------- */
.badge, .pill {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: 12px;
  padding: .35rem .7rem; border-radius: 50px; line-height: 1;
}
.badge-success, .badge--success, .pill--success { background: rgba(var(--success-rgb), .14); color: var(--success); }
.badge-warning, .badge--warning, .pill--warning { background: rgba(var(--warning-rgb), .14); color: var(--warning); }
.badge-danger, .badge--danger, .pill--danger { background: rgba(var(--danger-rgb), .14); color: var(--danger); }
.badge-primary, .badge--primary, .pill--accent { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.badge-info, .pill--info { background: rgba(var(--info-rgb), .14); color: var(--info); }
.badge-dark, .badge-secondary, .pill--muted { background: var(--surface-3); color: var(--text-2); }
.pill--purple { background: rgba(139, 92, 246, .16); color: var(--accent-2); }

/* ---------- Modals ---------- */
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--border-soft); padding: 1.1rem 1.4rem; }
.modal-body { padding: 1.4rem; }
.modal-title { color: var(--text); font-weight: 700; font-size: 17px; }
.modal-header .close, .close { color: var(--muted); text-shadow: none; opacity: 1; background: none; border: 0; font-size: 26px; line-height: 1; }
.modal-header .close:hover, .close:hover { color: var(--text); }
.modal-backdrop.show { opacity: .7; background: #000; }

/* ---------- List group ---------- */
.list-group-item { background: transparent; border-color: var(--border-soft); color: var(--text-2); padding: .85rem 1.1rem; }
.list-group { border-radius: var(--radius-sm); }
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list li span:first-child { color: var(--muted); }
.kv-list li span:last-child { color: var(--text); font-weight: 600; text-align: right; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); border: 1px solid; padding: .9rem 1.1rem; font-size: 14px; }
.alert-danger { background: rgba(var(--danger-rgb), .1); border-color: rgba(var(--danger-rgb), .3); color: #fca5a5; }
.alert-success { background: rgba(var(--success-rgb), .1); border-color: rgba(var(--success-rgb), .3); color: #86efac; }
.alert-info { background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .3); color: var(--text); }
.alert-warning { background: rgba(var(--warning-rgb), .1); border-color: rgba(var(--warning-rgb), .3); color: #fcd34d; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; margin: 1.5rem 0 0; padding: 0; list-style: none; justify-content: center; flex-wrap: wrap; }
.page-item .page-link {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 .6rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-radius: 10px !important; font-weight: 600; font-size: 14px;
}
.page-item .page-link:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-item.disabled .page-link { background: var(--surface); color: var(--muted); border-color: var(--border-soft); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 34px; background: var(--surface-2); color: var(--muted); }
.empty-state h5 { margin-bottom: .35rem; }
.empty-state p { color: var(--muted); margin: 0 auto; max-width: 360px; font-size: 14px; }

/* ---------- Tabs (segmented) ---------- */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg a { padding: .5rem 1rem; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: .4rem; }
.seg a.active, .seg a:hover { background: var(--surface); color: var(--text); }
.seg a.active { box-shadow: var(--shadow-sm); }

/* ==========================================================================
   App shell (logged-in)
   ========================================================================== */
.app { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: var(--bg-2); border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; transition: transform .25s ease;
}
.sidebar__brand { height: var(--topbar-h); display: flex; align-items: center; padding: 0 1.4rem; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
.sidebar__brand img { max-height: 38px; width: auto; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 1rem .85rem 1.5rem; }
.sidebar__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #566079; padding: 1rem .75rem .5rem; }
.sidebar__link {
  display: flex; align-items: center; gap: .8rem; padding: .68rem .8rem; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 14.5px; margin-bottom: 2px; position: relative;
}
.sidebar__link i { font-size: 20px; width: 22px; text-align: center; color: var(--muted); transition: color .2s; }
.sidebar__link:hover { background: var(--surface); color: var(--text); }
.sidebar__link:hover i { color: var(--text); }
.sidebar__link.active { background: rgba(var(--accent-rgb), .12); color: var(--text); font-weight: 600; }
.sidebar__link.active i { color: var(--accent); }
.sidebar__link.active::before { content: ''; position: absolute; left: -.85rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar__link .tag { margin-left: auto; font-size: 10.5px; padding: .2rem .5rem; }
.sidebar__promo { margin: 0 .85rem 1rem; padding: 1.1rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(139, 92, 246, .18)); border: 1px solid rgba(var(--accent-rgb), .25); }
.sidebar__promo h6 { font-size: 14px; margin-bottom: .25rem; }
.sidebar__promo p { font-size: 12.5px; margin-bottom: .75rem; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--topbar-h);
  display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem;
  background: rgba(10, 14, 23, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft);
}
.topbar__title { font-size: 18px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.topbar__balance { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem .45rem .9rem; border-radius: 50px; background: var(--surface); border: 1px solid var(--border-soft); }
.topbar__balance span { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; }
.topbar__balance a { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; }
.topbar__toggle { display: none; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text); width: 40px; height: 40px; border-radius: 10px; font-size: 22px; align-items: center; justify-content: center; cursor: pointer; }
.user-menu { position: relative; }
.user-menu__btn { display: flex; align-items: center; gap: .6rem; background: none; border: 0; color: var(--text); cursor: pointer; padding: .25rem; border-radius: 50px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.avatar--gradient { background: var(--gradient); }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.user-menu__name { font-weight: 600; font-size: 14px; line-height: 1.2; text-align: left; }
.user-menu__name small { display: block; font-weight: 500; font-size: 12px; }
.dropdown-menu {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .5rem; min-width: 220px; margin-top: .5rem;
}
.dropdown-item { color: var(--text-2); border-radius: 8px; padding: .6rem .8rem; font-size: 14px; display: flex; align-items: center; gap: .65rem; }
.dropdown-item i { font-size: 18px; color: var(--muted); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--text); }
.dropdown-divider { border-color: var(--border-soft); margin: .4rem 0; }
.content { flex: 1; padding: 1.75rem; width: 100%; max-width: 1400px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h2 { font-size: 24px; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); font-size: 14px; }
.app-footer { padding: 1.25rem 1.75rem; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.app-footer a { color: var(--muted); margin-left: 1rem; }
.app-footer a:hover { color: var(--text); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 1035; }

/* Mobile bottom nav */
.bottom-nav { display: none; }
@media (max-width: 1199px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow); }
  body.sidebar-open .sidebar-overlay { display: block; }
  .main { margin-left: 0; }
  .topbar__toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .topbar { padding: 0 1rem; }
  .content { padding: 1.1rem 1rem 6rem; }
  .user-menu__name { display: none; }
  .topbar__balance span { font-size: 13px; }
  .app-footer { display: none; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: rgba(14, 19, 32, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--border-soft);
    padding: .4rem .25rem calc(.4rem + env(safe-area-inset-bottom));
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: .3rem 0; }
  .bottom-nav a i { font-size: 22px; }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav a.bottom-nav__cta i { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .45); border: 4px solid var(--bg); }
  .balance-card__amount { font-size: 30px; }
  .page-head h2 { font-size: 20px; }
}

/* ---------- Dashboard bits ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center; transition: .2s; }
.quick-action i { font-size: 24px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.quick-action:hover { border-color: var(--border); color: var(--text); transform: translateY(-2px); }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.4rem; border-bottom: 1px solid var(--border-soft); }
.activity li:last-child { border-bottom: 0; }
.activity__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.activity__icon.in { background: rgba(var(--success-rgb), .14); color: var(--success); }
.activity__icon.out { background: rgba(var(--danger-rgb), .14); color: var(--danger); }
.activity__body { flex: 1; min-width: 0; }
.activity__title { color: var(--text); font-size: 14px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity__time { font-size: 12px; color: var(--muted); }
.activity__amount { font-weight: 700; font-size: 14px; white-space: nowrap; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { transform: rotate(-90deg); }
.ring__text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring__text strong { font-size: 24px; display: block; line-height: 1; color: var(--text); }
.ring__text small { font-size: 11px; }

/* ---------- PTC ads grid ---------- */
.ad-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; height: 100%; transition: .2s; }
.ad-card:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-2px); }
.ad-card__top { display: flex; align-items: center; gap: .8rem; }
.ad-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(var(--accent-rgb), .14); color: var(--accent); flex-shrink: 0; }
.ad-card__title { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.ad-card__desc { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ad-card__reward { font-size: 18px; font-weight: 800; color: var(--success); }
.ad-card__reward small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Plans ---------- */
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; display: flex; flex-direction: column; transition: .2s; }
.plan-card:hover { transform: translateY(-4px); border-color: var(--border); }
.plan-card--featured { border-color: rgba(var(--accent-rgb), .6); background: linear-gradient(180deg, rgba(var(--accent-rgb), .1), var(--surface) 45%); box-shadow: 0 20px 50px rgba(var(--accent-rgb), .15); }
.plan-card__ribbon { position: absolute; top: 1.2rem; right: 1.2rem; }
.plan-card__name { font-size: 15px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.plan-card__price { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -.03em; line-height: 1; margin-bottom: .3rem; }
.plan-card__price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan-card__sub { font-size: 13px; color: var(--muted); margin-bottom: 1.4rem; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.plan-card li { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem 0; color: var(--text-2); font-size: 14px; }
.plan-card li i { color: var(--success); font-size: 18px; margin-top: 1px; }
.plan-card .btn { margin-top: auto; }

/* ---------- Gateway cards ---------- */
.gw-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; transition: .2s; }
.gw-card:hover { border-color: rgba(var(--accent-rgb), .45); }
.gw-card__head { display: flex; align-items: center; gap: .9rem; }
.gw-card__logo { width: 64px; height: 44px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 5px; flex-shrink: 0; }
.gw-card__logo img { max-height: 100%; object-fit: contain; }
.gw-card__name { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0; }
.gw-card .kv-list li { padding: .5rem 0; font-size: 13px; }

/* ---------- Referral ---------- */
.ref-hero { border-radius: var(--radius-lg); padding: 1.75rem; background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(139, 92, 246, .16)); border: 1px solid rgba(var(--accent-rgb), .25); }
.level-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; }
.level-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .9rem; text-align: center; }
.level-item strong { display: block; font-size: 20px; color: var(--text); }
.level-item span { font-size: 12px; color: var(--muted); font-weight: 600; }
.level-item.on { border-color: rgba(var(--success-rgb), .5); background: rgba(var(--success-rgb), .08); }
.level-item.on strong { color: var(--success); }

/* ---------- Tickets ---------- */
.msg { border-radius: var(--radius); padding: 1.1rem 1.25rem; border: 1px solid var(--border-soft); background: var(--surface-2); margin-bottom: 1rem; }
.msg--staff { background: rgba(var(--accent-rgb), .07); border-color: rgba(var(--accent-rgb), .25); }
.msg__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.msg__head h6 { margin: 0; font-size: 14.5px; }
.msg__head small { display: block; }
.msg p { margin: 0; color: var(--text); white-space: pre-line; }
.msg__files { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.msg__files a { font-size: 13px; padding: .3rem .7rem; border-radius: 50px; background: var(--surface-3); color: var(--text-2); }

/* ---------- fileinput (bootstrap-fileinput) ---------- */
.fileinput .thumbnail { background: var(--bg-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 6px; display: inline-block; max-width: 240px; }
.btn-file { position: relative; overflow: hidden; }
.btn-file input[type=file] { position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; opacity: 0; cursor: pointer; }

/* ==========================================================================
   Public site
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header--solid { background: rgba(10, 14, 23, .88); backdrop-filter: blur(12px); border-bottom-color: var(--border-soft); }
.site-nav { height: 76px; display: flex; align-items: center; gap: 2rem; }
.site-nav__logo img { max-height: 40px; }
.site-nav__menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0 auto 0 0; padding: 0; }
.site-nav__menu a { color: var(--text-2); font-weight: 500; font-size: 14.5px; padding: .5rem .85rem; border-radius: 8px; }
.site-nav__menu a:hover, .site-nav__menu a.active { color: var(--text); background: var(--surface); }
.site-nav__actions { display: flex; align-items: center; gap: .6rem; }
.lang-select { background: var(--surface) !important; border: 1px solid var(--border-soft) !important; color: var(--text-2) !important; border-radius: 8px; padding: .45rem 2rem .45rem .7rem; font-size: 13px; min-height: 0; width: auto; }
.site-nav__toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text); width: 42px; height: 42px; border-radius: 10px; font-size: 22px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 991px) {
  .site-nav { gap: 1rem; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__collapse { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border-soft); padding: 1rem; flex-direction: column; align-items: stretch; gap: 1rem; }
  .site-header.open .site-nav__collapse { display: flex; }
  .site-header.open { background: var(--bg-2); }
  .site-nav__menu { flex-direction: column; align-items: stretch; margin: 0; }
  .site-nav__actions { flex-wrap: wrap; }
  .site-nav__actions .btn { flex: 1; }
}
@media (min-width: 992px) { .site-nav__collapse { display: flex; flex: 1; align-items: center; } }

.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: .75rem; }
.section-head p { font-size: 16.5px; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 50px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .25); color: var(--accent); font-weight: 600; font-size: 13px; }
@media (max-width: 767px) { .section { padding: 70px 0; } .section-head { margin-bottom: 2.5rem; } }

/* Hero */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(600px 400px at 15% 20%, rgba(var(--accent-rgb), .22), transparent 60%),
  radial-gradient(500px 400px at 85% 30%, rgba(139, 92, 246, .2), transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); opacity: .5; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero__title { font-size: clamp(36px, 5.5vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 1.25rem 0 1.25rem; }
.hero__sub { font-size: 18px; color: var(--text-2); max-width: 540px; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero__trust-item strong { display: block; font-size: 22px; color: var(--text); font-weight: 800; }
.hero__trust-item span { font-size: 13px; color: var(--muted); }
.hero__visual { position: relative; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.mock__float { position: absolute; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .75rem; animation: float 5s ease-in-out infinite; }
.mock__float--a { left: -36px; bottom: -64px; }
.mock__float--b { right: -24px; top: 30px; animation-delay: -2.5s; }
.mock__float strong { display: block; color: var(--text); font-size: 14px; }
.mock__float small { font-size: 12px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991px) { .hero { padding: 130px 0 70px; } .hero__visual { margin-top: 3.5rem; } .mock__float--a { left: 0; } .mock__float--b { right: 0; } }

/* Earn methods / features */
.earn-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; transition: .25s; position: relative; overflow: hidden; }
.earn-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .45); }
.earn-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; margin-bottom: 1.25rem; background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.earn-card__icon i, .earn-card__icon svg { font-size: 28px; }
.earn-card h4 { font-size: 18px; margin-bottom: .5rem; }
.earn-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 1rem; }
.step__num { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); position: relative; z-index: 1; }
.step h4 { font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (min-width: 768px) { .step:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 40px); border-top: 2px dashed var(--border); } }

/* About */
.about-img { border-radius: var(--radius-lg); overflow: hidden; position: relative; border: 1px solid var(--border); }
.about-img img { display: block; width: 100%; }
.about-img__play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 0 0 12px rgba(var(--accent-rgb), .25); }
.about-img__play:hover { color: #fff; transform: scale(1.06); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .65rem; color: var(--text-2); }
.check-list li i { color: var(--success); font-size: 20px; }

/* Counter */
.counter-box { text-align: center; padding: 1.75rem 1rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); height: 100%; }
.counter-box__icon { font-size: 30px; color: var(--accent); margin-bottom: .5rem; }
.counter-box__icon i { font-size: 30px; }
.counter-box strong { display: block; font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.counter-box span { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; background: none; border: 0; color: var(--text); font-weight: 600; font-size: 15.5px; text-align: left; cursor: pointer; font-family: var(--font); }
.faq-item__q i { transition: transform .25s; color: var(--muted); font-size: 18px; flex-shrink: 0; }
.faq-item__q:not(.collapsed) i { transform: rotate(45deg); color: var(--accent); }
.faq-item__a { padding: 0 1.35rem 1.2rem; color: var(--muted); }
.faq-item__a p { margin: 0; color: var(--muted); }

/* Testimonials */
.quote-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.quote-card__stars { color: #fbbf24; margin-bottom: 1rem; letter-spacing: 2px; }
.quote-card p { color: var(--text-2); flex: 1; }
.quote-card__who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.quote-card__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-card__who strong { display: block; color: var(--text); font-size: 15px; }
.quote-card__who span { font-size: 13px; color: var(--muted); }

/* Blog */
.post-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: .25s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--border); }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card__body h4 { font-size: 17px; line-height: 1.4; }
.post-card__body h4 a { color: var(--text); }
.post-card__body h4 a:hover { color: var(--accent); }
.post-card__body p { color: var(--muted); font-size: 14px; flex: 1; }
.post-card__more { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: .35rem; }
.prose { color: var(--text-2); font-size: 16px; line-height: 1.8; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.75rem; }
.prose p { color: var(--text-2); }
.prose img { border-radius: var(--radius); }
.prose a { text-decoration: underline; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 3.5rem 2rem; text-align: center; background: var(--gradient); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 20% 0%, rgba(255, 255, 255, .2), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 17px; max-width: 520px; margin: 0 auto 1.75rem; }
.cta-band .btn { background: #fff; color: #111 !important; border-color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* Inner page hero */
.page-hero { padding: 150px 0 60px; position: relative; overflow: hidden; text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(var(--accent-rgb), .2), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.crumbs { display: inline-flex; gap: .5rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: #4a5470; }
.crumbs a { color: var(--text-2); }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 70px 0 0; }
.site-footer h6 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer li a { color: var(--muted); font-size: 14.5px; }
.site-footer li a:hover { color: var(--text); }
.site-footer__about p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text-2); font-size: 17px; }
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.site-footer__bottom { margin-top: 50px; padding: 1.4rem 0; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 13.5px; }
.site-footer__bottom p { margin: 0; color: var(--muted); }

/* Cookie bar */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1050; max-width: 560px; margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: center; }
.cookie-bar p { margin: 0; font-size: 13.5px; }
@media (max-width: 575px) { .cookie-bar { flex-direction: column; align-items: stretch; } }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__side { position: relative; overflow: hidden; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-2); border-right: 1px solid var(--border-soft); }
.auth__side::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(500px 360px at 20% 20%, rgba(var(--accent-rgb), .28), transparent 60%),
  radial-gradient(500px 360px at 80% 90%, rgba(139, 92, 246, .25), transparent 60%); }
.auth__side > * { position: relative; }
.auth__side h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; max-width: 440px; }
.auth__side p { max-width: 420px; color: var(--text-2); }
.auth__perks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.auth__perks li { display: flex; gap: .8rem; align-items: center; color: var(--text); font-weight: 500; }
.auth__perks i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: rgba(255, 255, 255, .06); color: var(--accent); flex-shrink: 0; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth__box { width: 100%; max-width: 440px; }
.auth__box--wide { max-width: 560px; }
.auth__box h3 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.auth__box > p { color: var(--muted); margin-bottom: 2rem; }
.auth__alt { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: 14px; }
.auth__logo img { max-height: 40px; }
@media (max-width: 991px) { .auth { grid-template-columns: 1fr; } .auth__side { display: none; } }

/* ==========================================================================
   Misc overrides of legacy classes used by copied pages
   ========================================================================== */
.b-primary, .card-deposit { border-color: var(--border-soft) !important; }
.thead-dark th { background: var(--surface-2) !important; }
.bg--primary { background: var(--accent) !important; }
.text--base { color: var(--accent) !important; }
.border-0 { border: 0 !important; }
.preloader { display: none !important; }
#g-recaptcha-error span { font-size: 13px; }
.iziToast { border-radius: 10px !important; }
.lightcase-icon-close { color: #fff; }

/* Brand (favicon + site name, works with any uploaded logo) */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
/* Logo: round "e" on a tile + "Ear"+"nova"; both take the active design's accent colour */
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.brand__mark svg { width: 23px; height: 23px; display: block; }
.brand__tail { color: var(--accent); }
/* on an accent-coloured sidebar the tile flips and the name stays one colour */
.sidebar--brand .sidebar .brand__mark { background: var(--on-accent); color: var(--accent); }
.sidebar--brand .sidebar .brand__tail { color: inherit; opacity: .85; }
@media (min-width: 1200px) { .topbar__title { visibility: hidden; } }
.topbar__title { display: none; }
@media (max-width: 575px) {
  .stat { flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem; }
  .stat__icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 20px; }
  .stat__value { font-size: 18px; }
  .stat__label { font-size: 12px; }
  .row > .col-6, .row > .col-4 { padding-left: 8px; padding-right: 8px; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .quick-action { padding: .75rem .25rem; font-size: 11.5px; }
  .quick-action i { width: 40px; height: 40px; font-size: 20px; }
  .page-head > .btn { width: 100%; }
}

/* ---------- Daily bonus ---------- */
.bonus-hero { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.5rem; height: 100%; }
.bonus-flame { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--surface-2); color: var(--muted); }
.bonus-flame.on { background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; box-shadow: 0 8px 24px rgba(249, 115, 22, .35); }
.bonus-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; }
.bonus-day { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: .85rem .4rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; transition: .2s; }
.bonus-day__label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bonus-day i { font-size: 26px; color: var(--warning); }
.bonus-day strong { font-size: 15px; color: var(--text); }
.bonus-day.done { background: rgba(var(--success-rgb), .08); border-color: rgba(var(--success-rgb), .4); }
.bonus-day.done i { color: var(--success); }
.bonus-day.today { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); transform: translateY(-3px); }
.bonus-day.big { background: linear-gradient(180deg, rgba(139, 92, 246, .18), var(--surface-2)); border-color: rgba(139, 92, 246, .45); }
.bonus-day.big i { color: var(--accent-2); }
.bonus-day.big.done i { color: var(--success); }
.claim-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); } 70% { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
@media (max-width: 575px) {
  .bonus-days { grid-template-columns: repeat(4, 1fr); }
  .bonus-day.big { grid-column: span 2; }
  .bonus-hero { padding: 1.1rem; }
}
/* dashboard bonus banner */
.bonus-banner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: linear-gradient(90deg, rgba(249, 115, 22, .16), rgba(239, 68, 68, .1)); border: 1px solid rgba(249, 115, 22, .35); margin-bottom: 1.5rem; }
.bonus-banner .bonus-flame { width: 46px; height: 46px; font-size: 24px; flex-shrink: 0; }
.bonus-banner h6 { margin: 0; font-size: 15px; }
.bonus-banner p { margin: 0; font-size: 13px; }
.bonus-banner .btn { margin-left: auto; }
@media (max-width: 575px) { .bonus-banner { flex-wrap: wrap; } .bonus-banner .btn { width: 100%; } }

/* ---------- Tasks ---------- */
a.task-card { color: inherit; }
.task-card__desc { color: var(--muted); font-size: 13.5px; margin: 0; }
.task-steps { padding-left: 1.2rem; margin: 0 0 1rem; color: var(--text-2); }
.task-steps li { padding: .35rem 0; }
.upload-drop { display: grid; place-items: center; width: 100%; min-height: 170px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; text-align: center; color: var(--muted); padding: .75rem; transition: border-color .2s; margin: 0; font-weight: 500; }
.upload-drop:hover { border-color: var(--accent); }
.upload-drop i { font-size: 40px; color: var(--accent); }
.upload-drop img { max-height: 260px; border-radius: 10px; }
.task-lock { display: flex; gap: .85rem; align-items: center; padding: 1rem; border-radius: var(--radius-sm); background: rgba(var(--warning-rgb), .08); border: 1px solid rgba(var(--warning-rgb), .3); margin-bottom: 1.1rem; }
.task-lock > i { font-size: 28px; color: var(--warning); }
.task-lock p { font-size: 13.5px; }
.form-locked { opacity: .4; pointer-events: none; user-select: none; }

/* ---------- Referral contest ---------- */
.contest-hero { position: relative; overflow: hidden; height: 100%; border-radius: var(--radius-lg); padding: 1.5rem; background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(139, 92, 246, .14)); border: 1px solid rgba(251, 191, 36, .3); }
.prize-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.prize { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .8rem .5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.prize__rank { font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--muted); }
.prize strong { font-size: 17px; color: var(--text); }
.prize small { font-size: 11px; }
.prize--top { border-color: rgba(251, 191, 36, .45); }
.my-rank { font-size: 56px; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; margin-bottom: .25rem; }
.leaderboard { list-style: none; margin: 0; padding: 0; }
.leaderboard li { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.4rem; border-bottom: 1px solid var(--border-soft); }
.leaderboard li:last-child { border-bottom: 0; }
.leaderboard li.me { background: rgba(var(--accent-rgb), .1); }
.leaderboard__rank { width: 34px; font-size: 18px; font-weight: 700; color: var(--muted); text-align: center; }
.leaderboard__name { flex: 1; color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard__count { font-weight: 700; color: var(--text); white-space: nowrap; }
.leaderboard__prize { width: 90px; text-align: right; white-space: nowrap; }
@media (max-width: 575px) { .leaderboard li { padding: .7rem 1rem; gap: .6rem; } .leaderboard__prize { width: 64px; } }

/* ==========================================================================
   Design refresh: flat, restrained, editorial
   No gradients, glows, blur or floating effects. One accent colour, used for
   actions and small highlights only. Emphasis comes from borders and type.
   ========================================================================== */

h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -.005em; }
body { font-size: 15px; }
.text-gradient { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); }

/* Buttons: solid, no shadow */
.btn, .cmn-btn { border-radius: var(--radius-sm); font-weight: 600; box-shadow: none !important; }
.btn-primary, .cmn-btn, .btn--primary, .btn-accent, .btn-gradient { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .cmn-btn:hover, .btn--primary:hover, .btn-accent:hover, .btn-gradient:hover { filter: brightness(1.08); }
.btn:active { transform: none; }

/* Cards and tiles: flat, bordered, no lift on hover */
.card, .m-card, .stat, .ad-card, .gw-card, .plan-card, .earn-card, .post-card, .quote-card, .counter-box, .faq-item, .bonus-hero { box-shadow: none; border-color: var(--border-soft); }
a.stat:hover, .ad-card:hover, .gw-card:hover, .plan-card:hover, .earn-card:hover, .post-card:hover, .quick-action:hover { transform: none; border-color: var(--border); }
.post-card:hover .post-card__img img { transform: none; }
.stat__icon { border-radius: var(--radius-sm); }
.stat__icon--purple { background: rgba(var(--warning-rgb), .12); color: var(--warning); }
.pill, .badge { border-radius: 4px; font-weight: 600; }
.pill--purple { background: rgba(var(--warning-rgb), .12); color: var(--warning); }
.progress-bar { background: var(--accent); }
.avatar--gradient { background: rgba(var(--accent-rgb), .18); color: var(--accent); }

/* Balance card: a normal card with an accent edge, not a glowing gradient slab */
.balance-card { background: var(--surface); color: var(--text); border: 1px solid var(--border-soft); border-left: 3px solid var(--accent); box-shadow: none; border-radius: var(--radius); }
.balance-card::before, .balance-card::after { content: none; }
.balance-card__label { color: var(--muted); }
.balance-card__amount { color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.balance-card__amount span { color: var(--muted); }
.balance-card .btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text) !important; backdrop-filter: none; }
.balance-card .btn:hover { background: var(--surface-3); }
.balance-card .btn-white { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.balance-card__foot { border-top: 1px solid var(--border-soft); }
.balance-card__foot small { color: var(--muted); }

/* Highlight panels: surface + coloured left rule */
.sidebar__promo, .ref-hero, .bonus-banner, .contest-hero {
  background: var(--surface); border: 1px solid var(--border-soft); border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.bonus-banner, .contest-hero { border-left-color: var(--warning); }

/* Plans */
.plan-card--featured { background: var(--surface); border: 1px solid var(--accent); box-shadow: none; }

/* Chrome: solid bars, no frosted glass */
.topbar, .site-header.scrolled, .site-header--solid { background: var(--bg); backdrop-filter: none; }
.bottom-nav { background: var(--bg-2); backdrop-filter: none; }
.bottom-nav a.bottom-nav__cta i { background: var(--accent); box-shadow: none; border-color: var(--bg-2); }
.sidebar { background: var(--bg-2); }
.sidebar__link { border-radius: var(--radius-sm); }
.sidebar__link.active { background: var(--surface-2); }

/* Daily bonus */
.bonus-flame.on { background: #d9822b; box-shadow: none; }
.bonus-day { border-radius: var(--radius-sm); }
.bonus-day.today { transform: none; box-shadow: none; border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.bonus-day.big { background: var(--surface-2); border-color: rgba(var(--warning-rgb), .6); }
.bonus-day.big i { color: var(--warning); }
.claim-pulse { animation: none; }

/* Section headings: left aligned, plain label instead of a pill */
.eyebrow { background: none; border: 0; padding: 0; border-radius: 0; color: var(--accent); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow i { display: none; }
.section-head { text-align: left; margin-left: 0; max-width: 680px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.earn-card__icon { border-radius: var(--radius-sm); width: 46px; height: 46px; font-size: 24px; }
.step { text-align: left; padding: 0; }
.step__num { margin: 0 0 1rem; width: 46px; height: 46px; font-size: 22px; border-radius: var(--radius-sm); }
.step:not(:last-child)::after { content: none; }

/* Hero: real photo, plain background */
.hero { padding: 132px 0 80px; border-bottom: 1px solid var(--border-soft); }
.hero::before, .hero::after { content: none; }
.hero__title { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hero__sub { font-size: 17px; color: var(--text-2); }
.hero__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3.2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__note { position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; display: flex; gap: .75rem; align-items: center; }
.hero__note strong { display: block; color: var(--text); font-size: 14px; }
.hero__note small { font-size: 12.5px; }
.hero__checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--text-2); font-size: 14px; }
.hero__checks i { color: var(--success); margin-right: .3rem; }
@media (max-width: 991px) { .hero { padding: 108px 0 56px; } .hero__photo { margin-top: 2.5rem; } }

/* Inner page header: left aligned with a rule, no glow */
.page-hero { padding: 120px 0 36px; text-align: left; border-bottom: 1px solid var(--border-soft); margin-bottom: 48px; }
.page-hero::before { content: none; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }

/* Call to action: quiet bordered panel */
.cta-band { background: var(--surface); border: 1px solid var(--border); text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.25rem 2.5rem; border-radius: var(--radius-lg); }
.cta-band::before { content: none; }
.cta-band h2 { color: var(--text); font-size: 26px; margin-bottom: .35rem; }
.cta-band p { color: var(--text-2); margin: 0; font-size: 16px; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); color: #fff !important; box-shadow: none; }

/* Auth: plain side panel */
.auth__side::before { content: none; }
.auth__side { background: var(--bg-2); }
.auth__side h2 { font-weight: 700; }
.auth__perks i { border-radius: var(--radius-sm); background: var(--surface-2); }

/* Misc */
.leaderboard li.me { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.prize { border-radius: var(--radius-sm); }
.prize--top { border-color: rgba(var(--warning-rgb), .5); }
.task-lock { border-radius: var(--radius-sm); }
.upload-drop { border-radius: var(--radius-sm); }

/* Cookie notice: Reject / Accept */
.cookie-bar__actions { display: flex; gap: .5rem; flex-shrink: 0; }
@media (max-width: 575px) { .cookie-bar__actions .btn { flex: 1; } }

/* iPhone install steps */
.ios-sheet { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
.ios-sheet[hidden] { display: none; }
.ios-sheet__back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.ios-sheet__card { position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 20px 20px 0 0; padding: 1.25rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: iosUp .22s ease-out; }
@media (min-width: 576px) { .ios-sheet { align-items: center; } .ios-sheet__card { border-radius: 20px; } }
@keyframes iosUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ios-sheet__x { position: absolute; top: .7rem; right: .7rem; border: 0; background: none; color: var(--muted); font-size: 20px; }
.ios-sheet__head { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; padding-right: 1.5rem; }
.ios-sheet__head img { width: 48px; height: 48px; border-radius: 12px; }
.ios-sheet__head strong { display: block; font-size: 16px; }
.ios-sheet__head small { color: var(--muted); font-size: 12.5px; }
.ios-sheet__steps, .ios-sheet__steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ios-sheet__steps p { font-size: 13.5px; color: var(--text-2); margin: 0 0 .7rem; }
.ios-sheet__steps ol { margin-bottom: .9rem; }
.ios-sheet__steps li { display: flex; gap: .7rem; align-items: flex-start; font-size: 14px; line-height: 1.45; background: var(--surface-2); border-radius: 12px; padding: .65rem .75rem; }
.ios-sheet__steps li > span { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--on-accent); }
.ios-sheet__steps li small { display: block; color: var(--muted); font-size: 12px; }
.ios-sheet__ico { font-size: 20px; color: #0a84ff; vertical-align: -3px; }
.mapp-install [data-ios-open] { cursor: pointer; }

/* Keep the design colour while a button is pressed or focused (Bootstrap turns it blue) */
.btn-primary:focus, .btn-primary.focus, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 .2rem rgba(var(--accent-rgb), .35); }

/* Tap feedback (mostly for the installed phone app): buttons visibly press, and a bar shows the next page is loading */
html { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn, .sidebar__link, .mapp-tile, .bottom-nav a, .mapp-chip { transition: transform .08s ease, filter .08s ease, background-color .15s ease; }
.btn:active, .sidebar__link:active, .mapp-tile:active, .bottom-nav a:active, .mapp-chip:active { transform: scale(.96); filter: brightness(.88); }
button:not(.btn):active, [role="button"]:active { opacity: .7; }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy::before { content: ''; display: inline-block; width: .95em; height: .95em; margin-right: .45em; vertical-align: -.14em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btnSpin .7s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
.page-load { position: fixed; top: 0; left: 0; z-index: 3000; height: 3px; width: 0; opacity: 0; pointer-events: none; background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), .6); }
.page-load.is-on { opacity: 1; width: 85%; transition: width 6s cubic-bezier(.1, .8, .2, 1); }

/* Task platform badge (Instagram, TikTok...) and example picture */
.pf-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); vertical-align: middle; }
.pf-badge i, .pf-badge .pf-svg { color: var(--pf); font-size: 16px; }
.pf-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }
.ad-card__icon .pf-svg { width: 22px; height: 22px; }
.task-sample { display: block; margin-top: .4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); text-align: center; }
.task-sample img { max-width: 100%; max-height: 380px; display: inline-block; }
.task-sample--small img { max-height: 160px; }

/* Banner ad countdown (advertiser list) */
.bn-cd { display: inline-flex; align-items: center; gap: .3rem; margin-right: .5rem; padding: .15rem .55rem; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--success, #22c55e); background: rgba(34, 197, 94, .1); }
.bn-cd i { font-size: 15px; }
.bn-cd b { font-weight: 800; }
.bn-cd .cd-clock { font-variant-numeric: tabular-nums; }
.bn-cd small { font-size: 11.5px; opacity: .8; }
.bn-cd.is-soon { color: #f59e0b; background: rgba(245, 158, 11, .12); }
.bn-cd.is-ended { color: var(--muted); background: var(--surface-2); }

/* ==========================================================================
   Homepage live phone: earnings arrive, the balance counts up, notifications pop
   ========================================================================== */
.live-phone { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 460; margin-left: auto; container-type: inline-size; }
.lp-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-fill-accent { fill: var(--accent); } .lp-fill-accent2 { fill: var(--accent-2); } .lp-fill-on-accent2 { fill: var(--on-accent-2, #fff); }
.lp-fill-accent-soft { fill: rgba(var(--accent-rgb), .1); } .lp-fill-accent2-soft { fill: rgba(var(--accent-2-rgb), .16); }
.lp-dark { filter: brightness(.78); } .lp-light { filter: brightness(1.12); }
.lp-bob { animation: lpBob 5s ease-in-out infinite; transform-box: fill-box; } .lp-bob--2 { animation-delay: -1.6s; } .lp-bob--3 { animation-delay: -3.2s; }
@keyframes lpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.lp-phone { position: absolute; left: 35.7%; top: 8.7%; width: 35.7%; height: 84.8%; padding: 1.8cqw; border-radius: 5.4cqw; background: #1f2430; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: lpFloat 6s ease-in-out infinite; }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lp-screen { text-align: left; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4cqw; background: var(--surface); padding: 3.6cqw 2.6cqw 2.2cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.lp-notch { position: absolute; top: 1.2cqw; left: 50%; width: 8cqw; height: 1.3cqw; margin-left: -4cqw; border-radius: 1cqw; background: #1f2430; }
.lp-head { display: flex; align-items: center; gap: 1.2cqw; margin-top: 1cqw; }
.lp-logo { width: 4.2cqw; height: 4.2cqw; border-radius: 1.3cqw; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.lp-logo svg { width: 2.8cqw; height: 2.8cqw; display: block; }
.lp-hi { font-size: 2.1cqw; font-weight: 700; color: var(--text); flex: 1; }
.lp-bell { position: relative; font-size: 2.6cqw; color: var(--muted); }
.lp-bell em { position: absolute; top: .1cqw; right: -.1cqw; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--danger, #ef4444); animation: lpPing 2.6s ease-out infinite; }
@keyframes lpPing { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70%, 100% { box-shadow: 0 0 0 1.2cqw rgba(239, 68, 68, 0); } }
.lp-balance { position: relative; padding: 2cqw 2.2cqw; border-radius: 2.6cqw; background: var(--accent); color: var(--on-accent); }
.lp-balance small { display: block; font-size: 1.5cqw; opacity: .75; font-weight: 600; }
.lp-amount { display: block; font-size: 3.4cqw; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.lp-today { display: inline-block; margin-top: .3cqw; font-size: 1.4cqw; font-weight: 700; opacity: .85; }
.lp-actions { display: flex; gap: 1cqw; margin-top: 1.4cqw; }
.lp-actions span { flex: 1; text-align: center; padding: .9cqw 0; border-radius: 1.6cqw; font-size: 1.4cqw; font-weight: 700; background: rgba(255, 255, 255, .28); }
.lp-flyer { position: absolute; right: 2cqw; top: 2.2cqw; font-size: 1.9cqw; font-weight: 800; opacity: 0; pointer-events: none; }
.lp-flyer.go { animation: lpFly 1.3s ease-out; }
@keyframes lpFly { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-18px) scale(1); } }
.lp-chart { display: flex; align-items: flex-end; gap: .9cqw; height: 14cqw; padding: 1.6cqw 1.8cqw; border-radius: 2.2cqw; background: var(--surface-2); }
.lp-chart span { flex: 1; height: var(--h); border-radius: .6cqw .6cqw .3cqw .3cqw; background: rgba(var(--accent-rgb), .32); transform-origin: bottom; animation: lpBar 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
.lp-chart span.is-hi { background: var(--accent); }
.lp-chart span.is-2 { background: var(--accent-2); }
@keyframes lpBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }
.lp-feed-title { font-size: 1.6cqw; font-weight: 700; color: var(--muted); margin-top: .2cqw; }
.lp-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1cqw; }
.lp-feed li { display: flex; align-items: center; gap: 1.2cqw; padding: 1.1cqw 1.3cqw; border-radius: 1.8cqw; background: var(--surface-2); }
.lp-feed li i { width: 3.6cqw; height: 3.6cqw; flex-shrink: 0; border-radius: 1.1cqw; display: grid; place-items: center; font-size: 2.1cqw; background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.lp-feed li:nth-child(2) i { background: rgba(var(--accent-2-rgb), .16); color: var(--accent-2); }
.lp-feed li span { flex: 1; min-width: 0; font-size: 1.6cqw; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.lp-feed li small { display: block; font-size: 1.25cqw; font-weight: 500; color: var(--muted); }
.lp-feed li b { font-size: 1.7cqw; font-weight: 800; color: var(--success); white-space: nowrap; }
.lp-feed li.is-new { animation: lpIn .5s cubic-bezier(.2, .8, .2, 1); }
.lp-feed li.is-new b { animation: lpGlow 1.2s ease-out; }
.lp-feed li.is-out { animation: lpOut .45s ease-in forwards; }
@keyframes lpIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lpOut { to { opacity: 0; transform: translateY(8px); } }
@keyframes lpGlow { 0% { text-shadow: none; } 30% { text-shadow: 0 0 1.2cqw rgba(var(--success-rgb), .7); } 100% { text-shadow: none; } }

.lp-toast { text-align: left; position: absolute; left: 58.9%; top: 65.2%; width: 37%; display: flex; align-items: center; gap: 1.8cqw; padding: 2cqw 2.2cqw; border-radius: 2.6cqw; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); opacity: 0; }
.lp-toast.show { animation: lpToast .5s ease forwards; }
@keyframes lpToast { from { opacity: 0; transform: translateX(14px) scale(.96); } to { opacity: 1; transform: none; } }
.lp-toast__icon { width: 6cqw; height: 6cqw; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 3.2cqw; background: var(--success); color: #fff; }
.lp-toast__text { min-width: 0; line-height: 1.25; }
.lp-toast__text strong { display: block; font-size: 2.1cqw; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-toast__text small { display: block; font-size: 1.6cqw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-pill { position: absolute; left: 1%; top: 33%; display: inline-flex; align-items: center; gap: 1cqw; padding: 1.3cqw 2.2cqw; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 30px rgba(0, 0, 0, .18); font-size: 1.8cqw; font-weight: 700; color: var(--text); white-space: nowrap; animation: lpBob 5.5s ease-in-out infinite; animation-delay: -2s; }
.lp-pill i { color: var(--accent-2); font-size: 2.4cqw; }
.hero--band .hero .lp-fill-accent-soft { fill: rgba(255, 255, 255, .13); }
.hero--band .hero .lp-fill-accent2-soft { fill: rgba(255, 255, 255, .1); }
.hero--center .hero__art .live-phone { margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .live-phone, .live-phone * { animation: none !important; } .lp-toast { opacity: 1; } }
.lp-head, .lp-balance, .lp-chart, .lp-feed-title { flex-shrink: 0; }
.lp-feed { flex: 1 1 auto; min-height: 0; overflow: hidden; }

/* Daily bonus: reminder switch */
.bonus-remind { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-soft); text-align: left; }
.bonus-remind > i { font-size: 24px; color: var(--accent); }
.bonus-remind strong { display: block; font-size: 14px; }
.bonus-remind small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* Referrals: how the fixed reward works */
.ref-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 767px) { .ref-steps { grid-template-columns: 1fr; } }
.ref-steps > div { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-soft); }
.ref-steps span { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent); color: var(--on-accent); }
.ref-steps p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
