/* TripleX — зелёные кнопки = главное действие */
* { box-sizing: border-box; }
:root {
  --green: #2ea043;
  --green-hover: #3fb950;
  --green-dim: rgba(46, 160, 67, 0.15);
  --blue: #1f6feb;
  --blue-hover: #388bfd;
  --blue-dim: rgba(31, 111, 235, 0.15);
  --bg: #000000;
  --card: #0a0a0a;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --plain: #21262d;
  --hero-glow: none;
}

html {
  background: #000000;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000000;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
  min-height: 100vh;
  font-size: 16px;
}

body.page-connect {
  background: var(--bg);
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 48px; }
.wrap-wide { max-width: 720px; margin: 0 auto; padding: 16px 20px 48px; }

.top-bar {
  margin-bottom: 20px;
}
.top-bar .btn-home {
  margin-top: 0;
  width: 100%;
  display: block;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 16px;
}

h1 { font-size: 1.5rem; margin: 0 0 16px; font-weight: 700; }
h2 { font-size: 1.05rem; margin: 0 0 12px; font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.top-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.top-bar-actions .btn-home { flex: 1; min-width: 140px; }
.top-bar-actions .btn-logout {
  flex: 0 1 auto;
  margin-top: 0;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 16px 22px;
  border-radius: 12px;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: 17px;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.25;
  min-height: 52px;
  box-shadow: 0 4px 14px rgba(46, 160, 67, 0.35);
  transition: transform 0.1s, background 0.15s;
}
.btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; display: block; }
.btn-lg { padding: 18px 24px; font-size: 18px; min-height: 56px; }

.btn-plain {
  background: var(--plain);
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  padding: 12px 18px;
}
.btn-plain:hover {
  background: var(--border);
  transform: none;
  text-decoration: none !important;
}
.btn-blue {
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(31, 111, 235, 0.35);
}
.btn-yellow {
  background: #9a7b00;
  color: #fffbe6;
  border-color: #b8940a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(184, 148, 10, 0.28);
}
.btn-yellow:hover {
  background: #b8940a;
  border-color: #d4ad12;
  color: #ffffff;
}

.btn-blue:hover {
  background: var(--blue-hover);
}

.btn-secondary,
.btn-gray {
  background: var(--plain);
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 600;
  font-size: 17px;
  min-height: 52px;
  padding: 16px 22px;
}
.btn-secondary:hover,
.btn-gray:hover {
  background: var(--border);
  color: var(--text) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}
.connect-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.connect-actions .btn { margin-top: 0; }

