/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f8f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ── */
h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
a { color: #1a1a1a; text-decoration: none; }
a:hover { color: #000; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.main-content { flex: 1; padding: 40px 0 64px; }

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e4;
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  display: flex; align-items: center; height: 56px; gap: 32px;
}
.logo {
  font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: #1a1a1a;
  flex-shrink: 0;
}
.logo-dot { color: #bbb; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-size: 14px; color: #555; font-weight: 500; transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: #1a1a1a; }
.header-auth { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: #1a1a1a;
}
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid #e8e8e4;
}

/* ── Footer ── */
.site-footer {
  background: #fff; border-top: 1px solid #e8e8e4;
  padding: 20px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #999;
}
.footer-inner a { color: #999; }
.footer-inner a:hover { color: #1a1a1a; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: all .15s; white-space: nowrap;
}
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-primary:hover { background: #333; color: #fff; }
.btn-ghost { background: transparent; color: #555; border: 1px solid #e0e0da; }
.btn-ghost:hover { background: #f0f0ec; color: #1a1a1a; border-color: #ccc; }
.btn-danger { background: #fff0f0; color: #c0392b; border: 1px solid #fcd; }
.btn-danger:hover { background: #ffe0e0; }
.btn-success { background: #f0faf4; color: #1a7a40; border: 1px solid #b7e4c7; }
.btn-success:hover { background: #d8f3e3; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid #e8e8e4; border-radius: 12px;
  padding: 24px;
}
.card-sm { padding: 16px; }
.card + .card { margin-top: 16px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; color: #444;
  margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 10px 14px;
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  font-family: inherit; font-size: 14px; color: #1a1a1a;
  outline: none; transition: border-color .15s;
}
.form-input:focus { border-color: #1a1a1a; }
.form-input::placeholder { color: #bbb; }
.form-hint { font-size: 12px; color: #999; margin-top: 4px; }
.form-error { font-size: 12px; color: #c0392b; margin-top: 4px; }

/* ── Alerts ── */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: 14px; margin-bottom: 16px;
}
.alert-ok { background: #f0faf4; border: 1px solid #b7e4c7; color: #1a7a40; }
.alert-err { background: #fff0f0; border: 1px solid #fcd; color: #c0392b; }
.alert-info { background: #f0f4ff; border: 1px solid #c7d7f4; color: #2255aa; }

/* ── Badge ── */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
}
.badge-gray { background: #f0f0ec; color: #666; }
.badge-green { background: #e8f8ee; color: #1a7a40; }
.badge-yellow { background: #fffbe6; color: #8a6d00; }
.badge-red { background: #fff0f0; color: #c0392b; }

/* ── Table ── */
.table-wrap { border: 1px solid #e8e8e4; border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: #fafaf8; padding: 10px 16px;
  text-align: left; font-size: 12px; font-weight: 600;
  color: #888; letter-spacing: .5px; text-transform: uppercase;
  border-bottom: 1px solid #e8e8e4;
}
tbody tr { border-bottom: 1px solid #f0f0ec; transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafaf8; }
tbody td { padding: 12px 16px; font-size: 14px; vertical-align: middle; }
.rank { color: #bbb; font-size: 13px; font-weight: 600; }
.rank-1 { color: #c9a227; }
.rank-2 { color: #8e9aad; }
.rank-3 { color: #b07040; }
.score-val { font-weight: 700; color: #1a1a1a; }
.score-bar { margin-top: 4px; height: 3px; background: #f0f0ec; border-radius: 2px; }
.score-bar-fill { height: 100%; background: #1a1a1a; border-radius: 2px; }

/* ── Avatar ── */
.avatar {
  border-radius: 50%; object-fit: cover;
  border: 2px solid #e8e8e4; background: #f0f0ec;
}
.avatar-lg { width: 80px; height: 80px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-sm { width: 32px; height: 32px; }

/* ── Page header ── */
.page-header { margin-bottom: 28px; }
.page-title { font-size: 1.6rem; font-weight: 700; color: #1a1a1a; }
.page-sub { color: #888; font-size: 14px; margin-top: 4px; }

/* ── Section ── */
.section { margin-bottom: 32px; }
.section-title {
  font-size: 12px; font-weight: 700; color: #aaa;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Stats row ── */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid #e8e8e4; border-radius: 12px; padding: 20px; text-align: center; }
.stat-val { font-size: 28px; font-weight: 700; color: #1a1a1a; display: block; }
.stat-label { font-size: 12px; color: #aaa; letter-spacing: .5px; text-transform: uppercase; margin-top: 2px; }

/* ── Banner ── */
.banner {
  background: #1a1a1a; color: #fff;
  border-radius: 16px; padding: 40px 40px;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.banner-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 16px;
}
.banner-tag::before { content: '●'; font-size: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.banner h1 { font-size: clamp(22px,4vw,36px); color: #fff; margin-bottom: 10px; }
.banner p { color: rgba(255,255,255,.6); font-size: 15px; max-width: 500px; margin-bottom: 24px; }
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white { background: #fff; color: #1a1a1a; }
.btn-white:hover { background: #f0f0ec; color: #1a1a1a; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Countdown ── */
.countdown-box {
  background: #fff; border: 1px solid #e8e8e4; border-radius: 12px;
  padding: 20px 24px; margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px;
}
.countdown-icon { font-size: 28px; flex-shrink: 0; }
.countdown-text h3 { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.countdown-text p { font-size: 13px; color: #999; margin-top: 2px; }

/* ── Chat ── */
.chat-wrap {
  background: #fff; border: 1px solid #e8e8e4; border-radius: 12px;
  display: flex; flex-direction: column; height: 520px;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chat-msg-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.chat-msg-team { font-size: 12px; color: #aaa; }
.chat-msg-time { font-size: 11px; color: #ccc; margin-left: auto; }
.chat-msg-text { font-size: 14px; color: #333; word-break: break-word; }
.chat-input-area {
  border-top: 1px solid #f0f0ec; padding: 12px 16px;
  display: flex; gap: 8px; align-items: center;
}
.chat-input {
  flex: 1; padding: 9px 14px; border: 1px solid #e0e0da; border-radius: 8px;
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s;
}
.chat-input:focus { border-color: #1a1a1a; }
.chat-login-notice {
  border-top: 1px solid #f0f0ec; padding: 16px;
  text-align: center; font-size: 13px; color: #999;
}

/* ── Dashboard ── */
.dash-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.dash-sidebar {}
.dash-main {}
.profile-card { text-align: center; }
.profile-card .avatar-lg { margin: 0 auto 12px; display: block; }
.profile-name { font-size: 16px; font-weight: 700; }
.profile-email { font-size: 13px; color: #999; margin-top: 2px; }
.profile-since { font-size: 12px; color: #ccc; margin-top: 6px; }
.profile-divider { border: none; border-top: 1px solid #f0f0ec; margin: 16px 0; }

/* ── Team members list ── */
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fafaf8;
  border: 1px solid #f0f0ec; border-radius: 8px;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14px; font-weight: 600; }
.member-role { font-size: 12px; color: #aaa; }
.member-actions { display: flex; gap: 6px; }

/* ── Invite list ── */
.invite-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff;
  border: 1px solid #e8e8e4; border-radius: 8px; margin-bottom: 8px;
}
.invite-info { flex: 1; }
.invite-team { font-size: 14px; font-weight: 600; }
.invite-from { font-size: 12px; color: #999; margin-top: 2px; }
.invite-actions { display: flex; gap: 6px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid #e8e8e4; margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: #999; border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s; font-family: inherit;
}
.tab-btn.active { color: #1a1a1a; border-bottom-color: #1a1a1a; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Auth pages ── */
.auth-wrap { max-width: 420px; margin: 40px auto; padding: 0 24px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.auth-logo .logo-dot { color: #bbb; }
.auth-card { background: #fff; border: 1px solid #e8e8e4; border-radius: 16px; padding: 32px; }
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { font-size: 14px; color: #999; margin-bottom: 24px; }
.auth-footer { text-align: center; font-size: 13px; color: #999; margin-top: 16px; }
.auth-footer a { color: #1a1a1a; font-weight: 600; }

/* ── Bar chart ── */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 140px; font-size: 13px; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.bar-track { flex: 1; background: #f0f0ec; border-radius: 4px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: #1a1a1a; border-radius: 4px; transition: width .6s; }
.bar-val { width: 56px; text-align: right; font-size: 13px; font-weight: 700; color: #1a1a1a; flex-shrink: 0; }

/* ── Misc ── */
.divider { border: none; border-top: 1px solid #f0f0ec; margin: 20px 0; }
.text-muted { color: #999; }
.text-sm { font-size: 13px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.empty-state { text-align: center; padding: 40px 20px; color: #bbb; font-size: 14px; }
.empty-state-icon { font-size: 32px; margin-bottom: 8px; }

/* ── Footer redesigned ── */
.site-footer {
  background: #fff;
  border-top: 1px solid #e8e8e4;
  padding: 0;
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  padding: 56px 0 48px;
  border-bottom: 1px solid #f0f0ec;
}
.footer-brand {
  display: flex; flex-direction: column;
}
.footer-logo {
  font-size: 18px; font-weight: 700; letter-spacing: -.4px; color: #1a1a1a;
  display: inline-block; margin-bottom: 12px;
  text-decoration: none;
}
.footer-logo:hover { color: #1a1a1a; }
.footer-desc {
  font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 24px; flex: 1;
}
.footer-secure-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f8f8f6; border: 1px solid #e8e8e4; border-radius: 8px;
  padding: 8px 14px; margin-bottom: 20px;
}
.footer-secure-badge-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  background: #1a7a40; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700;
}
.footer-secure-badge-text {
  font-size: 11px; color: #666; line-height: 1.4;
}
.footer-secure-badge-text strong {
  display: block; font-size: 12px; color: #1a1a1a; font-weight: 600;
}
.footer-payment-logos {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.pay-logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 10px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  border: 1.5px solid #e0e0da; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.pay-logo:hover { border-color: #ccc; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.pay-logo-visa { color: #1a1f71; border-color: #c5c9e0; }
.pay-logo-mc {
  background: linear-gradient(90deg, #eb001b 0%, #ff5f00 50%, #f79e1b 100%);
  color: #fff; border-color: transparent;
  font-size: 9px; letter-spacing: .3px;
}
.pay-logo-mir { color: #00a651; border-color: #b0dfc0; }
.pay-logo-unitpay { color: #333; font-size: 11px; font-weight: 700; }

.footer-nav-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-content: start;
}
.footer-nav-col {
  display: flex; flex-direction: column; gap: 0;
}
.footer-nav-title {
  font-size: 11px; font-weight: 700; color: #bbb;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid #f0f0ec;
}
.footer-nav-col a {
  font-size: 13.5px; color: #666;
  padding: 5px 0;
  transition: color .15s; border-bottom: none;
  display: flex; align-items: center; gap: 6px;
}
.footer-nav-col a::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: #ddd; flex-shrink: 0;
  transition: background .15s;
}
.footer-nav-col a:hover { color: #1a1a1a; }
.footer-nav-col a:hover::before { background: #1a1a1a; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 12px; color: #bbb;
  gap: 16px;
}
.footer-bottom-left { display: flex; align-items: center; gap: 16px; }
.footer-bottom a { color: #bbb; transition: color .15s; }
.footer-bottom a:hover { color: #555; }
.footer-bottom-sep { color: #e0e0da; }
.footer-legal-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #ccc;
}
.footer-legal-note-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1a7a40; flex-shrink: 0;
}

/* ── Legal pages ── */
.legal-page-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  padding: 8px 0 40px;
}
.legal-sidebar {
  position: sticky; top: 76px;
  background: #fff;
  border: 1px solid #f0f0ec;
  border-radius: 12px;
  padding: 18px 16px;
}
.legal-sidebar-title {
  font-size: 10px; font-weight: 700; color: #bbb;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid #f0f0ec;
}
.legal-sidebar-nav {
  display: flex; flex-direction: column; gap: 2px;
}
.legal-sidebar-nav a {
  font-size: 13px; color: #888; padding: 5px 10px;
  border-radius: 6px; border-left: 2px solid transparent;
  transition: all .15s; line-height: 1.4;
}
.legal-sidebar-nav a:hover { color: #1a1a1a; background: #f5f5f3; border-left-color: #ccc; }
.legal-sidebar-nav a.active { color: #1a1a1a; background: #f0f0ec; border-left-color: #1a1a1a; font-weight: 600; }
.legal-main { min-width: 0; }

.legal-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #bbb; margin-bottom: 24px;
}
.legal-breadcrumb a { color: #bbb; transition: color .15s; }
.legal-breadcrumb a:hover { color: #555; }
.legal-breadcrumb-sep { color: #ddd; }

.legal-header {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 12px;
  padding: 28px 32px 24px;
  margin-bottom: 20px;
}
.legal-header-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.legal-header-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0f0ec; border-radius: 50px;
  padding: 3px 10px; font-size: 11px; font-weight: 600; color: #888;
}
.legal-header-date {
  font-size: 12px; color: #bbb;
}
.legal-header h1 {
  font-size: 1.6rem; font-weight: 700; color: #1a1a1a; line-height: 1.25;
  margin-bottom: 8px;
}
.legal-header-sub {
  font-size: 14px; color: #888; line-height: 1.6;
}

.legal-doc { background: #fff; border: 1px solid #e8e8e4; border-radius: 12px; padding: 32px; }
.legal-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f5f5f3;
  scroll-margin-top: 80px;
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: #f0f0ec; color: #888;
  font-size: 11px; font-weight: 700;
  margin-bottom: 10px;
}
.legal-section h2 {
  font-size: 15px; font-weight: 700; color: #1a1a1a;
  margin-bottom: 14px; line-height: 1.4;
}
.legal-section p {
  font-size: 14px; color: #444; line-height: 1.75; margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-list {
  list-style: none; padding: 0; margin: 12px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-list li {
  font-size: 14px; color: #444; line-height: 1.65;
  padding: 8px 12px 8px 36px; position: relative;
  background: #fafaf8; border-radius: 6px;
  border: 1px solid #f0f0ec;
}
.legal-list li::before {
  content: '—'; position: absolute; left: 14px; color: #ccc; top: 9px;
}
.legal-list-ordered { counter-reset: legal-counter; }
.legal-list-ordered li { counter-increment: legal-counter; }
.legal-list-ordered li::before {
  content: counter(legal-counter);
  color: #fff; font-weight: 700; font-size: 10px;
  background: #bbb; border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  top: 10px; left: 12px;
}

.legal-table-wrap {
  border: 1px solid #e8e8e4; border-radius: 10px;
  overflow: hidden; margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table td {
  padding: 11px 16px; font-size: 13.5px; color: #444;
  border-bottom: 1px solid #f0f0ec; vertical-align: top; line-height: 1.5;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child {
  font-weight: 600; color: #666; width: 200px;
  background: #fafaf8; border-right: 1px solid #f0f0ec;
}

.legal-callout {
  border-radius: 10px; padding: 16px 20px; margin: 16px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.legal-callout-info {
  background: #f0f6ff; border: 1px solid #d0e4f8;
}
.legal-callout-warn {
  background: #fffbf0; border: 1px solid #f0e0a0;
}
.legal-callout-ok {
  background: #f0faf4; border: 1px solid #b7e4c7;
}
.legal-callout-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.legal-callout-info .legal-callout-icon { background: #dbeeff; }
.legal-callout-warn .legal-callout-icon { background: #fde8a0; }
.legal-callout-ok .legal-callout-icon { background: #c3f0d4; }
.legal-callout-body { flex: 1; }
.legal-callout-body p {
  font-size: 13.5px; line-height: 1.65; margin-bottom: 6px;
}
.legal-callout-info .legal-callout-body p { color: #1a4a88; }
.legal-callout-warn .legal-callout-body p { color: #7a5500; }
.legal-callout-ok .legal-callout-body p { color: #1a5a30; }
.legal-callout-body p:last-child { margin-bottom: 0; }

.security-highlight {
  background: #f0f6ff; border: 1px solid #d0e4f8; border-radius: 10px;
  padding: 20px 24px; margin: 16px 0;
}
.security-highlight p {
  font-size: 14px; color: #1a4a88; line-height: 1.7; margin-bottom: 10px;
}
.security-highlight p:last-child { margin-bottom: 0; }

/* ── Contacts page ── */
.contacts-hero {
  background: #1a1a1a; border-radius: 16px;
  padding: 40px; margin-bottom: 32px;
  display: flex; align-items: center; gap: 32px;
}
.contacts-hero-text h1 {
  font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.contacts-hero-text p {
  font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.6;
}
.contacts-hero-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.contacts-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.contact-card {
  background: #fff; border: 1px solid #e8e8e4; border-radius: 12px;
  padding: 20px 22px; display: flex; align-items: flex-start; gap: 16px;
  transition: box-shadow .15s, border-color .15s;
  text-decoration: none; color: #1a1a1a;
}
.contact-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07); border-color: #d0d0cc;
  color: #1a1a1a;
}
.contact-card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-card-icon-email { background: #f0f4ff; }
.contact-card-icon-tg { background: #e8f4ff; }
.contact-card-icon-web { background: #f0faf4; }
.contact-card-icon-time { background: #fffbf0; }
.contact-card-body { flex: 1; min-width: 0; }
.contact-card-label {
  font-size: 11px; font-weight: 700; color: #bbb;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px;
}
.contact-card-value {
  font-size: 15px; font-weight: 600; color: #1a1a1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-card-hint {
  font-size: 12px; color: #aaa; margin-top: 3px; line-height: 1.4;
}

.contacts-section-title {
  font-size: 11px; font-weight: 700; color: #bbb;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #f0f0ec;
}

.requisites-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid #e8e8e4; border-radius: 10px; overflow: hidden;
}
.requisites-table td {
  padding: 12px 16px; font-size: 13.5px;
  border-bottom: 1px solid #f0f0ec; vertical-align: top;
}
.requisites-table tr:last-child td { border-bottom: none; }
.requisites-table td:first-child {
  font-weight: 600; color: #888; width: 220px;
  background: #fafaf8; border-right: 1px solid #f0f0ec;
}
.requisites-table td:last-child { color: #333; }
.requisites-pending {
  color: #bbb; font-style: italic; font-size: 13px;
}

.docs-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid #e8e8e4; border-radius: 10px;
  transition: background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none; color: #1a1a1a;
}
.doc-item:hover {
  background: #fafaf8; border-color: #d8d8d4;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  color: #1a1a1a;
}
.doc-icon-wrap {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f0f0ec; font-size: 16px;
}
.doc-info { flex: 1; }
.doc-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.doc-hint { font-size: 12px; color: #aaa; margin-top: 2px; }
.doc-arrow {
  width: 28px; height: 28px; border-radius: 8px;
  background: #f0f0ec; display: flex; align-items: center;
  justify-content: center; color: #999; font-size: 14px;
  flex-shrink: 0; transition: background .15s;
}
.doc-item:hover .doc-arrow { background: #1a1a1a; color: #fff; }

@media(max-width: 700px) {
  .dash-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .banner { padding: 28px 20px; }
  .header-inner { gap: 16px; }
  .main-nav { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav-group { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .legal-doc { padding: 24px 20px; }
  .legal-table td:first-child { width: 120px; }
}

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 40px; height: 40px; border-radius: 10px;
  background: #1a1a1a; color: #fff; border: none; cursor: pointer;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #333; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

@media(max-width: 860px) {
  .legal-page-wrap { grid-template-columns: 1fr; gap: 24px; }
  .legal-sidebar { position: static; display: none; }
  .contacts-grid-2 { grid-template-columns: 1fr; }
  .contacts-hero { flex-direction: column; gap: 16px; padding: 28px; }
}
@media(max-width: 700px) {
  .dash-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .banner { padding: 28px 20px; }
  .header-inner { gap: 16px; }
  .main-nav { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav-group { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom-left { flex-wrap: wrap; justify-content: center; }
  .legal-doc { padding: 20px; }
  .legal-table td:first-child { width: 120px; }
  .back-to-top { bottom: 16px; right: 16px; }
}
