/* ?? Animations ??????????????????????????????????????????? */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes heroPulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.018); }
}

@keyframes betaBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 97, 73, .28); }
  60%       { box-shadow: 0 0 0 8px rgba(20, 97, 73, 0); }
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance animations */
.hero-animate > * {
  opacity: 0;
  animation: fadeSlideUp .65s ease forwards;
}
.hero-animate > *:nth-child(1) { animation-delay: .05s; }
.hero-animate > *:nth-child(2) { animation-delay: .18s; }
.hero-animate > *:nth-child(3) { animation-delay: .30s; }
.hero-animate > *:nth-child(4) { animation-delay: .42s; }
.hero-animate > *:nth-child(5) { animation-delay: .54s; }
.hero-animate > *:nth-child(6) { animation-delay: .66s; }

/* ?? End Animations ???????????????????????????????????????? */

:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #63717a;
  --line: #d9e1e8;
  --brand: #216869;
  --brand-dark: #143f40;
  --accent: #b36b2c;
  --coral: #b94d3f;
  --aqua: #2f8f9d;
  --soft-green: #edf7f2;
  --soft-blue: #eef5fb;
  --surface: #f4f7f6;
  --panel: rgba(255, 255, 255, .9);
  --shadow-soft: 0 16px 44px rgba(22, 58, 59, .08);
  --shadow-tight: 0 8px 22px rgba(22, 58, 59, .08);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(237, 247, 242, .92), rgba(238, 245, 251, .68)),
    var(--surface);
  color: var(--ink);
}

[v-cloak] {
  display: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(circle at top left, rgba(47, 143, 157, .15), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(179, 107, 44, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
}

.sidebar {
  width: 292px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  position: sticky;
  top: 0;
  background:
    linear-gradient(180deg, rgba(20, 63, 64, .98), rgba(18, 50, 47, .98)),
    var(--brand-dark);
  color: white;
  box-shadow: 18px 0 45px rgba(15, 41, 42, .18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
}

.sidebar .brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #f0b868, #2f8f9d);
  color: #092829;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.panel-nav {
  display: grid;
  gap: 5px;
}

.nav-section-label {
  display: block;
  margin: 14px 10px 5px;
  color: rgba(255, 255, 255, .46);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar .nav-link {
  width: 100%;
  border: 0;
  color: rgba(255, 255, 255, .76);
  border-radius: 9px;
  padding: 10px 11px;
  text-align: left;
  background: transparent;
  text-decoration: none;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.sidebar .nav-link i {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .07);
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, .13);
  color: white;
  transform: translateX(2px);
}

.sidebar .nav-link.active {
  box-shadow: inset 3px 0 0 #f0b868;
}

.sidebar .nav-link.active i {
  color: #092829;
  background: #f0b868;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 38px) 38px;
}

.panel-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(217, 225, 232, .88);
  border-radius: 8px;
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(14px);
}

.panel-topbar strong {
  display: block;
  color: #143f40;
  font-size: 1.05rem;
}

.topbar-kicker {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.topbar-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #143f40;
  background: var(--soft-green);
  border: 1px solid rgba(33, 104, 105, .22);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
}

.topbar-action:hover {
  color: #143f40;
  background: #e2f2eb;
}

.role-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(47, 143, 157, .22);
  border-radius: 999px;
  color: #143f40;
  background: var(--soft-blue);
  font-weight: 800;
  font-size: .86rem;
}

.master-shell {
  min-height: 100vh;
  display: flex;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 18px 0 8px;
}

.page-header h1 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 850;
  margin: 0;
  color: #132f31;
}

.page-header p,
.empty {
  color: var(--muted);
  margin: 4px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.dashboard-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  color: white;
  background:
    linear-gradient(135deg, rgba(20, 63, 64, .96), rgba(33, 104, 105, .9) 56%, rgba(179, 107, 44, .88));
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(20, 63, 64, .18);
}

.dashboard-welcome span {
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dashboard-welcome h2 {
  max-width: 680px;
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 850;
}

.dashboard-welcome p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
}

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

.dashboard-shortcuts a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.dashboard-shortcuts a:hover {
  background: rgba(255, 255, 255, .16);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.task-list,
.onboarding-list,
.compact-feed {
  display: grid;
  gap: 8px;
}

.task-item,
.onboarding-list a,
.compact-feed a {
  display: grid;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(217, 225, 232, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.task-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 8px 10px;
}

.task-item i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-blue);
  color: #2b5d80;
}

