/* crypto theme — platform-wiring overrides (kata styles.css/pages.css untouched).
   Auth-state visibility + main-theme game tiles and home carousels. */
body[data-authed="in"] .header-actions .login-button,
body[data-authed="in"] .header-actions button[data-auth="register"],
body[data-authed="in"] [data-auth-out] { display: none !important; }
body[data-authed="out"] [data-auth-in] { display: none !important; }

/* Header balance chip (logged-in). */
.header-balance { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.header-balance svg { width: 14px; height: 14px; }

/* Home casino category rows = horizontal carousel (like main .row-scroll). */
.game-row.cg-row {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-top: 6px;
  padding-bottom: 6px;
}
.game-row.cg-row::-webkit-scrollbar { display: none; }
.game-row.cg-row > * { flex: 0 0 var(--tile-w, 160px); width: var(--tile-w, 160px); scroll-snap-align: start; }

/* Game card = main theme tile (themes/main/css/style.css .tile). */
.cg-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cg-tile:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0, 0, 0, .55); }
.cg-tile .gloss { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, .18), transparent 55%); }
.cg-tile .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .12) 46%, transparent 72%); }
.cg-tile .meta { position: absolute; inset-inline: 11px; bottom: 11px; }
.cg-tile .nm { display: block; font-weight: 800; font-size: 13px; line-height: 1.15; color: #fff; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

/* Home sportsbook = horizontal carousel of match cards. */
#matches-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
#matches-grid::-webkit-scrollbar { display: none; }
#matches-grid > .match-card { display: block; flex: 0 0 320px; scroll-snap-align: start; }
#matches-grid > .search-status { flex: 1 0 100%; }

@media (max-width: 760px) {
  .game-row.cg-row { margin-right: 0; padding-right: 0; --tile-w: 132px; }
  #matches-grid > .match-card { flex-basis: 82%; }
}

/* Home payment strip: the platform's payment logos (as in the main theme footer). */
.crypto-list.pay-logos { justify-content: flex-start; gap: 14px; }
.pay-logos .currency { padding: 0; background: none; border: 0; }
.pay-logos .currency img { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }

/* Footer: game-provider logo + licence line (as in the main theme footer). */
.footer-provider { display: inline-flex; align-items: center; }
.footer-provider img { display: block; height: 20px; width: auto; }
.footer-licensed { color: #aba1bb; font-size: 10px; }

/* Platform JS (main/partials/foot.php applyPlayer) toggles .d-none on the
   [data-auth-in]/[data-auth-out] chrome; Bootstrap is scoped, so define it here. */
.d-none { display: none !important; }

/* Header profile avatar (opens the platform profile modal). */
.header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--lavender); color: #fff;
  font-weight: 800; font-size: 14px; border: 0; cursor: pointer;
}

/* ===== Platform modals in the CRYPTO design =====
   The modals are the platform's own (main/partials/foot.php + modals.php: real
   login/signup, wallet, deposit gateways, withdrawals, profile, live chat); only
   their LOOK follows this theme. main's colour variables are remapped onto the
   crypto tokens (tenant-configurable via Theme Config colours) and the shapes
   follow kata's dialogs (navy panel, 18px radius, 8px inputs/buttons, lavender
   accent). `body #modalMount` outranks the scoped main rules in platform-modals.css.
   The crypto --bg/--line/--muted names collide with main's, so alias them first. */
