﻿*[hidden] {
  display: none !important;
}

:root {
  --bg: #05070f;
  --panel: rgba(19, 28, 49, 0.72);
  --text: #eaf1ff;
  --muted: #9eb1d5;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --topbar-bg: rgba(6, 10, 20, 0.65);
  --input-bg: rgba(7, 12, 24, 0.82);
  --card-text: #d8e4ff;
  --hero-g1: rgba(86, 204, 242, 0.28);
  --hero-g2: rgba(47, 128, 237, 0.32);
  --hero-base-1: #111c34;
  --hero-base-2: #090f1f;
  --hero-base-3: #070d19;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Montserrat", sans-serif;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, #1a2a52 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #12284f 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #03050a 100%);
  min-height: 100vh;
  transition: color 0.2s ease, background 0.3s ease;
}

body.theme-light {
  --bg: #eef3ff;
  --panel: rgba(255, 255, 255, 0.78);
  --text: #18233b;
  --muted: #4f5f82;
  --border: rgba(23, 36, 66, 0.16);
  --shadow: 0 14px 30px rgba(37, 58, 98, 0.16);
  --topbar-bg: rgba(237, 244, 255, 0.76);
  --input-bg: rgba(255, 255, 255, 0.9);
  --card-text: #23345c;
  --hero-g1: rgba(86, 204, 242, 0.2);
  --hero-g2: rgba(47, 128, 237, 0.2);
  --hero-base-1: #dbe7ff;
  --hero-base-2: #f5f8ff;
  --hero-base-3: #e9effd;
  background:
    radial-gradient(1200px 700px at 10% -10%, #bcd2ff 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c6ddff 0%, transparent 60%),
    linear-gradient(180deg, #f3f7ff 0%, #e8f0ff 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
}

.topbar h1 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  color: var(--text);
  margin-left: 0;
  padding: 5px 0;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  opacity: 1;
}

nav a.active {
  opacity: 1;
  font-weight: 700;
  color: #56ccf2;
}

body.theme-light nav a.active {
  color: #1d63d1;
}


.theme-toggle {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 72px 20px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, var(--hero-g1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--hero-g2) 0%, transparent 42%),
    linear-gradient(135deg, var(--hero-base-1) 0%, var(--hero-base-2) 45%, var(--hero-base-3) 100%);
  transform: translateY(calc(var(--parallax-y, 0px) * 0.35));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.2), rgba(4, 8, 18, 0.5));
}

body.theme-light .hero-overlay {
  background: linear-gradient(180deg, rgba(233, 241, 255, 0.3), rgba(221, 232, 251, 0.55));
}

.hero-content {
  text-align: center;
  width: min(720px, 92vw);
}

.hero-content h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin: 0;
}

.hero-content p {
  margin: 12px 0 26px;
  color: var(--muted);
}

.hero input {
  width: min(420px, 90vw);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero input:focus {
  border-color: rgba(86, 204, 242, 0.8);
  box-shadow: 0 0 0 4px rgba(86, 204, 242, 0.18);
}

.crimes {
  width: min(1100px, 92vw);
  margin: -30px auto 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 8px 0;
  color: var(--card-text);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(86, 204, 242, 0.55);
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-meta {
  font-size: 0.96rem;
}

.primary-button,
.secondary-button,
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #56ccf2, #2f80ed);
  color: #07111f;
}

.secondary-button,
.admin-link {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--border);
}

.primary-button:hover,
.secondary-button:hover,
.admin-link:hover {
  transform: translateY(-2px);
}

.session-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-badge {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}

.session-badge strong {
  font-size: 0.92rem;
}

.session-badge span {
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-shell {
  width: min(1180px, 94vw);
  margin: -24px auto 44px;
  display: grid;
  gap: 20px;
}

.admin-shell--compact {
  margin-top: -24px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.summary-card,
.admin-panel,
.login-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.summary-card span,
.section-eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-panel-header h3 {
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--card-text);
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: rgba(86, 204, 242, 0.8);
  box-shadow: 0 0 0 4px rgba(86, 204, 242, 0.18);
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: #56ccf2;
  font-weight: 600;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-state {
  text-align: center;
  color: var(--muted);
}

.login-page-body {
  overflow: hidden;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(86, 204, 242, 0.16), transparent 60%),
    radial-gradient(800px 420px at 85% 75%, rgba(47, 128, 237, 0.18), transparent 60%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  display: grid;
  gap: 22px;
}

.login-brand h1,
.login-help h2 {
  margin: 0;
}

.login-brand p,
.login-help p {
  color: var(--card-text);
}

.login-help {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@media (max-width: 880px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav {
    width: 100%;
    gap: 8px;
  }

  nav a {
    margin: 0;
  }


  .admin-panel-header,
  .session-tools {
    flex-direction: column;
  }
}

.penal-page {
  width: min(1280px, 96vw);
  margin: 24px auto 44px;
}

.penal-title,
.penal-subtitle {
  margin: 0;
  text-align: center;
  letter-spacing: 0.03em;
}

.penal-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.penal-subtitle {
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  color: var(--muted);
}

.penal-block {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #000;
  background: #e6d6bf;
  box-shadow: var(--shadow);
}

.penal-block h4 {
  margin: 0;
  padding: 8px 12px;
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  color: #111;
  background: #f7a300;
  border-bottom: 2px solid #000;
}

.penal-block table {
  width: 100%;
  border-collapse: collapse;
  color: #111;
  background: #e6d6bf;
}

.penal-block th,
.penal-block td {
  border: 1px solid #1b1b1b;
  padding: 6px 8px;
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
}

.penal-block th {
  text-align: left;
  background: #e19536;
}

.penal-block td:first-child,
.penal-block td:nth-child(4),
.penal-block td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .penal-page {
    width: 98vw;
  }

  .penal-block {
    overflow-x: auto;
  }

  .penal-block table {
    min-width: 760px;
  }
}

.constitution-page {
  width: min(980px, 94vw);
  margin: 26px auto 44px;
}

.constitution-title,
.constitution-subtitle {
  text-align: center;
  margin: 0;
}

.constitution-title {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.constitution-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.constitution-content {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.constitution-content h4 {
  margin: 18px 0 10px;
  font-size: 1.1rem;
  color: #56ccf2;
}

.constitution-content h5 {
  margin: 14px 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.constitution-content p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: var(--card-text);
  text-align: justify;
}

body.theme-light .constitution-content h4 {
  color: #1d63d1;
}

.admin-editor-grid {
  display: grid;
  gap: 18px;
}

.editor-block {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 28, 0.28);
}

body.theme-light .editor-block {
  background: rgba(255, 255, 255, 0.54);
}

.editor-block h4 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mini-card-grid label {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.role-notice-text {
  margin: 0;
  color: var(--card-text);
  line-height: 1.6;
}



.editor-actions--inline {
  margin-top: 14px;
}

.dynamic-card-editor {
  position: relative;
}

.editor-remove-button {
  margin-top: 10px;
}

.login-card--wide {
  width: min(980px, 94vw);
}

.login-card--compact {
  width: min(560px, 94vw);
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.login-panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.28);
}

body.theme-light .login-panel {
  background: rgba(255, 255, 255, 0.5);
}

.login-panel--full {
  grid-column: 1 / -1;
}

.login-panel h2 {
  margin: 0 0 12px;
}

.login-panel-text {
  margin: 0 0 14px;
  color: var(--card-text);
}

.login-aux-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.login-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(86, 204, 242, 0.28);
  background: rgba(86, 204, 242, 0.1);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.login-inline-link:hover {
  transform: translateY(-1px);
  border-color: rgba(86, 204, 242, 0.5);
  background: rgba(86, 204, 242, 0.16);
}

body.theme-light .login-inline-link {
  border-color: rgba(36, 70, 126, 0.18);
  background: rgba(36, 70, 126, 0.08);
}

.login-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 880px) {
  .login-grid,
  .login-inline-grid {
    grid-template-columns: 1fr;
  }
}
.global-search {
  position: relative;
  min-width: min(360px, 42vw);
}

.global-search-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

.global-search-input:focus {
  border-color: rgba(86, 204, 242, 0.8);
  box-shadow: 0 0 0 4px rgba(86, 204, 242, 0.18);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(620px, 82vw);
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(6, 10, 20, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  z-index: 30;
}

body.theme-light .global-search-results {
  background: rgba(255, 255, 255, 0.97);
}

.global-search-result,
.global-search-empty {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.global-search-result {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.global-search-result:last-child {
  border-bottom: none;
}

.global-search-result:hover {
  background: rgba(86, 204, 242, 0.12);
}

.global-search-result span,
.global-search-empty {
  color: var(--card-text);
  font-size: 0.94rem;
}
.operator-nav-shell {
  width: min(1180px, 94vw);
  margin: 16px auto -8px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 25, 48, 0.94), rgba(9, 16, 30, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

body.theme-light .operator-nav-shell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 255, 0.92));
}

.operator-nav-title {
  display: grid;
  gap: 4px;
}

.operator-nav-eyebrow {
  color: #56ccf2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

body.theme-light .operator-nav-eyebrow {
  color: #1d63d1;
}

.operator-nav-title strong {
  font-size: 1.05rem;
}

.operator-nav-title small {
  color: var(--muted);
}

.operator-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.operator-nav-link {
  min-width: 170px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  border-radius: 18px;
  border: 1px solid rgba(86, 204, 242, 0.18);
  background: rgba(86, 204, 242, 0.08);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.theme-light .operator-nav-link {
  background: rgba(29, 99, 209, 0.06);
  border-color: rgba(29, 99, 209, 0.14);
}

.operator-nav-link strong {
  font-size: 0.96rem;
}

.operator-nav-link span {
  font-size: 0.8rem;
  color: var(--muted);
}

.operator-nav-link:hover {
  transform: translateY(-3px);
  border-color: rgba(86, 204, 242, 0.38);
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.16);
}

.operator-nav-link.active {
  background: linear-gradient(135deg, #56ccf2, #2f80ed);
  border-color: transparent;
  color: #07111f;
}

.operator-nav-link.active span {
  color: rgba(7, 17, 31, 0.75);
}

.operator-nav-badge {
  min-width: 136px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  text-align: right;
}

.operator-nav-badge span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.operator-nav-badge strong {
  font-size: 1rem;
}
@media (max-width: 980px) {
  .operator-nav-shell {
    grid-template-columns: 1fr;
  }

  .operator-nav-badge {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .operator-nav-link {
    min-width: 100%;
  }
}
.calculator-admin-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.calculator-admin-section {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(7, 12, 24, 0.22);
}

body.theme-light .calculator-admin-section {
  background: rgba(255, 255, 255, 0.48);
}

.calculator-admin-section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.calculator-admin-section-header h5 {
  margin: 0;
  font-size: 1rem;
}
.user-management-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.managed-users-list {
  display: grid;
  gap: 14px;
}

.managed-user-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.22);
}

body.theme-light .managed-user-card {
  background: rgba(255, 255, 255, 0.48);
}

.managed-user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.managed-user-card-header h4 {
  margin: 0;
}

.managed-user-card-header p,
.managed-user-meta {
  margin: 4px 0 0;
  color: var(--muted);
}

.managed-user-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(86, 204, 242, 0.18);
  color: var(--text);
}

.managed-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.managed-user-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.admin-subpanel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.admin-subpanel--spaced {
  display: grid;
  gap: 16px;
}

.user-management-grid--portal {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.managed-user-role--portal {
  background: rgba(86, 204, 242, 0.12);
  color: #7ed8ff;
}

.admin-shell--tabs {
  grid-template-columns: minmax(0, 1fr);
}

.admin-tabs-panel {
  display: grid;
  gap: 18px;
}

.admin-tabs-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-tabs-header h3 {
  margin: 6px 0 0;
}

.admin-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-tab-button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-tab-button:hover {
  transform: translateY(-2px);
  border-color: rgba(86, 204, 242, 0.5);
}

.admin-tab-button.is-active {
  background: linear-gradient(135deg, #56ccf2, #2f80ed);
  border-color: transparent;
  color: #07111f;
}

.admin-tab-content {
  margin: 0;
}

.admin-overview {
  margin-bottom: 0;
}

.admin-ticket-list {
  display: grid;
  gap: 18px;
}

.admin-ticket-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(7, 12, 24, 0.3);
}

body.theme-light .admin-ticket-card {
  background: rgba(255, 255, 255, 0.48);
}

.admin-ticket-card--empty {
  color: var(--muted);
}

.admin-ticket-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-ticket-card-header h4 {
  margin: 0 0 8px;
}

.admin-ticket-meta {
  margin: 0;
  color: var(--muted);
}

.admin-ticket-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(86, 204, 242, 0.16);
  color: #7ed8ff;
  font-weight: 700;
}

.admin-ticket-status--recebido {
  background: rgba(255, 196, 0, 0.16);
  color: #ffd166;
}

.admin-ticket-status--em-analise {
  background: rgba(86, 204, 242, 0.16);
  color: #7ed8ff;
}

.admin-ticket-status--aceito {
  background: rgba(39, 174, 96, 0.16);
  color: #6ee7a8;
}

.admin-ticket-status--recusado {
  background: rgba(235, 87, 87, 0.16);
  color: #ff8f8f;
}

.admin-ticket-description {
  margin: 16px 0 0;
  color: var(--card-text);
}

.admin-ticket-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-ticket-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.admin-ticket-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-ticket-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 880px) {
  .admin-tabs-header,
  .admin-ticket-card-header {
    flex-direction: column;
  }
}

.user-portal-shell {
  margin-top: -36px;
  display: grid;
  gap: 16px;
}


.user-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.user-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 216, 255, 0.22);
  background: rgba(6, 17, 31, 0.52);
  color: #dff5ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}

.user-portal-welcome {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(86, 204, 242, 0.16), rgba(47, 128, 237, 0.08)),
    var(--panel);
}

