/* =====================================================
   WBS STATUS - wbs-status.css v36
   Whistleblowing System
   Stasiun Pemantau Atmosfer Global Lore Lindu Bariri
===================================================== */

/* =====================================================
   ROOT VARIABLES - LIGHT DEFAULT
===================================================== */

:root {
  --primary: #00529b;
  --primary-dark: #082e63;
  --primary-soft: #e8f3ff;

  --green: #0fa76b;
  --green-dark: #087f52;
  --green-soft: #e9fff5;

  --red: #d92d20;
  --red-dark: #b42318;
  --red-soft: #fff1ef;

  --yellow: #f2a900;
  --yellow-dark: #9a6700;
  --yellow-soft: #fff8e6;

  --purple: #6d5dfc;
  --purple-soft: #f0efff;

  --bg: #f4f8ff;
  --bg-soft: #eef5ff;
  --white: #ffffff;

  --text: #0d1b35;
  --muted: #53627a;
  --soft: #76869c;

  --border: rgba(13, 27, 53, 0.1);
  --border-strong: rgba(13, 27, 53, 0.16);

  --shadow-xs: 0 4px 12px rgba(16, 38, 78, 0.05);
  --shadow-sm: 0 8px 20px rgba(16, 38, 78, 0.07);
  --shadow-md: 0 16px 38px rgba(16, 38, 78, 0.1);
  --shadow-lg: 0 24px 70px rgba(16, 38, 78, 0.16);

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --container: 1180px;
  --header-height: 76px;

  --transition: 220ms ease;
}

/* =====================================================
   DARK VARIABLES
===================================================== */

html[data-theme="dark"],
body.dark-theme {
  --primary: #6fb6ff;
  --primary-dark: #d7eaff;
  --primary-soft: rgba(111, 182, 255, 0.12);

  --green: #35d68f;
  --green-dark: #7df0bd;
  --green-soft: rgba(53, 214, 143, 0.12);

  --red: #ff7b72;
  --red-dark: #ff9b94;
  --red-soft: rgba(255, 123, 114, 0.11);

  --yellow: #f6c96b;
  --yellow-dark: #ffe2a3;
  --yellow-soft: rgba(246, 201, 107, 0.12);

  --purple: #a8a1ff;
  --purple-soft: rgba(168, 161, 255, 0.12);

  --bg: #07111f;
  --bg-soft: #0b1628;
  --white: #0e1b31;

  --text: #ecf5ff;
  --muted: #b8c7de;
  --soft: #8ea3bf;

  --border: rgba(137, 163, 200, 0.18);
  --border-strong: rgba(137, 163, 200, 0.28);
}

/* =====================================================
   RESET
===================================================== */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  color: #ffffff;
  background: var(--primary);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(0, 82, 155, 0.28);
  outline-offset: 3px;
}

/* =====================================================
   PAGE
===================================================== */

.wbss-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 167, 107, 0.1), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(0, 82, 155, 0.1), transparent 32%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 52%, #f7fbff 100%);
}

html[data-theme="dark"] .wbss-page,
body.dark-theme .wbss-page {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
    linear-gradient(180deg, #03101f 0%, #041427 55%, #06182d 100%);
}

/* =====================================================
   ICON BASE
===================================================== */

.wbss-icon,
.wbss-info-svg,
.wbss-input-icon {
  color: currentColor;
  stroke: currentColor;
  flex: 0 0 auto;
}

/* =====================================================
   HEADER
===================================================== */

.wbss-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(13, 27, 53, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wbss-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(16, 38, 78, 0.08);
}

html[data-theme="dark"] .wbss-header,
body.dark-theme .wbss-header {
  background: rgba(7, 17, 31, 0.9);
  border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .wbss-header.is-scrolled,
body.dark-theme .wbss-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.wbss-header-container {
  width: min(1240px, calc(100% - 40px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 430px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wbss-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wbss-brand-logo {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  flex: 0 0 44px !important;
}

.wbss-brand-text {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wbss-brand-text strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wbss-brand-text span {
  display: -webkit-box;
  max-width: 340px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.28;
  font-weight: 700;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wbss-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.wbss-home-link,
.wbss-report-link,
.wbss-theme-toggle,
.wbss-theme-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.wbss-home-link {
  gap: 8px;
  padding: 10px 14px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 82, 155, 0.14);
  box-shadow: var(--shadow-sm);
}

.wbss-home-link:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: rgba(0, 82, 155, 0.28);
  transform: translateY(-1px);
}

.wbss-report-link {
  gap: 8px;
  padding: 10px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #0fa76b, #087f52);
  border: 1px solid rgba(15, 167, 107, 0.24);
  box-shadow: 0 10px 22px rgba(15, 167, 107, 0.24);
}

.wbss-report-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 167, 107, 0.3);
}

.wbss-theme-toggle,
.wbss-theme-icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 82, 155, 0.14);
  box-shadow: var(--shadow-sm);
}

.wbss-theme-toggle:hover,
.wbss-theme-icon-button:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: rgba(0, 82, 155, 0.28);
  transform: translateY(-1px);
}

