 /* =========================================================
   WebsDocs Support Ticket CSS
   File: css/support-ticket.css

   FINAL PREMIUM+ VERSION
   - Scoped under .wdsup-root
   - 1820px cockpit width
   - Create + login: ONE joined frame
   - Dashboard: ONE joined frame
   - No ugly external shadows / no card-size fighting
   - Premium contrast with subtle background tease
========================================================= */

:root {
  --wdsup-max: 1820px;
  --wdsup-edge: clamp(10px, 1.15vw, 22px);
  --wdsup-gap: clamp(14px, 1.45vw, 24px);

  --wdsup-ink: #101828;
  --wdsup-ink-strong: #050816;
  --wdsup-muted: #667085;
  --wdsup-muted-2: #98a2b3;

  --wdsup-line: #e5e7eb;
  --wdsup-line-strong: #d0d5dd;

  --wdsup-card: #ffffff;
  --wdsup-card-soft: #fbfcff;

  --wdsup-black: #050505;
  --wdsup-black-2: #070b12;
  --wdsup-navy: #0b1220;
  --wdsup-navy-2: #111827;

  --wdsup-blue: #2563eb;
  --wdsup-blue-2: #1d4ed8;
  --wdsup-blue-3: #3b82f6;
  --wdsup-blue-soft: #eef6ff;

  --wdsup-gold: #b8872f;
  --wdsup-gold-soft: #fff7e6;

  --wdsup-green: #15803d;
  --wdsup-green-soft: #ecfdf3;

  --wdsup-red: #b42318;
  --wdsup-red-soft: #fff1f0;

  --wdsup-radius-xxl: 34px;
  --wdsup-radius-xl: 28px;
  --wdsup-radius-lg: 22px;
  --wdsup-radius-md: 16px;
  --wdsup-radius-sm: 12px;

  --wdsup-hairline: rgba(208, 213, 221, 0.92);
  --wdsup-white-line: rgba(255, 255, 255, 0.12);

  --wdsup-button-shadow: 0 14px 28px rgba(37, 99, 235, 0.20);
  --wdsup-modal-shadow: 0 28px 80px rgba(7, 17, 31, 0.28);
}

/* =========================================================
   Scoped base
========================================================= */

.wdsup-root {
  width: min(var(--wdsup-max), 100%);
  max-width: var(--wdsup-max);
  margin-inline: auto;
  padding: 0;
  color: var(--wdsup-ink);
  font-family: inherit;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 5%, rgba(37, 99, 235, 0.11), transparent 25%),
    radial-gradient(circle at 91% 8%, rgba(184, 135, 47, 0.10), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 45%, #ffffff 100%);
}

.wdsup-root *,
.wdsup-root *::before,
.wdsup-root *::after {
  box-sizing: border-box;
}

.wdsup-root a {
  color: inherit;
  text-decoration: none;
}

.wdsup-root button,
.wdsup-root input,
.wdsup-root select,
.wdsup-root textarea {
  font: inherit;
}

.wdsup-root .is-hidden,
.wdsup-modal-shell[hidden],
.wdsup-dashboard[hidden],
.wdsup-result-card[hidden] {
  display: none !important;
}

.wdsup-root .is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.wdsup-root .is-danger {
  color: var(--wdsup-red);
  background: var(--wdsup-red-soft);
}

.wdsup-root .is-ok {
  color: var(--wdsup-green);
  background: var(--wdsup-green-soft);
}

/* =========================================================
   Hero
========================================================= */

.wdsup-hero-band {
  width: 100%;
  padding: var(--wdsup-edge) var(--wdsup-edge) 0;
}

.wdsup-hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  gap: clamp(20px, 2vw, 34px);
  align-items: stretch;
  padding: clamp(28px, 3.5vw, 60px);
  border: 1px solid var(--wdsup-hairline);
  border-radius: var(--wdsup-radius-xxl);
  background:
    radial-gradient(circle at 96% 6%, rgba(37, 99, 235, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.94));
  box-shadow: none;
}

.wdsup-hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--wdsup-radius-xxl) - 1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(37,99,235,0.055), transparent 46%);
  pointer-events: none;
}

.wdsup-hero-copy {
  align-self: center;
}