.task-item strong {
  min-width: 32px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #5f3b08;
  background: #fff0cf;
}

.onboarding-list a {
  grid-template-columns: 26px minmax(0, 1fr);
  min-height: 42px;
  padding: 8px 10px;
}

.onboarding-list a.done {
  color: #1c5f45;
  background: var(--soft-green);
}

.compact-feed a {
  padding: 10px;
}

.compact-feed span {
  color: var(--muted);
}

.metric-card,
.panel,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(10px);
}

.panel,
.panel-section {
  position: relative;
  overflow: hidden;
}

.panel::before,
.panel-section::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--aqua), var(--accent));
  opacity: .8;
}

.metric-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
}

.metric-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--aqua), #7cb7a3);
}

.metric-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--accent), #d9a45a);
}

.metric-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--coral), var(--accent));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  font-weight: 850;
  margin-top: 8px;
  color: #112f30;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(217, 225, 232, .86);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(22, 58, 59, .06);
}

.quick-filters,
.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-filters button {
  min-height: 38px;
  border: 1px solid rgba(217, 225, 232, .92);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #23393b;
  padding: 0 13px;
  font-weight: 750;
}

.quick-filters button.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  gap: 12px;
  align-items: center;
}

.import-row h2 {
  font-size: 1.05rem;
  margin: 0;
}

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

.form-control,
.form-select {
  border-color: #cfdbe0;
  border-radius: 8px;
  min-height: 42px;
  background-color: rgba(255, 255, 255, .92);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 .2rem rgba(47, 143, 157, .14);
}

.entity-form textarea {
  min-height: 110px;
}

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

.notice-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.notice-tab {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(217, 225, 232, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #23393b;
  padding: 10px 12px;
  text-align: left;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(22, 58, 59, .06);
}

.notice-tab i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--brand);
}

.notice-tab span {
  min-width: 0;
}

.notice-tab strong {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3f4;
  color: #143f40;
  font-size: .85rem;
}

.notice-tab.active {
  border-color: rgba(33, 104, 105, .38);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(33, 104, 105, .12), var(--shadow-tight);
}

.notice-tab.active i {
  background: var(--brand);
  color: white;
}

.notice-system-note {
  border-left: 5px solid var(--accent);
}

.notice-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.notice-item-admin {
  border-color: #e6c98e;
  background: rgba(255, 251, 242, .92);
}

.notice-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.notice-card-content {
  min-width: 0;
}

.notice-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.notice-type-badge {
  border: 1px solid transparent;
}

.notice-type-public {
  color: #143f40;
  background: var(--soft-green);
  border-color: rgba(33, 104, 105, .18);
}

.notice-type-admin {
  color: #5f3b08;
  background: #fff0cf;
  border-color: rgba(179, 107, 44, .24);
}

.notice-type-directed {
  color: #254a6b;
  background: var(--soft-blue);
  border-color: rgba(47, 143, 157, .22);
}

.notice-actions,
.notice-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.notice-actions {
  flex-shrink: 0;
}

.notice-shortcuts {
  margin-top: 12px;
}

.modal-backdrop-lite {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 31, 32, .42);
}

.modal-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-summary span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: var(--soft-green);
  padding: 0 11px;
  color: #143f40;
  font-weight: 750;
}

.pix-box {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(33, 104, 105, .22);
  border-radius: 8px;
  background: var(--soft-green);
}

.pix-box code,
.proof-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.proof-text {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.pix-flow {
  display: grid;
  gap: 8px;
}

.pix-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #243d3f;
}

.pix-flow i {
  color: var(--brand);
}

.event-management-panel {
  overflow: visible;
}

.registration-list {
  display: grid;
  gap: 10px;
}

.registration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 10px;
}

.registration-card span,
.registration-card code {
  display: block;
  margin-top: 4px;
}

.registration-card img {
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.notice-item h2,
.panel h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.panel-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(10px);
}

.panel-section h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.ai-session-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 8px;
}

.ai-session {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  padding: 10px;
}

.ai-session-delete {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #9d2b2b;
  font-size: 1.2rem;
  line-height: 1;
}

.ai-session-delete:hover {
  border-color: #d38b8b;
  background: #fff0f0;
}