html[data-theme="dark"] .wbss-home-link,
html[data-theme="dark"] .wbss-theme-toggle,
html[data-theme="dark"] .wbss-theme-icon-button,
body.dark-theme .wbss-home-link,
body.dark-theme .wbss-theme-toggle,
body.dark-theme .wbss-theme-icon-button {
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(137, 163, 200, 0.18);
}

html[data-theme="dark"] .wbss-home-link:hover,
html[data-theme="dark"] .wbss-theme-toggle:hover,
html[data-theme="dark"] .wbss-theme-icon-button:hover,
body.dark-theme .wbss-home-link:hover,
body.dark-theme .wbss-theme-toggle:hover,
body.dark-theme .wbss-theme-icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(137, 163, 200, 0.3);
}

.wbss-theme-svg {
  width: 18px !important;
  height: 18px !important;
  color: currentColor;
}

.wbss-theme-moon {
  display: none !important;
}

html[data-theme="dark"] .wbss-theme-sun,
body.dark-theme .wbss-theme-sun {
  display: none !important;
}

html[data-theme="dark"] .wbss-theme-moon,
body.dark-theme .wbss-theme-moon {
  display: block !important;
}

/* =====================================================
   HERO
===================================================== */

.wbss-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 70px 20px 76px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(0, 82, 155, 0.12), transparent 35%),
    radial-gradient(circle at top right, rgba(15, 167, 107, 0.1), transparent 32%),
    linear-gradient(180deg, #eaf5ff 0%, #f7fbff 100%);
}

.wbss-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--wbss-hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.68;
  filter: blur(3px) saturate(1.08) contrast(1.05) brightness(0.88);
  transform: scale(1.04);
}

.wbss-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 50% 36%,
      rgba(255, 255, 255, 0.18),
      rgba(235, 246, 255, 0.4) 48%,
      rgba(226, 240, 255, 0.68) 100%
    ),
    linear-gradient(
      180deg,
      rgba(238, 248, 255, 0.44) 0%,
      rgba(255, 255, 255, 0.62) 100%
    );
}

html[data-theme="dark"] .wbss-hero,
body.dark-theme .wbss-hero {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
    #06182d;
}

html[data-theme="dark"] .wbss-hero-bg,
body.dark-theme .wbss-hero-bg {
  opacity: 1;
  filter: blur(5px) saturate(1.04) contrast(1.04) brightness(0.62);
}

html[data-theme="dark"] .wbss-hero-overlay,
body.dark-theme .wbss-hero-overlay {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(19, 41, 68, 0.44),
      rgba(13, 27, 53, 0.7) 56%,
      rgba(7, 17, 31, 0.84) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 17, 31, 0.36) 0%,
      rgba(7, 17, 31, 0.62) 100%
    );
}

.wbss-hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.74),
      rgba(255, 255, 255, 0.54)
    );
  box-shadow: 0 24px 70px rgba(16, 38, 78, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.wbss-hero-content::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(var(--radius-xl) - 1px);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.5), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

html[data-theme="dark"] .wbss-hero-content,
body.dark-theme .wbss-hero-content {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(17, 32, 51, 0.58),
      rgba(14, 29, 49, 0.5)
    );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.wbss-hero-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.wbss-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 82, 155, 0.12);
  box-shadow: var(--shadow-xs);
  font-size: 0.8rem;
  font-weight: 820;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.wbss-back-link:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(0, 82, 155, 0.24);
}

html[data-theme="dark"] .wbss-back-link,
body.dark-theme .wbss-back-link {
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(137, 163, 200, 0.18);
}

.wbss-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  padding: 8px 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(15, 167, 107, 0.22);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(233, 255, 245, 0.9);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 860;
}

.wbss-hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(15, 167, 107, 0.14);
}