.wdsup-eyebrow {
  margin: 0 0 12px;
  color: var(--wdsup-blue-2);
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wdsup-hero-copy h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--wdsup-ink-strong);
  font-size: clamp(2.12rem, 4vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.073em;
}

.wdsup-hero-copy p {
  max-width: 900px;
  margin: clamp(16px, 1.8vw, 25px) 0 0;
  color: var(--wdsup-muted);
  font-size: clamp(1rem, 1.12vw, 1.15rem);
  line-height: 1.75;
}

.wdsup-hero-note {
  align-self: end;
  padding: 23px;
  border: 1px solid rgba(184, 135, 47, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 135, 47, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 249, 235, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: none;
}

.wdsup-hero-note strong {
  display: block;
  margin-bottom: 8px;
  color: #6f4b10;
  font-size: 1rem;
}

.wdsup-hero-note span {
  display: block;
  color: #725824;
  line-height: 1.65;
  font-size: 0.95rem;
}

.wdsup-hero-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(184, 135, 47, 0.32);
  background: #ffffff;
  color: #6f4b10;
  font-weight: 950;
  font-size: 0.9rem;
}

/* =========================================================
   Gateway
   One joined frame: create panel + black login rail
========================================================= */

.wdsup-gateway {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 0;
  padding: var(--wdsup-gap) var(--wdsup-edge) clamp(30px, 3.2vw, 52px);
}

.wdsup-create-zone,
.wdsup-login-zone {
  min-width: 0;
}

.wdsup-open-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 3.8vw, 68px);
  border: 1px solid var(--wdsup-hairline);
  border-right: 0;
  border-radius: var(--wdsup-radius-xxl) 0 0 var(--wdsup-radius-xxl);
  background:
    radial-gradient(circle at 100% 86%, rgba(37, 99, 235, 0.15), transparent 33%),
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.9), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.99), rgba(248,251,255,0.95));
  box-shadow: none;
}

.wdsup-open-card::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.05) 42%, transparent 70%);
  pointer-events: none;
}

.wdsup-card-head,
.wdsup-open-card > p,
.wdsup-check-list,
.wdsup-action-row,
.wdsup-result-card {
  position: relative;
  z-index: 1;
}

.wdsup-card-head h2,
.wdsup-open-card h2,
.wdsup-login-card h2,
.wdsup-dashboard-main h2,
.wdsup-side-box h3 {
  margin: 0;
  color: var(--wdsup-ink-strong);
  letter-spacing: -0.045em;
}

.wdsup-open-card h2 {
  max-width: 900px;
  font-size: clamp(2rem, 2.85vw, 3.35rem);
  line-height: 1;
}

.wdsup-open-card > p,
.wdsup-login-card p,
.wdsup-dashboard-main p,
.wdsup-conversation-head p,
.wdsup-modal-head p {
  color: var(--wdsup-muted);
  line-height: 1.68;
}

.wdsup-open-card > p {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.wdsup-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1020px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.wdsup-check-list li {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 42px;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.94), rgba(255,255,255,0.88));
  color: #27435f;
  font-weight: 850;
  line-height: 1.35;
}

.wdsup-check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wdsup-blue-3), var(--wdsup-blue-2));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
}

.wdsup-action-row,
.wdsup-form-actions,
.wdsup-section-title-row,
.wdsup-conversation-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wdsup-action-row {
  margin-top: 32px;
  flex-wrap: wrap;
}

/* right login rail */
.wdsup-login-zone {
  display: flex;
}