.user-portal-welcome-copy h3 {
  margin: 4px 0 6px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.user-portal-welcome .role-notice-text {
  margin: 0;
  max-width: 54ch;
}

.user-portal-welcome .secondary-button {
  white-space: nowrap;
}

.user-portal-auth-grid,
.user-portal-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.user-portal-auth-grid--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

.user-portal-shell .admin-panel {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
}

.user-portal-shell .admin-panel-header {
  margin-bottom: 14px;
}

.user-portal-shell .admin-panel-header h3 {
  margin-top: 4px;
  font-size: clamp(1.08rem, 1.7vw, 1.36rem);
}

.user-portal-shell .admin-form {
  gap: 12px;
}

.user-portal-shell .admin-form label {
  gap: 6px;
  font-size: 0.95rem;
}

.user-portal-shell .admin-form input,
.user-portal-shell .admin-form select,
.user-portal-shell .admin-form textarea {
  padding: 11px 13px;
  border-radius: 13px;
}

.user-profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.user-profile-panel,
.user-ticket-panel {
  min-height: 100%;
}

.user-panel-intro {
  margin: 6px 0 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.user-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.user-panel-actions .form-feedback {
  margin: 0;
  flex: 1;
  text-align: right;
}

.user-panel-actions--ticket {
  align-items: center;
}

.user-entry-panel {
  display: grid;
  gap: 14px;
}

.user-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-ticket-form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-ticket-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.user-field-full {
  grid-column: 1 / -1;
}

.user-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  resize: vertical;
  font: inherit;
}

.admin-form textarea:focus {
  outline: 2px solid rgba(86, 204, 242, 0.45);
  border-color: transparent;
}

.user-ticket-list {
  display: grid;
  gap: 14px;
}

.user-ticket-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(86, 204, 242, 0.07), rgba(7, 12, 24, 0.18)),
    rgba(7, 12, 24, 0.28);
  box-shadow: 0 14px 28px rgba(5, 10, 19, 0.18);
}

body.theme-light .user-ticket-card {
  background: rgba(255, 255, 255, 0.48);
}

.user-ticket-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.user-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.user-ticket-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.user-ticket-description {
  margin: 0;
  color: var(--card-text);
  line-height: 1.5;
}

.user-ticket-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(126, 216, 255, 0.1);
  color: #7ed8ff;
  font-weight: 700;
  font-size: 0.82rem;
}

.user-ticket-status[data-status="recebido"] {
  color: #ffd166;
}

.user-ticket-status[data-status="em-analise"] {
  color: #7ed8ff;
}

.user-ticket-status[data-status="aceito"] {
  color: #6ee7a8;
}

.user-ticket-status[data-status="recusado"] {
  color: #ff8f8f;
}

.user-ticket-admin-note {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(86, 204, 242, 0.08);
}

.user-ticket-admin-note strong {
  display: block;
  margin-bottom: 8px;
}

.user-ticket-admin-note p {
  margin: 0;
  color: var(--card-text);
}

.user-ticket-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.user-ticket-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.user-ticket-card--empty {
  color: var(--muted);
}


@media (max-width: 880px) {
  .user-portal-welcome,
  .user-portal-auth-grid,
  .user-portal-app-grid,
  .user-ticket-form-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .user-panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .user-ticket-form-buttons,
  .user-ticket-actions {
    width: 100%;
    flex-direction: column;
  }

  .user-panel-actions .form-feedback {
    text-align: left;
  }
}

.access-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.access-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  min-width: 118px;
  padding: 7px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.access-link::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.access-link:hover {
  transform: translateY(-1px);
}

.access-link--user {
  background: linear-gradient(135deg, rgba(86, 204, 242, 0.16), rgba(47, 128, 237, 0.06));
  border-color: rgba(86, 204, 242, 0.24);
}

.access-link--user::before {
  background: #7ed8ff;
  box-shadow: 0 0 0 5px rgba(126, 216, 255, 0.12);
}

.access-link--user:hover {
  border-color: rgba(86, 204, 242, 0.45);
}

.access-link--admin {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.16), rgba(255, 138, 61, 0.08));
  border-color: rgba(255, 183, 77, 0.24);
}

.access-link--admin::before {
  background: #ffb74d;
  box-shadow: 0 0 0 5px rgba(255, 183, 77, 0.14);
}

.access-link--admin:hover {
  border-color: rgba(255, 183, 77, 0.44);
}

.access-link.is-active {
  color: #07111f;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.access-link--user.is-active {
  background: linear-gradient(135deg, #56ccf2, #2f80ed);
}

.access-link--admin.is-active {
  background: linear-gradient(135deg, #ffb74d, #ff8a3d);
}

.access-link.is-active::before {
  background: #07111f;
  box-shadow: 0 0 0 5px rgba(7, 17, 31, 0.14);
}

body.theme-light .access-link--user {
  background: linear-gradient(135deg, rgba(29, 99, 209, 0.12), rgba(29, 99, 209, 0.04));
  border-color: rgba(29, 99, 209, 0.22);
}

body.theme-light .access-link--admin {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.14), rgba(243, 156, 18, 0.08));
  border-color: rgba(230, 126, 34, 0.22);
}

