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

/* ── Top Progress Bar ────────────────────────────── */
#topBar {
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
#topBar.active { opacity: 1; }
#topBarFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6c63ff, #a78bfa, #00d4aa);
  box-shadow: 0 0 8px rgba(108,99,255,.7);
  border-radius: 0 2px 2px 0;
}

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #222636;
  --border: #2e3347;
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --accent3: #ff6b6b;
  --accent4: #ffa94d;
  --text: #e8eaf0;
  --muted: #7c82a0;
  --sidebar-width: 220px;
  --header-height: 60px;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 20px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.sidebar-logo .logo-full span { color: var(--accent2); }
.logo-mini { display: none; }

.nav-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 20px 8px;
  margin-top: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(108,99,255,.08); font-weight: 600; }

.nav-icon { font-size: 1rem; width: 18px; text-align: center; }

.sidebar-profile {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sidebar-profile:hover { background: var(--surface2); }

.sb-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2d1b6b;
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--accent);
}
.sb-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-prof-info strong { display: block; font-size: 0.825rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.sidebar-prof-info small { color: var(--muted); font-size: 0.72rem; }

/* ── Page wrapper (right of sidebar) ──────────────── */
.page-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────── */
.app-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.15s;
}
.sidebar-toggle:hover { background: var(--surface2); }

.header-breadcrumb {
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
}
.header-breadcrumb .page-name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
  line-height: 1;
}
.header-icon-btn:hover { color: var(--text); border-color: var(--accent); background: rgba(108,99,255,.07); }

.notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--accent3);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

/* ── Notification panel ───────────────────────────────────────── */
.notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  z-index: 9999;
  overflow: hidden;
}
@media (max-width: 600px) {
  .notif-panel {
    position: fixed;
    top: 70px;
    left: 50%;
    right: auto;
    width: 88vw;
    max-width: 320px;
    transform: translateX(-50%);
  }
}
.notif-panel.open { display: flex; flex-direction: column; }
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.notif-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
}
.notif-close:hover { color: var(--text); }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-loading { padding: 32px 16px; text-align: center; color: var(--muted); font-size: .8rem; }
.notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,.03); }
.notif-dot-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: .8rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.notif-detail { font-size: .72rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.notif-time { font-size: .68rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.notif-empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: .8rem; }

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--text);
}
.header-user:hover { background: var(--surface2); color: var(--text); text-decoration: none; }

.header-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2d1b6b;
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--accent);
}
.header-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.header-user-name {
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-user-role {
  font-size: 0.7rem;
  color: var(--muted);
}
.header-chevron { font-size: 0.65rem; color: var(--muted); }

/* ── Main content ─────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 28px;
  overflow-x: hidden;
}

/* ── Footer ───────────────────────────────────────── */
.app-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

/* ── Page topbar (shared across all pages) ────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar h1 { font-size: 1.35rem; font-weight: 700; }
.topbar p  { color: var(--muted); font-size: 0.8rem; margin-top: 3px; }
.topbar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Shared components ────────────────────────────── */
.btn {
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 0.825rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5a52d5; color: #fff; text-decoration: none; }
.btn-outline { background: none; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(108,99,255,.06); text-decoration: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 { font-size: 0.95rem; font-weight: 600; }
.card-body { padding: 20px; }

.tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--muted);
}

/* ── Profile edit modal ───────────────────────────── */
.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.pm-overlay.open { opacity: 1; pointer-events: all; }

.pm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  transform: translateY(24px);
  transition: transform .22s cubic-bezier(.34,1.2,.64,1);
  overflow: hidden;
}
.pm-overlay.open .pm { transform: translateY(0); }

.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.pm-header h3 { font-size: 1rem; font-weight: 700; }
.pm-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.pm-close:hover { color: var(--text); background: var(--surface2); }

