/* JTL Auto: styles shared by the sign-up/login pages, the member app and the admin pages.
   Builds on style.css (same colours, fonts, buttons). */

.auto-switch { display: flex; background: var(--off-white); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 26px; }
.auto-switch a { flex: 1; text-align: center; padding: 9px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--gray); text-decoration: none; }
.auto-switch a.on { background: var(--white); color: var(--black); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.hint { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* ---- member app shell ---- */
.auto-app { background: var(--off-white); min-height: 100vh; }
.auto-app .site-header .site-nav a.tab { padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.auto-app .site-header .site-nav a.tab.on { background: #eaf1ff; color: var(--blue); }
.auto-main { max-width: var(--max-width); margin: 0 auto; padding: 28px 24px 110px; }
.auto-main h1 { font-size: 26px; margin: 0 0 2px; }
.auto-main .sub { color: var(--gray); margin: 0 0 18px; }
.auto-view { display: none; padding: 0; text-align: left; }
.auto-view.on { display: block; }

.cardx { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--off-white); border-radius: 12px; padding: 12px 14px; }
.stat .l { color: var(--gray); font-size: 12px; }
.stat .v { font-size: 22px; font-weight: 800; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.muted { color: var(--gray); }
.pos { color: #15803d; } .neg { color: #dc2626; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.g { background: #e8f7ee; color: #15803d; } .pill.a { background: #fff4e0; color: #b45309; }
.pill.m { background: #eef0f4; color: #4b5563; } .pill.r { background: #fde8e8; color: #b91c1c; } .pill.b { background: #eaf1ff; color: #1d4ed8; }

/* setup steps */
.astep { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); text-align: left; }
.astep:last-child { border-bottom: 0; }
.anum { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--off-white); border: 1px solid var(--border); flex: none; font-size: 14px; color: var(--gray); }
.anum.done { background: var(--green); color: #fff; border: 0; } .anum.now { background: var(--blue); color: #fff; border: 0; }
.bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; background: var(--blue); transition: width .4s var(--ease); }
.code { background: var(--black); color: #9fd0ff; border-radius: 12px; padding: 12px 14px; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; margin-top: 8px; }
.code b { color: #fff; }
.video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--black); margin: 10px 0; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }
.step-body { white-space: pre-line; color: #374151; font-size: 14px; margin: 4px 0 10px; }
.detail { display: none; }
.astep.open .detail { display: block; }

/* toggle */
.tg { width: 48px; height: 28px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; position: relative; flex: none; background: #cbd2dc; transition: background .2s; }
.tg span { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s; }
.tg.on { background: var(--green); } .tg.on span { left: 24px; }

/* segmented tabs inside a view */
.seg { display: flex; background: #e9edf3; border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button { flex: 1; font: inherit; font-size: 13px; font-weight: 700; padding: 8px; border-radius: 999px; border: 0; background: transparent; color: var(--gray); cursor: pointer; }
.seg button.on { background: #fff; color: var(--black); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }

/* phone bottom nav */
.bottom-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--border); padding: 8px 0 max(12px, env(safe-area-inset-bottom)); justify-content: space-around; }
.bottom-nav a { font-size: 11px; color: var(--gray); text-align: center; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 600; text-decoration: none; }
.bottom-nav a.on { color: var(--blue); }
.bottom-nav svg { width: 22px; height: 22px; }

/* small buttons */
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 999px; }
.btn-outline-dark { background: transparent; color: var(--black); border: 1px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: var(--red); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50; }
.toast.on { opacity: 1; }

.banner { background: #eaf1ff; color: #1d4ed8; border: 1px solid #c7d7ff; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.banner.warn { background: #fff4e0; color: #b45309; border-color: #ffe0a8; }
.banner.danger { background: #fde8e8; color: #b91c1c; border-color: #f5c2c2; }

/* admin */
.admin-grid { display: flex; min-height: calc(100vh - 76px); }
.admin-side { width: 210px; background: var(--black); color: #fff; padding: 22px 14px; flex: none; }
.admin-side a { display: block; padding: 10px 12px; border-radius: 10px; color: #9ca3af; margin-bottom: 2px; font-size: 15px; font-weight: 600; text-decoration: none; }
.admin-side a.on { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-body { flex: 1; min-width: 0; padding: 28px 32px; background: var(--off-white); }
.admin-body h1 { font-size: 26px; margin: 0 0 16px; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { color: var(--gray); text-align: left; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 12px; white-space: nowrap; }
table.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.act { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--border); background: #fff; color: var(--black); border-radius: 999px; padding: 6px 12px; cursor: pointer; margin: 2px 4px 2px 0; }
.act.p { background: var(--blue); border-color: var(--blue); color: #fff; }
.act.d { background: var(--red); border-color: var(--red); color: #fff; }
.act:disabled { opacity: .5; cursor: not-allowed; }
.kill { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid #f5b5b5; }
.kill.on { background: #fde8e8; }
.kb { font: inherit; font-size: 15px; font-weight: 800; border: 0; border-radius: 999px; padding: 14px 24px; cursor: pointer; color: #fff; background: var(--red); white-space: nowrap; }
.kb.on { background: var(--green); }
textarea.in, input.in, select.in { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 15px; font-family: inherit; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: #374151; cursor: pointer; }
.tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 820px) {
  .auto-app .site-header .site-nav { display: none !important; }
  .auto-app .nav-toggle { display: none !important; }
  .bottom-nav { display: flex; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2.stack { grid-template-columns: minmax(0, 1fr); }
  .admin-grid { flex-direction: column; }
  .admin-side { width: auto; display: flex; gap: 4px; overflow-x: auto; padding: 10px; }
  .admin-side a { white-space: nowrap; padding: 8px 12px; }
  .admin-body { padding: 18px 16px; }
  .tbl-wrap { overflow-x: auto; }
}

/* ---------- light / dark mode (dark = the original navy + blue) ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--border-dark); background: transparent; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; transition: border-color .2s, transform .3s var(--ease); }
.theme-toggle:hover { border-color: var(--blue-light); transform: rotate(20deg); }
.bottom-nav .theme-toggle { width: auto; height: auto; border: 0; font-size: 20px; color: var(--gray); }

[data-theme="dark"] { --white: #121826; --off-white: #0a0e17; --border: rgba(255, 255, 255, 0.1); --gray: #9aa4b2; --shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
[data-theme="dark"] body, [data-theme="dark"] .auto-app { background: #0a0e17; color: #f2f3f5; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] b { color: #f2f3f5; }
[data-theme="dark"] .form-card, [data-theme="dark"] .cardx, [data-theme="dark"] .bottom-nav, [data-theme="dark"] .admin-body .cardx { background: #121826; border-color: rgba(255, 255, 255, 0.1); color: #f2f3f5; }
[data-theme="dark"] .admin-body { background: #0a0e17; }
[data-theme="dark"] .stat { background: #0a0e17; }
[data-theme="dark"] .section-header p, [data-theme="dark"] .muted, [data-theme="dark"] .hint, [data-theme="dark"] .form-row label, [data-theme="dark"] .checkbox-row, [data-theme="dark"] .stat .l, [data-theme="dark"] label { color: #9aa4b2; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea, [data-theme="dark"] .in { background: #0a0e17; color: #f2f3f5; border-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .auto-switch, [data-theme="dark"] .seg { background: #0a0e17; }
[data-theme="dark"] .auto-switch a.on, [data-theme="dark"] .seg button.on { background: #1f2a44; color: #fff; }
[data-theme="dark"] .auto-app .site-header .site-nav a.tab.on { background: rgba(37, 99, 235, 0.25); color: #93b4ff; }
[data-theme="dark"] .code { background: #05070b; }
[data-theme="dark"] .btn-outline-dark, [data-theme="dark"] .act { background: #121826; color: #f2f3f5; border-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .act.p { background: var(--blue); border-color: var(--blue); } [data-theme="dark"] .act.d { background: var(--red); border-color: var(--red); }
[data-theme="dark"] .tabs button { background: #121826; color: #c7cdd8; border-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .tabs button.on { background: var(--blue); color: #fff; }
[data-theme="dark"] table.tbl th { color: #9aa4b2; } [data-theme="dark"] table.tbl td, [data-theme="dark"] table.tbl th { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .pill.g { background: rgba(46, 204, 113, .15); color: #3fdc82; } [data-theme="dark"] .pill.a { background: rgba(245, 165, 36, .15); color: #f5b544; }
[data-theme="dark"] .pill.m { background: rgba(154, 156, 165, .15); color: #b4b6bf; } [data-theme="dark"] .pill.r { background: rgba(255, 93, 93, .15); color: #ff7070; } [data-theme="dark"] .pill.b { background: rgba(77, 131, 255, .18); color: #8fb0ff; }
[data-theme="dark"] .banner { background: rgba(37, 99, 235, .15); color: #93b4ff; border-color: rgba(37, 99, 235, .4); }
[data-theme="dark"] .banner.warn { background: rgba(245, 165, 36, .12); color: #f5b544; border-color: rgba(245, 165, 36, .35); }
[data-theme="dark"] .banner.danger { background: rgba(255, 93, 93, .12); color: #ff7070; border-color: rgba(255, 93, 93, .35); }
[data-theme="dark"] .form-message.success { background: rgba(46, 204, 113, .12); color: #3fdc82; border-color: rgba(46, 204, 113, .3); }
[data-theme="dark"] .form-message.error { background: rgba(255, 93, 93, .12); color: #ff7070; border-color: rgba(255, 93, 93, .3); }
[data-theme="dark"] .num, [data-theme="dark"] .anum { background: #0a0e17; border-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .bar { background: #0a0e17; }
[data-theme="dark"] .row { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .astep { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .step-body { color: #c7cdd8; }
[data-theme="dark"] .kill { border-color: rgba(255, 93, 93, .4); } [data-theme="dark"] .kill.on { background: rgba(255, 93, 93, .12); }
[data-theme="dark"] .btn-primary { color: #fff; }
[data-theme="dark"] .a2-card { color: #f2f3f5; }
[data-theme="dark"] .act-menu { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
[data-theme="dark"] .act-menu .mi { color: #f2f3f5; }
[data-theme="dark"] .act-menu .mi.danger { color: #ff7070; }
[data-theme="dark"] button.a2-alt { color: #93b4ff; }
[data-theme="dark"] .a2-tabs button.on { background: #1f2a44; color: #fff; }
[data-theme="dark"] .toast { background: #fff; color: #0a0e17; }
[data-theme="dark"] .pos { color: #3fdc82; } [data-theme="dark"] .neg { color: #ff7070; }
[data-theme="dark"] .site-header .brand-name, [data-theme="dark"] .site-nav a:not(.btn), [data-theme="dark"] .nav-toggle { color: #fff; }

/* Admin followers: keep action buttons inside the table width */
#followers-table { font-size: 13px; }
#followers-table th, #followers-table td { padding: 8px 6px; }
#followers-table th { white-space: normal; }
#followers-table td.acts-cell { min-width: 172px; white-space: normal; }
#followers-table td.acts-cell .acts-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.setup-prog { margin-top: 8px; width: 112px; }
.setup-prog .segs { display: flex; gap: 3px; }
.setup-prog .segs i { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.setup-prog .segs i.d { background: var(--green); }
.setup-prog .segs i.c { background: var(--blue); }
.setup-prog .lbl { font-size: 12px; color: var(--gray); margin-top: 4px; line-height: 1.3; white-space: normal; }
.setup-prog.done .lbl { color: #16a34a; }
[data-theme="dark"] .setup-prog .segs i { background: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .setup-prog .segs i.d { background: var(--green); } [data-theme="dark"] .setup-prog .segs i.c { background: var(--blue); }
[data-theme="dark"] .setup-prog.done .lbl { color: #3fdc82; }
.name-link { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.name-link:hover { text-decoration: underline; }
#followers-table td.acts-cell .act { margin: 0; }
.act-more { display: inline-flex; align-items: center; gap: 6px; }
.act-more .caret { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .15s; }
.act-more[aria-expanded="true"] { border-color: var(--blue); }
.act-more[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 3px; }
.act-menu { position: fixed; z-index: 900; overflow-y: auto; overscroll-behavior: contain; min-width: 210px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18); }
.act-menu .mi { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--black); background: none; border: 0; border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.act-menu .mi:hover, .act-menu .mi:focus-visible { background: var(--off-white); outline: none; }
.act-menu .mi.danger { color: var(--red); }
.act-menu .mi.danger:hover, .act-menu .mi.danger:focus-visible { background: rgba(220, 38, 38, 0.1); }
.act-menu .mi-sep { height: 1px; background: var(--border); margin: 6px 4px; }
#followers-table input { width: 50px !important; padding: 6px !important; }
#followers-table .act { padding: 5px 10px; }
#followers-table .pill { padding: 3px 9px; }

/* ---- Add to home screen pop-up ---- */
.a2-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 8, 15, 0.62); display: none; align-items: flex-end; justify-content: center; padding: 0; }
.a2-wrap.on { display: flex; }
.a2-card { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: var(--white); color: var(--black); border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35); }
@media (min-width: 560px) { .a2-wrap { align-items: center; } .a2-card { border-radius: 22px; } }
.a2-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--off-white); color: var(--gray); font-size: 24px; line-height: 1; cursor: pointer; }
.a2-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.a2-head img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.a2-head h3 { padding-right: 38px; margin: 0 0 4px; font-size: 18px; line-height: 1.2; }
.a2-head p { margin: 0; font-size: 14px; color: var(--gray); line-height: 1.4; }
.a2-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.a2-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; align-items: start; background: var(--off-white); border-radius: 14px; padding: 12px; }
.a2-n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.a2-t b { display: block; font-size: 15px; }
.a2-t span { font-size: 13px; color: var(--gray); }
.a2-art { grid-column: 2; margin-top: 6px; }
.a2-bar { display: flex; justify-content: space-around; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 8px 6px; color: var(--gray); }
.a2-bar > span { width: 26px; height: 26px; border-radius: 6px; background: rgba(128, 138, 160, 0.2); display: flex; align-items: center; justify-content: center; }
.a2-bar.a2-top { justify-content: space-between; padding: 8px 10px; }
.a2-url { flex: 1; text-align: left; font-size: 13px; background: rgba(128, 138, 160, 0.2); border-radius: 999px; padding: 5px 12px; margin-right: 8px; width: auto !important; height: auto !important; display: block !important; }
.a2-hit { background: var(--blue) !important; color: #fff !important; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.28); animation: a2pulse 1.6s ease-in-out infinite; }
@keyframes a2pulse { 50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08); } }
.a2-bar svg { width: 16px; height: 16px; }
.a2-dots { flex-direction: column; gap: 3px; }
.a2-dots i { width: 4px; height: 4px; border-radius: 50%; background: #fff; display: block; }
.a2-list { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 14px; }
.a2-row { color: var(--gray); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.a2-row:last-child { border-bottom: 0; }
.a2-row.a2-hit { box-shadow: none; animation: none; }
.a2-row svg { width: 18px; height: 18px; }
.a2-add { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.a2-add img { width: 38px; height: 38px; border-radius: 9px; }
.a2-add div { flex: 1; font-size: 13px; line-height: 1.3; }
.a2-add b { display: block; } .a2-add span { color: var(--gray); }
.a2-add .a2-btn { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.a2-tabs { display: flex; background: var(--off-white); border-radius: 999px; padding: 4px; gap: 4px; margin: 0 0 12px; }
.a2-tabs button { flex: 1; font: inherit; font-size: 14px; font-weight: 700; padding: 9px; border-radius: 999px; border: 0; background: transparent; color: var(--gray); cursor: pointer; }
.a2-tabs button.on { background: var(--white); color: var(--black); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.a2-one { margin: 0 0 12px; text-align: center; }
.a2-one .btn { margin-bottom: 6px; }
.a2-one p { margin: 0; font-size: 13px; color: var(--gray); }
.a2-alt { display: block; width: 100%; background: none; border: 0; color: var(--blue); font: inherit; font-size: 13px; font-weight: 600; padding: 2px 0 10px; cursor: pointer; text-align: center; }
button.a2-alt-top { padding: 0 0 10px; }
p.a2-alt { color: var(--gray); font-weight: 400; margin: 0 0 4px; cursor: default; }
.a2-ph { margin-right: 8px; }
.a2-hz { flex-direction: row; gap: 3px; }
.a2-dlg { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.a2-add.a2-flat { border: 0; border-radius: 0; background: transparent; }
.a2-dlgb { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 8px 12px 10px; font-size: 13px; color: var(--gray); font-weight: 600; }
.a2-btn { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.a2-note { font-size: 13px; color: var(--gray); margin: 4px 0 14px; text-align: center; }
.a2-card .btn { width: 100%; margin-bottom: 8px; }
.a2-later { display: block; width: 100%; background: none; border: 0; color: var(--gray); font-size: 14px; padding: 10px; cursor: pointer; }

/* Help video (bottom of Setup) */
.hv-card { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(37, 99, 235, .45); border-radius: 14px; cursor: pointer; padding: 0; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #1d4ed8 0%, #0b1730 55%, #070d1c 100%); }
.hv-btn { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: #2563eb; box-shadow: 0 6px 22px rgba(37, 99, 235, .55); }
.hv-btn::after { content: ""; position: absolute; left: 24px; top: 19px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.hv-cap { position: absolute; left: 14px; bottom: 11px; color: #fff; font-weight: 600; font-size: 13px; }
.hv-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }

.stuck-tab { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .35); font-size: 12px; font-weight: 600; color: var(--gray); text-decoration: none; }
.stuck-tab:hover { color: var(--blue, #2563eb); border-color: var(--blue, #2563eb); }

/* Home-screen app (standalone): the status bar is translucent, so push the header below the clock / notch. */
.site-header { padding-top: env(safe-area-inset-top, 0px); }

/* Manual-trade notice: X on the banner, and the "I understand" prompt */
.banner-x-wrap { position: relative; padding-right: 58px !important; line-height: 1.55; }
.banner-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.manual-check { display: flex; gap: 14px; align-items: center; border: 1px solid var(--border, #2a3142); border-radius: 14px; padding: 14px; font-size: 15px; margin-bottom: 14px; cursor: pointer; }
.manual-check input { position: absolute; opacity: 0; pointer-events: none; }
.manual-box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #8b93a7; display: flex; align-items: center; justify-content: center; }
.manual-box svg { opacity: 0; }
.manual-check input:checked + .manual-box { background: #2563eb; border-color: #2563eb; }
.manual-check input:checked + .manual-box svg { opacity: 1; }
#manual-done:disabled { opacity: .45; cursor: not-allowed; }
#manual-modal .manual-p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--gray, #5b6475); }
[data-theme="dark"] #manual-modal .manual-p { color: #aab2c5; }
[data-theme="dark"] #manual-modal .manual-check { color: #e8ecf5; }
#manual-modal #manual-done { color: #fff; background: #2563eb; border-color: #2563eb; }

/* Theme toggle: the tilt-on-hover effect is for the little header icon on desktop only (on phones hover sticks after a tap and leaves it crooked). */
.theme-toggle:hover { transform: none; }
@media (hover: hover) { .theme-toggle:not([data-label]):hover { transform: rotate(20deg); } }
/* The "Switch to dark / light mode" button in Settings: readable in both themes, never tilted. */
.theme-toggle[data-label] { width: auto; height: auto; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--black, #05070d); border: 1px solid var(--border, #d7dce6); background: transparent; transform: none !important; }
[data-theme="dark"] .theme-toggle[data-label] { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.theme-toggle { -webkit-tap-highlight-color: transparent; }

/* R / % switch */
.unit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.unit-seg { margin: 0; flex: none; padding: 3px; }
.unit-seg button { padding: 6px 16px; min-width: 44px; }
.unit-note { font-size: 12px; color: var(--gray, #6b7280); margin-top: 8px; }


/* ---- "turn copying off?" confirmation sheet ---- */
.sheet-bg { position: fixed; inset: 0; background: rgba(5, 7, 13, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; }
.sheet-bg[hidden] { display: none; }
.sheet { width: 100%; max-width: 420px; background: var(--white); color: var(--black); border: 1px solid var(--border); border-radius: 22px; padding: 26px 22px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); text-align: left; animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-icon { width: 44px; height: 44px; border-radius: 50%; background: #fde8e8; color: #b91c1c; font-weight: 900; font-size: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sheet h2 { font-size: 22px; margin: 0 0 10px; }
.sheet p { font-size: 15px; line-height: 1.5; margin: 0 0 10px; color: var(--black); }
.sheet p b { font-weight: 800; }
.sheet .sheet-note { color: var(--gray); font-size: 13.5px; margin: 4px 0 18px; }
.sheet .btn-block { width: 100%; }
.sheet-danger { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: #b91c1c; font: 600 14px/1 "Inter", sans-serif; cursor: pointer; }
.sheet-danger:disabled { color: var(--gray); cursor: default; }
.sheet-danger:not(:disabled):hover { background: #fde8e8; border-color: #f5c2c2; }
[data-theme="dark"] .sheet { background: #121826; color: #f2f3f5; border-color: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] .sheet p { color: #e5e9f0; }
[data-theme="dark"] .sheet .sheet-note { color: #9aa4b2; }
[data-theme="dark"] .sheet-icon { background: rgba(220, 38, 38, 0.18); color: #fca5a5; }
[data-theme="dark"] .sheet-danger { color: #fca5a5; }
[data-theme="dark"] .sheet-danger:disabled { color: #6b7280; }
[data-theme="dark"] .sheet-danger:not(:disabled):hover { background: rgba(220, 38, 38, 0.15); border-color: rgba(220, 38, 38, 0.4); }
@media (max-width: 640px) { .sheet-bg { align-items: flex-end; padding: 0; } .sheet { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } }
.sheet-icon.warn { background: #eaf1ff; color: #1d4ed8; font-size: 18px; }
[data-theme="dark"] .sheet-icon.warn { background: rgba(37, 99, 235, 0.22); color: #93b4ff; }
.sheet .btn-outline-dark.btn-block { width: 100%; }
.risk-locked { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 7px 12px; border-radius: 999px; background: #eaf1ff; color: #1d4ed8; font-weight: 700; font-size: 13px; }
[data-theme="dark"] .risk-locked { background: rgba(37, 99, 235, 0.22); color: #93b4ff; }
input:disabled { opacity: .55; }
.risk-locked[hidden] { display: none; }

/* Admin overview: today at a glance, stuck in setup, IB commission */
.glance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.glance .gl { margin: 0; padding: 14px; }
.gv { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 2px 0; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g3 .cardx { margin: 0; padding: 12px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef2f8; color: #475569; }
.chip.g { background: #dcfce7; color: #166534; } .chip.a { background: #fef3c7; color: #92400e; }
td.warn { color: #b45309; font-weight: 700; } td.neg { font-weight: 700; }
[data-theme="dark"] .chip { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
[data-theme="dark"] .chip.g { background: rgba(34, 197, 94, .18); color: #4ade80; } [data-theme="dark"] .chip.a { background: rgba(245, 158, 11, .18); color: #fbbf24; }
[data-theme="dark"] td.warn { color: #fbbf24; }
@media (max-width: 900px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }

.chip.r { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .chip.r { background: rgba(239, 68, 68, .18); color: #f87171; }

/* Copier health checklist (drop-down) */
.hc { padding: 0; overflow: hidden; }
.hc-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hc-ico { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: #dcfce7; color: #166534; }
.hc.bad .hc-ico { background: #fee2e2; color: #991b1b; }
.hc.bad { border-color: rgba(220, 70, 70, .45); }
.hc-t { flex: 1; min-width: 0; } .hc-t b { display: block; } .hc-t span { font-size: 13px; opacity: .7; }
.hc-car { transition: transform .3s ease; opacity: .6; } .hc.open .hc-car { transform: rotate(180deg); }
.hc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.hc.open .hc-body { grid-template-rows: 1fr; }
.hc-in { overflow: hidden; }
.hc-list { padding: 0 16px 14px; }
.hc-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid rgba(148, 163, 184, .2); font-size: 14px; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.hc.open .hc-row { opacity: 1; transform: none; }
.hc-row i { flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: #dcfce7; color: #166534; }
.hc-row.bad i { background: #fee2e2; color: #991b1b; } .hc-row .fix { font-size: 13px; opacity: .8; margin-top: 2px; }
.hc-foot { padding: 0 16px 14px; }

/* Losing streak note */
.streak { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .08); position: relative; }
.streak .sx { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: inherit; opacity: .6; font-size: 18px; cursor: pointer; padding: 6px 10px; }
.streak ul { margin: 8px 0 12px 18px; padding: 0; font-size: 14px; }

.sd-hero { text-align: center; padding: 24px 20px; }
.sd-hero h2 { margin: 0 0 4px; font-size: 24px; }
.sd-ok { width: 64px; height: 64px; border-radius: 50%; background: rgba(34, 197, 94, .15); color: #16a34a; display: grid; place-items: center; font-size: 32px; font-weight: 800; margin: 0 auto 14px; box-shadow: 0 0 0 8px rgba(34, 197, 94, .07); }
.sd-chips { margin-top: 12px; }
.sd-chip { display: inline-block; padding: 6px 12px; border-radius: 99px; background: rgba(34, 197, 94, .14); color: #16a34a; font-size: 13px; font-weight: 700; margin: 4px 3px; }
.sd-chip.bad { background: rgba(239, 68, 68, .14); color: #dc2626; }
[data-theme="dark"] .sd-ok, [data-theme="dark"] .sd-chip { color: #4ade80; } [data-theme="dark"] .sd-chip.bad { color: #f87171; }

/* Setup: how-to video under each step */
.clip { margin-top: 12px; max-width: 420px; }
.clip-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 14px; border: 1px solid rgba(37, 99, 235, .35); background: rgba(37, 99, 235, .08); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.clip-btn:hover { border-color: var(--blue, #2563eb); }
.clip-ph { position: relative; flex: 0 0 96px; height: 60px; border-radius: 10px; background: #0b1020 center / cover no-repeat; display: block; overflow: hidden; }
.clip-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; background: rgba(8, 11, 18, .38); }
.clip-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .clip-txt b { font-size: 14px; } .clip-txt span { font-size: 12px; color: var(--gray); }
.clip-swap { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--gray); text-decoration: underline; }
.clip-video { display: block; width: 100%; max-width: 420px; border-radius: 12px; background: #000; margin-top: 12px; }
.clip-video.ph { aspect-ratio: 9 / 16; max-height: 70vh; width: auto; max-width: 100%; margin-left: auto; margin-right: auto; }
.clip-video.pc { aspect-ratio: 16 / 9; }

.step-nav { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; font-weight: 700; }
.step-nav a { color: var(--blue); text-decoration: none; padding: 6px 0; }

.flt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.flt-chip { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--gray); cursor: pointer; }
.flt-chip span { opacity: .65; }
.flt-chip.on { border-color: var(--blue); background: rgba(37, 99, 235, .18); color: var(--blue); }
#flt-btn.on { border-color: var(--blue); color: var(--blue); }

.bal-cell { white-space: nowrap; }
.bal { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bal.none { color: var(--gray); font-weight: 600; }
.bal-low { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #fff4e0; color: #b45309; }
[data-theme="dark"] .bal-low { background: rgba(245, 165, 36, .15); color: #f5b544; }
[data-theme="dark"] .flt-chip.on, [data-theme="dark"] #flt-btn.on { color: #93b4ff; border-color: #3b6bff; }
#flt-clear { color: var(--blue); text-decoration: none; }
[data-theme="dark"] #flt-clear { color: #93b4ff; }

/* Trades: winning trades open a detail line with "Share result" */
.trw { border-top: 1px solid rgba(127, 140, 170, 0.18); }
.trw:first-child { border-top: 0; }
.trw-main { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.trw-r { display: flex; align-items: center; gap: 8px; text-align: right; }
.trw-chev { font-size: 20px; line-height: 1; color: #6f7ea8; transition: transform .2s; }
.trw-main.open .trw-chev { transform: rotate(90deg); }
.trw-det { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 10px; padding: 8px 10px 8px 12px; border-radius: 12px; background: rgba(127, 140, 170, 0.09); font-size: 12px; }
.trw-det .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trw-det[hidden] { display: none; }
.trw-share { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: inherit; font: 700 12.5px Inter, sans-serif; cursor: pointer; padding: 6px 4px; }
.sh-sheet { text-align: center; padding-top: 16px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; text-align: left; }
.sh-x { border: 0; background: none; color: inherit; opacity: .6; font-size: 16px; cursor: pointer; padding: 6px; }
.sh-canvas { width: 100%; max-width: 320px; aspect-ratio: 1080 / 1350; border-radius: 16px; box-shadow: 0 24px 60px rgba(47, 107, 255, 0.35); display: block; margin: 0 auto 16px; }
.sh-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-btns .btn { width: 100%; }

/* Tiny currency picker beside a follower's balance (admin). */
select.cur-sel { width: auto; margin-left: 6px; padding: 1px 2px; font-size: 10px; font-weight: 600; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--gray); cursor: pointer; vertical-align: 2px; }
[data-theme="dark"] select.cur-sel { background: #0a0e17; color: #9aa3b2; border-color: rgba(255, 255, 255, 0.14); }

/* On/off switch (Settings: Hide my results). */
.swt { flex: none; width: 46px; height: 28px; border-radius: 999px; border: 0; padding: 0; background: #2a3345; position: relative; cursor: pointer; transition: background .15s; }
.swt span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.swt[aria-checked="true"] { background: #2563eb; }
.swt[aria-checked="true"] span { transform: translateX(18px); }
.swt:focus-visible { outline: 2px solid #5b8cff; outline-offset: 2px; }

/* Calendar (Trades tab) */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { margin-bottom: 4px; text-align: center; font-size: 11px; font-weight: 700; color: var(--gray); }
.cal-d { min-height: 52px; border-radius: 10px; padding: 5px 4px 4px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; background: rgba(15, 23, 42, .04); }
.cal-d span { font-size: 11px; color: var(--gray); font-weight: 600; align-self: flex-start; padding-left: 2px; }
.cal-d b { font-size: 11px; font-weight: 800; letter-spacing: -.2px; }
.cal-d.we { opacity: .55; }
.cal-d.win { background: rgba(22, 163, 74, .16); } .cal-d.win b { color: #16a34a; }
.cal-d.loss { background: rgba(220, 38, 38, .16); } .cal-d.loss b { color: #dc2626; }
.cal-d.flat b { color: var(--gray); }
.cal-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; }
.cal-total b { font-size: 18px; }
[data-theme="dark"] .cal-d { background: rgba(255, 255, 255, .05); }
[data-theme="dark"] .cal-d.win { background: rgba(34, 197, 94, .2); } [data-theme="dark"] .cal-d.win b { color: #4ade80; }
[data-theme="dark"] .cal-d.loss { background: rgba(239, 68, 68, .2); } [data-theme="dark"] .cal-d.loss b { color: #f87171; }
@media (max-width: 420px) { .cal-d { min-height: 46px; } .cal-d b { font-size: 10px; } .cal-grid { gap: 3px; } }
.cal-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: transparent; border: 0; color: inherit; font: inherit; padding: 2px 0; cursor: pointer; text-align: left; }
.cal-t-l { display: flex; flex-direction: column; gap: 2px; } .cal-t-l b { font-size: 16px; } .cal-t-l .muted { font-size: 13px; font-weight: 700; }
.cal-t-l .pos { color: #16a34a; } .cal-t-l .neg { color: #dc2626; }
[data-theme="dark"] .cal-t-l .pos { color: #4ade80; } [data-theme="dark"] .cal-t-l .neg { color: #f87171; }
.cal-chev { font-size: 22px; line-height: 1; transition: transform .2s; color: var(--gray); } .cal.open .cal-chev { transform: rotate(180deg); }
#cal-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .cal-chev { transition: none; } }
/* The Affiliate tab is hidden for everyone who is not an affiliate; the bar's own display rule must not override that. */
.bottom-nav a[hidden], .site-nav a[hidden] { display: none !important; }

/* ---- Affiliate dashboard (in-app) ---- */
#view-affiliate .sub{color:var(--muted,#8a93a6);margin:2px 0 14px}
.af-seg{display:flex;gap:4px;padding:4px;border-radius:12px;background:rgba(127,127,127,.12);margin-bottom:14px}
.af-seg button{flex:1;border:0;background:transparent;color:inherit;padding:9px 0;border-radius:9px;font:inherit;font-weight:600;font-size:14px;opacity:.65;cursor:pointer}
.af-seg button.on{background:var(--card,#1b2030);opacity:1;box-shadow:0 0 0 1px rgba(127,127,127,.25)}
.af-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.af-g{color:#2fbf71}
.af-sub{font-size:13px;color:var(--muted,#8a93a6)}
.af-sec{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#8a93a6);margin:18px 2px 8px}
.af-h2{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.af-link{display:flex;justify-content:space-between;align-items:center;gap:12px}
.af-link code{display:block;font-size:14px;word-break:break-all}
.af-bars{display:flex;align-items:flex-end;gap:3px;height:90px}
.af-bars i{flex:1;min-width:3px;border-radius:3px 3px 0 0;background:#2fbf71;opacity:.85}
.af-note{font-size:12.5px;color:var(--muted,#8a93a6);margin:14px 2px}
.af-big{font-size:34px;font-weight:700;margin:2px 0 4px;color:#2fbf71}
.af-mo{display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid rgba(127,127,127,.18)}
.af-mo:first-child{border-top:0}
.af-flt{display:flex;gap:8px;overflow-x:auto;margin-bottom:12px;padding-bottom:2px}
.af-flt button{flex:none;border:1px solid rgba(127,127,127,.3);background:transparent;color:inherit;border-radius:99px;padding:7px 13px;font:inherit;font-size:13px;cursor:pointer}
.af-flt button.on{background:var(--card,#1b2030);border-color:#2fbf71}
.af-mem .af-top{display:flex;align-items:center;gap:10px}
.af-mem .af-top .pill{margin-left:auto}
.af-av{width:36px;height:36px;border-radius:50%;background:rgba(127,127,127,.2);display:grid;place-items:center;font-weight:700}
.af-nm{font-weight:700}
.af-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.af-meta b{display:block;font-size:17px}
.af-meta span{font-size:12.5px;color:var(--muted,#8a93a6)}
.af-meta input{width:100%;margin-top:4px;padding:8px;border-radius:8px;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;font:inherit}
.af-setup{margin-top:12px}
.af-act{display:flex;gap:8px;margin-top:12px}
.af-menu{margin-top:8px;border:1px solid rgba(127,127,127,.25);border-radius:12px;overflow:hidden}
.af-menu .mi{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;font:inherit;padding:12px 14px;cursor:pointer;border-top:1px solid rgba(127,127,127,.15)}
.af-menu .mi:first-child{border-top:0}
.af-menu .mi.danger{color:#e5594f}
.af-menu hr{display:none}
.af-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:16px;z-index:60}
.af-modal .cardx{max-width:420px;width:100%}
.af-mbody{margin:10px 0 14px;display:grid;gap:6px}
.af-code{display:block;word-break:break-all;margin:6px 0 10px;font-size:13px}
