@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #faf8f7;
  --bg1:       #ffffff;
  --bg2:       #f4f0ef;
  --card:      #ffffff;
  --card2:     #f8f5f4;
  --border:    rgba(0,0,0,0.07);
  --border2:   rgba(0,0,0,0.11);
  --text:      #1a1014;
  --text2:     #5a4a4d;
  --sub:       #9e8e90;
  --accent:    #d94f4f;
  --accent-lt: rgba(217,79,79,0.08);
  --accent-glow: rgba(217,79,79,0.20);
  --green:     #2a9d6f;
  --green-dim: rgba(42,157,111,0.09);
  --red:       #d94f4f;
  --red-dim:   rgba(217,79,79,0.08);
  --amber:     #d4852a;
  --amber-dim: rgba(212,133,42,0.09);
  --shadow:    0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.11);
  --radius:    16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── LOGIN PAGE ── */
#login-page {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  overflow: hidden;
}
.login-hero {
  flex: 1.05; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #8f2f2f 0%, #b23a3a 42%, #d94f4f 100%);
  display: flex; align-items: center;
  padding: 56px 56px;
}
.login-hero-deco {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255,255,255,0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 95% 100%, rgba(0,0,0,0.22) 0%, transparent 50%);
}
.login-hero-inner { position: relative; z-index: 1; max-width: 440px; color: #fff; }
.login-hero-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 48px; }
.login-hero-logo {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.login-hero-brandname { font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: #fff; }
.login-hero-headline {
  font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.08;
  margin-bottom: 20px;
}
.login-hero-text { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.86); margin-bottom: 38px; max-width: 400px; }
.login-hero-points { display: flex; flex-direction: column; gap: 16px; }
.login-hero-point { display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.95); }
.login-hero-pt-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.login-main {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px;
}
.login-logo-mobile { display: none; }
.login-box {
  width: 400px; max-width: 94vw;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.login-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.login-logo-mark {
  width: 48px; height: 48px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-logo-name { font-size: 17px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }
.login-logo-sub { font-size: 11px; color: var(--sub); margin-top: 2px; letter-spacing: .3px; }
.login-title {
  font-size: 26px; font-weight: 800; letter-spacing: -.7px;
  margin-bottom: 6px; color: var(--text);
}
.login-sub { font-size: 13px; color: var(--sub); margin-bottom: 32px; }
.login-group { margin-bottom: 16px; }
.login-label {
  font-size: 11px; color: var(--text2); font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 8px; display: block;
}
.login-input {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 13px 16px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-size: 14px;
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.login-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217,79,79,0.07);
}
.login-input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg2) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--bg2) inset;
  caret-color: var(--text);
}
.pw-wrap { position: relative; }
.pw-wrap .login-input { padding-right: 44px; margin-bottom: 0; }
.pw-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0; cursor: pointer; color: #9e8e90;
  transition: color .15s;
}
.pw-eye:hover { color: #5a4a4e; }
.pw-eye svg { width: 17px; height: 17px; display: block; }
.login-btn {
  width: 100%; padding: 14px;
  border-radius: 10px;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .2px; margin-top: 8px;
  transition: background .15s, transform .1s, box-shadow .15s;
  position: relative;
  box-shadow: 0 4px 20px rgba(217,79,79,0.18);
}
.login-btn:hover {
  background: #c43d3d;
  box-shadow: 0 6px 28px rgba(217,79,79,0.25);
}
.login-btn:active { transform: translateY(1px); }
.login-btn .btn-text { transition: opacity .15s; }
.login-btn .spinner {
  display: none; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: loginSpin .65s linear infinite;
}
.login-btn.loading .btn-text { opacity: 0; }
.login-btn.loading .spinner { display: block; }
@keyframes loginSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
.login-error {
  display: none;
  font-size: 12px; color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(224,45,60,0.15);
  border-radius: 8px; padding: 10px 14px;
  margin-bottom: 16px;
}
.login-error.show { display: block; }
.login-footer {
  text-align: center; margin-top: 24px;
  font-size: 11px; color: var(--sub);
  letter-spacing: .2px;
}

/* ── LAYOUT ── */
.app-layout {
  display: flex; min-height: 100vh;
}
.sidebar {
  position: fixed; top: 0; left: 0;
  width: 252px; height: 100vh; height: 100dvh;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.sidebar-head {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.sidebar-brand-name { font-size: 14px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.sidebar-close {
  display: none;
  width: 28px; height: 28px; border-radius: 7px;
  background: none; border: 1px solid var(--border2);
  cursor: pointer; align-items: center; justify-content: center;
  color: var(--sub); transition: .15s;
}
.sidebar-close:hover { background: var(--bg2); color: var(--text); }
.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 14px 10px;
}
.nav-section-label {
  font-size: 10px; color: var(--sub);
  text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;
  padding: 8px 10px 6px;
  margin-top: 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  cursor: pointer; transition: .15s;
  color: var(--text2); text-decoration: none;
  font-size: 13px; font-weight: 600;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg2); color: var(--text); }
.nav-item.active {
  background: rgba(217,79,79,0.07);
  color: var(--accent); font-weight: 700;
}
.nav-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: .15s;
}
.nav-item.active .nav-icon { background: rgba(217,79,79,0.10); }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.sidebar-user-id {
  font-size: 11px; color: var(--sub);
  font-family: 'Geist Mono', monospace;
}

/* ── MAIN AREA ── */
.main-area {
  flex: 1;
  margin-left: 252px;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.topbar {
  position: sticky; top: 0; z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  width: 36px; height: 36px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border2);
  cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  transition: .15s; flex-shrink: 0;
}
.hamburger:hover { background: var(--bg2); }
.hamburger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--text); border-radius: 2px;
}
.topbar-logo { display: flex; align-items: center; gap: 10px; }
.topbar-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.topbar-name { font-size: 14px; font-weight: 700; letter-spacing: -.3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(217,79,79,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--accent);
  border: 1.5px solid rgba(217,79,79,0.18);
  flex-shrink: 0;
}
.topbar-user-name { font-size: 13px; font-weight: 700; color: var(--text); }
.topbar-user-id { font-size: 11px; color: var(--sub); font-family: 'Geist Mono', monospace; }
#logout-btn {
  display: none;
  height: 32px; padding: 0 14px;
  border-radius: 8px; border: 1.5px solid rgba(217,79,79,0.30);
  background: #ffffff; color: var(--accent);
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: .15s; letter-spacing: .3px;
  align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#logout-btn:hover { background: rgba(217,79,79,0.06); border-color: var(--accent); }