.page-connect .connect-actions-top {
  margin: 0 0 18px;
  width: 100%;
}
.page-connect .connect-actions-top .btn-blue {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #fff;
}
.page-connect .connect-actions-top .btn-blue:hover {
  background: #388bfd;
  border-color: #388bfd;
  color: #fff;
}
.page-connect .connect-actions-top .btn {
  margin-top: 0;
}
.page-connect #getVpnBtn {
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(46, 160, 67, 0.35);
}
.page-connect #getVpnBtn:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}
.page-connect .connect-frame {
  margin-top: 20px;
}
.page-connect .connect-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 18px;
  width: 100%;
}
.page-connect .connect-result .btn {
  margin-top: 0;
}
.page-connect .connect-result.hidden {
  display: none !important;
}
.connect-panel {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.page-connect .connect-actions { margin: 0; }

.page-connect .connect-help {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.page-connect .connect-head {
  margin-bottom: 4px;
}
.page-connect .connect-head h1 {
  margin: 0;
  font-size: 1.35rem;
}

.connect-lead {
  display: block;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
}
.connect-sub-hint {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}
.connect-sub-hint-title { margin: 0 0 8px; }
.connect-sub-hint ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.connect-sub-hint li { margin-bottom: 4px; }
.connect-mini-hint { font-size: 13px; margin-top: 10px; }
.connect-hints,
.connect-help { margin-top: 0; }

.page-connect .btn-blue {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(31, 111, 235, 0.35);
}
.page-connect .btn-blue:hover {
  background: var(--blue-hover);
}
.page-connect .btn:not(.btn-blue):not(.btn-secondary):not(.btn-plain):not(.btn-yellow) {
  background: var(--green);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(46, 160, 67, 0.35);
}
.page-connect .btn:not(.btn-blue):not(.btn-secondary):not(.btn-plain):not(.btn-yellow):hover {
  background: var(--green-hover);
}
.page-connect .banner-support {
  margin-top: 20px;
  width: 100%;
}
.page-connect .banner-support .btn-yellow {
  background: #9a7b00;
  color: #fffbe6 !important;
  border-color: #b8940a;
  box-shadow: 0 4px 14px rgba(154, 123, 0, 0.35);
}
.page-connect .banner-support .btn-yellow:hover {
  background: #b8940a;
  border-color: #d4ad12;
  color: #ffffff !important;
}
.connect-help-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}
.connect-help ol.connect-steps {
  display: block;
  margin: 8px 0 12px;
  padding-left: 20px;
  color: var(--text);
}
.connect-help ol.connect-steps li { margin-bottom: 6px; }
.connect-steps.hidden { display: none; }

.btn-sm {
  padding: 12px 16px;
  font-size: 16px;
  min-height: 48px;
  margin-top: 0;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.nav-row .btn { flex: 1; min-width: 140px; margin-top: 0; }

label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 14px; }
label:first-child { margin-top: 0; }

input[type=text], input[type=email], input[type=password], input[type=number] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000000;
  color: var(--text);
  font-size: 17px;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000000;
  color: var(--text);
  font-size: 17px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}
