:root {
  --bg: #07080c;
  --bg-elevated: #0d0f16;
  --surface: #12141c;
  --surface-2: #1a1d28;
  --border: #2a2f3d;
  --text: #eef0f6;
  --muted: #8b93a7;
  --accent: #ff6b35;
  --accent-soft: #ff8f5c;
  --accent-dim: #c94f26;
  --accent-glow: rgba(255, 107, 53, 0.25);
  --success: #4caf50;
  --success-dim: rgba(76, 175, 80, 0.15);
  --danger: #ef5350;
  --danger-dim: rgba(239, 83, 80, 0.15);
  --warning: #ffb74d;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 92vw); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-dim));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-glow {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.card-glow::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
label span.lbl { display: block; margin-bottom: 6px; font-size: 14px; }

.status-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 14px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.offline { background: var(--danger); }

.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
}
.site-header nav a.muted { color: var(--muted); }
.btn-nav-micert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  color: #1e3a5f !important;
  background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
  border: 1px solid #bfdbfe;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 0 #60a5fa,
    0 6px 14px rgba(59, 130, 246, 0.22);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn-nav-micert:hover {
  transform: translateY(1px);
  filter: brightness(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 0 #60a5fa,
    0 4px 10px rgba(59, 130, 246, 0.2);
}
.btn-nav-micert:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 #60a5fa,
    0 2px 6px rgba(59, 130, 246, 0.18);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.logo-link:hover { text-decoration: none; }

.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(76, 175, 80, 0.08), transparent);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.15;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  pointer-events: none;
}
.hero-visual { display: flex; justify-content: center; margin-bottom: 28px; min-height: 360px; }
.hero-phone { width: min(280px, 70vw); height: auto; aspect-ratio: 280 / 360; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5)); }

.hero-slides {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  min-height: 160px;
}
.hero-slide {
  animation: heroFadeIn 0.45s ease;
}
.hero-slide[hidden] {
  display: none !important;
}
.hero-slide-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 auto 16px;
  max-width: 720px;
}
.hero-slide-text {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}
.hero-slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.2s, transform 0.2s, width 0.2s;
}
.hero-dot.is-active {
  width: 28px;
  background: var(--accent-soft);
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.4); }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 560px; }
.section-head { text-align: center; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: var(--accent-glow);
}
.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.badge-warning { background: rgba(255, 183, 77, 0.15); color: var(--warning); }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  color: var(--muted);
  text-align: left;
  font-weight: 600;
  padding: 10px 12px 10px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table td {
  padding: 12px 12px 12px 0;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
  margin-top: 48px;
}

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.ok { background: var(--success-dim); color: var(--success); border: 1px solid var(--success); }
.alert.err { background: var(--danger-dim); color: var(--danger); border: 1px solid var(--danger); }

.pw-box {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
}
.pw-box code {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 15px;
  word-break: break-all;
  margin: 8px 0;
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-soft);
  text-decoration: none;
}
.filter-tab[data-notify-tab] {
  position: relative;
}
.filter-tab__badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #07080c;
  pointer-events: none;
}
.filter-tab.has-notify:not(.active) {
  border-color: #ff6b35;
  color: #ffb38a;
}
.filter-tab.has-notify-pulse:not(.active) {
  animation: filter-tab-notify-pulse 2s ease-in-out infinite;
}
@keyframes filter-tab-notify-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-card {
  max-width: 400px;
  width: 100%;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.package-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface);
}
.package-card.selected {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.06);
}
.package-card:hover { border-color: var(--accent-dim); }

.dash-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.dash-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dash-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.generated-pw-box {
  margin: 8px 0 16px;
  padding: 16px;
  border: 1px solid var(--accent);
}
.generated-pw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.generated-pw-row code {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 15px;
  letter-spacing: 0.05em;
  word-break: break-all;
}

.credits-input-lg {
  width: 100%;
  padding: 14px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.credits-input-lg.invalid { border-color: var(--danger); }

.page-main { padding: 32px 0; }

.auth-page { padding: 48px 0; max-width: 420px; }
.auth-page-wide { padding: 48px 0; max-width: 480px; }
.portal-page { padding: 64px 0; max-width: 420px; }

/* Reseller support — WhatsApp Support button */
.reseller-support-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
}

.whatsapp-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(155deg, #6ef59a 0%, #25d366 42%, #1aab54 78%, #0f7a38 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 24px rgba(37, 211, 102, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-support-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 14px 30px rgba(37, 211, 102, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-support-btn:active {
  transform: translateY(0);
}

.whatsapp-support-btn__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.site-support-bar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  min-height: 64px;
}