/* ── CONTENT ── */
.content {
  flex: 1; padding: 32px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}
.page { display: none; }
.page.active { display: block; }

/* ── ACCOUNT CARD ── */
.account-card {
  background: linear-gradient(135deg, #d94f4f 0%, #b83535 100%);
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(217,79,79,0.22);
  color: #fff;
}
.account-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.account-card::after {
  content: 'Transit Account';
  position: absolute;
  right: 28px; bottom: 22px;
  font-size: 96px; font-weight: 800; color: rgba(255,255,255,0.05);
  letter-spacing: -4px; pointer-events: none; line-height: 1;
}
.card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 12px;
}
.acc-type-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 6px;
}
.acc-name { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.acc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px; font-weight: 800;
  letter-spacing: .5px; color: #fff;
  flex-shrink: 0;
}
.acc-badge.red { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); }
.acc-badge.amber { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); }
.acc-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.acc-number {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; color: rgba(255,255,255,0.55);
  margin-bottom: 24px; letter-spacing: .3px;
}
.balance-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.55); font-weight: 700; margin-bottom: 8px;
}
.balance-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 28px;
}
.balance-amount {
  font-size: 52px; font-weight: 800; letter-spacing: -2.5px;
  line-height: 1; color: #fff;
}
.balance-currency {
  font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.55);
}
.acc-meta {
  display: flex; gap: 0;
  flex-wrap: wrap;
}
.meta-item {
  flex: 1; min-width: 100px;
  padding-right: 24px;
}
.meta-item + .meta-item {
  padding-left: 24px; padding-right: 24px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.meta-label {
  font-size: 10px; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 700; margin-bottom: 5px;
}
.meta-value {
  font-size: 13px; font-weight: 700;
  font-family: 'Geist Mono', monospace;
  color: #fff;
}
.meta-value.ok { color: #a8ffd4; }
.meta-value.warn { color: #ffd9a8; }

/* ── CRYPTO SECTION ── */
.crypto-section {
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.crypto-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.crypto-addr-wrap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.crypto-addr {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.6);
  word-break: break-all; max-width: 420px;
}
.crypto-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 7px; cursor: pointer;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  transition: .15s; flex-shrink: 0;
}
.crypto-copy-btn:hover { background: rgba(255,255,255,0.22); }
.crypto-copy-btn.copied {
  background: rgba(0,179,126,0.25); color: #a8ffd4;
  border-color: rgba(0,179,126,0.4);
}
.crypto-net-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .6px;
  font-family: 'Sora', sans-serif;
}

/* ── METRICS ── */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 28px;
}
.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.metric-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.metric-label {
  font-size: 10px; color: var(--sub);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 700; margin-bottom: 12px;
}
.metric-value {
  font-size: 26px; font-weight: 800;
  letter-spacing: -.8px; line-height: 1;
  color: var(--text);
}
.metric-value.green { color: var(--green); }
.metric-value.red { color: var(--red); }
.metric-value.amber { color: var(--amber); }
.metric-sub {
  font-size: 11px; color: var(--sub); margin-top: 6px;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 15px; font-weight: 800; letter-spacing: -.3px; color: var(--text);
}