html[data-theme="dark"] .wbss-hero-badge,
body.dark-theme .wbss-hero-badge {
  color: #8af5c1;
  background: rgba(15, 167, 107, 0.18);
  border-color: rgba(110, 231, 183, 0.28);
}

.wbss-hero h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--primary-dark);
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

html[data-theme="dark"] .wbss-hero h1,
body.dark-theme .wbss-hero h1 {
  color: #7fc3ff;
}

.wbss-hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1.04rem);
  line-height: 1.86;
  font-weight: 640;
}

html[data-theme="dark"] .wbss-hero p,
body.dark-theme .wbss-hero p {
  color: #d6e3f3;
}

.wbss-hero-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.wbss-info-item {
  min-height: 132px;
  padding: 22px 20px;
  border: 1px solid rgba(13, 27, 53, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 26px rgba(16, 38, 78, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.wbss-info-item:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 167, 107, 0.2);
  box-shadow: 0 18px 36px rgba(16, 38, 78, 0.12);
}

html[data-theme="dark"] .wbss-info-item,
body.dark-theme .wbss-info-item {
  border-color: rgba(110, 231, 183, 0.18);
  background: rgba(2, 21, 38, 0.52);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.wbss-info-svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 14px;
  color: var(--green-dark);
}

html[data-theme="dark"] .wbss-info-svg,
body.dark-theme .wbss-info-svg {
  color: #7df0bd;
}

.wbss-info-item strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.38;
  font-weight: 900;
}

.wbss-info-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 650;
}

/* =====================================================
   SECTION LAYOUT
===================================================== */

.wbss-section {
  padding: 84px 0 92px;
}

.wbss-container,
.wbss-footer-container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.wbss-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

/* =====================================================
   CARD BASE
===================================================== */

.wbss-side-card,
.wbss-status-card,
.wbss-result-panel,
.wbss-result-card,
.wbss-contact-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="dark"] .wbss-side-card,
html[data-theme="dark"] .wbss-status-card,
html[data-theme="dark"] .wbss-result-panel,
html[data-theme="dark"] .wbss-result-card,
html[data-theme="dark"] .wbss-contact-card,
body.dark-theme .wbss-side-card,
body.dark-theme .wbss-status-card,
body.dark-theme .wbss-result-panel,
body.dark-theme .wbss-result-card,
body.dark-theme .wbss-contact-card {
  background:
    linear-gradient(
      180deg,
      rgba(5, 20, 39, 0.94),
      rgba(6, 22, 41, 0.9)
    );
  border-color: rgba(137, 163, 200, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

/* =====================================================
   SIDEBAR
===================================================== */

.wbss-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-height) + 22px);
}

.wbss-side-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.wbss-side-main {
  background:
    radial-gradient(circle at top right, rgba(15, 167, 107, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 167, 107, 0.16);
}

.wbss-side-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.wbss-side-card h2,
.wbss-side-card h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.32;
  font-weight: 920;
  letter-spacing: -0.02em;
}

.wbss-side-card h2 {
  font-size: 1.28rem;
}

.wbss-side-card h3 {
  font-size: 1.04rem;
}

.wbss-side-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.74;
  font-weight: 560;
}

.wbss-check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.wbss-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.48;
  font-weight: 700;
}

.wbss-check-list svg {
  margin-top: 1px;
  color: var(--red);
  flex: 0 0 17px;
}

.wbss-warning-card {
  border-color: rgba(242, 169, 0, 0.24);
  background:
    radial-gradient(circle at top right, rgba(242, 169, 0, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.9);
}

.wbss-warning-card h3 {
  color: var(--yellow-dark);
}

/* =====================================================
   STATUS CARD
===================================================== */

.wbss-status-card {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-xl);
}

.wbss-status-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.wbss-kicker,
.wbss-result-kicker,
.wbss-footer-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 13px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 167, 107, 0.2);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 850;
}

.wbss-status-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  font-weight: 930;
  letter-spacing: -0.035em;
}

.wbss-status-header p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
  font-weight: 560;
}

/* =====================================================
   FORM
===================================================== */

.wbss-form {
  display: grid;
  gap: 24px;
}

.wbss-grid {
  display: grid;
  gap: 24px;
}

.wbss-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.wbss-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wbss-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 880;
}

.wbss-required {
  color: var(--red);
}

.wbss-help {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.56;
  font-weight: 560;
}

.wbss-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
}

.wbss-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--soft);
  transform: translateY(-50%);
  pointer-events: none;
}