:root { --c-bg: var(--bg); --c-line: var(--line); --c-muted: var(--muted); }
body #modalMount {
  --modal-bg: var(--surface, #1e1829);
  --panel: var(--surface-2, #282233);
  --panel-2: var(--c-bg, #16111d);
  --panel-grad: var(--surface-2, #282233);
  --line: var(--c-line, #3a3247);
  --line-2: var(--c-line, #4f4560);
  --txt: var(--text, #f7f5fb);
  --muted: var(--c-muted, #b7aec6);
  --muted-2: var(--c-muted, #b7aec6);
  --dim: var(--c-muted, #b7aec6);
  --lime: var(--lavender-light, #f2cd81);
  --lime-2: var(--lavender-light, #f2cd81);
  --green: var(--lavender, #e7be6a);
  --grad: linear-gradient(105deg, var(--lavender-light, #f0c772), var(--lavender, #d9b365));
  --btn-grad-bg: var(--grad);
  --btn-grad-hover-bg: var(--lavender-light, #f2cd81);
  --btn-grad-color: #17141d;
  --btn-grad-shadow: none;
  --btn-grad-hover-filter: none;
  --btn-soft-bg: transparent;
  --btn-soft-bg-hover: var(--surface-2, #282233);
  --btn-soft-color: var(--text, #f7f5fb);
  --btn-soft-border: var(--c-line, #443b53);
  --coin-active-bg: color-mix(in srgb, var(--lavender, #e7be6a) 16%, transparent);
  --coin-active-border: var(--lavender, #e7be6a);
  --coin-active-color: var(--text, #f7f5fb);
  --input-focus-border: var(--lavender, #e7be6a);
  --hover-border: var(--lavender, #e7be6a);
  --lime-tint: color-mix(in srgb, var(--lavender, #e7be6a) 12%, transparent);
  --lime-tint-border: color-mix(in srgb, var(--lavender, #e7be6a) 35%, transparent);
  --lime-tint-2: color-mix(in srgb, var(--lavender, #e7be6a) 22%, transparent);
  --info-box-bg: var(--surface-2, #282233);
  --info-box-border: var(--c-line, #3a3247);
  --callout-box-bg: var(--surface-2, #282233);
  --callout-box-border: var(--c-line, #3a3247);
  --bs-body-color: var(--text, #f7f5fb);
  --bs-body-bg: var(--surface, #1e1829);
}
/* the theme's typeface everywhere (main uses Sora/Manrope) */
body #modalMount .modal,
body #modalMount .modal * { font-family: inherit !important; letter-spacing: normal; }
/* dialog shell — kata <dialog> look */
body #modalMount .modal-content {
  background: var(--surface, #1e1829);
  border: 1px solid var(--c-line, #5a506a);
  border-radius: 18px;
  box-shadow: 0 24px 100px #0009;
  color: var(--text, #f7f5fb);
}
/* fields — kata inputs */
body #modalMount .modal-content .form-control,
body #modalMount .modal-content .form-select,
body #modalMount .amount-box {
  background: var(--surface-2, #261f31);
  border: 1px solid var(--c-line, #4f4560);
  border-radius: 8px;
  color: var(--text, #f7f5fb);
  min-height: 48px;
}
body #modalMount .modal-content .form-control:focus,
body #modalMount .modal-content .form-select:focus { border-color: var(--lavender, #e7be6a); box-shadow: none; }
body #modalMount .modal-content .form-label { color: var(--c-muted, #b7aec6); font-size: 12px; font-weight: 600; }
/* buttons — kata .button-lavender / .button-outline */
body #modalMount .btn-grad { border-radius: 8px; font-weight: 650; box-shadow: none; }
body #modalMount .btn-ghost,
body #modalMount .btn-lime-soft { border-radius: 8px; border: 1px solid var(--c-line, #443b53); background: transparent; color: var(--text, #f7f5fb); }
/* segmented tabs — kata .slip-tabs */
body #modalMount .seg { background: var(--c-bg, #1b1525); border: 1px solid var(--c-line, #473c58); border-radius: 8px; padding: 4px; }
body #modalMount .seg button { border-radius: 6px; color: var(--c-muted, #cbc3d9); font-weight: 600; }
body #modalMount .seg button.active { background: var(--lavender, #e7be6a); color: #121016; }
body #modalMount .tab-pill { border-radius: 8px; background: var(--surface-2, #282233); border-color: var(--c-line, #3a3247); color: var(--c-muted, #b7aec6); }
body #modalMount .tab-pill.active { background: var(--lavender, #e7be6a); color: #121016; }
body #modalMount .coin-btn,
body #modalMount .quick { border-radius: 8px; background: var(--surface-2, #261f31); border-color: var(--c-line, #4f4560); }
body #modalMount .card-panel { background: var(--surface-2, #282233); border-color: var(--c-line, #3a3247); border-radius: 12px; }
/* backdrop — kata dialog::backdrop */
body .modal-backdrop { --bs-backdrop-bg: #110c19; --bs-backdrop-opacity: 0.76; backdrop-filter: blur(7px); }

/* Auth dialog: platform security check (captcha image + refresh) + forgot note. */
.auth-captcha { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.auth-captcha img { height: 48px; width: auto; border-radius: 8px; border: 1px solid #4f4560; background: #261f31; }
.auth-captcha .icon-button { border: 1px solid #4f4560; border-radius: 8px; width: 40px; height: 40px; }
.auth-turnstile { margin: 4px 0 10px; }
.auth-forgot-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
/* kata's .checkbox-label{display:flex} overrode [hidden] (register-only terms showed on login) */
#auth-dialog [hidden] { display: none !important; }

/* "+N markets" dialog: every market of the event (platform board). */
.mk-block { margin-top: 16px; }
.mk-block h3 { font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mk-grid .odd { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; }
.mk-grid .odd span { white-space: normal; text-align: start; font-size: 12px; line-height: 1.3; }
#info-dialog .info-dialog, #info-content { max-height: 70vh; overflow: auto; }
.sports-league-list small, .league-link small { opacity: .6; font-size: 10px; margin-inline-start: 4px; }

/* Sport page league list: every league of the sport (main-theme order), scrollable. */
#sports-top-leagues { max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
#sports-top-leagues .league-link { display: flex; align-items: center; gap: 8px; width: 100%; text-align: start; }
#sports-top-leagues .league-link span { flex: 1; min-width: 0; }
#sports-top-leagues .league-link.active { color: var(--lavender); }

/* Tenant logo (Manage Casino upload) in place of the kata orbit mark. */
/* uploaded logos usually carry transparent padding (betforward: 200x90) — size by
   height to fill the 62px header like main (45px+), never wider than 220px */
.brand .brand-logo { display: block; height: 54px; width: auto; max-width: 220px; object-fit: contain; }
.footer .brand .brand-logo { height: 64px; }
.auth-art .brand .brand-logo, .menu-heading .brand .brand-logo { height: 50px; }
@media (max-width: 760px) { .header .brand .brand-logo { height: 46px; max-width: 160px; } }
/* Team logos uploaded on the platform (SportsbookI18n::teamLogo), like main. */
img.team-logo { object-fit: contain; border-radius: 50%; background: #15101d; }

/* /privacy (platform terms page) in the kata article layout */
.privacy-prose { max-width: 850px; margin: 0 auto; }
.privacy-help { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.auth-legal a { color: var(--lavender); }

/* Footer like the main theme: operator link columns + "Accepted" payments column. */
.footer { grid-template-columns: 1.4fr repeat(var(--footer-cols, 4), minmax(0, 1fr)) 1.9fr; }
@media (max-width: 900px) and (min-width: 761px) {
  .footer { grid-template-columns: 1.2fr repeat(var(--footer-cols, 4), minmax(0, 1fr)) 1.6fr; }
}
@media (max-width: 760px) {
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.footer-pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.footer-pay-logos img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; }

/* Help FAQ (platform Support FAQs) — inline accordion like the main theme */
.help-faq + .help-faq { margin-top: 8px; }
.help-faq-answer { padding: 12px 16px 16px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.help-article-button.open svg:last-child { transform: rotate(90deg); }

/* Sport page: league dropdown replaces the (hidden) league sidebar on mobile. */
.mobile-league-select { display: none; }
@media (max-width: 760px) {
  .mobile-league-select { display: block; margin: 0 0 14px; }
  .mobile-league-select select { width: 100%; }
}

/* ---- SEO (Manage Casino → SEO) -------------------------------------------
   Page titles are a <div class="seo-h1"> (like the main theme, the page <h1> comes
   from the managed SEO block) — same look as the .interior-heading h1 it replaces. */
.interior-heading .seo-h1 { margin: 0; letter-spacing: -0.035em; display: flex; align-items: center; gap: 12px; font-size: 38px; line-height: 1.15; font-weight: 750; }
.interior-heading .seo-h1 svg { color: var(--lavender); width: 29px; height: 29px; margin-bottom: 15px; }
.sports-board .interior-heading .seo-h1 { font-size: 34px; }
.sports-board .interior-heading .seo-h1 svg,
.bonus-intro .interior-heading .seo-h1 svg { display: none; }
@media (max-width: 1250px) { .interior-heading .seo-h1 { font-size: 33px; } }
@media (max-width: 760px) {
  .interior-heading .seo-h1 { font-size: 29px; gap: 9px; }
  .interior-heading .seo-h1 svg { width: 25px; height: 25px; }
  .sports-board .interior-heading .seo-h1,
  .bonus-intro .interior-heading .seo-h1 { font-size: 30px; }
}
/* the shared SEO text block (core seoBlockAssets) styled like the theme's cards
   (support card / pay strip), with room before the footer */
.main .seo-page-block { background: linear-gradient(115deg, #251f30, #1e1927); border: 1px solid #382f48; border-radius: 12px; margin-bottom: 32px; }
.main .seo-page-block .seo-page-h1 { color: var(--text); }
.main .seo-pb-text { color: var(--muted); }
.main .seo-pb-more { color: var(--lavender); }

/* ---- Top-of-page banners removed (casino / bonuses / help): the intro is just
   the page title, and the help search box stands on its own. */
.catalog-intro { display: block; min-height: 0; }
.help-search { margin: 0 0 20px; }
.help-search .search-box { max-width: 780px; height: 52px; }

/* ---- Bonus cards without artwork: no atlas image, the card's own colours. */
body .bonus-card-art { background: none; color: var(--text); min-height: 0; border-bottom: 1px solid #423952; }
body .bonus-card-art::before,
body .bonus-card-art::after { display: none; }
body .bonus-card-art h2,
body .bonus-card-art p { max-width: none; }
body .bonus-card-art .eyebrow { color: var(--lavender); }

/* ---- Home hero: smaller slide titles (the kata 74px headline was too big). */
.hero-copy h2 { font-size: clamp(26px, 2.8vw, 44px); line-height: 1.15; }
@media (max-width: 760px) { .hero-copy h2 { font-size: 28px; } }
@media (max-width: 380px) { .hero-copy h2 { font-size: 25px; } }

/* ---- Uploaded banners (Theme Config images, .has-custom-bg): white copy on a
   dark readability gradient behind the text side (right in RTL, left in LTR),
   instead of the kata's dark ink / lavender wash meant for its own artwork. */
body .hero-main.has-custom-bg,
body .promo-card.has-custom-bg { color: #fff; background-color: #140f1c; background-size: cover; background-position: center; }
body .hero-main.has-custom-bg::before,
body .promo-card.has-custom-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 10, 20, .82) 0%, rgba(6, 10, 20, .55) 45%, rgba(6, 10, 20, 0) 80%);
}
html[dir="rtl"] .hero-main.has-custom-bg::before,
html[dir="rtl"] .promo-card.has-custom-bg::before {
  background: linear-gradient(270deg, rgba(6, 10, 20, .82) 0%, rgba(6, 10, 20, .55) 45%, rgba(6, 10, 20, 0) 80%);
}
body .hero-main.has-custom-bg .hero-copy,
body .promo-card.has-custom-bg > div { position: relative; z-index: 1; }
body .hero-main.has-custom-bg h2,
body .hero-main.has-custom-bg .eyebrow,
body .hero-main.has-custom-bg .hero-description,
body .promo-card.has-custom-bg h2,
body .promo-card.has-custom-bg p { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
body .promo-card.has-custom-bg .circle-arrow { color: #fff; border-color: rgba(255, 255, 255, .7); }
body .hero-main.has-custom-bg .hero-dots button { background: rgba(255, 255, 255, .45); }
body .hero-main.has-custom-bg .hero-dots button.active { background: #fff; }

/* ---- Login / register dialog: no artwork panel, just the form. */
.auth-dialog { width: min(560px, calc(100vw - 32px)); }
.auth-dialog[open] { display: block; }
.auth-dialog .auth-art { display: none; }

/* ---- Bet slip quick stakes: as many equal buttons as the settings give (3). */
.stake-presets { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* ---- Kata wallet window on the real platform (finance.js, #finance-dialog). ---- */
#finance-dialog.cf-real .cf-back { margin: -8px 0 16px; font-size: 12px; color: var(--lavender); padding: 0; }
#finance-dialog.cf-real .cf-accent { color: var(--lavender); }
#finance-dialog.cf-real .wallet-total.cf-sm { margin-bottom: 18px; }
#finance-dialog.cf-real .wallet-total.cf-sm > strong { font-size: 26px; }
#finance-dialog.cf-real .cf-links { display: flex; gap: 18px; margin: -10px 0 18px; }
#finance-dialog.cf-real .cf-links .text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 0; }
#finance-dialog.cf-real .cf-links svg { width: 16px; height: 16px; color: var(--lavender); }
#finance-dialog.cf-real .wallet-assets { margin-top: 14px; }
#finance-dialog.cf-real .wallet-asset .coin { display: inline-flex; align-items: center; justify-content: center; color: #121016; }
#finance-dialog.cf-real .wallet-asset .coin svg { width: 16px; height: 16px; }
#finance-dialog.cf-real .wallet-asset .cf-coin-bonus { background: var(--peach, #ffb698); }
#finance-dialog.cf-real .wallet-asset .cf-coin-wd { background: var(--pink, #ef7ca9); }
#finance-dialog.cf-real .finance-tabs { margin-bottom: 18px; }
#finance-dialog.cf-real .finance-tabs + .finance-note,
#finance-dialog.cf-real .finance-note + .finance-form,
#finance-dialog.cf-real .finance-note + form { margin-top: 0; }
#finance-dialog.cf-real .finance-tabs + .finance-note { margin-bottom: 18px; }
#finance-dialog.cf-real .finance-form { grid-template-columns: minmax(0, 1fr); }
#finance-dialog.cf-real .finance-form > * { min-width: 0; }
#finance-dialog.cf-real .finance-form .input-suffix > span { color: #b5abc5; font-size: 13px; white-space: nowrap; }
#finance-dialog.cf-real .cf-limits { margin: -8px 0 0; }
#finance-dialog.cf-real .finance-methods button small { color: var(--lavender); }
#finance-dialog.cf-real .finance-presets button { font-variant-numeric: tabular-nums; }
/* crypto address: a real QR (the kata .qr-preview masks its centre for the logo) */
#finance-dialog.cf-real .cf-qr { width: 200px; height: 200px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#finance-dialog.cf-real .cf-qr img { display: block; width: 176px; height: 176px; }
#finance-dialog.cf-real .cf-qr[hidden] { display: none; }
#finance-dialog.cf-real .cf-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #d0c09e; border-top-color: var(--lavender); animation: cf-spin 0.9s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #finance-dialog.cf-real .cf-spin { animation: none; } }
#finance-dialog.cf-real .masked-address { direction: ltr; text-align: left; color: #ece8f2; }
#finance-dialog.cf-real .cf-status { text-align: center; margin: 0; }
/* card-to-card / profile / tips */
#finance-dialog.cf-real .cf-card { direction: ltr; letter-spacing: 2px; font-size: 18px; }
#finance-dialog.cf-real .cf-upload { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 14px; border: 1px dashed #534865; border-radius: 9px; background: #1f182b; color: #b5abc5; font-size: 12px; cursor: pointer; }
#finance-dialog.cf-real .cf-upload svg { width: 18px; height: 18px; color: var(--lavender); }
#finance-dialog.cf-real .cf-receipt { max-width: 100%; max-height: 180px; border-radius: 9px; border: 1px solid #534865; }
#finance-dialog.cf-real .cf-inline { display: flex; gap: 8px; align-items: stretch; }
#finance-dialog.cf-real .cf-inline > input { flex: 1 1 auto; min-width: 0; }
#finance-dialog.cf-real .cf-inline > .button { flex: none; min-height: 49px; padding: 0 18px; }
#finance-dialog.cf-real .finance-form > label > input + .cf-inline { margin-top: 0; }
#finance-dialog.cf-real .cf-gap { margin-top: 18px; }
#finance-dialog.cf-real .cf-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
#finance-dialog.cf-real .cf-profile strong { display: block; font-size: 19px; }
#finance-dialog.cf-real .cf-profile span { font-size: 12px; color: #b5abc5; }
#finance-dialog.cf-real .cf-avatar { position: relative; flex: none; width: 66px; height: 66px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: var(--lavender); background: #282233 center/cover no-repeat; border: 1px solid #463b58; cursor: pointer; }
#finance-dialog.cf-real .cf-avatar-edit { position: absolute; bottom: -6px; inset-inline-end: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--lavender); color: #121016; display: flex; align-items: center; justify-content: center; }
#finance-dialog.cf-real .cf-avatar-edit svg { width: 14px; height: 14px; }
#finance-dialog.cf-real .cf-danger { color: #ff8a8a; border-color: rgba(255, 90, 90, 0.35); margin-top: 18px; }
#finance-dialog.cf-real .button.full-width { width: 100%; justify-content: center; }
/* bonuses tab */
#finance-dialog.cf-real .cf-bonus-list { display: grid; gap: 10px; margin-top: 14px; }
#finance-dialog.cf-real .cf-bonus { padding: 14px; border: 1px solid #463b58; border-radius: 9px; background: #282034; display: grid; gap: 8px; }
#finance-dialog.cf-real .cf-bonus-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#finance-dialog.cf-real .cf-bonus-top strong { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
#finance-dialog.cf-real .cf-bonus-top svg { width: 17px; height: 17px; color: var(--lavender); }
#finance-dialog.cf-real .cf-bonus-row { display: flex; justify-content: space-between; font-size: 12px; color: #b5abc5; }
#finance-dialog.cf-real .cf-bonus small { font-size: 11px; color: #b5abc5; }
#finance-dialog.cf-real .cf-progress { height: 6px; border-radius: 6px; background: #ffffff14; overflow: hidden; }
#finance-dialog.cf-real .cf-progress i { display: block; height: 100%; background: var(--lavender); }
#finance-dialog.cf-real .cf-inline-btn { margin-inline-start: auto; flex: none; min-height: 30px; padding: 5px 10px; font-size: 11px; }
#finance-dialog.cf-real .finance-note > span { flex: 1 1 auto; }
#finance-dialog.cf-real .finance-note:has(.cf-inline-btn) { align-items: center; }
#finance-dialog.cf-real .finance-note:has(.cf-inline-btn) > span { display: flex; align-items: center; gap: 10px; }
#finance-dialog.cf-real .wallet-empty { text-align: center; padding: 22px 8px; font-size: 13px; color: #b5abc5; }
/* transactions */
#finance-dialog.cf-real .cf-tx-toolbar { grid-template-columns: minmax(0, 1fr); }
#finance-dialog.cf-real .tx-status.cf-bad { background: rgba(255, 92, 92, 0.15); color: #ff8a8a; }
#finance-dialog.cf-real .tx-amount { white-space: nowrap; }
@media (max-width: 760px) {
  #finance-dialog.cf-real .cf-qr { width: 190px; height: 190px; }
  #finance-dialog.cf-real .deposit-address-layout { grid-template-columns: 1fr; justify-items: center; }
  #finance-dialog.cf-real .address-controls { width: 100%; }
}

/* ---- Live chat + referral views and the rules list (finance.js). ---- */
#finance-dialog.cf-real .cf-online { display: flex; align-items: center; gap: 8px; margin: -14px 0 16px; font-size: 12px; color: #b5abc5; }
#finance-dialog.cf-real .cf-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 0 4px #ffffff10; }
#finance-dialog.cf-real .cf-chat { border: 1px solid #4b415c; border-radius: 9px; background: #282134; padding: 14px; }
#finance-dialog.cf-real .cf-chat-log { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; scrollbar-width: thin; }
#finance-dialog.cf-real .cf-msg-row { display: flex; gap: 8px; max-width: 85%; }
#finance-dialog.cf-real .cf-agent { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1f182b; border: 1px solid #4e4360; color: var(--lavender); }
#finance-dialog.cf-real .cf-agent svg { width: 16px; height: 16px; }
#finance-dialog.cf-real .cf-msg { background: #1f182b; border: 1px solid #4e4360; border-radius: 12px 12px 12px 4px; padding: 9px 13px; font-size: 13px; line-height: 1.6; color: #ece8f2; word-break: break-word; }
#finance-dialog.cf-real .cf-msg.mine { align-self: flex-end; max-width: 78%; background: var(--lavender); border-color: var(--lavender); color: #121016; border-radius: 12px 12px 4px 12px; font-weight: 500; }
#finance-dialog.cf-real .cf-chat-img { display: block; max-width: 180px; max-height: 180px; border-radius: 8px; }
#finance-dialog.cf-real .cf-chat-file { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--lavender); }
#finance-dialog.cf-real .cf-chat-file[hidden] { display: none; }
#finance-dialog.cf-real .cf-chat-form { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
#finance-dialog.cf-real .cf-chat-form > input { flex: 1 1 auto; min-width: 0; min-height: 49px; border: 1px solid #524764; border-radius: 8px; padding: 12px 14px; background: #261e33; color: #ece8f2; font-size: 14px; }
#finance-dialog.cf-real .cf-chat-attach { flex: none; width: 49px; height: 49px; border: 1px solid #524764; cursor: pointer; }
#finance-dialog.cf-real .cf-chat-send { flex: none; width: 54px; min-height: 49px; padding: 0; justify-content: center; }
#finance-dialog.cf-real .cf-chat-login { display: grid; gap: 10px; margin-top: 16px; text-align: center; }
#finance-dialog.cf-real .wallet-breakdown.cf-four { grid-template-columns: repeat(4, 1fr); }
#finance-dialog.cf-real .cf-ref-tabs { margin: 10px 0; }
#finance-dialog.cf-real .cf-ref-chips { margin: 0 0 12px; grid-template-columns: repeat(5, 1fr); }
#finance-dialog.cf-real .cf-ref-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#finance-dialog.cf-real .cf-ref-side b { font-size: 11px; }
#finance-dialog.cf-real .cf-error { color: #ff8a8a; }
#finance-dialog.cf-real .cf-error[hidden] { display: none; }
#info-dialog .cf-rules { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
#info-dialog .cf-rules li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #463b58; border-radius: 9px; background: #282034; font-size: 13px; line-height: 1.6; }
#info-dialog .cf-rules li svg { width: 16px; height: 16px; flex: none; color: var(--lavender); margin-top: 3px; }
#info-dialog .cf-error { color: #ff8a8a; font-size: 12px; }
#info-dialog .cf-error[hidden] { display: none; }
@media (max-width: 760px) {
  #finance-dialog.cf-real .wallet-breakdown.cf-four { grid-template-columns: repeat(2, 1fr); }
  #finance-dialog.cf-real .cf-ref-chips { grid-template-columns: repeat(3, 1fr); }
}
