:root {
  --bg: #eee5da;
  --bg-soft: #faf5ee;
  --panel: rgba(255, 250, 244, 0.84);
  --panel-strong: rgba(255, 253, 249, 0.96);
  --panel-border: rgba(80, 56, 45, 0.1);
  --text: #201915;
  --muted: #6e625b;
  --line: rgba(80, 56, 45, 0.1);
  --brand: #c06842;
  --brand-deep: #90472d;
  --accent: #136965;
  --warning: #c27c17;
  --danger: #a63c2e;
  --success: #267352;
  --sidebar-panel: linear-gradient(180deg, rgba(24, 31, 30, 0.98) 0%, rgba(16, 20, 19, 0.98) 100%);
  --sidebar-text: #f5ede1;
  --sidebar-muted: rgba(245, 237, 225, 0.68);
  --shadow: 0 30px 72px rgba(56, 34, 23, 0.16);
  --shadow-soft: 0 18px 38px rgba(56, 34, 23, 0.1);
  --radius: 28px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(192, 104, 66, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(19, 105, 101, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f1e8 0%, var(--bg) 46%, #e7dccd 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(rgba(95, 67, 54, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 67, 54, 0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.background-orb {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  top: -10rem;
  left: -6rem;
  background: rgba(192, 104, 66, 0.28);
}

.orb-b {
  right: -9rem;
  bottom: 8rem;
  background: rgba(19, 105, 101, 0.2);
}

.app-shell,
.public-shell {
  position: relative;
  z-index: 1;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  gap: 2.25rem;
  padding: 2rem;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.public-brand,
.public-card,
.sidebar,
.panel,
.notice-card,
.metric-card,
.checkbox-card,
.empty-state,
.alert {
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-soft);
}

.public-brand,
.public-card,
.sidebar,
.panel,
.notice-card,
.metric-card,
.empty-state,
.alert {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 251, 246, 0.96));
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.public-brand,
.public-card {
  padding: 2.4rem;
}

.public-brand h1,
.app-header h1,
.panel h2,
.login-box h2 {
  margin: 0.35rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.05;
}

.public-brand h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.public-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(20, 34, 32, 0.96), rgba(33, 58, 53, 0.86));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
  box-shadow: 0 34px 70px rgba(16, 20, 19, 0.28);
}

.public-brand::after {
  content: "";
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 104, 66, 0.42), transparent 70%);
}

.public-brand p {
  position: relative;
  margin: 0;
  max-width: 34rem;
  color: rgba(245, 237, 225, 0.78);
  line-height: 1.7;
}

.public-brand .eyebrow {
  color: rgba(245, 237, 225, 0.72);
}

.brand-points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand-points span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff7ef;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
}

.app-shell {
  display: grid;
  grid-template-columns: 19.5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: calc(100vh - 3rem);
  background: var(--sidebar-panel);
  color: var(--sidebar-text);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 38px 80px rgba(15, 18, 17, 0.34);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 72%);
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.brand-mark {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.15rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e18a62, #a74d31);
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 28px rgba(0, 0, 0, 0.24);
}

.brand-copy {
  display: grid;
  gap: 0.25rem;
}

.brand-caption {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-brand strong,
.panel h3,
.metric-card strong,
.info-row strong,
.checkbox-card strong {
  display: block;
}

.sidebar-brand span,
.muted,
small,
.helper {
  color: var(--muted);
}

.sidebar .sidebar-brand span,
.sidebar .brand-caption,
.sidebar .brand-status,
.sidebar .eyebrow,
.sidebar-note p,
.sidebar .helper {
  color: var(--sidebar-muted);
}

.sidebar-note {
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-note p {
  margin: 0.55rem 0 0;
  line-height: 1.65;
}

.sidebar-nav {
  display: grid;
  gap: 0.65rem;
}

.nav-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  color: var(--sidebar-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-link::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

.nav-link:hover,
.nav-link.is-active {
  background: linear-gradient(135deg, rgba(192, 104, 66, 0.18), rgba(19, 105, 101, 0.14));
  color: #fff8f1;
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.sidebar .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1rem;
}

.app-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-header {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 251, 246, 0.9));
  border: 1px solid var(--panel-border);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--shadow-soft);
}

.header-copy {
  display: grid;
  gap: 0.35rem;
}

.header-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.6;
}

.header-actions,
.form-actions,
.tab-row,
.tag-row,
.checkbox-list.horizontal {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.user-summary {
  min-width: 12rem;
  text-align: right;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(80, 56, 45, 0.08);
  background: rgba(32, 25, 21, 0.04);
}

.content-body {
  display: grid;
  gap: 1.45rem;
}

.grid-cards,
.content-grid,
.stack-grid,
.selection-grid,
.cards-grid,
.compact-grid {
  display: grid;
  gap: 1rem;
}

.grid-cards.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.metric-card,
.notice-card,
.empty-state,
.alert {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
}

.panel::before,
.metric-card::before,
.public-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(192, 104, 66, 0.88), rgba(19, 105, 101, 0.52));
  opacity: 0.75;
}