.wdsup-login-card {
  position: sticky;
  top: 14px;
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(30px, 2.6vw, 46px);
  border: 1px solid rgba(10, 18, 32, 0.92);
  border-left: 0;
  border-radius: 0 var(--wdsup-radius-xxl) var(--wdsup-radius-xxl) 0;
  background:
    radial-gradient(circle at 86% 4%, rgba(184, 135, 47, 0.30), transparent 31%),
    radial-gradient(circle at 6% 96%, rgba(37, 99, 235, 0.34), transparent 41%),
    linear-gradient(145deg, #050505 0%, #08111f 56%, #172033 100%);
  color: #ffffff;
  box-shadow: none;
}

.wdsup-login-card::before {
  content: none !important;
}

.wdsup-login-card .wdsup-card-head {
  padding: 0;
}

.wdsup-login-card h2,
.wdsup-login-card p,
.wdsup-login-card .wdsup-login-form {
  margin-left: 0;
  margin-right: 0;
}

.wdsup-login-card .wdsup-eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.wdsup-login-card h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 2vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.wdsup-login-card p {
  color: rgba(255, 255, 255, 0.68);
}

.wdsup-login-form {
  margin-top: 24px;
  padding: 0;
}

/* =========================================================
   Buttons
========================================================= */

.wdsup-btn,
.wdsup-mini-btn,
.wdsup-icon-btn,
.wdsup-history-item,
.wdsup-attachment {
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.wdsup-btn,
.wdsup-mini-btn,
.wdsup-icon-btn {
  border: 0;
}

.wdsup-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wdsup-btn:hover,
.wdsup-mini-btn:hover,
.wdsup-icon-btn:hover,
.wdsup-history-item:hover,
.wdsup-attachment:hover {
  transform: translateY(-1px);
}

.wdsup-btn:disabled,
.wdsup-mini-btn:disabled,
.wdsup-icon-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.wdsup-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, var(--wdsup-blue-2) 100%);
  box-shadow: var(--wdsup-button-shadow);
}

.wdsup-btn-primary:hover {
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.wdsup-btn-ghost {
  color: var(--wdsup-ink);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--wdsup-line-strong);
  box-shadow: none;
}

.wdsup-btn-ghost:hover {
  background: #f9fafb;
}

.wdsup-btn-full {
  width: 100%;
}

.wdsup-mini-btn {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--wdsup-line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--wdsup-ink);
  font-size: 0.83rem;
  font-weight: 950;
}

.wdsup-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--wdsup-ink);
  font-size: 1.5rem;
  line-height: 1;
}

.wdsup-login-card .wdsup-btn-full {
  width: 100%;
  max-width: 100%;
}

.wdsup-login-card .wdsup-btn-primary {
  min-height: 54px;
  margin-top: 4px;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.25);
}

/* =========================================================
   Forms
========================================================= */

.wdsup-form {
  width: 100%;
  display: grid;
  gap: 16px;
}

.wdsup-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wdsup-field {
  display: grid;
  gap: 8px;
  color: var(--wdsup-ink);
  font-weight: 850;
}

.wdsup-field > span {
  font-size: 0.86rem;
}

.wdsup-field input,
.wdsup-field select,
.wdsup-field textarea {
  width: 100%;
  border: 1px solid var(--wdsup-line-strong);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--wdsup-ink);
  outline: none;
  font: inherit;
  font-weight: 650;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.wdsup-field input,
.wdsup-field select {
  min-height: 50px;
  padding: 0 15px;
}

.wdsup-field textarea {
  min-height: 152px;
  padding: 15px;
  resize: vertical;
}

.wdsup-field input::placeholder,
.wdsup-field textarea::placeholder {
  color: #98a2b3;
  font-weight: 600;
}

.wdsup-field input:focus,
.wdsup-field select:focus,
.wdsup-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.78);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.wdsup-login-card .wdsup-field {
  color: rgba(255, 255, 255, 0.88);
}

.wdsup-login-card .wdsup-field > span {
  color: rgba(255, 255, 255, 0.72);
}

.wdsup-login-card .wdsup-field input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.wdsup-login-card .wdsup-field input::placeholder {
  color: rgba(255, 255, 255, 0.43);
}

.wdsup-login-card .wdsup-field input:focus {
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

.wdsup-upload-box {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1.5px dashed rgba(37, 99, 235, 0.38);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.94), rgba(255,255,255,0.88));
  cursor: pointer;
}

.wdsup-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wdsup-upload-box strong {
  color: var(--wdsup-blue-2);
  font-size: 0.98rem;
}