.pm-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.pm-av {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #2d1b6b;
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--accent);
  cursor: pointer;
}
.pm-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.pm-av-camera {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.pm-av:hover .pm-av-camera {
  opacity: 1;
  background: rgba(0,0,0,0.52);
}
.pm-av-camera svg {
  width: 20px; height: 20px;
  color: #fff;
  pointer-events: none;
}
.pm-av-camera input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.pm-av-name { font-weight: 600; font-size: 0.95rem; }
.pm-av-role { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.pm-body { padding: 20px 24px 0; }

.pm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pm-field { margin-bottom: 16px; }
.pm-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.pm-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pm-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pm-field input::placeholder { color: var(--muted); }

/* Ambassador URL wrap */
.pm-url-wrap { display: flex; flex-direction: column; gap: 8px; }
.pm-url-wrap input { width: 100%; }

.pm-url-actions { display: flex; gap: 8px; }

.pm-url-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 12px;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.pm-url-btn:hover { background: var(--border); }

.pm-share-wrap { position: relative; }

.pm-share-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    z-index: 10;
}
.pm-share-dropdown.open { display: block; }

.pm-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
    transition: background .12s;
}
.pm-share-item:hover { background: var(--surface2); }
.pm-share-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.pm-share-wa  { color: #25d366; }
.pm-share-wa:hover { background: rgba(37,211,102,.08); }
.pm-share-fb  { color: #1877f2; }
.pm-share-fb:hover { background: rgba(24,119,242,.08); }
.pm-share-tw  { color: var(--text); }
.pm-share-tw:hover { background: var(--surface2); }

.pm-error {
  color: #f87171;
  font-size: 0.78rem;
  min-height: 18px;
  margin-bottom: 4px;
}

.pm-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

/* header-user as button */
button.header-user {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ── Sidebar overlay (mobile) ─────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
}

/* ── Responsive ───────────────────────────────────── */

/* Tablet landscape (861–1100px): icon-only mini sidebar */
@media (max-width: 1100px) and (min-width: 861px) {
  :root { --sidebar-width: 64px; }

  .sidebar { overflow: visible; } /* allow tooltips to overflow edge */

  .sidebar-logo { padding: 0 0 24px; text-align: center; }
  .logo-full { display: none; }
  .logo-mini { display: inline-block; }

  .nav-section { height: 0; padding: 0; margin: 0; overflow: hidden; }
  .nav-label { display: none; }
  .nav-icon { width: auto; }
  .nav-link { justify-content: center; padding: 12px 0; position: relative; }

  /* CSS tooltip from title attribute */
  .nav-link::after {
    content: attr(title);
    position: absolute;
    left: calc(var(--sidebar-width) + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  .nav-link:hover::after { opacity: 1; }

  .sidebar-profile { justify-content: center; padding: 12px 0; }
  .sidebar-prof-info { display: none; }
}

/* Tablet / Mobile (≤860px): off-canvas sidebar */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .sidebar-toggle { display: flex; }
  .page-wrapper { margin-left: 0; }
  .header-user-role { display: none; }
  .app-header { padding: 0 16px; }
  .main-content { padding: 20px; }
}

/* Large phone (≤640px) */
@media (max-width: 640px) {
  .header-actions { gap: 4px; }
  .header-divider { display: none; }
  .header-user { padding: 5px 8px; gap: 6px; }
  .header-user-name { display: none; }
  .header-chevron { display: none; }
}

/* Topbar responsive */
@media (max-width: 640px) {
  .topbar { flex-direction: row; align-items: center; }
  .topbar h1 { font-size: 1.15rem; }
  .topbar-actions { width: auto; flex-shrink: 0; }
  .topbar-actions .btn { flex: none; }
}

/* Phone (≤480px) */
@media (max-width: 480px) {
  :root { --header-height: 52px; }
  .app-header { padding: 0 10px; gap: 8px; }
  .header-icon-btn { padding: 5px 8px; }
  .main-content { padding: 12px; }
  .app-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
  }
  .footer-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .btn { padding: 8px 14px; }
}

/* Very small phone (≤360px) */
@media (max-width: 360px) {
  .header-icon-btn { display: none; }
  .main-content { padding: 10px; }
  .btn { font-size: 0.78rem; }
}

/* ── Mobile Bottom Nav ────────────────────────────── */
.mob-nav {
  display: none;
}

@media (max-width: 860px) {
  .mob-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  }

  /* push main content above the nav bar */
  .main-content { padding-bottom: 80px; }

  /* move support panel above bottom nav */
  .cs-panel { bottom: 72px; right: 12px; width: calc(100vw - 24px); }
}

.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item svg { width: 22px; height: 22px; }
.mob-nav-item span { white-space: nowrap; }
.mob-nav-item:hover,
.mob-nav-item.active { color: var(--accent); }
.mob-nav-item.active svg { stroke-width: 2.5; }
.mob-nav-support { color: var(--muted); }
.mob-nav-support:hover { color: var(--accent); }
.mob-nav-support svg { fill: currentColor; }

/* ── Floating Contact Support ─────────────────────── */
.cs-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 400;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(108,99,255,.45);
  transition: transform .2s, box-shadow .2s;
  user-select: none;
}
.cs-fab:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(108,99,255,.55); }

.cs-panel {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 401;
  width: 300px;
  background: #16182a;
  border: 1px solid rgba(108,99,255,.4);
  border-radius: 18px;
  box-shadow: 0 20px 56px rgba(0,0,0,.6), 0 0 0 1px rgba(108,99,255,.1);
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.34,1.2,.64,1), opacity .18s;
}
.cs-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.cs-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(108,99,255,.22), rgba(167,139,250,.1));
  border-bottom: 1px solid rgba(108,99,255,.22);
}
.cs-panel-title { font-size: 0.9rem; font-weight: 700; color: #c4b5fd; }
.cs-panel-sub   { font-size: 0.72rem; color: #8b91b0; margin-top: 2px; }
.cs-panel-close {
  background: rgba(255,255,255,.07); border: none; color: #8b91b0;
  cursor: pointer; font-size: 0.85rem; padding: 3px 7px;
  border-radius: 7px; line-height: 1; transition: background .15s, color .15s;
}
.cs-panel-close:hover { background: rgba(255,255,255,.12); color: var(--text); }

.cs-panel-body { padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 10px; }

.cs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cs-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 9px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  resize: vertical;
}
.cs-input:focus { border-color: rgba(108,99,255,.7); background: rgba(108,99,255,.06); }
.cs-input::placeholder { color: #5a6080; }
.cs-textarea { min-height: 90px; }

.cs-form-err { font-size: 0.75rem; color: #f87171; min-height: 16px; }

.cs-panel-foot {
  padding: 10px 16px 16px;
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(108,99,255,.12);
}

.cs-send-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(108,99,255,.4);
  transition: opacity .15s, box-shadow .15s;
}
.cs-send-btn:hover { opacity: .92; box-shadow: 0 6px 20px rgba(108,99,255,.55); }
.cs-send-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

@media (max-width: 480px) {
  .cs-fab { bottom: 16px; right: 16px; padding: 10px 14px; }
  .cs-panel { right: 12px; width: calc(100vw - 24px); bottom: 76px; }
}