.panel.inset-panel {
  box-shadow: none;
  background: var(--panel-strong);
}

.compact-panel {
  padding: 1rem 1.25rem;
}

.metric-card {
  display: grid;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 251, 246, 0.98));
}

.metric-card strong {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.metric-card > span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--muted);
}

.metric-card.accent {
  background: linear-gradient(140deg, rgba(19, 105, 101, 0.16), rgba(255, 251, 246, 0.96));
}

.metric-card.warning {
  background: linear-gradient(140deg, rgba(194, 124, 23, 0.16), rgba(255, 251, 246, 0.96));
}

.stack-form,
.stack-list {
  display: grid;
  gap: 0.85rem;
}

.stack-list.compact {
  gap: 0.55rem;
}

.field,
.toggle-row {
  display: grid;
  gap: 0.45rem;
}

.field span,
.field-label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 1.05rem;
  border: 1px solid rgba(80, 56, 45, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.95rem 1rem;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(191, 90, 54, 0.55);
  box-shadow: 0 0 0 4px rgba(191, 90, 54, 0.12);
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 1rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, var(--brand), #da8258);
  color: #fffaf5;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(192, 104, 66, 0.24);
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(192, 104, 66, 0.28);
}

.button-secondary {
  background: rgba(36, 27, 23, 0.06);
  color: var(--text);
  box-shadow: none;
}

