/* =========================================================
   CORE Website Styles

   1. Theme + Reset
   2. Shared Utilities
   3. Buttons + Controls
   4. Auth / Result Pages
   5. Public Site Layout
   6. Homepage
   7. About Page
   8. Legal Pages
   9. Dashboard Layout
   10. Cards + Panels
   11. Tables + Pagination
   12. Forms + Modals
   13. Settings Page
   14. Status Pills
   15. Responsive
========================================================= */


/* =========================================================
   1. Theme + Reset
========================================================= */

:root {
  --bg: #181f28;
  --panel: #202936;
  --panel-2: #111821;

  --text: #efe9df;
  --muted: #a9a193;
  --accent: #d0c8bb;

  --button-bg: #9d9688;
  --button-fg: #0f1114;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --border: rgba(208, 200, 187, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}


/* =========================================================
   2. Shared Utilities
========================================================= */

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}


/* =========================================================
   3. Buttons + Controls
========================================================= */

.button,
.mini-button,
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.button:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.button:active,
.mini-button:active {
  transform: translateY(0);
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

.button.primary {
  color: var(--button-fg);
  background: linear-gradient(135deg, #d0c8bb, #9d9688);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.button.primary:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.button.ghost {
  color: var(--text);
  background: rgba(208, 200, 187, 0.08);
  border-color: rgba(208, 200, 187, 0.22);
}

.button.ghost:hover {
  background: rgba(208, 200, 187, 0.14);
  border-color: rgba(208, 200, 187, 0.38);
}

.button.compact {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.button.full {
  width: 100%;
}

.button:disabled,
.mini-button:disabled,
.pagination-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(208, 200, 187, 0.09);
  border-color: rgba(208, 200, 187, 0.22);
  font-size: 0.78rem;
}

.mini-button:hover {
  background: rgba(208, 200, 187, 0.15);
  border-color: rgba(208, 200, 187, 0.36);
}

.mini-button[data-action="start"] {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.34);
}

.mini-button[data-action="start"]:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.52);
}

.mini-button[data-action="restart"] {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.34);
}

.mini-button[data-action="restart"]:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.52);
}

.mini-button[data-action="stop"],
.mini-button.danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.34);
}

.mini-button[data-action="stop"]:hover,
.mini-button.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.52);
}

.danger-button {
  color: #111827 !important;
  background: linear-gradient(135deg, #fca5a5, #ef4444) !important;
}

.danger-button-soft {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}

.danger-button-soft:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.44) !important;
}


/* =========================================================
   4. Auth / Result Pages
========================================================= */

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(208, 200, 187, 0.14), transparent 32rem),
    var(--bg);
}

.auth-card {
  width: min(100%, 460px);
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(32, 41, 54, 0.88);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-logo {
  width: 104px;
  margin: 0 auto 22px;
}

.auth-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.auth-card .button {
  margin-top: 18px;
}

.tiny-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.result-card {
  width: min(100%, 720px);
}

.result-card h1 {
  margin-bottom: 18px;
}

.result-card strong {
  color: var(--accent);
  font-weight: 900;
}

.success-title {
  color: #86efac;
}

.failed-title {
  color: #fca5a5;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}


/* =========================================================
   5. Public Site Layout
========================================================= */

.site-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(208, 200, 187, 0.13), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(157, 150, 136, 0.09), transparent 32rem),
    var(--bg);
  color: var(--text);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.site-brand img {
  width: 46px;
  height: 46px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 54px auto 0;
  padding: 28px 0 34px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}


/* =========================================================
   6. Homepage
========================================================= */

.hero-section {
  width: min(1180px, calc(100% - 40px));
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.hero-content h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card,
.about-summary-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(32, 41, 54, 0.9), rgba(17, 24, 33, 0.9));
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hero-card-top img {
  width: 78px;
}

.hero-card h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.hero-mini-grid span {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(208, 200, 187, 0.05);
}

.hero-mini-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.feature-section,
.about-section {
  width: min(1180px, calc(100% - 40px));
  margin: 92px auto 0;
}

.feature-grid,
.about-grid,
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.about-card,
.principles-grid article {
  border: 1px solid var(--border);
  background: rgba(32, 41, 54, 0.66);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.14);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(208, 200, 187, 0.1);
  font-size: 1.35rem;
}