@media (max-width: 880px) {
  .access-links {
    width: 100%;
    justify-content: stretch;
  }

  .access-link {
    flex: 1 1 180px;
    min-width: 0;
  }
}



.admin-dashboard-page .hero {
  min-height: 44vh;
  padding: 86px 20px 118px;
}

.admin-dashboard-page .hero::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(86, 204, 242, 0.34) 0%, transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(255, 183, 77, 0.24) 0%, transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(47, 128, 237, 0.28) 0%, transparent 34%),
    linear-gradient(135deg, #08101d 0%, #0b1528 48%, #060b16 100%);
}

.admin-dashboard-page .hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.08), rgba(4, 8, 18, 0.42)),
    radial-gradient(circle at top right, rgba(255, 183, 77, 0.12), transparent 30%);
}

.admin-hero-content {
  position: relative;
  text-align: left;
  width: min(980px, 94vw);
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(11, 18, 34, 0.82), rgba(11, 19, 37, 0.58));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.admin-dashboard-page .hero-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.admin-dashboard-page .hero-content p {
  width: min(62ch, 100%);
  margin: 14px 0 0;
  font-size: 1.02rem;
  color: #c7d6f7;
}

.admin-dashboard-page .admin-shell {
  position: relative;
  width: min(1240px, 95vw);
  margin: -72px auto 56px;
  gap: 24px;
}

.admin-dashboard-page .admin-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.admin-dashboard-page .summary-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(15, 24, 43, 0.94), rgba(11, 18, 33, 0.76));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.admin-dashboard-page .summary-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  opacity: 0.42;
  filter: blur(10px);
}

.admin-dashboard-page .summary-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(204, 219, 248, 0.78);
}

.admin-dashboard-page .summary-card strong {
  margin-top: 18px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.admin-dashboard-page .summary-card--profile::before {
  background: rgba(86, 204, 242, 0.56);
}

.admin-dashboard-page .summary-card--volume::before {
  background: rgba(255, 183, 77, 0.48);
}

.admin-dashboard-page .summary-card--person::before {
  background: rgba(111, 207, 151, 0.48);
}

.admin-dashboard-page .summary-card--process::before {
  background: rgba(155, 81, 224, 0.42);
}

.admin-dashboard-page .admin-panel {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(12, 18, 33, 0.94), rgba(10, 16, 29, 0.82));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.admin-dashboard-page .admin-command-panel {
  padding: 22px;
}

.admin-dashboard-page .admin-tabs-header {
  padding: 4px 4px 18px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-dashboard-page .admin-tabs-header h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.admin-dashboard-page .admin-tabs-nav {
  position: sticky;
  top: 74px;
  z-index: 5;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 12, 24, 0.78);
  backdrop-filter: blur(12px);
}

.admin-dashboard-page .admin-tab-button {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #dce8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-dashboard-page .admin-tab-button:hover {
  background: rgba(86, 204, 242, 0.08);
}

.admin-dashboard-page .admin-tab-button.is-active {
  background: linear-gradient(135deg, #56ccf2, #2f80ed);
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.3);
}

.admin-dashboard-page .admin-tab-content {
  padding: 4px 2px 0;
}

.admin-dashboard-page .editor-block,
.admin-dashboard-page .calculator-admin-section,
.admin-dashboard-page .admin-ticket-card,
.admin-dashboard-page .managed-user-card,
.admin-dashboard-page .admin-subpanel {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(15, 24, 43, 0.82), rgba(8, 14, 27, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-dashboard-page .editor-block h4,
.admin-dashboard-page .calculator-admin-section-header h5,
.admin-dashboard-page .admin-ticket-card-header h4,
.admin-dashboard-page .managed-user-card-header h4 {
  letter-spacing: -0.02em;
}

.admin-dashboard-page .admin-link,
.admin-dashboard-page .primary-button,
.admin-dashboard-page .secondary-button {
  border-radius: 14px;
}

.admin-dashboard-page .admin-link {
  min-height: 42px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(86, 204, 242, 0.12), rgba(47, 128, 237, 0.08));
  border-color: rgba(86, 204, 242, 0.18);
}

.admin-dashboard-page .admin-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(5, 9, 19, 0.36);
}

.admin-dashboard-page .admin-table th {
  position: sticky;
  top: 0;
  background: rgba(10, 17, 31, 0.94);
  color: #b7c9ee;
}

.admin-dashboard-page .admin-table td {
  background: rgba(255, 255, 255, 0.015);
}

.admin-dashboard-page .admin-ticket-card {
  position: relative;
  overflow: hidden;
}

.admin-dashboard-page .admin-ticket-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #56ccf2, #2f80ed);
  opacity: 0.9;
}

.admin-dashboard-page .role-notice-text {
  max-width: 72ch;
  color: #c9d8f6;
}

.admin-dashboard-page .managed-user-actions,
.admin-dashboard-page .editor-actions,
.admin-dashboard-page .editor-actions--inline {
  gap: 12px;
}

.admin-dashboard-page .mini-card-grid {
  gap: 16px;
}

.admin-dashboard-page .calculator-admin-grid {
  gap: 18px;
}

.admin-dashboard-page .managed-user-role,
.admin-dashboard-page .admin-ticket-status {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light.admin-dashboard-page .hero::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(29, 99, 209, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(230, 126, 34, 0.14) 0%, transparent 24%),
    radial-gradient(circle at 70% 78%, rgba(86, 204, 242, 0.16) 0%, transparent 30%),
    linear-gradient(135deg, #f6f9ff 0%, #eaf2ff 48%, #f9fbff 100%);
}

body.theme-light.admin-dashboard-page .hero-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(214, 227, 248, 0.35));
}

body.theme-light.admin-dashboard-page .admin-hero-content,
body.theme-light.admin-dashboard-page .summary-card,
body.theme-light.admin-dashboard-page .admin-panel,
body.theme-light.admin-dashboard-page .editor-block,
body.theme-light.admin-dashboard-page .calculator-admin-section,
body.theme-light.admin-dashboard-page .admin-ticket-card,
body.theme-light.admin-dashboard-page .managed-user-card,
body.theme-light.admin-dashboard-page .admin-subpanel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.88));
  border-color: rgba(20, 54, 100, 0.08);
  box-shadow: 0 18px 40px rgba(78, 108, 156, 0.12);
}

body.theme-light.admin-dashboard-page .admin-tabs-nav {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(20, 54, 100, 0.08);
}

body.theme-light.admin-dashboard-page .admin-tab-button {
  background: rgba(23, 36, 66, 0.04);
  color: #172442;
}

body.theme-light.admin-dashboard-page .admin-link {
  background: linear-gradient(135deg, rgba(29, 99, 209, 0.1), rgba(29, 99, 209, 0.04));
  border-color: rgba(29, 99, 209, 0.14);
}

@media (max-width: 880px) {
  .admin-dashboard-page .hero {
    min-height: 38vh;
    padding: 68px 16px 104px;
  }

  .admin-dashboard-page .admin-hero-content {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .admin-dashboard-page .admin-shell {
    margin-top: -62px;
    width: min(96vw, 96vw);
    gap: 18px;
  }

  .admin-dashboard-page .admin-tabs-nav {
    position: static;
    padding: 8px;
    border-radius: 18px;
  }

  .admin-dashboard-page .summary-card,
  .admin-dashboard-page .admin-panel {
    border-radius: 20px;
  }
}


/* Premium Home */
.topbar--premium {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(201, 170, 92, 0.14);
  background: rgba(7, 9, 13, 0.62);
  backdrop-filter: blur(16px);
}

.topbar--premium .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.brand-link--premium {
  text-decoration: none;
}

.brand-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(201, 170, 92, 0.28);
  background: linear-gradient(135deg, rgba(201, 170, 92, 0.16), rgba(255, 255, 255, 0.04));
  color: #eed38b;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: #b8b2a6;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.topbar-actions--premium {
  gap: 12px;
}

.topbar--premium nav {
  gap: 10px;
}

.topbar--premium nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(245, 241, 230, 0.82);
}

.topbar--premium nav a:hover,
.topbar--premium nav a.active {
  color: #eed38b;
  background: rgba(255, 255, 255, 0.04);
}

.landing-home {
  background:
    radial-gradient(circle at top, rgba(201, 170, 92, 0.08), transparent 24%),
    linear-gradient(180deg, #07090d 0%, #0b0d12 100%);
}

.landing-home .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 138px 24px 92px;
}

.landing-home .parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.landing-home .hero-bg {
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.38), rgba(4, 6, 10, 0.88)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat,
    linear-gradient(135deg, #1b2230 0%, #111722 35%, #0b0f17 70%, #080b12 100%);
  transform: translate3d(0, 0, 0) scale(1.12);
  filter: saturate(0.9) brightness(0.82);
}

.landing-home .hero-grid {
  background-image:
    linear-gradient(rgba(201, 170, 92, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 170, 92, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.65;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

.landing-home .hero-glow::before,
.landing-home .hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
}

.landing-home .hero-glow::before {
  width: 360px;
  height: 360px;
  background: rgba(201, 170, 92, 0.4);
  top: 12%;
  left: 8%;
}

.landing-home .hero-glow::after {
  width: 280px;
  height: 280px;
  background: rgba(138, 38, 38, 0.42);
  right: 10%;
  bottom: 16%;
}

.landing-home .hero-overlay {
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.1), rgba(4, 8, 18, 0.55));
}