.ai-session.active,
.ai-session:hover {
  border-color: var(--brand);
  background: var(--soft-green);
}

.ai-chat {
  min-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-messages {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.ai-message {
  max-width: 86%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 20px rgba(22, 58, 59, .06);
}

.ai-message.user {
  justify-self: end;
  background: var(--soft-green);
}

.ai-message.pending {
  opacity: .72;
}

.ai-message.pending strong::after {
  content: " aguardando";
  color: var(--muted);
  font-weight: 500;
}

.ai-message p,
.knowledge-item p {
  white-space: pre-wrap;
  margin: 6px 0 0;
}

.ai-input {
  display: grid;
  gap: 10px;
}

.disabled-feature-banner {
  display: grid;
  gap: 4px;
  border: 1px solid #d99b2b;
  border-left: 5px solid #b36b2c;
  border-radius: 8px;
  background: #fff4df;
  color: #5f3b08;
  padding: 14px 16px;
}

.feature-disabled-surface {
  position: relative;
  background: #fff8e8;
  border-color: #e4b35e;
}

.feature-disabled-surface::after {
  content: "Recurso desativado";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 244, 223, .74);
  color: #5f3b08;
  font-weight: 800;
  pointer-events: none;
}

.knowledge-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.knowledge-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.grid-wide {
  grid-column: 1 / -1;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f7faf9, #dfecea);
}

.login-panel {
  width: min(420px, calc(100vw - 32px));
}

.register-panel {
  width: min(620px, calc(100vw - 32px));
}

.login-panel h1 {
  margin: 0;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: #1a5556;
  --bs-btn-hover-border-color: #1a5556;
  --bs-btn-disabled-bg: #7aa8a0;
  --bs-btn-disabled-border-color: #7aa8a0;
  border-radius: 8px;
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(33, 104, 105, .18);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-warning {
  border-radius: 8px;
  font-weight: 700;
}

.btn-sm {
  min-height: 34px;
}

.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.table thead th {
  color: #56666d;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom-color: #ccd8de;
}

.table tbody tr {
  transition: background .15s ease;
}

.table tbody tr:hover {
  background: rgba(237, 247, 242, .58);
}

.badge {
  border-radius: 999px;
  padding: .48em .72em;
  font-weight: 750;
  letter-spacing: 0;
}

.alert {
  border-radius: 8px;
}

.landing-page {
  min-height: 100vh;
  background: #ffffff;
  animation: fadeIn .4s ease both;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(217, 225, 232, .9);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(20, 63, 64, .08);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
}

.brand-symbol {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-dark);
  color: white;
  font-size: .82rem;
  letter-spacing: 0;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login,
.nav-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.nav-login {
  color: var(--brand-dark);
}

.nav-login:hover {
  background: var(--soft-green);
  color: var(--brand-dark);
}

.nav-register {
  color: white;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(33, 104, 105, .18);
}

.nav-register:hover {
  color: white;
  background: #1a5556;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 72px max(24px, calc(50% - 540px));
  box-sizing: border-box;
  background:
    radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(ellipse at 66% 38%, rgba(33, 104, 105, .52) 0%, transparent 54%),
    radial-gradient(ellipse at 10% 84%, rgba(179, 107, 44, .14) 0%, transparent 40%),
    linear-gradient(140deg, #091f20 0%, #0e3233 42%, #143f40 100%);
  background-size: 24px 24px, auto, auto, auto;
}

.landing-hero::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .05);
  background: radial-gradient(circle, rgba(33, 104, 105, .18), transparent 70%);
  top: -160px;
  right: max(-200px, calc(50% - 840px));
  z-index: 0;
  pointer-events: none;
  animation: heroPulse 10s ease-in-out infinite;
}

.landing-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .04);
  background: rgba(179, 107, 44, .07);
  bottom: -70px;
  left: max(60px, calc(50% - 500px));
  z-index: 0;
  pointer-events: none;
}

.landing-copy,
.landing-preview {
  position: relative;
  z-index: 1;
}

.landing-copy h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 18px 0;
  color: #ffffff;
}

.landing-copy p {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, .68);
}

.community-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 690px;
  margin-top: 22px;
}

.community-types span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  font-size: .88rem;
  backdrop-filter: blur(4px);
  transition: transform .2s ease, background .2s ease;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #8fd5bc;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 14px;
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
  animation: betaBadge 2.8s ease-in-out infinite;
}