/* ── TRANSACTIONS ── */
.tx-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: var(--bg2); }
.tx-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tx-icon svg { width: 16px; height: 16px; }
.tx-icon.in { background: var(--green-dim); }
.tx-icon.out { background: var(--red-dim); }
.tx-icon.fee { background: var(--amber-dim); }
.tx-icon.cancelled, .tx-icon.blocked { background: rgba(139,144,170,0.10); }
.tx-info { flex: 1; min-width: 0; }
.tx-desc {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tx-date {
  font-size: 11px; color: var(--sub);
  font-family: 'Geist Mono', monospace; margin-top: 2px;
}
.tx-right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end;
}
.tx-amounts { text-align: right; }
.tx-amount {
  font-size: 13px; font-weight: 800;
  font-family: 'Geist Mono', monospace; letter-spacing: -.2px;
}
.tx-amount.in { color: var(--green); }
.tx-amount.out { color: var(--red); }
.tx-amount.fee { color: var(--amber); }
.tx-amount.cancelled { color: var(--sub); text-decoration: line-through; }
.tx-amount.blocked { color: var(--sub); }
.tx-ref {
  font-size: 10px; color: var(--sub);
  font-family: 'Geist Mono', monospace; margin-top: 2px;
}
.tx-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; padding: 3px 8px;
  border-radius: 20px; flex-shrink: 0;
}
.tx-badge svg { width: 9px; height: 9px; }
.tx-badge.in { background: rgba(42,157,111,0.09); color: #1e7a56; border: 1px solid rgba(42,157,111,0.18); }
.tx-badge.out { background: var(--red-dim); color: var(--red); border: 1px solid rgba(224,45,60,0.15); }
.tx-badge.fee { background: var(--amber-dim); color: #b45309; border: 1px solid rgba(245,158,11,0.20); }
.tx-badge.cancelled { background: rgba(139,144,170,0.10); color: var(--sub); border: 1px solid rgba(139,144,170,0.15); }
.tx-badge.blocked { background: rgba(224,45,60,0.07); color: #b01229; border: 1px solid rgba(224,45,60,0.15); }

/* ── PAGE PLACEHOLDERS ── */
.page-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(217,79,79,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.page-placeholder {
  max-width: 600px; margin: 0 auto;
  text-align: center; padding: 60px 20px;
}
.page-placeholder h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.4px; color: var(--text); }
.page-placeholder p { font-size: 13px; color: var(--sub); line-height: 1.7; }
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin-top: 24px; text-align: left;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 0;
  font-size: 13px; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row-label { color: var(--sub); font-weight: 500; }
.info-row-value { font-weight: 700; color: var(--text); }

/* ── STATEMENTS ── */
.statement-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
}
.stmt-period { font-size: 13px; font-weight: 700; color: var(--text); }
.stmt-dates { font-size: 11px; color: var(--sub); font-family: 'Geist Mono', monospace; margin-top: 2px; }
.stmt-badge {
  font-size: 11px; color: var(--sub);
  background: var(--bg2); padding: 4px 10px;
  border-radius: 6px; border: 1px solid var(--border);
}

/* ── SETTINGS ── */
.settings-wrap { max-width: 500px; margin: 0 auto; }
.settings-title { font-size: 15px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 16px; color: var(--text); }

/* ── CHAT ── */
.chat-wrap { max-width: 680px; margin: 0 auto; }
.chat-header {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.chat-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(217,79,79,0.08); border: 2px solid rgba(217,79,79,0.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--accent); font-size: 22px; flex-shrink: 0;
}
.chat-name { font-size: 14px; font-weight: 800; color: var(--text); }
.chat-status {
  font-size: 11px; color: var(--green);
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
}
.chat-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.chat-messages {
  background: var(--card);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 20px; height: 420px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-msg {
  display: flex; gap: 10px; max-width: 85%;
}
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(217,79,79,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 800; color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}
.chat-msg.user .chat-msg-avatar { background: var(--green-dim); color: var(--green); }
.chat-bubble {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.5;
  color: var(--text);
}
.chat-msg.user .chat-bubble { background: rgba(217,79,79,0.08); border-color: rgba(217,79,79,0.13); }
.chat-msg.manager .chat-bubble { background: var(--green-dim); border-color: rgba(0,179,126,0.15); }
.chat-time { font-size: 10px; color: var(--sub); margin-top: 4px; text-align: right; }
.chat-msg.user .chat-time { text-align: left; }
@keyframes typing-bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sub); display: inline-block;
  animation: typing-bounce .9s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
.chat-input-wrap {
  background: var(--card);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 16px;
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input {
  flex: 1; background: var(--bg2);
  border: 1.5px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-size: 13px;
  outline: none; resize: none; max-height: 100px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,79,79,0.07); }
.chat-send {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: .15s;
  box-shadow: 0 2px 8px rgba(217,79,79,0.18);
}
.chat-send:hover { background: #5245e8; }
.chat-send:disabled { background: var(--border2); cursor: not-allowed; box-shadow: none; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text); color: #fff;
  border: none;
  padding: 10px 18px 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  z-index: 999999; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast-icon.ok { background: rgba(0,179,126,0.25); color: var(--green); }
.toast-icon.err { background: rgba(224,45,60,0.25); color: var(--red); }

/* ── SIDEBAR OVERLAY ── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,15,26,0.35); z-index: 999;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── SESSION WARNING ── */
#session-warning {
  display: none; position: fixed; inset: 0;
  background: rgba(13,15,26,0.4); z-index: 999998;
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
#session-warning.open { display: flex; }
.session-box {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 20px; padding: 32px;
  width: 360px; max-width: 92vw;
  box-shadow: var(--shadow-lg); text-align: center;
}
.session-box .s-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber-dim); border: 1px solid rgba(245,158,11,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.session-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.session-box p { font-size: 13px; color: var(--sub); line-height: 1.7; margin-bottom: 20px; }
.session-box .s-countdown {
  font-size: 38px; font-weight: 800; color: var(--amber);
  font-family: 'Geist Mono', monospace;
  margin-bottom: 22px; letter-spacing: -1px;
}
.session-box .s-actions { display: flex; gap: 10px; }
.session-box .s-actions button {
  flex: 1; padding: 11px; border-radius: 9px;
  font-family: 'Sora', sans-serif; font-size: 13px;
  font-weight: 700; cursor: pointer; border: none; transition: .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(217,79,79,0.20); }
.btn-primary:hover { background: #5245e8; }
.btn-secondary {
  background: var(--bg2); color: var(--text2);
  border: 1px solid var(--border2) !important;
}
.btn-secondary:hover { color: var(--text); }

/* ── ADMIN BAR ── */
#admin-bar {
  background: #1a1a2e;
  border-bottom: 2px solid rgba(217,79,79,0.7);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  font-size: 12px; color: #e8e8f0;
  position: sticky; top: 0; z-index: 2000;
}
#admin-bar .adm-label {
  font-size: 10px; color: var(--accent);
  font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; margin-right: 4px;
}
#admin-bar .fl { font-size: 10px; color: rgba(255,255,255,0.45); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
#admin-bar input, #admin-bar select {
  height: 28px; padding: 0 9px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: #e8e8f0; border-radius: 6px;
  font-family: 'Sora', sans-serif; font-size: 12px; outline: none;
  transition: .15s;
}
#admin-bar input { width: 130px; }
#admin-bar select { width: 80px; }
#admin-bar input:focus, #admin-bar select:focus { border-color: var(--accent); }
.btn-apply, .btn-add, .btn-save, .btn-export {
  height: 28px; padding: 0 12px; border-radius: 6px;
  font-family: 'Sora', sans-serif; font-size: 11px;
  font-weight: 800; cursor: pointer; border: none; transition: .15s;
  letter-spacing: .3px; white-space: nowrap;
}
.btn-apply { background: var(--accent); color: #fff; }
.btn-apply:hover { background: #5245e8; }
.btn-add { background: transparent; border: 1px solid rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.6); }
.btn-add:hover { border-color: var(--accent) !important; color: var(--accent); }
.btn-save { background: rgba(0,179,126,0.15); color: #00b37e; border: 1px solid rgba(0,179,126,0.25) !important; }
.btn-save:hover { background: rgba(0,179,126,0.25); }
.btn-export { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.12) !important; }
.btn-export:hover { color: rgba(255,255,255,0.85); }
.adm-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.10); flex-shrink: 0; }

