/* ============================================================
   BRUTALBANK — auth, POV menu, dashboard chooser, modals, token
   (loaded on every page after styles.css)
   ============================================================ */

/* ---- brand logo image ---- */
.logo { gap: 11px; }
.logo__img { height: 44px; width: 44px; display: block; flex: none; }
.footer .logo__img { height: 52px; width: 52px; }

/* ---- top launch bar (global, injected) ---- */
.bb-topbar {
  position: relative; z-index: 60;
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 9px 16px; border-bottom: 1px solid var(--ink);
}
.bb-topbar .cd { color: var(--yellow); font-weight: 700; }
.bb-topbar .cd b { font-weight: 700; }
.bb-topbar .dim { color: var(--gray); }
.bb-topbar a {
  border: 1px solid var(--yellow); color: var(--yellow); padding: 3px 11px;
  font-weight: 700; transition: .18s;
}
.bb-topbar a:hover { background: var(--yellow); color: var(--ink); }

/* ---- nav BUY $BBANK button (injected) ---- */
.nav__buy {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid var(--ink); background: var(--yellow); color: var(--ink);
  padding: 9px 14px; white-space: nowrap; transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
.nav__buy:hover { background: var(--ink); color: var(--yellow); }

/* ---- token launch countdown ---- */
.token__countdown { margin: 22px 0 4px; }
.cd-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--yellow); margin-bottom: 10px; }
.cd-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-box { border: 1px solid #2a2a2a; background: #0a0a0a; padding: 12px 16px; text-align: center; min-width: 68px; }
.cd-box b { font-family: var(--font-display); font-size: 36px; line-height: 1; color: var(--bg); display: block; }
.cd-box span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--gray); }

@media (max-width: 720px) {
  .bb-topbar .dim { display: none; }
  .nav__buy { padding: 8px 10px; font-size: 10px; }
}

/* ---- nav account chip + menu trigger ---- */
.nav__acct {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink); padding: 9px 12px; cursor: pointer;
  background: var(--bg); transition: .18s; white-space: nowrap;
}
.nav__acct:hover { background: var(--ink); color: var(--bg); }
.nav__acct .dot { background: var(--yellow); }
.nav__acct--in { border-color: var(--purple); color: var(--purple); }
.nav__acct--in:hover { background: var(--purple); color: #fff; }
.nav__more { transition: transform .25s; }
.nav__more:hover { transform: rotate(90deg); color: var(--purple); }

/* ============ POV FULLSCREEN MENU ============ */
.bb-pov {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column;
  padding: 40px 60px;
  opacity: 0; visibility: hidden;
  transform: scale(1.03);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.bb-pov.is-open { opacity: 1; visibility: visible; transform: scale(1); }
.bb-pov__top { display: flex; justify-content: space-between; align-items: center; }
.bb-pov__brand { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.04em; }
.bb-pov__brand span { color: var(--purple); }
.bb-pov__close {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em;
  border: 1px solid var(--bg); padding: 10px 16px; color: var(--bg); cursor: pointer; transition: .18s;
}
.bb-pov__close:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.bb-pov__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.bb-pov__link {
  display: flex; align-items: baseline; gap: 22px;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(40px, 7vw, 96px); line-height: 1.02;
  color: var(--bg); transition: color .18s, transform .18s; width: fit-content;
}
.bb-pov__link span { font-family: var(--font-mono); font-size: 13px; color: var(--gray); }
.bb-pov__link:hover { color: var(--yellow); transform: translateX(14px); }
.bb-pov__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; border-top: 1px solid #2a2a2a; padding-top: 22px; }
.bb-pov__foot .social-row a { border-color: #3a3a3a; color: var(--bg); }
.bb-pov__foot .social-row a:hover { background: var(--bg); color: var(--ink); }
.bb-pov__tag { font-family: var(--font-mono); font-size: 12px; color: var(--gray); }

/* ============ SOCIAL ICONS (GitHub / X / Telegram only) ============ */
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--ink); transition: .18s; color: var(--ink);
}
.social-row a:hover { background: var(--purple); color: #fff; border-color: var(--purple); transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ============ MODAL SHELL ============ */
.bb-overlay {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(10,10,10,.74);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.bb-overlay.is-open { opacity: 1; visibility: visible; }
.bb-modal {
  position: relative; background: var(--bg); border: 1px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink); width: 100%; max-width: 440px;
  padding: 30px; transform: translateY(10px); transition: transform .25s;
}
.bb-overlay.is-open .bb-modal { transform: translateY(0); }
.bb-modal--wide { max-width: 920px; }
.bb-modal__close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  display: grid; place-items: center; border: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 15px; cursor: pointer; transition: .18s; background: var(--bg);
}
.bb-modal__close:hover { background: var(--ink); color: var(--bg); }
.bb-modal__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--gray); }
.bb-modal__title { font-family: var(--font-display); font-size: 38px; line-height: .92; text-transform: uppercase; margin: 8px 0 6px; }
.bb-modal__title em { font-style: normal; color: var(--purple); }
.bb-modal__sub { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 22px; }