.community-types span:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .15);
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.landing-actions .btn {
  border-radius: 7px;
  padding-inline: 22px;
}

.landing-hero .btn-outline-secondary {
  color: rgba(255, 255, 255, .84);
  border-color: rgba(255, 255, 255, .28);
  background: transparent;
}

.landing-hero .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .5);
}

.landing-support {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 22px;
  padding: 12px 14px;
  background: rgba(245, 192, 122, .07);
  border: 1px solid rgba(245, 192, 122, .2);
  border-radius: 8px;
  color: rgba(255, 255, 255, .76);
}

.landing-support i {
  color: #f5c07a;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.landing-support span {
  flex: 1;
}

.landing-support a {
  color: #f5c07a;
  font-weight: 800;
  white-space: nowrap;
}

.landing-preview {
  position: relative;
  background: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07),
    0 20px 50px rgba(0, 0, 0, .32),
    0 52px 100px rgba(0, 0, 0, .2);
  animation:
    fadeSlideUp .7s .28s ease both,
    floatCard 7s 1.5s ease-in-out infinite;
}

.landing-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--brand) 0%, #38b2b3 50%, var(--accent) 100%);
}

.landing-preview header,
.landing-preview footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-preview header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.landing-preview header strong {
  color: var(--brand-dark);
}

.preview-grid,
.preview-flow,
.routine-list {
  display: grid;
  gap: 12px;
  padding: 14px 0;
}

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

.preview-flow,
.routine-list {
  grid-template-columns: 1fr;
}

.landing-preview article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
  transition: background .2s ease;
}
.landing-preview article:hover {
  background: #f3f8f5;
}

.routine-list article:nth-child(1) { transition-delay: .00s; }
.routine-list article:nth-child(2) { transition-delay: .08s; }
.routine-list article:nth-child(3) { transition-delay: .16s; }
.routine-list article:nth-child(4) { transition-delay: .24s; }

.preview-flow article,
.routine-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.preview-flow i,
.routine-list i {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--soft-green), var(--soft-blue));
  color: var(--brand);
  font-size: 1.25rem;
}

.routine-list article:nth-child(2) i {
  color: #2b5d80;
}

.routine-list article:nth-child(3) i {
  color: #8a4d18;
}

.routine-list article:nth-child(4) i {
  color: #5f4b8b;
}

.landing-preview span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.landing-preview strong {
  display: block;
  font-size: 1.02rem;
}

.routine-list strong {
  margin-bottom: 4px;
}

.preview-grid strong {
  margin-top: 8px;
  font-size: 2rem;
}

.landing-preview footer {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--brand-dark);
  font-weight: 700;
}

.landing-preview footer i {
  color: var(--accent);
}

.landing-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px 78px;
}