.wdsup-upload-box small,
.wdsup-upload-box em {
  color: var(--wdsup-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.wdsup-upload-box em {
  font-style: normal;
  font-weight: 850;
}

.wdsup-upload-small {
  padding: 13px;
}

.wdsup-status {
  min-height: 22px;
  margin: 0;
  color: var(--wdsup-muted);
  font-weight: 850;
  line-height: 1.5;
}

.wdsup-status.is-success {
  color: var(--wdsup-green);
}

.wdsup-status.is-error {
  color: var(--wdsup-red);
}

.wdsup-login-card .wdsup-status {
  color: rgba(255, 255, 255, 0.68);
}

.wdsup-login-card .wdsup-status.is-success {
  color: #8df0c2;
}

.wdsup-login-card .wdsup-status.is-error {
  color: #fecaca;
}

/* =========================================================
   Result card
========================================================= */

.wdsup-result-card {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(21, 128, 61, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(236, 253, 243, 0.98), rgba(255,255,255,0.92));
  box-shadow: none;
}

.wdsup-result-card h3 {
  margin: 0;
  color: var(--wdsup-green);
  font-size: 1.2rem;
}

.wdsup-result-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Modal
========================================================= */

.wdsup-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 30px);
}

.wdsup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.64);
  backdrop-filter: blur(10px);
}

.wdsup-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  border: 1px solid var(--wdsup-hairline);
  border-radius: var(--wdsup-radius-xxl);
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--wdsup-modal-shadow);
}

.wdsup-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.wdsup-modal-head h2 {
  margin: 0;
  color: var(--wdsup-ink-strong);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  letter-spacing: -0.05em;
}

.wdsup-modal-head p {
  margin: 8px 0 0;
}

html.wdsup-modal-open {
  overflow: hidden;
}

/* =========================================================
   Dashboard
   One joined frame: black rail + white conversation panel
========================================================= */

.wdsup-dashboard {
  width: 100%;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 0;
  padding: 0 var(--wdsup-edge) clamp(38px, 4vw, 72px);
}

.wdsup-dashboard-side,
.wdsup-dashboard-main {
  min-width: 0;
}

.wdsup-dashboard-side {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 24px;
  border: 1px solid rgba(10, 18, 32, 0.92);
  border-right: 0;
  border-radius: var(--wdsup-radius-xxl) 0 0 var(--wdsup-radius-xxl);
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.24), transparent 34%),
    radial-gradient(circle at 0% 95%, rgba(184, 135, 47, 0.14), transparent 32%),
    linear-gradient(180deg, #050505 0%, #070d16 46%, #111827 100%);
  box-shadow: none;
}

.wdsup-dashboard-side::before {
  content: "";
  position: absolute;
  inset: 1px 0 1px 1px;
  pointer-events: none;
  border-radius: calc(var(--wdsup-radius-xxl) - 1px) 0 0 calc(var(--wdsup-radius-xxl) - 1px);
  border: 1px solid rgba(255,255,255,0.08);
  border-right: 0;
}

.wdsup-dashboard-main {
  min-height: 660px;
  padding: clamp(24px, 2.6vw, 42px);
  border: 1px solid var(--wdsup-hairline);
  border-left: 0;
  border-radius: 0 var(--wdsup-radius-xxl) var(--wdsup-radius-xxl) 0;
  background:
    radial-gradient(circle at 96% 2%, rgba(37, 99, 235, 0.075), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: none;
}

.wdsup-side-box {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}

.wdsup-side-box + .wdsup-side-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--wdsup-white-line);
}

.wdsup-side-box h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.48rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
  word-break: break-word;
}

.wdsup-side-box h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.wdsup-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.18);
  color: #8df0c2;
  border: 1px solid rgba(141, 240, 194, 0.22);
  font-size: 0.8rem;
  font-weight: 950;
}

.wdsup-meta-list,
.wdsup-client-stats {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.wdsup-meta-list div,
.wdsup-client-stats div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.055));
}

.wdsup-meta-list span,
.wdsup-client-stats span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.wdsup-meta-list strong,
.wdsup-client-stats strong {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: break-word;
}

.wdsup-dashboard-side > .wdsup-btn-full {
  margin-top: 20px;
}

.wdsup-dashboard-side .wdsup-btn-ghost,
.wdsup-dashboard-side .wdsup-mini-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.wdsup-dashboard-side .wdsup-btn-ghost:hover,
.wdsup-dashboard-side .wdsup-mini-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   History list
========================================================= */