/* ============ DASHBOARD CHOOSER (3 popups) ============ */
.chooser__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choice {
  text-align: left; border: 1px solid var(--ink); background: var(--bg);
  padding: 0; cursor: pointer; transition: transform .18s, box-shadow .18s; overflow: hidden; display: flex; flex-direction: column;
}
.choice:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.choice__preview { height: 120px; border-bottom: 1px solid var(--ink); position: relative; overflow: hidden; }
/* preview A — terminal (light data) */
.choice__preview--terminal { background: var(--bg-alt); }
.choice__preview--terminal::before {
  content: ''; position: absolute; inset: 14px;
  background:
    linear-gradient(var(--purple) 0 0) 0 12px/100% 8px no-repeat,
    linear-gradient(var(--yellow) 0 0) 0 30px/70% 8px no-repeat,
    linear-gradient(var(--purple) 0 0) 0 48px/85% 8px no-repeat,
    repeating-linear-gradient(0deg, transparent 0 16px, var(--line-soft) 16px 17px);
}
/* preview B — markets (dark neon) */
.choice__preview--markets { background: #0c0c10; }
.choice__preview--markets::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(107,70,229,.5), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px);
}
.choice__preview--markets::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 16px; height: 40px;
  background:
    linear-gradient(180deg, transparent, rgba(212,255,58,.18)),
    repeating-linear-gradient(90deg, var(--yellow) 0 2px, transparent 2px 14px);
  clip-path: polygon(0 80%,12% 60%,24% 70%,36% 40%,48% 55%,60% 25%,72% 45%,84% 15%,100% 35%,100% 100%,0 100%);
  opacity: .8;
}
/* preview C — minimal (clean cards) */
.choice__preview--minimal { background: #fff; }
.choice__preview--minimal::before {
  content: ''; position: absolute; inset: 16px;
  background:
    linear-gradient(#ececec 0 0) 0 0/46% 30px no-repeat,
    linear-gradient(#ececec 0 0) 54% 0/46% 30px no-repeat,
    linear-gradient(var(--purple) 0 0) 0 40px/30% 30px no-repeat,
    linear-gradient(#ececec 0 0) 0 78px/100% 14px no-repeat;
  border-radius: 4px;
}
.choice__body { padding: 16px 16px 18px; }
.choice__no { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--gray); }
.choice__name { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; margin: 4px 0 6px; }
.choice__desc { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: var(--ink-soft); }
.choice__go { font-family: var(--font-mono); font-size: 11px; font-weight: 700; margin-top: 12px; color: var(--purple); }

/* ============ LOGIN ============ */
.login__tabs { display: flex; border: 1px solid var(--ink); margin-bottom: 22px; }
.login__tab {
  flex: 1; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 12px; cursor: pointer; transition: .18s; background: var(--bg); border: none; color: var(--ink);
}
.login__tab + .login__tab { border-left: 1px solid var(--ink); }
.login__tab.is-active { background: var(--ink); color: var(--bg); }
.login__pane { display: none; }
.login__pane.is-active { display: block; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--gray); }
.field input {
  font-family: var(--font-mono); font-size: 14px; padding: 13px 14px;
  border: 1px solid var(--ink); background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus { outline: none; border-color: var(--purple); box-shadow: 3px 3px 0 var(--purple); }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 22px !important; }
.login__btn {
  width: 100%; justify-content: center; margin-top: 4px;
}
.login__hint { font-family: var(--font-mono); font-size: 11px; color: var(--gray); margin-top: 14px; line-height: 1.5; }
.login__hint a { color: var(--purple); }
.login__back { font-family: var(--font-mono); font-size: 11px; color: var(--gray); cursor: pointer; margin-top: 14px; display: inline-block; }
.login__back:hover { color: var(--purple); }
.wallet-state {
  font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--ink);
  padding: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; word-break: break-all;
}
.wallet-state .dot { flex: none; }
.wallet-state--off .dot { background: var(--gray); }
.wallet-state--on .dot { background: var(--yellow); }
.note-err { color: #c0392b; }
.note-ok { color: #2e7d32; }
.login__note { font-family: var(--font-mono); font-size: 11.5px; min-height: 16px; margin-bottom: 8px; }

/* ============ TOAST ============ */
.bb-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; padding: 12px 18px; border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--purple); z-index: 1400; opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.bb-toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============ TOKEN SECTION ($BBANK) ============ */
.token { padding: 64px 60px; border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--bg); }
.token__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid #2a2a2a; padding-bottom: 20px; margin-bottom: 30px; }
.token__head .section-label { color: var(--yellow); }
.token__title { font-family: var(--font-display); font-size: clamp(44px, 7vw, 110px); line-height: .9; text-transform: uppercase; }
.token__title em { font-style: normal; color: var(--purple); }
.token__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
.token__desc { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #cfcfcf; max-width: 520px; }
.token__desc b { color: var(--yellow); }
.token__card { border: 1px solid #2a2a2a; background: #111114; padding: 24px; }
.token__row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #2a2a2a; font-family: var(--font-mono); font-size: 12px; }
.token__row:last-of-type { border-bottom: none; }
.token__row .lbl { color: var(--gray); letter-spacing: .08em; }
.token__row .val { font-weight: 700; }
.ca-box { display: flex; gap: 8px; margin: 16px 0; }
.ca-box input {
  flex: 1; font-family: var(--font-mono); font-size: 12px; padding: 12px;
  border: 1px solid #2a2a2a; background: #0a0a0a; color: var(--bg);
}
.ca-copy {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  border: 1px solid var(--yellow); background: var(--yellow); color: var(--ink); padding: 0 16px; cursor: pointer; transition: .18s; white-space: nowrap;
}
.ca-copy:hover { background: transparent; color: var(--yellow); }
.token__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn--buy { background: var(--purple); color: #fff; border: 1px solid var(--purple); }
.btn--buy:hover { background: var(--purple-dark); box-shadow: 3px 3px 0 var(--yellow); }

/* ============ AI WIDGET (dashboards) ============ */
.ai-box { display: flex; flex-direction: column; gap: 10px; }
.ai-box textarea {
  font-family: var(--font-mono); font-size: 12px; padding: 12px; border: 1px solid var(--ink);
  background: var(--bg); color: var(--ink); resize: vertical; min-height: 64px; width: 100%;
}
.ai-box textarea:focus { outline: none; border-color: var(--purple); }
.ai-out { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; border-left: 3px solid var(--purple); padding: 4px 0 4px 12px; color: var(--ink-soft); min-height: 18px; }

@media (max-width: 760px) {
  .chooser__grid { grid-template-columns: 1fr; }
  .token__grid { grid-template-columns: 1fr; }
  .token, .bb-pov { padding-left: 28px; padding-right: 28px; }
  .bb-pov__link { font-size: 40px; gap: 14px; }
}