.section-title {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

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

.public-notices article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(16, 47, 48, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.public-notices article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(16, 47, 48, .12);
}
.public-notices article:nth-child(1) { transition-delay: .0s; }
.public-notices article:nth-child(2) { transition-delay: .08s; }
.public-notices article:nth-child(3) { transition-delay: .16s; }

.public-notices i {
  color: var(--brand);
  font-size: 1.5rem;
}

.public-notices h3 {
  font-size: 1.05rem;
  margin: 12px 0 8px;
}

.public-notices p {
  color: var(--muted);
  margin: 0;
}

.landing-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-legal-links a {
  color: var(--brand);
  font-weight: 700;
}

.donation-note {
  margin-top: 8px;
  background:
    linear-gradient(135deg, rgba(240, 184, 104, .16), rgba(47, 143, 157, .12));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.donation-note strong {
  font-size: .92rem;
}

.donation-note span {
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
}

.donation-note a {
  color: white;
  font-weight: 700;
  font-size: .86rem;
}

.sidebar > .btn {
  border-radius: 8px;
  min-height: 42px;
  font-weight: 750;
}

.support-panel {
  max-width: 760px;
}

.theme-picker {
  width: 100%;
  min-height: 38px;
}

.community-public {
  min-height: 100vh;
  background: #f6f8f9;
}

.community-hero {
  background: var(--community-color);
  color: white;
  padding: 22px 24px 72px;
}

.community-nav {
  max-width: 1120px;
  margin: 0 auto 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.community-back {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.community-hero-content {
  max-width: 1120px;
  margin: 0 auto;
}

.community-logo {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 18px;
}

.community-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 14px 0;
}

.community-hero p {
  max-width: 760px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, .86);
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.public-pill {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
  color: white;
}

.community-content {
  max-width: 1120px;
  margin: -34px auto 0;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.public-row {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.public-row:last-child {
  border-bottom: 0;
}

.public-row h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.public-row p {
  color: var(--muted);
  margin: 0;
}

.community-feedback-panel {
  grid-column: 1 / -1;
}

.community-contact-panel {
  grid-column: 1 / -1;
}

.member-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feedback-public-form,
.feedback-response-form {
  display: grid;
  gap: 10px;
}

.public-field {
  display: grid;
  gap: 6px;
  color: #173b3d;
  font-weight: 700;
}

.form-builder {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.compact-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.form-field-editor {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 170px) minmax(160px, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}

.form-field-editor .grid-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-action-row {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.compact-action-row:last-child {
  border-bottom: 0;
}

.compact-action-row strong,
.compact-action-row span {
  min-width: 0;
}

.action-feed .compact-action-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.action-feed .compact-action-row span {
  grid-column: 1;
}

.action-feed .notice-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.member-event-qr {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-top: 8px;
}

.member-event-qr img {
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.feedback-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.feedback-item:first-of-type {
  border-top: 0;
}

.feedback-item p {
  white-space: pre-wrap;
  margin: 8px 0 0;
}

.feedback-response {
  border-left: 4px solid var(--brand);
  background: var(--soft-green);
  padding: 10px 12px;
  border-radius: 6px;
}

.platform-control-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-left: 5px solid var(--brand);
}

.platform-control-panel.off {
  background: #fff4df;
  border-color: #b36b2c;
}

.platform-control-panel h2,
.platform-control-panel p {
  margin: 0;
}

.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(16, 47, 48, .14);
}

.cookie-consent p {
  margin: 4px 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-page {
  min-height: 100vh;
  padding: 38px 20px;
  background: var(--surface);
}

.legal-panel {
  max-width: 920px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}

.legal-panel h1 {
  margin: 18px 0 16px;
}

.legal-panel h2 {
  font-size: 1.15rem;
  margin-top: 24px;
}

.legal-panel p {
  color: var(--muted);
}

.legal-back {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.certificate-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 18px 0;
}

.certificate-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  background: var(--surface);
}

.certificate-result h2 {
  margin: 12px 0;
}

.certificate-result dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 14px;
}

.certificate-result dt {
  color: var(--muted);
}

.certificate-result dd {
  margin: 0;
}

.certificate-text {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    position: static;
    box-shadow: none;
  }

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

  .nav-section-label {
    grid-column: 1 / -1;
  }

  .content {
    padding: 18px;
  }

  .panel-topbar,
  .page-header {
    display: grid;
  }

  .metric-grid,
  .dashboard-grid,
  .member-portal-grid,
  .dashboard-welcome,
  .toolbar,
  .entity-form,
  .import-row,
  .notice-tabs,
  .landing-hero,
  .public-notices,
  .community-content,
  .feedback-item,
  .form-field-editor,
  .action-feed .compact-action-row {
    grid-template-columns: 1fr;
  }

  .action-feed .notice-actions {
    grid-column: 1;
    grid-row: auto;
  }

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

  .notice-card {
    display: grid;
  }

  .notice-actions {
    width: 100%;
  }

  .registration-card {
    grid-template-columns: 1fr;
  }

  .master-shell {
    display: block;
  }

  .landing-hero {
    min-height: auto;
    padding: 52px 20px 60px;
    gap: 36px;
  }

  .landing-copy h1 {
    font-size: 2.3rem;
    letter-spacing: -0.02em;
  }

  .landing-nav {
    width: calc(100% - 24px);
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
  }

  .landing-nav-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .landing-support {
    align-items: flex-start;
    display: grid;
  }

  .landing-preview {
    animation: fadeSlideUp .6s .15s ease both;
  }

  .cookie-consent {
    display: grid;
  }

  .certificate-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .panel-nav {
    grid-template-columns: 1fr;
  }

  .landing-nav {
    display: grid;
  }

  .landing-nav-actions {
    justify-content: stretch;
  }

  .nav-login,
  .nav-register {
    flex: 1;
  }

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