.feature-card h3,
.about-card h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.feature-card p,
.about-card p,
.principles-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.cta-section {
  width: min(1180px, calc(100% - 40px));
  margin: 92px auto 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(32, 41, 54, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-section .cta-actions {
  margin-top: 0;
}


/* =========================================================
   7. About Page
========================================================= */

.about-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.about-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.about-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.about-summary-card {
  padding: 30px;
}

.about-summary-card img {
  width: 86px;
  margin-bottom: 24px;
}

.about-summary-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about-summary-card p {
  color: var(--muted);
  line-height: 1.7;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(32, 41, 54, 0.62);
}

.process-item span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(208, 200, 187, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.process-item h3 {
  margin-bottom: 8px;
}

.process-item p {
  color: var(--muted);
  line-height: 1.65;
}

.principles-grid article {
  background: rgba(17, 24, 33, 0.58);
  border-radius: 22px;
  box-shadow: none;
}

.principles-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.04rem;
}


/* =========================================================
   8. Legal Pages
========================================================= */

.legal-hero {
  width: min(940px, calc(100% - 40px));
  margin: 58px auto 0;
}

.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.legal-updated {
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.legal-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.legal-document {
  width: min(940px, calc(100% - 40px));
  margin: 48px auto 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(32, 41, 54, 0.72);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.16);
}

.legal-document h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-document ul {
  margin: 12px 0;
  padding-left: 22px;
}

.legal-document li {
  margin: 8px 0;
}

.legal-document a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.legal-document a:hover {
  text-decoration: underline;
}


/* =========================================================
   9. Dashboard Layout
========================================================= */

.dashboard-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(208, 200, 187, 0.1), transparent 30rem),
    var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: rgba(17, 24, 33, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.sidebar-top,
.sidebar-bottom {
  display: grid;
  gap: 22px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.sidebar-brand img {
  width: 52px;
}

.sidebar-brand strong {
  display: block;
  font-size: 1.1rem;
}

.sidebar-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  color: var(--text);
  background: rgba(208, 200, 187, 0.11);
}

.sidebar-nav a.active {
  border-color: rgba(208, 200, 187, 0.18);
}

.sidebar-nav a[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

.sidebar .button.ghost {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
}

.sidebar .button.ghost:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.44);
}

.sidebar .button.ghost.full {
  border-radius: 14px;
}

.compact-user-badge {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(32, 41, 54, 0.64);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dashboard-main {
  padding: 34px;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -34px -34px 28px;
  padding: 24px 34px;
  border-bottom: 1px solid var(--border);
  background: rgba(24, 31, 40, 0.86);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.dashboard-topbar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}


/* =========================================================
   10. Cards + Panels
========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-overview-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.stat-card,
.panel,
.setting-card {
  border: 1px solid var(--border);
  background: rgba(32, 41, 54, 0.76);
  border-radius: 24px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.18);
}

.stat-card,
.setting-card {
  padding: 22px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2.4rem;
}

.panel {
  padding: 22px;
}

.panel+.panel {
  margin-top: 24px;
}

.panel h2 {
  font-size: 1.35rem;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================================================
   11. Tables + Pagination
========================================================= */

.table-search {
  display: grid;
  gap: 6px;
}

.table-search span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-search input {
  width: 220px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(17, 24, 33, 0.72);
  color: var(--text);
  font-weight: 700;
}

.table-search input:focus {
  outline: none;
  border-color: rgba(208, 200, 187, 0.5);
  box-shadow: 0 0 0 4px rgba(208, 200, 187, 0.1);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  background: rgba(17, 24, 33, 0.62);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tbody tr {
  background: rgba(17, 24, 33, 0.34);
}

.data-table tbody tr:hover {
  background: rgba(208, 200, 187, 0.055);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-primary {
  display: grid;
  gap: 4px;
}

.table-primary strong {
  color: var(--text);
}

.table-primary span {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions-column {
  width: 240px;
}

.table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.pagination-bar {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-info,
.pagination-page {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(208, 200, 187, 0.08);
  border-color: var(--border);
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(208, 200, 187, 0.14);
  border-color: rgba(208, 200, 187, 0.34);
}


/* =========================================================
   12. Forms + Modals
========================================================= */

.role-select {
  min-width: 120px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 24, 33, 0.72);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.role-select:focus {
  outline: none;
  border-color: rgba(208, 200, 187, 0.5);
  box-shadow: 0 0 0 4px rgba(208, 200, 187, 0.1);
}

.role-select:disabled {
  cursor: wait;
  opacity: 0.55;
}

.edit-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-grid span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-grid input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(17, 24, 33, 0.72);
  color: var(--text);
  font-weight: 700;
}

.form-grid input:focus {
  outline: none;
  border-color: rgba(208, 200, 187, 0.5);
  box-shadow: 0 0 0 4px rgba(208, 200, 187, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
}

.modal-card {
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(208, 200, 187, 0.08), transparent 26rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(208, 200, 187, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(208, 200, 187, 0.14);
}

.roblox-preview-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 24, 33, 0.55);
}

.roblox-preview-card>div {
  min-width: 0;
}

.roblox-preview-card span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.roblox-preview-card strong {
  display: block;
  font-size: 1.35rem;
}

.roblox-preview-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.roblox-preview-card strong,
.roblox-preview-card small {
  overflow-wrap: anywhere;
}


/* =========================================================
   13. Settings Page
========================================================= */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.setting-card h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.settings-list {
  display: grid;
  gap: 12px;
}

.settings-list div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 24, 33, 0.45);
}

.settings-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-list strong {
  color: var(--text);
  overflow-wrap: anywhere;
}


/* =========================================================
   14. Status Pills
========================================================= */

.status-pill {
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-online {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.status-stopped {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
}

.status-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.status-unknown {
  color: var(--muted);
  background: rgba(208, 200, 187, 0.08);
}


/* =========================================================
   15. Responsive
========================================================= */

@media (max-width: 1100px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    width: min(100%, 760px);
  }
}

@media (max-width: 980px) {

  .hero-section,
  .about-hero {
    grid-template-columns: 1fr;
  }

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

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-topbar {
    position: relative;
    margin: 0 0 24px;
    padding: 0 0 20px;
    background: transparent;
    backdrop-filter: none;
  }

  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .roblox-preview-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {

  .site-header,
  .dashboard-topbar,
  .panel-header.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px;
  }

  .hero-section,
  .about-hero,
  .legal-hero {
    margin-top: 34px;
  }

  .hero-content h1,
  .about-hero h1,
  .legal-hero h1 {
    letter-spacing: -0.055em;
  }

  .hero-mini-grid,
  .feature-grid,
  .about-grid,
  .principles-grid,
  .dashboard-overview-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .legal-document {
    padding: 22px;
  }

  .panel-actions,
  .table-search,
  .table-search input {
    width: 100%;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: start;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
    padding: 20px;
    border-radius: 22px;
  }

  .modal-header {
    gap: 12px;
  }

  .modal-header h2 {
    font-size: 2rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(208, 200, 187, 0.22);
  border-radius: 999px;
  background: rgba(208, 200, 187, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
}