/* ── MODAL ── */
.modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(13,15,26,0.4); z-index: 9998;
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 20px; padding: 28px;
  width: 420px; max-width: 95vw;
  box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.4px; color: var(--text); }
.modal label {
  font-size: 10px; color: var(--sub);
  text-transform: uppercase; letter-spacing: .8px;
  font-weight: 700; display: block; margin-bottom: 6px; margin-top: 14px;
}
.modal input, .modal select {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--border);
  color: var(--text); padding: 10px 13px; border-radius: 8px;
  font-family: 'Sora', sans-serif; font-size: 13px; outline: none; transition: .15s;
}
.modal input:focus, .modal select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,79,79,0.07); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions button {
  flex: 1; padding: 11px; border-radius: 8px;
  font-family: 'Sora', sans-serif; font-size: 13px;
  font-weight: 700; cursor: pointer; border: none; transition: .15s;
}

/* ── TX DELETE BTN ── */
.tx-del {
  background: none; border: none; cursor: pointer;
  color: var(--border2); width: 28px; height: 28px;
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; transition: .15s; flex-shrink: 0;
}
.tx-del:hover { background: var(--red-dim); color: var(--red); }

/* ── FOOTER ── */
.portal-footer {
  text-align: center; padding: 24px 32px 32px;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.portal-footer .footer-label {
  font-size: 10px; color: var(--sub);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600; margin-bottom: 6px;
}
.portal-footer a {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-decoration: none; font-family: 'Geist Mono', monospace;
  letter-spacing: .3px; transition: .15s;
}
.portal-footer a:hover { opacity: .7; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .main-area { margin-left: 0; }
  .hamburger { display: flex; }
  body.nav-open { overflow: hidden; }
  .content { padding: 20px 16px; }
  .metrics { grid-template-columns: 1fr; gap: 12px; }
  .account-card { padding: 24px 22px; }
  .balance-amount { font-size: 40px; }
  .acc-meta { gap: 12px; flex-direction: column; }
  .meta-item + .meta-item { border-left: none; padding-left: 0; }
  #admin-bar input { width: 100px; }
}
@media (max-width: 520px) {
  .topbar { padding: 12px 16px; }
  .topbar-user-name, .topbar-user-id { display: none; }
}

/* ── PAGE ENTER ANIMATION ── */
.page.active { animation: fadeUp .3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-img{width:100%;height:100%;object-fit:contain;display:block;}

/* Logo refinement */
.login-logo-mark,.sidebar-logo-mark,.topbar-logo-mark{
  background:transparent;
  border:none;
  box-shadow:none;
  overflow:visible;
}
.login-logo-mark{width:64px;height:64px;}
.sidebar-logo-mark{width:42px;height:42px;}
.topbar-logo-mark{width:38px;height:38px;}
.brand-img{width:100%;height:100%;object-fit:contain;display:block;}

/* Final logo sizing adjustment */
.login-logo-mark{width:96px!important;height:96px!important;}
.sidebar-logo-mark{width:58px!important;height:58px!important;}
.topbar-logo-mark{width:52px!important;height:52px!important;}
.brand-img{width:100%;height:100%;object-fit:contain;display:block;}

/* ══════════════════════════════════════════
   TRANSFERS — new transfer button, modals, swift form
   ══════════════════════════════════════════ */

/* "New Transfer" button in the section header */
.btn-new-transfer {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; border: none;
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .2px; padding: 9px 15px; border-radius: 10px;
  cursor: pointer; transition: .15s; box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-new-transfer svg { width: 14px; height: 14px; }
.btn-new-transfer:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-new-transfer:active { transform: translateY(0); }

/* Empty state for the transfers history list */
.tx-empty {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px 24px; text-align: center;
}
.tx-empty-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
  background: var(--bg2); display: flex; align-items: center; justify-content: center;
}
.tx-empty-title { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -.2px; }
.tx-empty-sub { font-size: 12px; color: var(--sub); margin-top: 5px; line-height: 1.6; }

/* ── Modal shell (shared by all three transfer modals) ── */
.tmodal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(13,15,26,0.42); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.tmodal-overlay.open { display: flex; animation: tmodalFade .18s ease; }
@keyframes tmodalFade { from { opacity: 0; } to { opacity: 1; } }
.tmodal-box {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 20px; width: 440px; max-width: 100%;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: tmodalRise .2s cubic-bezier(.2,.8,.2,1);
}
.tmodal-box-lg { width: 540px; }
@keyframes tmodalRise { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.tmodal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.tmodal-title { font-size: 16px; font-weight: 800; letter-spacing: -.3px; color: var(--text); flex: 1; }
.tmodal-close, .tmodal-back {
  background: none; border: none; cursor: pointer; color: var(--sub);
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.tmodal-close:hover, .tmodal-back:hover { background: var(--bg2); color: var(--text); }

/* ── Transfer choice options ── */
.transfer-opts { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.transfer-opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card2); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 16px 16px; cursor: pointer;
  font-family: 'Sora', sans-serif; text-align: left; transition: .15s;
}
.transfer-opt:hover { border-color: var(--accent); background: var(--accent-lt); transform: translateY(-1px); }
.transfer-opt-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--bg1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.transfer-opt-text { flex: 1; }
.transfer-opt-title { font-size: 14px; font-weight: 700; color: var(--text); }
.transfer-opt-sub { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.transfer-opt-arrow { color: var(--sub); flex-shrink: 0; transition: transform .15s; }
.transfer-opt:hover .transfer-opt-arrow { transform: translateX(3px); color: var(--accent); }

/* ── SWIFT form ── */
#swift-form-body { padding: 20px 22px 22px; }
.swift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.swift-field { display: flex; flex-direction: column; }
.swift-full { grid-column: 1 / -1; }
.swift-label {
  font-size: 10px; color: var(--sub); text-transform: uppercase;
  letter-spacing: .8px; font-weight: 700; margin-bottom: 6px;
}
.swift-input {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--border);
  color: var(--text); padding: 10px 13px; border-radius: 9px;
  font-family: 'Sora', sans-serif; font-size: 13px; outline: none; transition: .15s;
}
.swift-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lt); }
.swift-input-error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
.btn-swift-submit {
  width: 100%; margin-top: 20px; padding: 13px; border: none; border-radius: 10px;
  background: var(--accent); color: #fff; font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: .15s;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-swift-submit:hover { filter: brightness(1.06); }

/* ── SWIFT processing state ── */
.swift-processing { padding: 40px 28px 30px; text-align: center; }
.swift-proc-icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px;
  background: var(--amber-dim); display: flex; align-items: center; justify-content: center;
}
.swift-proc-title { font-size: 18px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
.swift-proc-sub { font-size: 13px; color: var(--sub); line-height: 1.7; margin-top: 10px; max-width: 380px; margin-left: auto; margin-right: auto; }
.swift-proc-ref {
  display: inline-block; margin-top: 18px; padding: 7px 14px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--text2); letter-spacing: .4px;
}
.btn-swift-done {
  display: block; width: 100%; margin-top: 24px; padding: 12px; border-radius: 10px;
  border: 1.5px solid var(--border2); background: var(--card2); color: var(--text);
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s;
}
.btn-swift-done:hover { background: var(--bg2); }

/* ── Unavailable modal body ── */
.tmodal-unavail { padding: 36px 28px 28px; text-align: center; }
.tmodal-unavail-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px;
  background: var(--amber-dim); display: flex; align-items: center; justify-content: center;
}
.tmodal-unavail-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.tmodal-unavail-text { font-size: 13px; color: var(--sub); line-height: 1.7; margin: 10px auto 22px; max-width: 360px; }