.site-support-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.site-support-bar__lead {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-support-bar__label {
  font-weight: 700;
  font-size: 14px;
}

.site-support-bar__hint {
  color: var(--muted);
  font-size: 12px;
}

.site-support-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-support-btn--compact {
  padding: 10px 18px;
  font-size: 14px;
}

/* Reseller social — 3D app-style buttons */
.reseller-contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reseller-contact-bar__side {
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reseller-contact-bar__side--left {
  justify-content: flex-end;
}

.reseller-contact-bar__side--right {
  justify-content: flex-start;
}

.reseller-contact-bar__spacer {
  display: block;
  width: 58px;
  height: 58px;
}

.reseller-contact-bar__link {
  flex: 0 1 auto;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 4px;
}

.reseller-contact-bar__link:hover {
  text-decoration: underline;
}

.reseller-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

.social-btn-3d__face {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -3px 0 rgba(0, 0, 0, 0.15) inset,
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.22s ease;
}

.social-btn-3d__icon {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

.social-btn-3d__shine {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.social-btn-3d--whatsapp .social-btn-3d__face {
  background: linear-gradient(155deg, #6ef59a 0%, #25d366 42%, #1aab54 78%, #0f7a38 100%);
}

.social-btn-3d--telegram .social-btn-3d__face {
  background: linear-gradient(155deg, #7ee0ff 0%, #2aabee 42%, #229ed9 78%, #156fa0 100%);
}

.social-btn-3d--facebook .social-btn-3d__face {
  background: linear-gradient(155deg, #6ba8ff 0%, #1877f2 42%, #166fe5 78%, #0d52b8 100%);
}

.social-btn-3d:hover {
  transform: translateY(-4px) scale(1.04);
  text-decoration: none;
}

.social-btn-3d:hover .social-btn-3d__face {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -2px 0 rgba(0, 0, 0, 0.1) inset,
    0 18px 36px rgba(0, 0, 0, 0.55),
    0 8px 16px rgba(0, 0, 0, 0.35);
}

.social-btn-3d:active {
  transform: translateY(0) scale(0.97);
}

.social-btn-3d:active .social-btn-3d__face {
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.35) inset,
    0 4px 10px rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
  .site-header nav { gap: 12px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .dash-nav { gap: 10px; font-size: 13px; }
  .social-btn-3d__face { width: 52px; height: 52px; border-radius: 16px; }
  .social-btn-3d__icon { width: 26px; height: 26px; }
  .reseller-contact-bar { gap: 12px; }
  .reseller-contact-bar__link { font-size: 15px; }
  .reseller-contact-bar__side,
  .reseller-contact-bar__spacer { flex-basis: 52px; width: 52px; }
  .reseller-contact-bar__spacer { height: 52px; }
}

.seo-page__head { max-width: 760px; margin-bottom: 28px; }
.seo-page__eyebrow {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.seo-page__head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.seo-page__lead { color: var(--muted); font-size: 17px; max-width: 680px; }
.seo-faq { display: grid; gap: 12px; }
.seo-faq__item { padding: 0; overflow: hidden; }
.seo-faq__question {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 18px;
  list-style: none;
}
.seo-faq__question::-webkit-details-marker { display: none; }
.seo-faq__answer {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.seo-faq__answer p { margin: 0; }
.seo-guide__list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.seo-guide__step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.seo-guide__step { padding: 18px 20px; }
.seo-guide__step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.seo-guide__step h3 { margin: 0 0 8px; font-size: 18px; }
.seo-guide__step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Live support widget (site) */
.live-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  font-size: 14px;
}
.live-support__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.live-support__toggle:hover { filter: brightness(1.05); }
.live-support__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  flex-direction: column;
  background: #12141c;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.live-support__panel[hidden],
.live-support__panel:not(.is-open) {
  display: none !important;
}
.live-support__panel.is-open {
  display: flex;
}
.live-support__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.live-support__head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.live-support__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.live-support__intro { padding: 12px 16px 0; display: grid; gap: 8px; }
.live-support__field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.live-support__messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  min-height: 140px;
  max-height: 240px;
}
.live-support__msg { margin-bottom: 10px; max-width: 92%; }
.live-support__msg--visitor { margin-left: auto; text-align: right; }
.live-support__msg--admin { margin-right: auto; }
.live-support__msg-body {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  line-height: 1.45;
  word-break: break-word;
}
.live-support__msg--visitor .live-support__msg-body {
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.live-support__msg--admin .live-support__msg-body {
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
}
.live-support__composer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
}
.live-support__composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.live-support__wa { font-size: 12px; color: var(--muted); }
.live-support__hint { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.live-support__hint.is-error { color: #ff6b6b; font-weight: 600; }
#live-support-new-chat {
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Admin live support */
.support-admin__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.support-admin__meta { display: flex; align-items: center; gap: 10px; }
.support-unread-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
}
.support-admin__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 16px;
  min-height: 420px;
}
.support-admin__list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-y: auto;
  max-height: 520px;
  background: rgba(0, 0, 0, 0.15);
}
.support-admin__empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.support-conv-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.support-conv-item:hover,
.support-conv-item.is-active { background: rgba(255, 107, 53, 0.08); }
.support-conv-item__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.support-conv-unread {
  background: #22c55e;
  color: #052e16;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
.support-conv-item__preview {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-conv-item__time { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.support-admin__chat {
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  background: rgba(0, 0, 0, 0.1);
}
.support-admin__chat-placeholder {
  margin: auto;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.support-admin__chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.support-chat-status {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}
.support-admin__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 240px;
}
.support-msg { margin-bottom: 12px; max-width: 85%; }
.support-msg--visitor { margin-right: auto; }
.support-msg--admin { margin-left: auto; text-align: right; }
.support-msg__meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.support-msg__body {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  line-height: 1.45;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.support-msg--admin .support-msg__body {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.25);
}
.support-admin__reply {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.support-admin__reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .support-admin__layout { grid-template-columns: 1fr; }
  .support-admin__list { max-height: 200px; }
}

.user-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.user-detail__card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}
.user-detail__card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.user-detail__card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}
.user-detail__card dt { color: var(--muted); margin: 0; }
.user-detail__card dd { margin: 0; word-break: break-word; }