.hero-content--premium {
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.88fr);
  gap: 40px;
  align-items: center;
  text-align: left;
}

.hero-copy-block {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 170, 92, 0.24);
  background: rgba(9, 12, 18, 0.58);
  color: #eed38b;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-home .hero-content h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  color: #f5f1e6;
}

.landing-home .hero-content p {
  margin: 16px 0 0;
  max-width: 62ch;
  color: #c1b7a2;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions--premium {
  margin: 30px 0 22px;
}

.hero-search-shell {
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-search-label {
  display: block;
  margin-bottom: 10px;
  color: #eed38b;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats--premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat-card,
.hero-panel--premium,
.home-law-card,
.portal-overview-card,
.landing-band__inner {
  border: 1px solid rgba(201, 170, 92, 0.18);
  border-radius: 24px;
  background: rgba(14, 20, 31, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.hero-stat-card {
  padding: 18px;
}

.hero-stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: #eed38b;
  font-size: 1.1rem;
}

.hero-stat-card span {
  color: #c1b7a2;
  line-height: 1.6;
  font-size: 0.92rem;
}

.hero-panel--premium {
  padding: 24px;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.92), rgba(12, 18, 29, 0.92));
}

.hero-panel--premium h3 {
  margin: 0 0 18px;
  color: #eed38b;
  font-size: 1.14rem;
  letter-spacing: 0.03em;
}

.hero-panel-list {
  display: grid;
  gap: 14px;
}

.hero-panel-list article {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(201, 170, 92, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.hero-panel-list small {
  display: block;
  margin-bottom: 8px;
  color: #eed38b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.03rem;
}

.hero-panel-list span {
  color: #c1b7a2;
  line-height: 1.7;
  font-size: 0.95rem;
}

.landing-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.landing-section--intro {
  margin-top: -34px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 14px;
  color: #eed38b;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
  color: #f5f1e6;
}

.section-heading p {
  margin: 0;
  color: #c1b7a2;
  line-height: 1.75;
}

.crimes--premium {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.home-law-card {
  padding: 22px;
}

.home-law-card h3 {
  margin: 0 0 12px;
  color: #f5f1e6;
}

.home-law-card p {
  color: #cdd5e6;
}

.landing-band {
  padding: 0 20px;
}

.landing-band__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 34px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 14, 21, 0.94), rgba(14, 20, 31, 0.84));
}

.landing-band__inner p {
  margin: 0 0 12px;
  color: #f5f1e6;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.5;
}

.landing-band__inner span {
  color: #eed38b;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-overview-card {
  padding: 24px;
}

.portal-overview-card small {
  display: inline-block;
  margin-bottom: 12px;
  color: #eed38b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-overview-card h4 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  color: #f5f1e6;
}

.portal-overview-card p {
  margin: 0;
  color: #c1b7a2;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .hero-content--premium,
  .portal-overview-grid,
  .hero-stats--premium {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel--premium {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .topbar--premium {
    padding: 14px 16px;
  }

  .topbar--premium nav {
    display: none;
  }

  .landing-home .hero {
    padding: 122px 16px 72px;
  }

  .hero-content--premium,
  .hero-stats--premium,
  .portal-overview-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    width: min(100% - 28px, 1220px);
    padding: 72px 0;
  }

  .landing-section--intro {
    margin-top: -18px;
  }

  .landing-band {
    padding: 0 14px;
  }
}


/* Premium Sitewide */
.inner-page,
.legal-page--premium,
.admin-dashboard-page {
  background:
    radial-gradient(circle at top, rgba(201, 170, 92, 0.08), transparent 24%),
    linear-gradient(180deg, #07090d 0%, #0b0d12 100%);
}

.topbar--premium {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(201, 170, 92, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.92), rgba(10, 16, 28, 0.8)),
    linear-gradient(90deg, rgba(201, 170, 92, 0.06), transparent 34%);
  box-shadow: 0 12px 30px rgba(2, 6, 16, 0.24);
  backdrop-filter: blur(18px);
}

.topbar--premium .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.brand-link--premium {
  text-decoration: none;
}

.brand-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(201, 170, 92, 0.32);
  background: linear-gradient(135deg, rgba(201, 170, 92, 0.2), rgba(30, 45, 73, 0.52));
  color: #eed38b;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: #c9c2b3;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.topbar-actions--premium {
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar--premium .main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(237, 230, 214, 0.88);
  border: 1px solid transparent;
}

.topbar--premium .main-nav a:hover,
.topbar--premium .main-nav a.active {
  color: #eed38b;
  background: linear-gradient(180deg, rgba(201, 170, 92, 0.14), rgba(201, 170, 92, 0.08));
  border-color: rgba(201, 170, 92, 0.16);
}

.hero--inner {
  min-height: 54vh;
  padding: 132px 20px 74px;
}

.hero-content--inner {
  width: min(980px, 92vw);
  text-align: left;
}

.hero-content--inner h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.04;
  color: #f5f1e6;
}

.hero-content--inner p {
  max-width: 70ch;
  margin: 14px 0 0;
  color: #c1b7a2;
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 170, 92, 0.24);
  background: rgba(9, 12, 18, 0.58);
  color: #eed38b;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-shell,
.penal-page,
.constitution-page,
.calculator-page {
  width: min(1220px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.admin-shell,
.penal-page,
.constitution-page {
  padding-bottom: 72px;
}

.penal-page,
.constitution-page {
  margin-top: -26px;
}

.penal-title,
.penal-subtitle,
.constitution-title,
.constitution-subtitle {
  text-align: left;
}

.penal-title,
.constitution-title {
  color: #eed38b;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
}

.penal-subtitle,
.constitution-subtitle {
  margin-top: 8px;
  margin-bottom: 26px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #f5f1e6;
}

.penal-block,
.constitution-content,
.calculator-shell,
.admin-panel,
.user-portal-welcome,
.login-card {
  border: 1px solid rgba(201, 170, 92, 0.16);
  background: rgba(14, 20, 31, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.penal-block,
.constitution-content {
  border-radius: 24px;
  padding: 24px;
}

.penal-block h4,
.constitution-content h4,
.constitution-content h5 {
  color: #eed38b;
}

.penal-block table,
.constitution-content table {
  width: 100%;
  border-collapse: collapse;
}

.penal-block th,
.penal-block td,
.constitution-content th,
.constitution-content td {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 10px;
  text-align: left;
}

.penal-block th,
.constitution-content th {
  color: #eed38b;
}

.penal-block td,
.constitution-content td,
.constitution-content p {
  color: #d7deec;
  line-height: 1.8;
}

.user-hero-badges span {
  border-color: rgba(201, 170, 92, 0.24);
  background: rgba(9, 12, 18, 0.58);
  color: #eed38b;
}

@media (max-width: 820px) {
  .topbar--premium {
    padding: 14px 16px;
  }

  .topbar--premium .main-nav {
    display: none;
  }

  .hero--inner {
    padding: 118px 16px 66px;
  }

  .admin-shell,
  .penal-page,
  .constitution-page,
  .calculator-page {
    width: min(100% - 28px, 1220px);
  }
}


/* Codigo Penal fix */
.legal-page--premium .penal-page {
  width: min(1280px, 96vw);
  margin: 28px auto 44px;
  padding-bottom: 72px;
}

.legal-page--premium .penal-title,
.legal-page--premium .penal-subtitle {
  text-align: center;
}

.legal-page--premium .penal-title {
  margin: 0;
  color: #eed38b;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.legal-page--premium .penal-subtitle {
  margin: 8px 0 24px;
  color: #f5f1e6;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-page--premium .penal-block {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(201, 170, 92, 0.26);
  background: #e6d6bf;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.legal-page--premium .penal-block h4 {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: #111;
  background: #f7a300;
  border-bottom: 2px solid #000;
}

.legal-page--premium .penal-block table {
  width: 100%;
  border-collapse: collapse;
  background: #e6d6bf;
}

.legal-page--premium .penal-block th,
.legal-page--premium .penal-block td {
  padding: 7px 9px;
  border: 1px solid #1b1b1b;
  color: #111;
  text-align: left;
  line-height: 1.45;
}

.legal-page--premium .penal-block th {
  background: #e19536;
  color: #111;
}

.legal-page--premium .penal-block td:first-child,
.legal-page--premium .penal-block td:nth-child(4),
.legal-page--premium .penal-block td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .legal-page--premium .penal-page {
    width: 98vw;
  }

  .legal-page--premium .penal-block {
    overflow-x: auto;
  }

  .legal-page--premium .penal-block table {
    min-width: 760px;
  }
}


/* Premium Light Readability */
body.theme-light .topbar--premium {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92)),
    linear-gradient(90deg, rgba(197, 153, 60, 0.08), transparent 34%);
  border-bottom-color: rgba(133, 94, 28, 0.14);
  box-shadow: 0 10px 26px rgba(81, 107, 148, 0.1);
}

body.theme-light .topbar--premium .brand-link,
body.theme-light .brand-copy strong {
  color: #1c2740;
}

body.theme-light .brand-badge {
  border-color: rgba(133, 94, 28, 0.22);
  background: linear-gradient(135deg, rgba(208, 166, 76, 0.24), rgba(255, 255, 255, 0.98));
  color: #704d0d;
}

body.theme-light .brand-copy small,
body.theme-light .topbar--premium .main-nav a {
  color: #53627f;
}

body.theme-light .topbar--premium .main-nav a:hover,
body.theme-light .topbar--premium .main-nav a.active {
  color: #7b5611;
  background: linear-gradient(180deg, rgba(208, 166, 76, 0.16), rgba(208, 166, 76, 0.08));
  border-color: rgba(166, 114, 20, 0.16);
}

body.theme-light .landing-home,
body.theme-light.inner-page,
body.theme-light.legal-page--premium,
body.theme-light.admin-dashboard-page {
  background:
    radial-gradient(1200px 700px at 10% -10%, #e7d3a2 0%, transparent 45%),
    radial-gradient(900px 500px at 100% 0%, #d6e4ff 0%, transparent 58%),
    linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

body.theme-light .landing-home .hero-overlay,
body.theme-light .hero-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(233, 240, 250, 0.68));
}

body.theme-light .hero-eyebrow,
body.theme-light .user-hero-badges span {
  background: rgba(255, 249, 236, 0.94);
  border-color: rgba(123, 86, 17, 0.2);
  color: #7b5611;
}

body.theme-light .landing-home .hero-content h2,
body.theme-light .hero-content--inner h2,
body.theme-light .penal-subtitle,
body.theme-light .constitution-subtitle,
body.theme-light .section-heading h3,
body.theme-light .landing-band__inner p,
body.theme-light .portal-overview-card h4,
body.theme-light .hero-panel--premium h3 {
  color: #18233b;
}

body.theme-light .landing-home .hero-content p,
body.theme-light .hero-content--inner p,
body.theme-light .hero-stat-card span,
body.theme-light .hero-panel-list span,
body.theme-light .portal-overview-card p,
body.theme-light .section-heading p,
body.theme-light .constitution-content p,
body.theme-light .penal-block td,
body.theme-light .constitution-content td {
  color: #455574;
}

body.theme-light .hero-stat-card strong,
body.theme-light .hero-panel-list small,
body.theme-light .section-heading span,
body.theme-light .landing-band__inner span,
body.theme-light .portal-overview-card small,
body.theme-light .penal-title,
body.theme-light .constitution-title,
body.theme-light .penal-block h4,
body.theme-light .constitution-content h4,
body.theme-light .constitution-content h5,
body.theme-light .penal-block th,
body.theme-light .constitution-content th,
body.theme-light .hero-search-label {
  color: #7b5611;
}

body.theme-light .hero-stat-card,
body.theme-light .hero-panel--premium,
body.theme-light .home-law-card,
body.theme-light .portal-overview-card,
body.theme-light .landing-band__inner,
body.theme-light .admin-panel,
body.theme-light .login-card,
body.theme-light .calculator-shell,
body.theme-light .constitution-content {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(123, 86, 17, 0.14);
  box-shadow: 0 18px 40px rgba(56, 74, 117, 0.14);
}

body.theme-light .hero-panel--premium {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.94));
}