body.tmodal-lock { overflow: hidden; }

@media (max-width: 560px) {
  .swift-grid { grid-template-columns: 1fr; }
  .tmodal-box, .tmodal-box-lg { width: 100%; }
}

/* ── STATEMENTS: request flow ── */
.stmt-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  margin: 0 auto; animation: stmtSpin .8s linear infinite;
}
@keyframes stmtSpin { to { transform: rotate(360deg); } }
.stmt-pending {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: #b45309; background: var(--amber-dim);
  border: 1px solid rgba(212,133,42,0.20);
  padding: 5px 10px; border-radius: 20px;
}
.stmt-pending-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  animation: stmtPulse 1.4s ease-in-out infinite;
}
@keyframes stmtPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.btn-stmt-download {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--accent); color: #fff; border: none;
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  padding: 8px 13px; border-radius: 9px; cursor: pointer; transition: .15s;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-stmt-download:hover { filter: brightness(1.06); transform: translateY(-1px); }
.statement-row { display: flex; align-items: center; justify-content: space-between; }

/* ── GUEST CHAT WIDGET ───────────────────────────────────────── */
#gchat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Bubble button */
#gchat-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(217,79,79,0.38);
  transition: transform .18s, box-shadow .18s, background .15s;
  position: relative;
  flex-shrink: 0;
}
#gchat-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(217,79,79,0.46);
  background: #c03a3a;
}