.feedback-form { margin-top: 8px; }
.form-hint { font-size: 14px; color: var(--muted); margin: 12px 0; line-height: 1.45; }
.label-opt { color: var(--muted); font-weight: 400; }
.label-req { color: #f85149; }
.muted-block { color: var(--muted); line-height: 1.5; margin-bottom: 8px; }

.err { color: #f85149; margin-top: 12px; font-size: 15px; font-weight: 600; }
.ok { color: var(--green-hover); margin-top: 12px; font-size: 15px; font-weight: 600; }
.hidden { display: none !important; }

.row { display: flex; justify-content: space-between; margin: 10px 0; font-size: 16px; }
.row span:first-child { color: var(--muted); }
.row strong { font-weight: 700; }

.tariffs { display: grid; gap: 10px; margin-top: 8px; }
.tariff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #000000;
}
.tariff span { font-size: 16px; font-weight: 500; }

.topup-row { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.topup-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.topup-presets .btn { flex: 1; min-width: 72px; margin-top: 0; padding: 12px 8px; font-size: 15px; min-height: 44px; }

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.status-ok { background: var(--green-dim); color: var(--green-hover); }
.status-off { background: rgba(248, 81, 73, 0.12); color: #f85149; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; width: auto; }

.page-home .hero { text-align: center; padding: 0 0 20px; }
.hero-brand {
  width: 100%;
  margin: 0 auto 18px;
  padding: 0;
  line-height: 0;
  background: var(--bg);
  border-radius: 0;
  overflow: visible;
}
.hero-brand picture {
  display: block;
  width: 100%;
  background: var(--bg);
}
.site-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  filter: var(--hero-glow);
  vertical-align: top;
}
.page-home .hero-brand,
.page-connect .connect-hero {
  max-width: 100%;
}
.page-home .hero-brand,
.page-home .hero-brand picture {
  background: #000000;
}
.page-home .site-logo {
  background: #000000;
}
.page-home .site-logo,
.page-connect .connect-hero .site-logo {
  min-height: 0;
  max-height: none;
  aspect-ratio: 1024 / 281;
}
.page-connect .page-shell {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 12px;
  max-width: min(720px, 100%);
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}
.page-connect .connect-hero {
  width: 100%;
  margin-bottom: 14px;
  background: var(--bg);
}
.site-logo-sm {
  max-height: none;
  margin-bottom: 0;
}
.page-home .tagline {
  color: var(--muted);
  margin: 0 auto 18px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.page-shell {
  width: 100%;
  max-width: min(560px, 100%);
  margin: 0 auto;
  padding: 20px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.connect-frame {
  width: 100%;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 22px 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.45);
}
.connect-head {
  text-align: center;
  margin-bottom: 8px;
}

.connect-head h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.page-connect .top-bar { display: none; }

/* /connect — импорт подписки в Happ */
body.page-connect-happ {
  text-align: center;
}
.page-connect-happ .connect-page-shell {
  width: 100%;
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 20px max(12px, env(safe-area-inset-right, 0px)) 40px max(12px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.page-connect-happ .tagline {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.page-connect-happ .line {
  width: 48px;
  height: 2px;
  background: var(--green);
  margin: 0 auto 20px;
  align-self: center;
}
.page-connect-happ .status {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.page-connect-happ .connect-actions-primary,
.page-connect-happ .connect-secondary.is-visible {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-connect-happ .connect-actions-primary .btn,
.page-connect-happ .connect-secondary > .btn {
  width: 100%;
  display: block;
  margin-top: 0;
}
.page-connect-happ .connect-secondary {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.page-connect-happ .connect-secondary.is-visible {
  display: flex;
}
.page-connect-happ .qr-block {
  width: 100%;
  margin-top: 4px;
}
.page-connect-happ .qr-block h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  font-weight: 600;
}
.page-connect-happ .qr-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
  min-height: 200px;
  min-width: 200px;
}
.page-connect-happ .qr-wrap.is-ready {
  min-height: auto;
}
.page-connect-happ .qr-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.45;
}
.page-connect-happ .connect-downloads {
  margin-top: 28px;
  width: 100%;
}
.page-connect-happ .connect-downloads h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.page-connect-happ .dl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-connect-happ .dl-list a {
  color: #58a6ff;
  text-decoration: none;
  font-size: 15px;
}
.page-connect-happ .connect-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.page-connect-happ .err {
  color: #f85149;
}

.about-card { margin-top: 8px; }
.about-lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.about-lead a { color: #58a6ff; text-decoration: none; }
.about-lead a:hover { text-decoration: underline; }
.about-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(35, 134, 54, 0.06) 0%, rgba(0, 0, 0, 0) 55%);
}
.about-feature-icon {
  flex: 0 0 28px;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}
.about-feature-body b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}
.about-feature-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.about-feature-body a {
  color: #58a6ff;
  text-decoration: none;
}
.about-feature-body a:hover { text-decoration: underline; }

.or-divider {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0;
}

.auth-split {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.auth-split-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-split-text {
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}

.tg-card {
  text-align: center;
  padding-bottom: 16px;
}
.tg-label {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}
.tg-widget-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-bottom: 12px;
}
.tg-widget-wrap iframe {
  border-radius: 10px;
}
.connect-tg-card {
  margin-bottom: 16px;
}
.connect-mini-hint {
  margin: 8px 0 0;
  font-size: 13px;
}
.tg-link-hint {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.stats-card {
  padding: 0;
  overflow: hidden;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child {
  border-bottom: none;
}
.stat-label {
  color: var(--muted);
  font-size: 15px;
}
.stat-value {
  font-weight: 700;
  font-size: 17px;
  text-align: right;
  min-width: 88px;
}
.stat-value .status-pill {
  vertical-align: middle;
}

#tgLogin, #tgRegister {
  display: flex;
  justify-content: center;
  min-height: 48px;
}

footer.site-foot {
  text-align: center;
  padding: 24px 0 32px;
  font-size: 13px;
  color: #6e7681;
  border-top: 1px solid #21262d;
  margin-top: 24px;
}
footer.site-foot a { color: var(--muted); margin: 0 8px; }

.offer { font-size: 14px; line-height: 1.6; }
.offer p { margin: 0 0 12px; }

.section-title { margin: 0 0 14px; font-size: 1.1rem; }
.section-lead { margin: 0 0 14px; }
ol.how-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
ol.how-steps li { margin-bottom: 10px; }
ol.how-steps a { color: #58a6ff; }
.muted-center { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.banner-trial {
  border-color: #3fb950;
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.12), rgba(22, 27, 34, 0.9));
}
.banner-title { margin: 0 0 8px; font-weight: 700; font-size: 1.05rem; }
.banner-text { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.banner-hint { margin: 10px 0 0; font-size: 13px; color: #6e7681; }


.maint-alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #f85149;
  background: rgba(248, 81, 73, 0.15);
  color: #ff7b72;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}
.banner-warn {
  border-color: #d29922;
  background: rgba(210, 153, 34, 0.12);
  color: #e3b341;
  font-size: 14px;
  line-height: 1.45;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 400px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 500;
  margin-right: 6px;
  opacity: 0.75;
}
.price-item {
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-label { font-size: 13px; color: var(--muted); }
.price-value { font-size: 18px; font-weight: 700; }
.save-badge {
  color: #3fb950;
  font-size: 12px;
  font-weight: 600;
}

.faq-card .faq-item {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.faq-card .faq-item:last-child { border-bottom: none; }
.faq-card summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.password-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.password-row input { flex: 1; margin-bottom: 0; }
.btn-eye {
  margin-top: 0 !important;
  min-height: 48px;
  padding: 0 14px;
  flex-shrink: 0;
}

.muted { color: var(--muted); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.forgot-block { margin: 14px 0 0; text-align: center; font-size: 14px; }
.forgot-hint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.forgot-hint p { margin: 0 0 10px; }

.onboarding-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.onboarding-steps li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step-hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.onboarding-dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.onboarding-dl a {
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none !important;
}

.card-highlight {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.06);
}

.tariff .save-badge { margin-left: 4px; }

.ok {
  color: #3fb950;
  font-size: 14px;
  margin: 8px 0;
}

.connect-support {
  margin-top: 16px;
}


/* ── Support chat ── */
.page-support .support-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.support-chat-card {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  max-height: calc(100vh - 80px);
  padding: 0;
  overflow: hidden;
}
.support-chat-head {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.chat-tag {
  font-size: 13px;
  font-weight: 700;
  color: #c9b070;
  font-family: ui-monospace, monospace;
  margin-right: 8px;
  white-space: nowrap;
}
.chat-head-hint {
  color: var(--muted);
}
.support-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble-user {
  align-self: flex-end;
  background: #1a3a5c;
  border: 1px solid #2a5080;
}
.chat-bubble-support {
  align-self: flex-start;
  background: #2a2418;
  border: 1px solid #5c4e2a;
  color: #dcc98a;
}
.chat-bubble-system {
  align-self: center;
  max-width: 100%;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.chat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  opacity: 0.75;
}
.support-chat-notice {
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.support-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  align-items: stretch;
}
.support-chat-input-row textarea {
  flex: 1;
  margin: 0;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  resize: none;
  padding: 12px 14px;
  line-height: 1.25;
  box-sizing: border-box;
}
.support-chat-input-row .btn {
  margin: 0;
  flex-shrink: 0;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.support-chat-input-row .chat-attach-btn {
  width: 48px;
  min-width: 48px;
  padding: 0;
  background: #1c2128;
  border: 1px solid #545d68;
  color: #9aa3ad;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.support-chat-input-row .chat-attach-btn:hover {
  background: #252b33;
  border-color: #6e7681;
  color: #b8c0c8;
}
.chat-attach-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}
.chat-image {
  display: block;
  cursor: zoom-in;
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  margin-top: 4px;
  cursor: pointer;
}
.chat-bubble-image {
  padding: 8px;
}

.chat-image {
  cursor: zoom-in;
}
.chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.chat-lightbox.hidden {
  display: none !important;
}
.chat-lightbox-img {
  max-width: min(100%, 1200px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
  user-select: none;
}
.chat-lightbox-close {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.chat-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