body.theme-light .hero-panel-list article {
  background: rgba(248, 250, 255, 0.96);
  border-color: rgba(123, 86, 17, 0.12);
}

body.theme-light .hero-search-shell input,
body.theme-light .global-search-input,
body.theme-light .hero input {
  background: rgba(255, 255, 255, 0.95);
  color: #18233b;
  border-color: rgba(85, 109, 158, 0.22);
}

body.theme-light .global-search-results {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(123, 86, 17, 0.14);
}


body.theme-light .brand-badge,
body.theme-light .hero-eyebrow,
body.theme-light .user-hero-badges span {
  box-shadow: 0 8px 18px rgba(123, 86, 17, 0.12);
}

body.theme-light .topbar--premium .main-nav a:hover,
body.theme-light .topbar--premium .main-nav a.active,
body.theme-light.admin-dashboard-page .admin-tab-button.is-active,
body.theme-light.admin-dashboard-page .admin-link,
body.theme-light .hero-search-label,
body.theme-light .hero-stat-card strong,
body.theme-light .hero-panel-list small,
body.theme-light .section-heading span,
body.theme-light .landing-band__inner span,
body.theme-light .portal-overview-card small,
body.theme-light .penal-title,
body.theme-light .constitution-title,
body.theme-light .penal-block h4,
body.theme-light .constitution-content h4,
body.theme-light .constitution-content h5,
body.theme-light .penal-block th,
body.theme-light .constitution-content th {
  color: #5f3f00;
}

body.theme-light .topbar--premium .main-nav a:hover,
body.theme-light .topbar--premium .main-nav a.active {
  background: rgba(166, 114, 20, 0.14);
  border: 1px solid rgba(166, 114, 20, 0.18);
}

body.theme-light .brand-badge {
  background: linear-gradient(135deg, rgba(203, 153, 49, 0.24), rgba(255, 251, 240, 0.98));
  border-color: rgba(139, 96, 16, 0.28);
  color: #5f3f00;
}

body.theme-light .hero-eyebrow,
body.theme-light .user-hero-badges span {
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(248, 235, 206, 0.98));
  border-color: rgba(139, 96, 16, 0.24);
  color: #5f3f00;
}

body.theme-light .hero-stat-card strong,
body.theme-light .hero-panel-list small,
body.theme-light .section-heading span,
body.theme-light .landing-band__inner span,
body.theme-light .portal-overview-card small {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}


/* Premium readability tuning */
.topbar--premium .main-nav a,
.brand-copy small,
.landing-home .hero-content p,
.hero-content--inner p,
.hero-stat-card span,
.hero-panel-list span,
.portal-overview-card p,
.section-heading p,
.landing-band__inner p,
.penal-subtitle,
.constitution-subtitle {
  opacity: 1;
}

.topbar--premium .main-nav a {
  color: #f5efe1;
}

.brand-copy small {
  color: #d9cdb6;
}

.landing-home .hero-content p,
.hero-content--inner p,
.hero-stat-card span,
.hero-panel-list span,
.portal-overview-card p,
.section-heading p,
.landing-band__inner p,
.penal-subtitle,
.constitution-subtitle {
  color: #ddd2bf;
}

.hero-grid {
  opacity: 0.82;
}

.hero-glow::before,
.hero-glow::after {
  opacity: 0.32;
}

body.theme-light .topbar--premium .main-nav a {
  color: #3b4865;
}

body.theme-light .brand-copy small,
body.theme-light .landing-home .hero-content p,
body.theme-light .hero-content--inner p,
body.theme-light .hero-stat-card span,
body.theme-light .hero-panel-list span,
body.theme-light .portal-overview-card p,
body.theme-light .section-heading p,
body.theme-light .landing-band__inner p,
body.theme-light .penal-subtitle,
body.theme-light .constitution-subtitle,
body.theme-light .constitution-content p,
body.theme-light .penal-block td,
body.theme-light .constitution-content td {
  color: #31415f;
}


/* Home law cards readability */
.home-law-card {
  background: linear-gradient(180deg, rgba(18, 26, 40, 0.96), rgba(11, 17, 29, 0.94));
  border-color: rgba(201, 170, 92, 0.22);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.home-law-card h3 {
  color: #fff7e6;
}

.home-law-card p {
  color: #eef3ff;
  font-weight: 600;
}

.home-law-card p + p {
  color: #e6c979;
}

body.theme-light .home-law-card {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(249, 242, 226, 0.98));
  border-color: rgba(139, 96, 16, 0.2);
  box-shadow: 0 18px 38px rgba(78, 108, 156, 0.16);
}

body.theme-light .home-law-card h3 {
  color: #1b2438;
}

body.theme-light .home-law-card p {
  color: #33415c;
}

body.theme-light .home-law-card p + p {
  color: #7a5200;
}


/* Consulta de leis */
.laws-search-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto 64px;
  display: grid;
  gap: 22px;
}

.laws-search-panel,
.laws-results-panel {
  border: 1px solid rgba(201, 170, 92, 0.18);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(14, 20, 31, 0.9), rgba(10, 16, 27, 0.84));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 28px;
}

.section-heading--left {
  text-align: left;
}

.section-heading--left h3,
.section-heading--left p {
  max-width: 70ch;
}

.laws-search-form {
  margin-top: 20px;
}

.laws-search-label {
  display: block;
  margin-bottom: 10px;
  color: #eed38b;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.laws-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.laws-search-row input {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(201, 170, 92, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f6f3eb;
}

.laws-search-hint,
.laws-results-meta,
.laws-result-header p,
.laws-result-footer p {
  color: #d5c9b5;
}

.laws-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.laws-results-header span {
  display: inline-block;
  margin-bottom: 6px;
  color: #eed38b;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.laws-results-header h3 {
  margin: 0;
  color: #f7f3eb;
}

.laws-results-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.laws-result-card {
  border: 1px solid rgba(201, 170, 92, 0.14);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 28, 42, 0.88), rgba(13, 19, 30, 0.82));
  padding: 22px;
}

.laws-result-card--empty {
  color: #f3ecde;
  text-align: center;
}

.laws-result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.laws-result-header h4 {
  margin: 0;
  color: #fff7e6;
}

.laws-result-header p {
  margin: 8px 0 0;
}

.laws-result-badge {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(201, 170, 92, 0.14);
  border: 1px solid rgba(201, 170, 92, 0.18);
  color: #f2d990;
  font-weight: 700;
  white-space: nowrap;
}