.wbss-input-wrap input,
.wbss-input-wrap select,
.wbss-input-wrap textarea {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px 16px 50px;
  border: 1px solid rgba(13, 27, 53, 0.13);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 650;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.wbss-input-wrap input::placeholder {
  color: rgba(83, 98, 122, 0.65);
}

.wbss-input-wrap input:focus,
.wbss-input-wrap select:focus,
.wbss-input-wrap textarea:focus {
  border-color: rgba(0, 82, 155, 0.36);
  box-shadow:
    0 0 0 4px rgba(0, 82, 155, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] .wbss-input-wrap input,
html[data-theme="dark"] .wbss-input-wrap select,
html[data-theme="dark"] .wbss-input-wrap textarea,
body.dark-theme .wbss-input-wrap input,
body.dark-theme .wbss-input-wrap select,
body.dark-theme .wbss-input-wrap textarea {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(137, 163, 200, 0.2);
  box-shadow: none;
}

html[data-theme="dark"] .wbss-input-wrap input::placeholder,
body.dark-theme .wbss-input-wrap input::placeholder {
  color: rgba(184, 199, 222, 0.56);
}

.wbss-field.has-error .wbss-input-wrap input,
.wbss-field.is-invalid .wbss-input-wrap input,
.wbss-input-wrap input[aria-invalid="true"] {
  border-color: rgba(217, 45, 32, 0.54);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.08);
}

.wbss-error {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: var(--red);
  font-size: 0.77rem;
  line-height: 1.45;
  font-weight: 760;
}

.wbss-pin-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--soft);
  background: transparent;
  transform: translateY(-50%);
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.wbss-pin-toggle:hover {
  color: var(--primary);
  background: rgba(0, 82, 155, 0.08);
}

.wbss-pin-toggle.is-visible {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.wbss-eye-hide {
  display: none !important;
}

.wbss-pin-toggle.is-visible .wbss-eye-show {
  display: none !important;
}

.wbss-pin-toggle.is-visible .wbss-eye-hide {
  display: block !important;
}

#pinInput {
  padding-right: 56px;
}

.wbss-note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 82, 155, 0.12);
  border-radius: 18px;
  color: var(--primary-dark);
  background: rgba(232, 243, 255, 0.78);
}

.wbss-note-box svg {
  margin-top: 2px;
  flex: 0 0 18px;
}

.wbss-note-box span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
  font-weight: 650;
}

html[data-theme="dark"] .wbss-note-box,
body.dark-theme .wbss-note-box {
  color: #d7eaff;
  background: rgba(111, 182, 255, 0.1);
  border-color: rgba(111, 182, 255, 0.2);
}

/* =====================================================
   MESSAGES
===================================================== */

.wbss-message {
  min-height: 44px;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.56;
  font-weight: 760;
}

.wbss-message:empty {
  display: none;
}

.wbss-message.is-success {
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(15, 167, 107, 0.18);
}

.wbss-message.is-error {
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(217, 45, 32, 0.18);
}

.wbss-message.is-info {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(0, 82, 155, 0.14);
}

/* =====================================================
   BUTTONS / ACTIONS
===================================================== */

.wbss-actions,
.wbss-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.wbss-btn,
.wbss-copy-btn,
.wbss-clear-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 860;
  line-height: 1;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    opacity var(--transition);
}

.wbss-btn svg,
.wbss-clear-history svg {
  color: currentColor;
  stroke: currentColor;
  flex: 0 0 auto;
}

.wbss-btn-primary {
  color: #062e22;
  background: linear-gradient(135deg, #42e6a4, #73f2bd);
  border: 1px solid rgba(15, 167, 107, 0.24);
  box-shadow: 0 14px 30px rgba(15, 167, 107, 0.28);
}

.wbss-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 167, 107, 0.34);
}

.wbss-btn-light,
.wbss-copy-btn {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 82, 155, 0.14);
  box-shadow: var(--shadow-sm);
}

.wbss-btn-light:hover,
.wbss-copy-btn:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: rgba(0, 82, 155, 0.25);
  transform: translateY(-2px);
}

.wbss-clear-history {
  color: var(--red-dark);
  background: rgba(255, 241, 239, 0.86);
  border: 1px solid rgba(217, 45, 32, 0.16);
  box-shadow: var(--shadow-xs);
}

.wbss-clear-history:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #d92d20, #b42318);
  border-color: rgba(217, 45, 32, 0.28);
  transform: translateY(-2px);
}