.button-danger {
  background: linear-gradient(135deg, var(--danger), #c45545);
}

.button-full {
  width: 100%;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: rgba(192, 104, 66, 0.05);
}

.status-chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.tag {
  background: rgba(36, 27, 23, 0.08);
}

.status-connected,
.status-sent,
.status-ready {
  background: rgba(38, 115, 82, 0.14);
  color: var(--success);
  border-color: rgba(38, 115, 82, 0.16);
}

.status-disconnected,
.status-error,
.status-cancelled,
.status-archived {
  background: rgba(166, 60, 46, 0.12);
  color: var(--danger);
  border-color: rgba(166, 60, 46, 0.16);
}

.status-connecting,
.status-reconnecting,
.status-waiting_qr,
.status-pending,
.status-draft {
  background: rgba(194, 124, 23, 0.14);
  color: var(--warning);
  border-color: rgba(194, 124, 23, 0.16);
}

.alert-success,
.notice-card.success {
  background: rgba(38, 115, 82, 0.1);
}

.alert-warning,
.notice-card.warning {
  background: rgba(194, 124, 23, 0.1);
}

.alert-error {
  background: rgba(166, 60, 46, 0.12);
}

.notice-card.compact,
.compact-panel,
.panel-heading.compact {
  gap: 0.5rem;
}

.checkbox-list {
  display: grid;
  gap: 0.75rem;
}

.checkbox-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.checkbox-card.compact {
  padding: 0.65rem 0.9rem;
}

.checkbox-card input,
.checkbox-inline input {
  width: auto;
  margin-top: 0.15rem;
}

.checkbox-inline {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
}

.info-row:last-child {
  border-bottom: none;
}

.empty-state,
.panel-centered {
  text-align: center;
}

.login-box {
  display: grid;
  gap: 1.1rem;
}

.login-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-panel.two-column-span {
  grid-column: 1 / -1;
}

.preview-phone {
  background: linear-gradient(180deg, #1f2c2a, #34403b);
  padding: 1rem;
  border-radius: calc(var(--radius) - 0.25rem);
}

.preview-bubble {
  width: min(100%, 32rem);
  margin-left: auto;
  background: #f9f1d6;
  border-radius: 1.5rem 1.5rem 0.4rem 1.5rem;
  padding: 1rem;
  color: #2d211b;
}

.preview-image-wrap {
  margin-bottom: 0.8rem;
  overflow: hidden;
  border-radius: 1rem;
}

.preview-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
}

.preview-link {
  margin-bottom: 0;
  color: var(--accent);
}

.qr-panel {
  text-align: center;
}

.qr-image {
  width: min(100%, 18rem);
  margin: 0 auto 1rem;
  padding: 1rem;
  background: white;
  border-radius: 1.5rem;
}

.log-box {
  margin: 0;
  max-height: 24rem;
  overflow: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: #1e2325;
  color: #d7e8e5;
  font-size: 0.84rem;
  line-height: 1.5;
}

.tab-link {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(36, 27, 23, 0.08);
}

.tab-link.is-active {
  background: rgba(191, 90, 54, 0.16);
  color: var(--brand-deep);
}

.mobile-nav {
  display: none;
}

.app-footer {
  padding: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-public .app-footer {
  grid-column: 1 / -1;
}

[hidden] {
  display: none !important;
}

.top-gap {
  margin-top: 1rem;
}

.narrow-form {
  max-width: 48rem;
}

.wrap-actions {
  align-items: stretch;
}

.tall-table {
  max-height: 32rem;
}

.app-content {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.app-header,
.content-body,
.app-footer {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.content-body > * {
  animation: rise-in 0.72s ease both;
}

.content-body > *:nth-child(2) {
  animation-delay: 0.06s;
}

.content-body > *:nth-child(3) {
  animation-delay: 0.12s;
}

.panel,
.metric-card,
.notice-card,
.alert,
.hero-panel,
.footer-shell {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.panel:hover,
.metric-card:hover,
.notice-card:hover,
.hero-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 0;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(192, 104, 66, 0.92), rgba(19, 105, 101, 0.56));
}

.hero-panel-main {
  background: linear-gradient(145deg, rgba(17, 26, 25, 0.98), rgba(30, 48, 45, 0.94));
  color: #fff7ef;
  box-shadow: 0 32px 72px rgba(10, 15, 15, 0.34);
}

.hero-panel-main::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -8rem;
  bottom: -8rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(192, 104, 66, 0.42), transparent 70%);
  animation: drift-glow 8s ease-in-out infinite;
}

.hero-panel-main .eyebrow,
.hero-panel-main .hero-copy,
.hero-panel-main small,
.connection-card small {
  color: rgba(245, 237, 225, 0.76);
}

.hero-panel-main h2,
.hero-panel-side h2 {
  margin: 0.35rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.05;
}

.hero-copy {
  position: relative;
  margin: 1rem 0 0;
  max-width: 44rem;
  line-height: 1.75;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-panel-main .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-meta-grid,
.connection-grid {
  position: relative;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.hero-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-meta-card,
.connection-card {
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 0.35rem;
}

.hero-meta-card span,
.connection-card span,
.signal-item span,
.footer-kicker,
.alert-copy strong {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.hero-meta-card strong,
.connection-card strong,
.signal-item strong,
.footer-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hero-panel-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 250, 244, 0.97));
}

.status-spotlight {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.signal-orbit {
  position: relative;
  width: min(100%, 17rem);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(248, 240, 233, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 48px rgba(48, 34, 26, 0.12);
}

.signal-orbit::before,
.signal-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.signal-orbit::before {
  inset: 0.8rem;
  border: 1px solid rgba(80, 56, 45, 0.08);
}

.signal-orbit::after {
  inset: -0.55rem;
  border: 1px dashed rgba(192, 104, 66, 0.28);
  animation: ring-spin 18s linear infinite;
}

.signal-core {
  width: 64%;
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  padding: 1rem;
  text-align: center;
  color: #fff7ef;
  background: linear-gradient(145deg, #91523a, #6a3726);
  box-shadow: 0 18px 30px rgba(58, 31, 22, 0.24);
  animation: soft-pulse 4.8s ease-in-out infinite;
}

.signal-connected .signal-core {
  background: linear-gradient(145deg, #1c8d6d, #146252);
}

.signal-connecting .signal-core,
.signal-reconnecting .signal-core,
.signal-waiting_qr .signal-core {
  background: linear-gradient(145deg, #d39a32, #a96d18);
}

.signal-disconnected .signal-core,
.signal-error .signal-core {
  background: linear-gradient(145deg, #c45449, #8c3028);
}

.signal-core span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.signal-core strong {
  font-size: 1.1rem;
  line-height: 1.1;
}

.signal-list {
  display: grid;
  gap: 0.2rem;
}

.signal-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(80, 56, 45, 0.14);
}

.signal-item:last-child {
  border-bottom: none;
}

.metrics-luxe .metric-card {
  min-height: 11.75rem;
}

.metric-card-feature {
  background: linear-gradient(150deg, rgba(19, 105, 101, 0.2), rgba(255, 251, 246, 0.98));
}

.dashboard-grid,
.whatsapp-stage {
  align-items: start;
}

.spotlight-panel,
.timeline-panel,
.signal-vault {
  min-height: 100%;
}

.elevated-note {
  border-radius: 1.2rem;
}

.premium-note {
  background: linear-gradient(180deg, rgba(192, 104, 66, 0.08), rgba(255, 255, 255, 0.72));
}

.panel-heading-soft {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-showcase {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.qr-frame {
  padding: 1rem;
  border-radius: 1.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 235, 0.82));
  border: 1px solid rgba(80, 56, 45, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px rgba(57, 38, 27, 0.12);
}

.qr-showcase .qr-image {
  width: min(100%, 16rem);
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.qr-copy {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.qr-hint-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.qr-hint-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(19, 105, 101, 0.08);
  border: 1px solid rgba(19, 105, 101, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
}

.qr-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  gap: 0.5rem;
}

.table-wrap {
  overflow: auto;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(80, 56, 45, 0.08);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.table-wrap-luxe {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(252, 246, 239, 0.95));
}

th {
  position: sticky;
  top: 0;
  background: rgba(252, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 0.25rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.alert-marker {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.38rem;
  border-radius: 999px;
  background: currentColor;
}

.alert-copy {
  display: grid;
  gap: 0.28rem;
}

.alert-copy span {
  line-height: 1.65;
}

.alert-success {
  color: var(--success);
}

.alert-warning {
  color: var(--warning);
}

.alert-error {
  color: var(--danger);
}

.alert-info {
  color: var(--accent);
  background: rgba(19, 105, 101, 0.1);
}

.app-footer {
  padding-top: 0.35rem;
}

.footer-shell {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.4rem;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(145deg, rgba(18, 26, 25, 0.98), rgba(33, 43, 41, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(12, 17, 17, 0.28);
  text-align: center;
}

.footer-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.08) 50%, transparent 82%);
  transform: translateX(-140%);
  animation: footer-sheen 9s linear infinite;
}

.footer-aura {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.35;
}

.footer-aura-a {
  top: -7rem;
  left: -4rem;
  background: rgba(192, 104, 66, 0.28);
}

.footer-aura-b {
  right: -5rem;
  bottom: -7rem;
  background: rgba(19, 105, 101, 0.24);
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.footer-kicker {
  color: rgba(245, 237, 225, 0.62);
}

.footer-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: #fff7ef;
}

.footer-copy {
  margin: 0;
  max-width: 44rem;
  color: rgba(245, 237, 225, 0.72);
  line-height: 1.7;
}

.footer-credit-ribbon {
  width: min(100%, 42rem);
  margin-top: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.footer-credit-line {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 104, 66, 1), rgba(19, 105, 101, 0.86));
}

.footer-credit-ribbon p {
  margin: 0;
  color: #fff7ef;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-public .footer-shell {
  margin-top: 0.5rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-1rem, -0.8rem, 0) scale(1.06);
  }
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 30px rgba(58, 31, 22, 0.24);
  }

  50% {
    transform: scale(1.035);
    box-shadow: 0 22px 34px rgba(58, 31, 22, 0.32);
  }
}

@keyframes footer-sheen {
  from {
    transform: translateX(-140%);
  }

  to {
    transform: translateX(140%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-body > *,
  .signal-orbit::after,
  .signal-core,
  .hero-panel-main::after,
  .footer-shell::after {
    animation: none !important;
  }
}

@media (max-width: 1180px) {
  .hero-stage,
  .grid-cards.four-up,
  .content-grid.two-columns,
  .cards-grid,
  .selection-grid,
  .compact-grid,
  .public-shell {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding-bottom: 6rem;
  }

  .app-content,
  .app-header,
  .content-body,
  .app-footer {
    max-width: none;
    width: 100%;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .sidebar-nav,
  .logout-form {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 1.25rem;
    background: rgba(20, 26, 25, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    z-index: 8;
  }

  .mobile-nav a {
    padding: 0.8rem 0.4rem;
    text-align: center;
    border-radius: 0.9rem;
    font-size: 0.85rem;
    color: rgba(245, 237, 225, 0.68);
  }

  .mobile-nav a.is-active {
    background: linear-gradient(135deg, rgba(192, 104, 66, 0.24), rgba(19, 105, 101, 0.2));
    color: #fff8f1;
    font-weight: 700;
  }
}

@media (max-width: 760px) {
  .hero-stage,
  .hero-meta-grid,
  .connection-grid,
  .public-shell,
  .grid-cards.four-up,
  .content-grid.two-columns,
  .cards-grid,
  .selection-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .app-header,
  .panel-heading,
  .form-actions.split,
  .stack-on-mobile {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .signal-item,
  .footer-credit-ribbon {
    border-radius: 1.2rem;
  }

  .footer-credit-ribbon {
    width: 100%;
  }

  .public-shell,
  .app-shell {
    padding: 1rem;
  }

  .app-header,
  .public-brand,
  .public-card {
    padding: 1.25rem;
  }

  .panel,
  .metric-card,
  .public-card,
  .public-brand,
  .sidebar {
    border-radius: 1.25rem;
  }

  .button,
  .tab-link {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}