.laws-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.laws-result-meta-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.laws-result-meta-item span {
  display: block;
  margin-bottom: 6px;
  color: #cbbda4;
  font-size: 0.82rem;
}

.laws-result-meta-item strong {
  color: #f8f5ee;
}

.laws-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.laws-result-footer p {
  margin: 0;
}

body.theme-light .laws-search-panel,
body.theme-light .laws-results-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 229, 0.96));
  border-color: rgba(139, 96, 16, 0.18);
  box-shadow: 0 18px 40px rgba(78, 108, 156, 0.14);
}

body.theme-light .laws-search-label,
body.theme-light .laws-results-header span,
body.theme-light .laws-result-badge {
  color: #6d4900;
}

body.theme-light .laws-search-row input {
  background: rgba(255, 255, 255, 0.96);
  color: #1b2438;
  border-color: rgba(85, 109, 158, 0.2);
}

body.theme-light .laws-results-header h3,
body.theme-light .laws-result-header h4,
body.theme-light .laws-result-meta-item strong {
  color: #1d2740;
}

body.theme-light .laws-search-hint,
body.theme-light .laws-results-meta,
body.theme-light .laws-result-header p,
body.theme-light .laws-result-footer p,
body.theme-light .laws-result-meta-item span {
  color: #445372;
}

body.theme-light .laws-result-card {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(246, 238, 222, 0.96));
  border-color: rgba(139, 96, 16, 0.16);
}

body.theme-light .laws-result-badge {
  background: rgba(166, 114, 20, 0.12);
  border-color: rgba(166, 114, 20, 0.18);
}

body.theme-light .laws-result-meta-item {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(85, 109, 158, 0.12);
}

@media (max-width: 900px) {
  .laws-search-row,
  .laws-results-header,
  .laws-result-footer {
    grid-template-columns: minmax(0, 1fr);
    display: grid;
  }

  .laws-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .laws-search-shell {
    width: min(100% - 24px, 1220px);
  }

  .laws-search-panel,
  .laws-results-panel,
  .laws-result-card {
    padding: 20px;
  }

  .laws-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Compact header */
.topbar,
.topbar--premium {
  padding: 8px 14px;
}

.topbar-actions,
.topbar-actions--premium {
  gap: 8px;
}

.topbar--premium .brand-link {
  gap: 10px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-copy strong {
  font-size: 0.94rem;
}

.brand-copy small {
  font-size: 0.72rem;
}

.topbar--premium nav,
.main-nav,
nav {
  gap: 6px;
}

.topbar--premium .main-nav a,
.topbar--premium nav a,
nav a {
  padding: 7px 10px;
  font-size: 0.9rem;
}

.theme-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  font-size: 0.92rem;
}

.global-search {
  position: relative;
  min-width: auto;
  display: inline-flex;
  align-items: center;
}

.global-search-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.global-search.is-open .global-search-toggle {
  border-color: rgba(86, 204, 242, 0.4);
}

.global-search-input {
  width: min(320px, 58vw);
  min-height: 38px;
  padding: 8px 12px;
  margin-left: 8px;
  border-radius: 10px;
}

.global-search-results {
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: min(520px, 80vw);
}

@media (max-width: 820px) {
  .topbar,
  .topbar--premium {
    padding: 7px 10px;
  }

  .brand-copy small {
    display: none;
  }

  .global-search-input {
    width: min(220px, 60vw);
  }
}


.brand-badge {
  overflow: hidden;
  padding: 0;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-nav-dock,
.mobile-nav-overlay,
.mobile-nav-sheet {
  display: none;
}

@media (max-width: 820px) {
  body {
    padding-bottom: 92px;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .topbar--premium .main-nav,
  .access-links,
  .session-tools {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 75;
    border: 0;
    background: rgba(7, 10, 18, 0.34);
    backdrop-filter: blur(6px);
  }

  .mobile-nav-sheet {
    display: grid;
    gap: 16px;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 86px;
    z-index: 80;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(201, 170, 92, 0.16);
    background: linear-gradient(160deg, rgba(11, 16, 28, 0.96), rgba(18, 26, 43, 0.94));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  }

  .mobile-nav-sheet-header {
    display: grid;
    gap: 4px;
  }

  .mobile-nav-sheet-header strong {
    font-size: 1rem;
    color: #f5efe1;
  }

  .mobile-nav-sheet-header span,
  .mobile-nav-session span,
  .mobile-nav-sheet-link small {
    color: #b8c7e4;
    font-size: 0.82rem;
  }

  .mobile-nav-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-nav-sheet-link,
  .mobile-nav-session {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
  }

  .mobile-nav-sheet-link span,
  .mobile-nav-session strong {
    color: #f7f3e7;
    font-weight: 700;
  }

  .mobile-nav-sheet-link[data-accent="user"] {
    border-color: rgba(86, 204, 242, 0.2);
    background: linear-gradient(135deg, rgba(86, 204, 242, 0.12), rgba(47, 128, 237, 0.04));
  }

  .mobile-nav-sheet-link[data-accent="admin"] {
    border-color: rgba(255, 183, 77, 0.2);
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.14), rgba(255, 138, 61, 0.05));
  }

  .mobile-nav-sheet-link[data-accent="content"] {
    border-color: rgba(201, 170, 92, 0.2);
    background: linear-gradient(135deg, rgba(201, 170, 92, 0.16), rgba(47, 128, 237, 0.04));
  }

  .mobile-nav-sheet-link.is-active {
    border-color: rgba(201, 170, 92, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }

  .mobile-nav-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 85;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(201, 170, 92, 0.16);
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.96), rgba(15, 22, 36, 0.92));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-link {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 6px 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: #d8e3f9;
    text-decoration: none;
    background: transparent;
  }

  .mobile-nav-link strong {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
  }

  .mobile-nav-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .mobile-nav-link.is-active {
    color: #07111f;
    background: linear-gradient(135deg, #eed38b, #caa65c);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(201, 170, 92, 0.28);
  }

  .mobile-nav-link.is-active strong {
    background: rgba(7, 17, 31, 0.12);
  }

  .mobile-nav-link--menu {
    appearance: none;
    cursor: pointer;
    font: inherit;
    background: linear-gradient(135deg, rgba(86, 204, 242, 0.14), rgba(47, 128, 237, 0.08));
    border-color: rgba(86, 204, 242, 0.18);
  }

  .mobile-nav-link--menu strong {
    background: rgba(126, 216, 255, 0.14);
  }

  body.theme-light .mobile-nav-overlay {
    background: rgba(227, 235, 248, 0.48);
  }

  body.theme-light .mobile-nav-sheet {
    border-color: rgba(41, 73, 126, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
    box-shadow: 0 22px 52px rgba(83, 108, 151, 0.16);
  }

  body.theme-light .mobile-nav-sheet-header strong,
  body.theme-light .mobile-nav-sheet-link span,
  body.theme-light .mobile-nav-session strong {
    color: #17315f;
  }

  body.theme-light .mobile-nav-sheet-header span,
  body.theme-light .mobile-nav-sheet-link small,
  body.theme-light .mobile-nav-session span {
    color: #617493;
  }

  body.theme-light .mobile-nav-sheet-link,
  body.theme-light .mobile-nav-session {
    border-color: rgba(41, 73, 126, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  }

  body.theme-light .mobile-nav-dock {
    border-color: rgba(41, 73, 126, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
    box-shadow: 0 14px 34px rgba(83, 108, 151, 0.16);
  }

  body.theme-light .mobile-nav-link {
    color: #536786;
  }

  body.theme-light .mobile-nav-link strong {
    background: rgba(29, 99, 209, 0.08);
  }

  body.theme-light .mobile-nav-link--menu {
    background: linear-gradient(135deg, rgba(29, 99, 209, 0.08), rgba(29, 99, 209, 0.03));
    border-color: rgba(29, 99, 209, 0.12);
  }

  body.theme-light .mobile-nav-link--menu strong {
    background: rgba(29, 99, 209, 0.12);
  }
}


/* Admin panel refresh */
.admin-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.admin-hero-copy,
.admin-hero-side {
  display: grid;
  gap: 16px;
}

.admin-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-hero-pills span,
.admin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #d8e6ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-hero-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-hero-metric {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(8, 13, 26, 0.4));
}

.admin-hero-metric span {
  color: rgba(211, 224, 246, 0.78);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-hero-metric strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.admin-hero-metric small {
  color: #c4d4f4;
}

.admin-workspace {
  gap: 28px;
}

.admin-kpis {
  align-items: stretch;
}

.admin-summary-card-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-role-notice {
  grid-column: 1 / -1;
}

.admin-tabs-header--rich {
  align-items: center;
}

.admin-panel-lead {
  margin: 10px 0 0;
  max-width: 68ch;
  color: var(--muted);
}

.admin-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-tabs-nav--surface {
  gap: 10px;
}

.admin-content-panel {
  padding-top: 10px;
}

.admin-form-stack {
  gap: 18px;
}

.admin-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editor-block {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.editor-block--wide,
.admin-role-notice {
  grid-column: 1 / -1;
}

.editor-block-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.editor-block-header h4,
.admin-subpanel h4 {
  margin: 6px 0 0;
  font-size: 1.08rem;
}

.mini-card-grid--tribunal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card-grid--tribunal label {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.admin-management-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-hierarchy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(8, 14, 28, 0.42);
}

.admin-hierarchy-table th,
.admin-hierarchy-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.admin-hierarchy-table th {
  color: #b7c9ee;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: rgba(9, 17, 32, 0.92);
}

.admin-hierarchy-table tbody tr:last-child td {
  border-bottom: 0;
}

body.theme-light .admin-hierarchy-table {
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .admin-hierarchy-table th {
  background: rgba(238, 243, 252, 0.96);
  color: #31476b;
}

.admin-subpanel {
  padding: 20px;
}

.calculator-admin-section--full {
  grid-column: 1 / -1;
}

.admin-dashboard-page .admin-tabs-panel {
  gap: 22px;
}

.admin-dashboard-page .admin-tab-content {
  padding: 0;
}

.admin-dashboard-page .admin-panel,
.admin-dashboard-page .summary-card,
.admin-dashboard-page .editor-block,
.admin-dashboard-page .admin-subpanel,
.admin-dashboard-page .calculator-admin-section {
  backdrop-filter: blur(18px);
}

body.theme-light .admin-hero-pills span,
body.theme-light .admin-chip {
  background: rgba(16, 42, 82, 0.06);
  border-color: rgba(16, 42, 82, 0.08);
  color: #17325f;
}

body.theme-light .admin-hero-metric {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(235, 242, 252, 0.92));
  border-color: rgba(20, 54, 100, 0.08);
}

body.theme-light .admin-hero-metric span,
body.theme-light .admin-hero-metric small {
  color: #4c6288;
}

body.theme-light .mini-card-grid--tribunal label {
  background: rgba(23, 36, 66, 0.03);
}

@media (max-width: 1080px) {
  .admin-hero-layout,
  .admin-management-columns,
  .admin-sections-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-card-grid--tribunal {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-hero-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-tabs-header--rich,
  .editor-block-header {
    flex-direction: column;
  }

  .admin-utility-links {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-utility-links .admin-link,
  .editor-block-header .secondary-button {
    width: 100%;
  }

  .admin-dashboard-page .summary-card {
    min-height: 0;
  }
}


.admin-owner-notice {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 183, 77, 0.28);
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.14), rgba(255, 140, 66, 0.08));
  color: #ffe1b2;
}

.admin-owner-notice strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.admin-owner-notice p {
  margin: 0;
  color: inherit;
  line-height: 1.6;
}

body.theme-light .admin-owner-notice {
  border-color: rgba(185, 101, 10, 0.18);
  background: linear-gradient(135deg, rgba(255, 232, 204, 0.9), rgba(255, 245, 230, 0.94));
  color: #8a4b00;
}

/* Light internal page refinement */
.inner-page .hero--inner,
.legal-page--premium .hero--inner,
.admin-dashboard-page .hero--inner {
  min-height: 46vh;
  padding-top: 124px;
  padding-bottom: 68px;
}

.inner-page .hero--inner::before,
.legal-page--premium .hero--inner::before,
.admin-dashboard-page .hero--inner::before {
  inset: -40px;
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 170, 92, 0.12), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(86, 204, 242, 0.09), transparent 24%),
    linear-gradient(135deg, #0d121c 0%, #111824 46%, #0a0f17 100%);
}

.inner-page .hero-content--inner,
.legal-page--premium .hero-content--inner,
.admin-dashboard-page .hero-content--inner {
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid rgba(201, 170, 92, 0.14);
  background: linear-gradient(145deg, rgba(10, 14, 22, 0.72), rgba(15, 22, 35, 0.48));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.inner-page .hero-content--inner h2,
.legal-page--premium .hero-content--inner h2,
.admin-dashboard-page .hero-content--inner h2 {
  max-width: 16ch;
}

.inner-page .hero-content--inner p,
.legal-page--premium .hero-content--inner p,
.admin-dashboard-page .hero-content--inner p {
  max-width: 64ch;
}

.inner-page .crimes,
.inner-page .admin-shell--compact,
.legal-page--premium .laws-search-shell,
.legal-page--premium .penal-page,
.legal-page--premium .constitution-page,
.inner-page .calculator-page {
  position: relative;
  z-index: 1;
}

.inner-page .crimes,
.inner-page .admin-shell--compact,
.legal-page--premium .laws-search-shell,
.inner-page .calculator-page {
  margin-top: -34px;
}

.inner-page .card,
.legal-page--premium .laws-search-panel,
.legal-page--premium .laws-results-panel,
.inner-page .calculator-shell,
.inner-page .admin-panel,
.inner-page .user-portal-welcome,
.inner-page .login-panel,
.inner-page .login-card {
  border-color: rgba(201, 170, 92, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.inner-page .card:hover,
.legal-page--premium .laws-search-panel:hover,
.legal-page--premium .laws-results-panel:hover {
  transform: translateY(-4px);
}

.inner-page .card,
.legal-page--premium .laws-search-panel,
.legal-page--premium .laws-results-panel {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.legal-page--premium .laws-search-panel,
.legal-page--premium .laws-results-panel {
  background: rgba(14, 20, 31, 0.78);
  backdrop-filter: blur(14px);
}

body.theme-light.inner-page .hero-content--inner,
body.theme-light.legal-page--premium .hero-content--inner,
body.theme-light.admin-dashboard-page .hero-content--inner {
  position: relative;
  max-width: 860px;
  border-color: rgba(34, 72, 128, 0.1);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92)),
    radial-gradient(circle at top left, rgba(207, 169, 92, 0.08), transparent 34%);
  box-shadow: 0 22px 44px rgba(78, 108, 156, 0.12);
}

body.theme-light.inner-page .hero-content--inner::before,
body.theme-light.legal-page--premium .hero-content--inner::before,
body.theme-light.admin-dashboard-page .hero-content--inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, rgba(31, 91, 196, 0.9), rgba(199, 152, 55, 0.78));
}

body.theme-light.inner-page .hero--inner::before,
body.theme-light.legal-page--premium .hero--inner::before,
body.theme-light.admin-dashboard-page .hero--inner::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(29, 99, 209, 0.1), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(230, 126, 34, 0.08), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #edf4ff 46%, #ffffff 100%);
}

body.theme-light.inner-page .hero--inner,
body.theme-light.legal-page--premium .hero--inner,
body.theme-light.admin-dashboard-page .hero--inner {
  min-height: 34vh;
  padding-top: 118px;
  padding-bottom: 44px;
}

body.theme-light.inner-page .hero--inner::after,
body.theme-light.legal-page--premium .hero--inner::after,
body.theme-light.admin-dashboard-page .hero--inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 245, 255, 0.92));
  z-index: -1;
}