.wdsup-section-title-row,
.wdsup-conversation-head {
  justify-content: space-between;
  align-items: flex-start;
}

.wdsup-history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.wdsup-history-list::-webkit-scrollbar,
.wdsup-thread::-webkit-scrollbar,
.wdsup-modal-card::-webkit-scrollbar {
  width: 8px;
}

.wdsup-history-list::-webkit-scrollbar-thumb,
.wdsup-thread::-webkit-scrollbar-thumb,
.wdsup-modal-card::-webkit-scrollbar-thumb {
  background: rgba(102, 112, 133, 0.34);
  border-radius: 999px;
}

.wdsup-history-day {
  display: grid;
  gap: 8px;
}

.wdsup-history-day-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 0;
  background: #050505;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wdsup-history-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.055));
  text-align: left;
  color: #ffffff;
}

.wdsup-history-item:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: rgba(37, 99, 235, 0.18);
}

.wdsup-history-item time {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  font-weight: 950;
}

.wdsup-history-item strong {
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* =========================================================
   Conversation
========================================================= */

.wdsup-dashboard-main h2 {
  font-size: clamp(1.6rem, 2vw, 2.25rem);
}

.wdsup-conversation-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wdsup-line);
}

.wdsup-conversation-head p {
  margin: 8px 0 0;
}

.wdsup-thread {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: 220px;
  max-height: 430px;
  overflow: auto;
  padding: 24px 4px 24px 0;
}

.wdsup-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border: 1px dashed var(--wdsup-line-strong);
  border-radius: 18px;
  background: var(--wdsup-card-soft);
  color: var(--wdsup-muted);
  font-weight: 850;
  text-align: center;
}

/* =========================================================
   Messages
========================================================= */

.wdsup-message {
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--wdsup-line);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.wdsup-message.is-visitor,
.wdsup-message.is-client {
  align-self: flex-end;
  margin-left: auto;
  background: linear-gradient(180deg, #eef6ff, #ffffff);
  border-color: rgba(37, 99, 235, 0.26);
}

.wdsup-message.is-assistant {
  align-self: flex-start;
  margin-right: auto;
  background: linear-gradient(180deg, #fff7df, #fffdf7);
  border-color: rgba(184, 135, 47, 0.4);
}

.wdsup-message.is-support {
  align-self: flex-start;
  margin-right: auto;
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.13);
}

.wdsup-message.is-system,
.wdsup-system-strip {
  display: none !important;
}

.wdsup-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--wdsup-muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.wdsup-sender-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #ffffff;
  color: var(--wdsup-blue-2);
  font-weight: 950;
  font-size: 0.72rem;
}

.wdsup-message.is-client .wdsup-sender-badge,
.wdsup-message.is-visitor .wdsup-sender-badge {
  color: var(--wdsup-blue-2);
  border-color: rgba(37, 99, 235, 0.22);
}

.wdsup-message.is-assistant .wdsup-sender-badge {
  color: #7a5413;
  border-color: rgba(184, 135, 47, 0.34);
  background: #fffaf0;
}

.wdsup-message.is-support .wdsup-sender-badge {
  color: var(--wdsup-ink);
  border-color: rgba(17, 24, 39, 0.16);
  background: #f9fafb;
}

.wdsup-message-body {
  color: var(--wdsup-ink);
  line-height: 1.72;
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================================================
   Attachments
========================================================= */

.wdsup-attachments {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--wdsup-line);
}

.wdsup-attachments h3 {
  margin: 0 0 12px;
  color: var(--wdsup-ink-strong);
  font-size: 1.04rem;
}

.wdsup-attachment-list {
  display: grid;
  gap: 10px;
}

.wdsup-attachment {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--wdsup-line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--wdsup-ink);
  text-align: left;
}

.wdsup-attachment:hover {
  background: var(--wdsup-blue-soft);
  border-color: rgba(37, 99, 235, 0.24);
}

.wdsup-attachment strong {
  font-weight: 950;
}

.wdsup-attachment small {
  color: var(--wdsup-muted);
  font-weight: 700;
}

/* =========================================================
   Reply form
========================================================= */