html[data-theme="dark"] .wbss-btn-light,
html[data-theme="dark"] .wbss-copy-btn,
body.dark-theme .wbss-btn-light,
body.dark-theme .wbss-copy-btn {
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(137, 163, 200, 0.18);
}

html[data-theme="dark"] .wbss-clear-history,
body.dark-theme .wbss-clear-history {
  color: #ffb0aa;
  background: rgba(255, 123, 114, 0.1);
  border-color: rgba(255, 123, 114, 0.18);
}

.wbss-btn:disabled,
.wbss-btn[aria-busy="true"] {
  opacity: 0.72;
  transform: none !important;
}

/* =====================================================
   RESULT PANEL - JS RENDERED
===================================================== */

.wbss-result-panel,
.wbss-result {
  margin-top: 28px;
  border-radius: var(--radius-xl);
}

.wbss-result-panel:not(:empty),
.wbss-result:not(:empty) {
  padding: 0;
}

.wbss-result-card {
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius-xl);
}

.wbss-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.wbss-result-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.18;
  font-weight: 930;
  letter-spacing: -0.03em;
}

.wbss-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.wbss-status-badge.is-new {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(0, 82, 155, 0.14);
}

.wbss-status-badge.is-process {
  color: var(--yellow-dark);
  background: var(--yellow-soft);
  border: 1px solid rgba(242, 169, 0, 0.2);
}

.wbss-status-badge.is-done {
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(15, 167, 107, 0.2);
}

.wbss-status-badge.is-rejected {
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(217, 45, 32, 0.18);
}

.wbss-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wbss-result-item {
  min-height: 96px;
  padding: 18px 18px;
  border: 1px solid rgba(13, 27, 53, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(0, 82, 155, 0.05), transparent 44%),
    rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .wbss-result-item,
body.dark-theme .wbss-result-item {
  border-color: rgba(137, 163, 200, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.wbss-result-item span,
.wbss-result-item small {
  display: block;
  margin-bottom: 9px;
  color: var(--soft);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 820;
}

.wbss-result-item strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 900;
  word-break: break-word;
}

.wbss-result-item.is-ticket strong {
  color: var(--primary-dark);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.wbss-note-block {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 82, 155, 0.11);
  border-radius: 20px;
  background: rgba(232, 243, 255, 0.62);
}

html[data-theme="dark"] .wbss-note-block,
body.dark-theme .wbss-note-block {
  background: rgba(111, 182, 255, 0.08);
  border-color: rgba(111, 182, 255, 0.16);
}

.wbss-note-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 900;
}

.wbss-note-block p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.74;
  font-weight: 560;
}

.wbss-result-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.wbss-copy-feedback {
  min-height: 22px;
  margin-top: 14px;
  color: var(--green-dark);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 820;
}

/* =====================================================
   RESULT PANEL - LEGACY HTML SUPPORT
===================================================== */

.wbss-result-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.wbss-result-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.wbss-status-summary {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 20px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(15, 167, 107, 0.18);
}

.wbss-status-summary small,
.wbss-public-note small,
.wbss-evidence-note small {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 850;
}

.wbss-status-summary strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 930;
}

.wbss-public-note,
.wbss-evidence-note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin-top: 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 82, 155, 0.11);
  background: rgba(232, 243, 255, 0.62);
}

.wbss-public-note-icon,
.wbss-evidence-note-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 15px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.wbss-public-note p,
.wbss-evidence-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.74;
}

/* =====================================================
   FOOTER
===================================================== */

.wbss-footer {
  padding: 56px 0 30px;
  border-top: 1px solid rgba(13, 27, 53, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(247, 251, 255, 0.98)
    );
}

html[data-theme="dark"] .wbss-footer,
body.dark-theme .wbss-footer {
  background:
    linear-gradient(
      180deg,
      rgba(4, 17, 34, 0.96),
      rgba(5, 20, 40, 0.96)
    );
  border-color: rgba(137, 163, 200, 0.14);
}

.wbss-footer-top {
  margin-bottom: 34px;
}

.wbss-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 660px;
}

.wbss-footer-brand img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  flex: 0 0 48px !important;
}

.wbss-footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 920;
}

.wbss-footer-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
  font-weight: 650;
}

.wbss-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 64px;
  align-items: start;
}

.wbss-footer-about h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.18;
  font-weight: 930;
  letter-spacing: -0.035em;
}