body.theme-light.inner-page .hero-overlay,
body.theme-light.legal-page--premium .hero-overlay,
body.theme-light.admin-dashboard-page .hero-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(231, 239, 251, 0.28)),
    linear-gradient(90deg, rgba(210, 226, 255, 0.12), rgba(255, 255, 255, 0));
}

body.theme-light.inner-page .hero-content--inner h2,
body.theme-light.legal-page--premium .hero-content--inner h2,
body.theme-light.admin-dashboard-page .hero-content--inner h2 {
  color: #13233f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  max-width: 18ch;
  letter-spacing: -0.03em;
}

body.theme-light.inner-page .hero-content--inner p,
body.theme-light.legal-page--premium .hero-content--inner p,
body.theme-light.admin-dashboard-page .hero-content--inner p {
  color: #4b5f82;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.7;
}

body.theme-light.inner-page .hero-eyebrow,
body.theme-light.legal-page--premium .hero-eyebrow,
body.theme-light.admin-dashboard-page .hero-eyebrow {
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(249, 240, 216, 0.98));
  border-color: rgba(158, 111, 28, 0.22);
  color: #7a5612;
  box-shadow: 0 10px 24px rgba(158, 111, 28, 0.1);
}

body.theme-light.inner-page .card,
body.theme-light.legal-page--premium .laws-search-panel,
body.theme-light.legal-page--premium .laws-results-panel,
body.theme-light.inner-page .calculator-shell,
body.theme-light.inner-page .admin-panel,
body.theme-light.inner-page .user-portal-welcome,
body.theme-light.inner-page .login-panel,
body.theme-light.inner-page .login-card {
  box-shadow: 0 14px 28px rgba(78, 108, 156, 0.12);
}

@media (max-width: 820px) {
  .inner-page .hero--inner,
  .legal-page--premium .hero--inner,
  .admin-dashboard-page .hero--inner {
    min-height: 40vh;
    padding-top: 112px;
    padding-bottom: 56px;
  }

  .inner-page .hero-content--inner,
  .legal-page--premium .hero-content--inner,
  .admin-dashboard-page .hero-content--inner {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .inner-page .crimes,
  .inner-page .admin-shell--compact,
  .legal-page--premium .laws-search-shell,
  .inner-page .calculator-page {
    margin-top: -22px;
  }
}


.privacy-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(8, 14, 28, 0.96), rgba(12, 20, 38, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.privacy-banner h3 {
  margin: 0;
  font-size: 1rem;
}

.privacy-banner p {
  margin: 0;
  color: var(--card-text);
  line-height: 1.6;
}

.privacy-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-banner-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.security-log-list {
  display: grid;
  gap: 14px;
}

.security-log-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.security-log-card--empty {
  color: var(--muted);
}

.security-log-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.security-log-card-header h5 {
  margin: 0;
  font-size: 1rem;
}

.security-log-card-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.security-log-meta,
.security-log-detail {
  margin: 0;
  color: var(--card-text);
  line-height: 1.6;
}

.security-log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.security-log-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(86, 204, 242, 0.12);
  color: #8ddfff;
  font-size: 0.78rem;
  font-weight: 700;
}

body.theme-light .privacy-banner {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96));
  border-color: rgba(20, 54, 100, 0.1);
}