.wdsup-reply-form {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--wdsup-line);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1240px) {
  .wdsup-hero-card {
    grid-template-columns: 1fr;
  }

  .wdsup-gateway {
    grid-template-columns: 1fr;
  }

  .wdsup-open-card {
    min-height: auto;
    border-right: 1px solid var(--wdsup-hairline);
    border-bottom: 0;
    border-radius: var(--wdsup-radius-xxl) var(--wdsup-radius-xxl) 0 0;
  }

  .wdsup-login-card {
    position: relative;
    top: auto;
    min-height: auto;
    border-left: 1px solid rgba(10, 18, 32, 0.92);
    border-radius: 0 0 var(--wdsup-radius-xxl) var(--wdsup-radius-xxl);
  }

  .wdsup-dashboard {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .wdsup-dashboard {
    grid-template-columns: 1fr;
  }

  .wdsup-dashboard-side {
    border-right: 1px solid rgba(10, 18, 32, 0.92);
    border-radius: var(--wdsup-radius-xxl) var(--wdsup-radius-xxl) 0 0;
  }

  .wdsup-dashboard-side::before {
    border-radius: calc(var(--wdsup-radius-xxl) - 1px) calc(var(--wdsup-radius-xxl) - 1px) 0 0;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 0;
  }

  .wdsup-dashboard-main {
    min-height: 620px;
    border-left: 1px solid var(--wdsup-hairline);
    border-radius: 0 0 var(--wdsup-radius-xxl) var(--wdsup-radius-xxl);
  }

  .wdsup-history-list {
    max-height: 320px;
  }
}

@media (max-width: 760px) {
  :root {
    --wdsup-edge: 10px;
  }

  .wdsup-hero-card,
  .wdsup-open-card,
  .wdsup-login-card,
  .wdsup-dashboard-side,
  .wdsup-dashboard-main,
  .wdsup-modal-card {
    border-radius: 22px;
  }

  .wdsup-hero-card {
    min-height: auto;
    padding: 22px;
  }

  .wdsup-check-list,
  .wdsup-field-grid {
    grid-template-columns: 1fr;
  }

  .wdsup-open-card {
    padding: 22px;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }

  .wdsup-login-card {
    padding: 22px;
    border-radius: 0 0 22px 22px;
  }

  .wdsup-action-row,
  .wdsup-form-actions,
  .wdsup-conversation-head,
  .wdsup-section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .wdsup-action-row .wdsup-btn,
  .wdsup-form-actions .wdsup-btn,
  .wdsup-conversation-head .wdsup-mini-btn,
  .wdsup-section-title-row .wdsup-mini-btn {
    width: 100%;
  }

  .wdsup-hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3.25rem);
    line-height: 1;
  }

  .wdsup-thread {
    max-height: none;
  }

  .wdsup-modal-shell {
    align-items: end;
    padding: 8px;
  }

  .wdsup-modal-card {
    width: 100%;
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@media (max-width: 430px) {
  .wdsup-hero-card,
  .wdsup-open-card,
  .wdsup-login-card,
  .wdsup-dashboard-side,
  .wdsup-dashboard-main {
    padding: 18px;
  }

  .wdsup-btn {
    min-height: 46px;
    padding: 0 16px;
  }

  .wdsup-message {
    width: 100%;
  }
}

/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .wdsup-root *,
  .wdsup-root *::before,
  .wdsup-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   FINAL BG + FOOTER GAP CLEANUP
========================================================= */

html,
body {
  background: #edf3f9;
}

.wdsup-root {
  background:
    radial-gradient(circle at 8% 5%, rgba(37, 99, 235, 0.10), transparent 25%),
    radial-gradient(circle at 91% 8%, rgba(184, 135, 47, 0.08), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 48%, #edf3f9 100%);
}

/* remove the big dead space before footer */
.wdsup-dashboard {
  padding-bottom: 0 !important;
}

/* stop the white conversation card from becoming too tall */
.wdsup-dashboard-main {
  min-height: 520px !important;
}

/* keep dark rail same height as right panel */
.wdsup-dashboard-side {
  min-height: 520px !important;
}

/* make footer touch cleanly */
.site-footer {
  margin-top: 0 !important;
}