.wbss-footer-about p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.82;
  font-weight: 560;
}

.wbss-footer-site-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(0, 82, 155, 0.14);
  font-size: 0.84rem;
  font-weight: 860;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.wbss-footer-site-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(0, 82, 155, 0.24);
}

html[data-theme="dark"] .wbss-footer-site-link,
body.dark-theme .wbss-footer-site-link {
  color: #d7eaff;
  background: rgba(111, 182, 255, 0.1);
  border-color: rgba(111, 182, 255, 0.18);
}

.wbss-footer-contact-list {
  display: grid;
  gap: 14px;
}

.wbss-contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 76px;
  padding: 16px 18px;
  border-radius: 20px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.wbss-contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 82, 155, 0.2);
  box-shadow: 0 16px 34px rgba(16, 38, 78, 0.12);
}

.wbss-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 15px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.wbss-contact-content {
  min-width: 0;
}

.wbss-contact-content small {
  display: block;
  color: var(--soft);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 820;
}

.wbss-contact-content strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 880;
  word-break: break-word;
}

.wbss-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(13, 27, 53, 0.09);
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.wbss-footer-bottom p {
  margin: 0;
}

/* =====================================================
   STATES
===================================================== */

.wbss-btn.is-pressed,
.wbss-home-link.is-pressed,
.wbss-report-link.is-pressed,
.wbss-theme-toggle.is-pressed,
.wbss-contact-card.is-pressed,
.wbss-copy-btn.is-pressed,
.wbss-clear-history.is-pressed,
.wbss-pin-toggle.is-pressed {
  transform: translateY(0) scale(0.98);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1120px) {
  .wbss-header-container {
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 14px;
  }

  .wbss-brand-text span {
    max-width: 280px;
    font-size: 0.64rem;
  }

  .wbss-home-link span {
    display: none;
  }

  .wbss-home-link {
    width: 42px;
    padding: 0;
  }

  .wbss-layout {
    grid-template-columns: 1fr;
  }

  .wbss-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wbss-side-card {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .wbss-sidebar {
    grid-template-columns: 1fr;
  }

  .wbss-footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .wbss-header-container,
  .wbss-container,
  .wbss-footer-container {
    width: min(100% - 30px, var(--container));
  }

  .wbss-header {
    min-height: var(--header-height);
  }

  .wbss-header-container {
    min-height: var(--header-height);
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .wbss-brand {
    flex: 1 1 auto;
  }

  .wbss-brand-logo {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-basis: 40px !important;
  }

  .wbss-brand-text strong {
    font-size: 0.9rem;
  }

  .wbss-brand-text span {
    max-width: 190px;
    font-size: 0.62rem;
    line-height: 1.22;
  }

  .wbss-report-link span {
    display: none;
  }

  .wbss-report-link {
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .wbss-hero {
    min-height: auto;
    padding: 42px 15px 58px;
  }

  .wbss-hero-bg {
    opacity: 0.58;
    filter: blur(3px) saturate(1.05) contrast(1.02) brightness(0.92);
  }

  .wbss-hero-content {
    padding: 28px 18px;
    border-radius: 26px;
  }

  .wbss-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
    line-height: 1.06;
  }

  .wbss-hero p {
    margin-top: 18px;
    font-size: 0.92rem;
    line-height: 1.78;
  }

  .wbss-hero-info,
  .wbss-grid-2,
  .wbss-result-grid {
    grid-template-columns: 1fr;
  }

  .wbss-section {
    padding: 58px 0 68px;
  }

  .wbss-status-card {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .wbss-help {
    min-height: auto;
  }

  .wbss-actions,
  .wbss-result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wbss-btn,
  .wbss-copy-btn,
  .wbss-clear-history {
    width: 100%;
  }

  .wbss-result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wbss-status-badge {
    white-space: normal;
    text-align: center;
  }

  .wbss-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .wbss-header-container,
  .wbss-container,
  .wbss-footer-container {
    width: min(100% - 24px, var(--container));
  }

  .wbss-brand-text span {
    display: none;
  }

  .wbss-brand-text strong {
    font-size: 0.88rem;
  }

  .wbss-hero-content {
    padding: 24px 15px;
    border-radius: 22px;
  }

  .wbss-side-card,
  .wbss-status-card,
  .wbss-result-card {
    border-radius: 24px;
  }

  .wbss-footer-brand {
    align-items: flex-start;
  }

  .wbss-contact-card {
    align-items: flex-start;
  }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}