body.theme-light .security-log-card {
  background: rgba(23, 36, 66, 0.03);
}

body.theme-light .security-log-tags span {
  background: rgba(29, 99, 209, 0.1);
  color: #1d63d1;
}

@media (max-width: 760px) {
  .privacy-banner {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .privacy-banner-actions {
    flex-direction: column;
  }

  .privacy-banner-actions button {
    width: 100%;
  }

  .security-log-card-header {
    flex-direction: column;
  }
}


.admin-panel-header--content-studio {
  align-items: flex-end;
}

.content-studio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.content-studio-stat {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(8, 13, 26, 0.36));
}

.content-studio-stat span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.content-studio-stat strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.content-studio-stat small {
  color: var(--card-text);
  line-height: 1.5;
}

.content-studio-shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.content-studio-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
}

.content-studio-sidebar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(15, 24, 43, 0.82), rgba(8, 14, 27, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.content-studio-sidebar-card h4 {
  margin: 0;
  font-size: 1.02rem;
}

.content-studio-sidebar-card p {
  margin: 0;
  color: var(--card-text);
  line-height: 1.6;
}

.content-studio-sidebar-card--highlight {
  border-color: rgba(86, 204, 242, 0.18);
  background: linear-gradient(160deg, rgba(17, 35, 63, 0.88), rgba(8, 15, 29, 0.78));
}

.content-studio-nav {
  display: grid;
  gap: 10px;
}

.content-studio-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.content-studio-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(86, 204, 242, 0.28);
  background: rgba(86, 204, 242, 0.08);
}

.content-studio-sidebar-actions {
  display: grid;
  gap: 10px;
}

.content-studio-main {
  display: grid;
  gap: 18px;
}

.editor-block-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.editor-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.editor-note {
  margin: 8px 0 0;
  color: var(--card-text);
  line-height: 1.6;
}

.editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-field-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.editor-actions--studio {
  margin-top: 6px;
  justify-content: flex-start;
}

.admin-dashboard-page .content-studio-stat,
.admin-dashboard-page .content-studio-sidebar-card {
  backdrop-filter: blur(18px);
}

body.theme-light .content-studio-stat,
body.theme-light .content-studio-sidebar-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.9));
  border-color: rgba(20, 54, 100, 0.08);
}

body.theme-light .content-studio-nav a {
  background: rgba(23, 36, 66, 0.03);
  border-color: rgba(20, 54, 100, 0.08);
}

body.theme-light .content-studio-nav a:hover {
  background: rgba(29, 99, 209, 0.08);
}

@media (max-width: 1180px) {
  .content-studio-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-studio-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-studio-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .content-studio-stats,
  .editor-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-block-hero,
  .admin-panel-header--content-studio {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-studio-sidebar-actions .admin-link,
  .editor-block-hero .secondary-button,
  .editor-block-hero .admin-link {
    width: 100%;
  }
}

/* Final light hero normalization for internal pages */
body.theme-light.inner-page .hero.hero--inner,
body.theme-light.legal-page--premium .hero.hero--inner,
body.theme-light.admin-dashboard-page .hero.hero--inner {
  min-height: 34vh;
  padding-top: 118px;
  padding-bottom: 44px;
}

body.theme-light.inner-page .hero.hero--inner::before,
body.theme-light.legal-page--premium .hero.hero--inner::before,
body.theme-light.admin-dashboard-page .hero.hero--inner::before {
  inset: -24px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(55, 118, 228, 0.08), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(201, 170, 92, 0.08), transparent 24%),
    linear-gradient(135deg, #fcfdff 0%, #f3f7ff 48%, #ffffff 100%) !important;
}

body.theme-light.inner-page .hero.hero--inner::after,
body.theme-light.legal-page--premium .hero.hero--inner::after,
body.theme-light.admin-dashboard-page .hero.hero--inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(240, 246, 255, 0.96));
  z-index: -1;
}

body.theme-light.inner-page .hero.hero--inner .hero-overlay,
body.theme-light.legal-page--premium .hero.hero--inner .hero-overlay,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(245, 249, 255, 0.12)),
    linear-gradient(90deg, rgba(226, 236, 252, 0.08), rgba(255, 255, 255, 0)) !important;
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner {
  position: relative;
  width: min(920px, 92vw);
  max-width: 920px;
  padding: 26px 30px 24px 34px;
  border: 1px solid rgba(33, 67, 118, 0.08) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(248, 251, 255, 0.99)),
    radial-gradient(circle at top left, rgba(201, 170, 92, 0.05), transparent 30%) !important;
  box-shadow:
    0 18px 34px rgba(84, 112, 155, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.7) inset !important;
  backdrop-filter: none !important;
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner::before,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner::before,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, rgba(34, 93, 194, 0.88), rgba(201, 170, 92, 0.66));
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner h2,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner h2,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner h2 {
  max-width: 18ch;
  color: #142643 !important;
  letter-spacing: -0.035em;
  text-shadow: none !important;
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner p,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner p,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner p {
  max-width: 62ch;
  margin-top: 12px;
  color: #5d6f8c !important;
  font-size: 1rem;
  line-height: 1.7;
}

/* Final light premium surface normalization */
body.theme-light .card,
body.theme-light .penal-block,
body.theme-light .constitution-content,
body.theme-light .calculator-shell,
body.theme-light .admin-panel,
body.theme-light .summary-card,
body.theme-light .user-portal-welcome,
body.theme-light .login-card {
  border-color: rgba(34, 72, 128, 0.1) !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.95)) !important;
  box-shadow:
    0 20px 46px rgba(84, 112, 155, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(12px) !important;
}

body.theme-light .card h3,
body.theme-light .penal-block h4,
body.theme-light .constitution-content h4,
body.theme-light .constitution-content h5,
body.theme-light .calculator-title,
body.theme-light .admin-panel-header h3 {
  color: #17305b !important;
}

body.theme-light .card p,
body.theme-light .penal-block td,
body.theme-light .constitution-content p,
body.theme-light .constitution-content td,
body.theme-light .admin-panel p,
body.theme-light .summary-card span {
  color: #536786 !important;
}

body.theme-light .crimes {
  margin-top: -18px;
}

/* Hard override for light-mode internal hero banners */
body.theme-light.inner-page .hero.hero--inner,
body.theme-light.legal-page--premium .hero.hero--inner,
body.theme-light.admin-dashboard-page .hero.hero--inner {
  background:
    radial-gradient(circle at top left, rgba(219, 231, 255, 0.8), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%) !important;
}

body.theme-light.inner-page .hero.hero--inner::before,
body.theme-light.legal-page--premium .hero.hero--inner::before,
body.theme-light.admin-dashboard-page .hero.hero--inner::before,
body.theme-light.inner-page .hero.hero--inner::after,
body.theme-light.legal-page--premium .hero.hero--inner::after,
body.theme-light.admin-dashboard-page .hero.hero--inner::after,
body.theme-light.inner-page .hero.hero--inner .hero-overlay,
body.theme-light.legal-page--premium .hero.hero--inner .hero-overlay,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-overlay {
  background: none !important;
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner {
  border: 1px solid rgba(41, 73, 126, 0.08) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
  box-shadow:
    0 18px 40px rgba(82, 109, 151, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.88) inset !important;
  backdrop-filter: none !important;
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner::before,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner::before,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner::before {
  width: 4px;
  background: linear-gradient(180deg, #2f80ed, #d2a446) !important;
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner h2,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner h2,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner h2 {
  color: #17315f !important;
}

body.theme-light.inner-page .hero.hero--inner .hero-content--inner p,
body.theme-light.legal-page--premium .hero.hero--inner .hero-content--inner p,
body.theme-light.admin-dashboard-page .hero.hero--inner .hero-content--inner p {
  color: #617493 !important;
}

/* Hard override for light-mode Consulta de Leis panels */
body.theme-light.legal-page--premium .laws-search-panel,
body.theme-light.legal-page--premium .laws-results-panel {
  border-color: rgba(41, 73, 126, 0.08) !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
  box-shadow:
    0 18px 40px rgba(82, 109, 151, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.82) inset !important;
  backdrop-filter: none !important;
}

body.theme-light.legal-page--premium .laws-search-panel .section-heading span,
body.theme-light.legal-page--premium .laws-results-header span,
body.theme-light.legal-page--premium .laws-search-label,
body.theme-light.legal-page--premium .laws-result-badge {
  color: #8a6619 !important;
}

body.theme-light.legal-page--premium .laws-search-panel .section-heading h3,
body.theme-light.legal-page--premium .laws-results-header h3 {
  color: #17315f !important;
}

body.theme-light.legal-page--premium .laws-search-panel .section-heading p,
body.theme-light.legal-page--premium .laws-search-hint,
body.theme-light.legal-page--premium .laws-results-meta,
body.theme-light.legal-page--premium .laws-result-header p,
body.theme-light.legal-page--premium .laws-result-footer p,
body.theme-light.legal-page--premium .laws-result-meta-item span {
  color: #617493 !important;
}

body.theme-light.legal-page--premium .laws-search-row input {
  background: #ffffff !important;
  color: #17315f !important;
  border-color: rgba(69, 98, 148, 0.14) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}