.gchat-unread-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* Chat window */
.gchat-window {
  width: 340px;
  max-height: 480px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
  flex-direction: column;
  overflow: hidden;
  animation: gchatIn .22s cubic-bezier(.34,1.44,.64,1);
}
@keyframes gchatIn {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Step wrapper */
.gchat-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Header */
.gchat-whead {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}
.gchat-whead-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gchat-whead-title {
  font-size: 14px; font-weight: 800; letter-spacing: -.2px;
}
.gchat-whead-sub {
  font-size: 11px; opacity: .8; margin-top: 1px;
}

/* Intro form */
.gchat-intro-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.gchat-intro-text {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.55;
}
.gchat-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gchat-form-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.gchat-form-input {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 9px 11px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.gchat-form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,79,79,0.07);
  background: #fff;
}
.gchat-form-err {
  font-size: 11.5px;
  color: var(--red, #e0142e);
  background: rgba(224,20,46,0.07);
  border-radius: 7px;
  padding: 7px 10px;
}
.gchat-start-btn {
  padding: 11px;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.gchat-start-btn:hover { background: #c03a3a; }
.gchat-start-btn.gc-loading .gc-btn-text { opacity: .5; }
.gchat-start-btn.gc-loading .gc-btn-spinner { display: flex !important; }
.gc-btn-spinner svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Messages */
.gchat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.gchat-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 82%;
}
.gchat-msg-user {
  align-self: flex-end;
  align-items: flex-end;
}
.gchat-msg-mgr {
  align-self: flex-start;
  align-items: flex-start;
}

.gchat-bubble {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.gchat-msg-user .gchat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.gchat-msg-mgr .gchat-bubble {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.gchat-time {
  font-size: 10px;
  color: var(--sub);
  opacity: .7;
  padding: 0 3px;
}

/* Input row */
.gchat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}
.gchat-textarea {
  flex: 1;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 9px 11px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: none;
  min-height: 36px;
  max-height: 100px;
  line-height: 1.4;
  transition: border-color .15s;
}
.gchat-textarea:focus {
  border-color: var(--accent);
}
.gchat-textarea::placeholder { color: var(--sub); opacity: .7; }

.gchat-send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .12s;
}
.gchat-send-btn:hover { background: #c03a3a; transform: scale(1.05); }

@media (max-width: 400px) {
  .gchat-window { width: calc(100vw - 32px); }
  #gchat-widget { bottom: 16px; right: 16px; }
}

/* ── LOGIN: support link + responsive split ── */
.login-help {
  text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--sub);
}
.login-help-link {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent);
  text-decoration: none; margin-left: 2px;
}
.login-help-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  #login-page { display: flex; }
  .login-hero { display: none; }
  .login-main { flex: 1; }
  .login-logo-mobile { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
}
@media (min-width: 901px) {
  /* On the split layout the in-card logo is redundant (hero shows the brand) */
  .login-logo-mobile { display: none; }
}

/* ── GUEST SUPPORT CHAT WIDGET ── */
#gchat-widget {
  position: fixed; right: 22px; bottom: 22px; z-index: 100000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.gchat-fab {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: 0 8px 28px rgba(217,79,79,0.42);
  transition: transform .18s, box-shadow .18s, background .15s;
}
.gchat-fab:hover { transform: translateY(-2px) scale(1.04); background: #c43d3d; }
.gchat-fab:active { transform: scale(.97); }
.gchat-fab-ic { display: flex; align-items: center; justify-content: center; }
.gchat-unread-dot {
  position: absolute; top: 11px; right: 11px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--accent);
}
.gchat-window {
  width: 376px; max-width: calc(100vw - 36px);
  height: 540px; max-height: calc(100vh - 120px);
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 20px; overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  animation: gchat-pop .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes gchat-pop {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.gchat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; flex-shrink: 0;
  background: linear-gradient(135deg, #b23a3a 0%, #d94f4f 100%); color: #fff;
}
.gchat-header-info { display: flex; align-items: center; gap: 12px; }
.gchat-header-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.gchat-header-title { font-size: 14.5px; font-weight: 700; color: #fff; }
.gchat-header-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,0.88); margin-top: 2px; }
.gchat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 2px rgba(110,231,168,0.3); flex-shrink: 0; }
.gchat-header-close {
  background: rgba(255,255,255,0.12); border: none; cursor: pointer; color: #fff;
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.gchat-header-close:hover { background: rgba(255,255,255,0.24); }

/* Intro form step */
.gchat-step-intro { padding: 24px 22px; overflow-y: auto; }
.gchat-intro-emoji { font-size: 26px; margin-bottom: 6px; }
.gchat-intro-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.gchat-intro-sub { font-size: 13px; color: var(--sub); line-height: 1.6; margin: 6px 0 20px; }
.gchat-label {
  display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text2); margin-bottom: 7px;
}
.gchat-input {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--border);
  color: var(--text); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  font-family: inherit; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.gchat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lt); }
.gchat-err {
  font-size: 12px; color: var(--red); background: var(--red-dim);
  border: 1px solid rgba(217,79,79,0.15); border-radius: 8px; padding: 9px 12px; margin-bottom: 14px;
}
.gchat-start-btn {
  width: 100%; padding: 13px; border-radius: 10px; position: relative;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(217,79,79,0.22); transition: background .15s;
}
.gchat-start-btn:hover { background: #c43d3d; }
.gc-start-label { display: inline-flex; align-items: center; gap: 7px; transition: opacity .15s; }
.gc-start-spinner {
  display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite;
}
.gchat-start-btn.gc-loading .gc-start-label { opacity: 0; }
.gchat-start-btn.gc-loading .gc-start-spinner { display: block; }

/* Chat step */
.gchat-step-chat { flex: 1; display: none; flex-direction: column; min-height: 0; }
.gchat-messages {
  flex: 1; overflow-y: auto; padding: 18px 16px 10px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.gchat-msg { display: flex; flex-direction: column; gap: 3px; max-width: 80%; }
.gchat-msg-user { align-self: flex-end; align-items: flex-end; }
.gchat-msg-mgr { align-self: flex-start; align-items: flex-start; }
.gchat-bubble {
  padding: 10px 14px; font-size: 13.5px; line-height: 1.55; border-radius: 15px; word-break: break-word;
}
.gchat-msg-user .gchat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.gchat-msg-mgr .gchat-bubble { background: var(--card); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.gchat-time { font-size: 10px; color: var(--sub); padding: 0 4px; }
.gchat-input-row {
  display: flex; gap: 10px; align-items: flex-end; flex-shrink: 0;
  padding: 12px 14px; border-top: 1px solid var(--border); background: var(--card);
}
.gchat-textarea {
  flex: 1; resize: none; overflow: hidden; min-height: 42px; max-height: 100px;
  background: var(--bg2); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 14px; font-family: inherit; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s;
}
.gchat-textarea:focus { border-color: var(--accent); }
.gchat-send {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.gchat-send:hover { background: #c43d3d; }

@media (max-width: 480px) {
  #gchat-widget { right: 16px; bottom: 16px; }
  .gchat-window { height: calc(100vh - 110px); height: calc(100dvh - 110px); }
}
