@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #0B0F14;
  --bg-2: #0e141b;
  --panel: #121821;
  --panel-soft: #18212b;
  --panel-hover: #172231;
  --text: #e7f2f3;
  --muted: #94a3b8;
  --line: #1F2933;
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --accent: #38BDF8;
  --danger: #e05252;
  --good: #22C55E;
  --bad: #EF4444;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--bg);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.14), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.10), transparent 28%),
    linear-gradient(135deg, var(--bg), #070a0f 72%);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #061114;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

button:hover {
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  background: #111f28;
  color: var(--text);
  border-color: var(--line);
}

button.secondary:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
}

button.danger {
  background: linear-gradient(180deg, #ee6565, #bb3131);
  color: #fff;
  border-color: rgba(255, 107, 107, 0.65);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #0b151c;
  color: var(--text);
  outline: none;
}

input {
  color-scheme: dark;
}

input[type="date"] {
  min-height: 44px;
  padding: 10px 12px;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #444;
  border-radius: 12px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

input[type="file"] {
  min-height: 50px;
  padding: 11px;
  border-style: dashed;
  background: #0d1b23;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 22px;
  background: rgba(16, 28, 36, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-panel h1,
.brand h1,
.topbar h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-panel h1 {
  max-width: 10ch;
  color: var(--text);
  font-size: clamp(34px, 7vw, 52px);
  line-height: 0.98;
}

.brand-edge {
  color: var(--primary);
}

.brand-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.auth-form,
.stack {
  display: grid;
  gap: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(6, 14, 20, 0.90);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  gap: 4px;
}

.brand h1 {
  font-size: 22px;
}

.brand .muted {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  background: rgba(16, 28, 36, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar .panel {
  box-shadow: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

summary.panel-header {
  cursor: pointer;
  list-style: none;
}

summary.panel-header::-webkit-details-marker {
  display: none;
}

summary.panel-header::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}

details[open] > summary.panel-header::after {
  content: "−";
}

.panel-body {
  padding: 15px;
}

.strategy-list {
  display: grid;
  gap: 9px;
  max-height: 330px;
  overflow: auto;
  margin-top: 12px;
}

.strategy-item {
  width: 100%;
  min-height: auto;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  background: #0c171e;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.strategy-item.active,
.strategy-item:hover {
  background: var(--panel-hover);
  border-color: var(--primary);
}

.strategy-item strong,
.strategy-item span {
  overflow-wrap: anywhere;
}

.strategy-item span {
  color: var(--muted);
  font-size: 12px;
}

.main {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 20px;
}

.topbar {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 2px 0 4px;
}

.topbar > div:first-child {
  min-width: 0;
  flex: 1 1 320px;
}

.topbar h2,
.topbar p {
  overflow-wrap: anywhere;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.full-width {
  width: 100%;
}

.google-button {
  background: linear-gradient(180deg, #1c2c37, #121e27);
  color: var(--text);
  border-color: var(--line);
}

.message {
  margin: 0;
  min-height: 22px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.error {
  color: var(--bad);
}

.message.ok {
  color: var(--good);
}

.filters,
.import-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}

.import-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto minmax(180px, 1fr);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.stat {
  min-width: 0;
  min-height: 90px;
  display: grid;
  gap: 7px;
  padding: 14px;
  background: linear-gradient(180deg, #12232d, #0d1921);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.metric-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  overflow: visible;
}

.metric-title > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.metric-info {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(59, 130, 246, 0.36);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: var(--primary);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  cursor: help;
}

.metric-info::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 80;
  width: min(250px, 70vw);
  padding: 10px 12px;
  border: 1px solid rgba(31, 41, 51, 0.95);
  border-radius: 12px;
  background: rgba(11, 15, 20, 0.98);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.metric-info::before {
  content: "";
  position: absolute;
  right: 9px;
  bottom: calc(100% + 4px);
  z-index: 81;
  width: 10px;
  height: 10px;
  background: rgba(11, 15, 20, 0.98);
  border-right: 1px solid rgba(31, 41, 51, 0.95);
  border-bottom: 1px solid rgba(31, 41, 51, 0.95);
  opacity: 0;
  transform: translateY(5px) rotate(45deg);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.metric-info:hover::after,
.metric-info:hover::before,
.metric-info:focus-visible::after,
.metric-info:focus-visible::before,
.metric-info.is-open::after,
.metric-info.is-open::before {
  opacity: 1;
  transform: translateY(0);
}

.stat strong {
  font-size: 21px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stat:first-child {
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), #0d1921 70%);
}

.stat:first-child strong {
  font-size: 27px;
}

.stat:nth-child(4) {
  border-color: rgba(56, 167, 255, 0.45);
}

.stat:nth-child(6) strong,
.stat strong.negative,
.negative {
  color: var(--bad);
  font-weight: 850;
}

.stat strong.positive,
.positive {
  color: var(--good);
  font-weight: 850;
}

.danger-risk {
  color: var(--bad);
  font-weight: 900;
}

.safe-risk {
  color: var(--good);
  font-weight: 900;
}

.risk-card {
  align-content: start;
  border-width: 1px;
}

.risk-card b {
  font-size: 14px;
  line-height: 1.2;
}

.risk-low {
  border-color: rgba(50, 213, 131, 0.62);
  background: linear-gradient(180deg, rgba(50, 213, 131, 0.16), #0d1921 72%);
}

.risk-low strong,
.risk-low b {
  color: var(--good);
}

.risk-medium {
  color: #ffd166;
  font-weight: 900;
}

.risk-card.risk-medium {
  border-color: rgba(255, 209, 102, 0.68);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.16), #0d1921 72%);
}

.risk-card.risk-medium strong,
.risk-card.risk-medium b {
  color: #ffd166;
}

.risk-high {
  color: var(--bad);
  font-weight: 900;
}

.risk-card.risk-high {
  border-color: rgba(255, 107, 107, 0.72);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.17), #0d1921 72%);
}

.risk-card.risk-high strong,
.risk-card.risk-high b {
  color: var(--bad);
}

.risk-reasons {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.risk-reasons li {
  overflow-wrap: anywhere;
}

.neutral {
  color: var(--text);
}

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

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

.chart-panel-header {
  gap: 12px;
  align-items: center;
}

.chart-panel-header h2 {
  min-width: 0;
}

.mini-direction-filter {
  width: auto;
  min-width: 104px;
  min-height: 34px;
  padding: 7px 30px 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  background-color: rgba(11, 15, 20, 0.72);
  border-color: rgba(59, 130, 246, 0.28);
}

.chart-wrap {
  min-height: 310px;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 300px !important;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  background: #0b151c;
  border-radius: 0 0 var(--radius) var(--radius);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101c24;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.badge {
  min-width: 58px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #132833;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(16, 28, 36, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.modal-header h2,
.modal-header p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.database-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
}

.db-summary-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #12232d, #0d1921);
}

.db-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.db-summary-card strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.database-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}

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

.database-table {
  display: grid;
  gap: 8px;
}

.database-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(130px, 1fr) 100px 100px 110px 80px 70px 90px minmax(80px, .8fr) 86px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b151c;
}

.database-row-head {
  background: #12232d;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.database-row span,
.database-row details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.db-id summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
}

.db-id small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.db-delete {
  min-height: 38px;
  padding: 7px 10px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filters,
  .import-grid,
  .charts {
    grid-template-columns: 1fr;
  }

  .chart-wide {
    grid-column: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .database-row {
    grid-template-columns: minmax(130px, 1.2fr) repeat(3, minmax(90px, .8fr)) minmax(100px, 1fr);
  }

  .database-row-head,
  .database-row .db-id {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(35, 57, 68, 0.9);
    background: rgba(6, 14, 20, 0.96);
  }

  .brand {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 2px 2px 0;
  }

  .brand h1 {
    font-size: 20px;
    line-height: 1.15;
  }

  .brand .muted {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.3;
  }

  #logoutButton {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  .sidebar > .panel:first-of-type {
    margin-top: 6px;
  }

  .panel {
    border-radius: 16px;
  }

  .panel-header {
    min-height: 50px;
    padding: 13px 14px;
  }

  .panel-header h2 {
    font-size: 15px;
  }

  .panel-body {
    padding: 14px;
  }

  .strategy-list {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .strategy-item {
    padding: 12px;
  }

  .strategy-item strong {
    font-size: 14px;
  }

  .main {
    gap: 16px;
    padding: 14px 12px 22px;
  }

  .topbar {
    display: grid;
    gap: 12px;
    padding: 2px 2px 0;
  }

  .topbar .eyebrow {
    display: none;
  }

  .topbar h2 {
    font-size: 20px;
    line-height: 1.18;
  }

  .topbar .button-row,
  .topbar .button-row button {
    width: 100%;
  }

  .filters,
  .import-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .import-grid button,
  #resetFiltersButton {
    width: 100%;
    min-height: 48px;
  }

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

  .stat {
    min-height: 86px;
    padding: 12px;
  }

  .stat span {
    font-size: 11px;
  }

  .stat strong {
    font-size: 18px;
  }

  .stat:first-child {
    grid-column: 1 / -1;
  }

  .stat:first-child strong {
    font-size: 30px;
  }

  .charts {
    gap: 14px;
  }

  .chart-panel-header {
    align-items: flex-start;
  }

  .mini-direction-filter {
    min-width: 96px;
    max-width: 112px;
  }

  .chart-wrap {
    min-height: 260px;
    padding: 12px;
  }

  .chart-wrap canvas {
    height: 245px !important;
  }

  .modal {
    align-items: stretch;
    padding: 10px;
  }

  .modal-panel {
    max-height: 94vh;
    padding: 14px;
    border-radius: 18px;
  }

  .modal-header {
    display: grid;
  }

  .modal-header button {
    width: 100%;
  }

  .database-summary,
  .database-filters {
    grid-template-columns: 1fr;
  }

  .database-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px;
  }

  .database-row-head {
    display: none;
  }

  .database-row span::before,
  .database-row details::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .database-row .num {
    text-align: left;
  }

  .db-delete {
    width: 100%;
    margin-top: 4px;
  }

  table {
    min-width: 640px;
  }

  th,
  td {
    padding: 9px 8px;
    font-size: 13px;
  }
}

/* Private fintech shell refinements */
.app-header {
  min-height: 64px;
  padding: 10px 18px;
}

.app-logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.app-logo h1 {
  font-size: 15px;
}

.app-logo p {
  max-width: 52vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.profile-button {
  border-radius: 999px;
  padding: 7px 10px;
}

.profile-button span:last-child {
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-hero {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(56, 167, 255, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(59, 130, 246, 0.20), rgba(13, 25, 33, 0.98) 62%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.account-hero.risk-low {
  color: var(--text);
  font-weight: inherit;
  border-color: rgba(34, 197, 94, 0.46);
  background:
    radial-gradient(circle at 92% 12%, rgba(34, 197, 94, 0.20), transparent 34%),
    linear-gradient(145deg, rgba(34, 197, 94, 0.18), rgba(18, 24, 33, 0.98) 62%);
}

.account-hero.risk-medium {
  color: var(--text);
  font-weight: inherit;
  border-color: rgba(251, 191, 36, 0.58);
  background:
    radial-gradient(circle at 92% 12%, rgba(251, 191, 36, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(251, 191, 36, 0.18), rgba(18, 24, 33, 0.98) 62%);
}

.account-hero.risk-high {
  color: var(--text);
  font-weight: inherit;
  border-color: rgba(239, 68, 68, 0.72);
  background:
    radial-gradient(circle at 92% 12%, rgba(239, 68, 68, 0.30), transparent 34%),
    linear-gradient(145deg, rgba(239, 68, 68, 0.22), rgba(18, 24, 33, 0.98) 62%);
  box-shadow: 0 24px 80px rgba(239, 68, 68, 0.16), 0 24px 70px rgba(0, 0, 0, 0.38);
}

.account-hero-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: center;
}

.hero-score-block {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-account-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-account-meta span,
.hero-risk {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(231, 242, 243, 0.08);
  border-radius: 999px;
  background: rgba(6, 16, 21, 0.46);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.account-hero h3 {
  margin: 0;
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1.05;
}

.account-hero > strong {
  font-size: clamp(38px, 8vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-score-block > strong {
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-risk {
  display: grid;
  gap: 2px;
  border-radius: 16px;
}

.hero-risk b {
  color: var(--text);
}

.account-hero.risk-low .hero-risk {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.12);
}

.account-hero.risk-low .hero-risk b {
  color: var(--good);
}

.account-hero.risk-medium .hero-risk {
  border-color: rgba(251, 191, 36, 0.50);
  background: rgba(251, 191, 36, 0.13);
}

.account-hero.risk-medium .hero-risk b {
  color: #fbbf24;
}

.account-hero.risk-high .hero-risk {
  border-color: rgba(239, 68, 68, 0.56);
  background: rgba(239, 68, 68, 0.15);
}

.account-hero.risk-high .hero-risk b {
  color: var(--bad);
}

.risk-diagnostics {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(231, 242, 243, 0.08);
  border-radius: 22px;
  background: rgba(11, 15, 20, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.risk-diagnostics > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.risk-diagnostic {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(231, 242, 243, 0.08);
  border-radius: 16px;
  background: rgba(18, 24, 33, 0.72);
}

.risk-diagnostic.good {
  border-color: rgba(34, 197, 94, 0.30);
}

.risk-diagnostic.warning {
  border-color: rgba(251, 191, 36, 0.34);
}

.risk-diagnostic.bad {
  border-color: rgba(239, 68, 68, 0.38);
}

.diagnostic-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.risk-diagnostic div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.risk-diagnostic b {
  color: var(--text);
  font-size: 14px;
}

.risk-diagnostic span:last-child {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.key-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.key-metric {
  min-height: 104px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(35, 57, 68, 0.72);
  border-radius: 20px;
  background: rgba(16, 29, 38, 0.84);
}

.key-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.key-metric .metric-title {
  align-self: start;
}

.key-metric strong {
  font-size: 24px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions button {
  min-height: 58px;
  border-radius: 18px;
}

.advanced-metrics-panel .stats-grid {
  padding: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advanced-metrics-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.advanced-metrics-panel .advanced-summary {
  min-height: 62px;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.12);
  text-align: center;
}

.advanced-metrics-panel .advanced-summary h2 {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.advanced-metrics-panel .advanced-summary::after {
  content: "＋";
  margin-left: 10px;
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(6, 16, 21, 0.42);
}

.advanced-metrics-panel[open] .advanced-summary::after {
  content: "−";
}

.advanced-metrics-panel .stat {
  min-height: 104px;
  border-radius: 18px;
  background: rgba(16, 29, 38, 0.84);
}

.advanced-metrics-panel .stat:first-child {
  grid-column: auto;
  border-color: rgba(35, 57, 68, 0.72);
  background: rgba(16, 29, 38, 0.84);
}

.advanced-metrics-panel .stat:first-child strong {
  font-size: 21px;
}

.filter-toggle {
  min-width: 116px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.filter-popover {
  position: fixed;
  top: 118px;
  right: clamp(12px, 4vw, 40px);
  z-index: 80;
  width: min(460px, calc(100vw - 24px));
  overflow: visible;
  border-radius: 22px;
  background: rgba(16, 28, 36, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.filter-popover .collapse-panel,
.filter-popover .collapse-panel[open] {
  display: block;
}

.filter-popover summary.panel-header {
  pointer-events: none;
  justify-content: center;
}

.filter-popover summary.panel-header::after {
  display: none;
}

.filter-popover .filters {
  grid-template-columns: 1fr;
  gap: 12px;
}

.filter-popover #closeFiltersButton,
.filter-popover #resetFiltersButton {
  width: 100%;
}

.strategy-list {
  max-height: none;
}

.strategy-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(35, 57, 68, 0.62);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 39, 51, 0.84), rgba(11, 21, 28, 0.92));
}

.strategy-item strong {
  font-size: 17px;
}

.account-card-meta,
.account-card-actions,
.trade-card-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.account-card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: var(--muted);
  font-weight: 850;
}

.account-card-actions button {
  flex: 1 1 120px;
  border-radius: 14px;
}

.trade-cards {
  display: none;
  gap: 10px;
  padding: 12px;
  background: #0b151c;
}

.trade-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(35, 57, 68, 0.62);
  border-radius: 18px;
  background: rgba(16, 29, 38, 0.86);
}

.trade-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trade-card strong,
.trade-card span {
  overflow-wrap: anywhere;
}

.trade-card > div:first-child span,
.trade-card-row span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.settings-panel .stat {
  border-radius: 20px;
}

@media (max-width: 980px) {
  .key-metrics-grid,
  .quick-actions,
  .advanced-metrics-panel .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 78px;
  }

  .app-header {
    min-height: 62px;
    align-items: center;
  }

  .app-logo h1 {
    display: none;
  }

  .app-logo p {
    max-width: 58vw;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
  }

  .profile-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  .profile-button span:last-child {
    display: none;
  }

  .sidebar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 45;
    padding: 8px;
    border: 1px solid rgba(35, 57, 68, 0.88);
    border-radius: 24px;
    background: rgba(6, 14, 20, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(14px);
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    overflow: visible;
  }

  .nav-button {
    min-height: 48px;
    padding: 6px 4px;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    border-radius: 18px;
  }

  .nav-button[data-view-target="database"] {
    display: none;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .account-hero {
    min-height: 250px;
    padding: 20px;
    border-radius: 28px;
  }

  .account-hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-score-block > strong {
    font-size: 44px;
  }

  .key-metrics-grid,
  .quick-actions,
  .advanced-metrics-panel .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .key-metric {
    min-height: 104px;
    border-radius: 22px;
  }

  .quick-actions button {
    min-height: 64px;
  }

  .accounts-layout {
    gap: 14px;
  }

  .strategy-item {
    border-radius: 24px;
  }

  .trade-cards {
    display: grid;
  }

  #tradesTable table {
    display: none;
  }

  #tradesTable {
    background: transparent;
  }

  .chart-wrap {
    min-height: 310px;
  }

  .chart-wrap canvas {
    height: 295px !important;
  }
}

@media (max-width: 420px) {
  .key-metrics-grid,
  .quick-actions,
  .advanced-metrics-panel .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .login-view {
    padding: 12px;
  }

  .login-panel {
    padding: 18px;
  }

  .sidebar,
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

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

  .stat:first-child {
    grid-column: auto;
  }

  .button-row,
  .button-row button {
    width: 100%;
  }

  .chart-wrap {
    min-height: 230px;
  }

  .chart-wrap canvas {
    height: 220px !important;
  }
}

/* Layout V7: navegación por secciones */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  grid-template-areas:
    "header header"
    "sidebar main";
}

.app-header {
  grid-area: header;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 12px 18px;
  background: rgba(6, 14, 20, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: transparent;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.12);
}

.app-logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-mark,
.profile-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  font-weight: 950;
}

.logo-mark svg {
  width: 72%;
  height: 72%;
  display: block;
}

.logo-mark svg path {
  fill: #3B82F6;
}

.logo-mark svg path:nth-child(2) {
  fill: #2F93FF;
}

.logo-mark svg path:nth-child(3) {
  fill: #38BDF8;
}

.app-logo h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 950;
  line-height: 1.1;
}

.app-logo p,
.profile-button span:last-child {
  overflow-wrap: anywhere;
}

.app-header-slogan {
  min-width: 0;
  justify-self: end;
  display: grid;
  gap: 3px;
  padding-left: clamp(12px, 2vw, 28px);
  border-left: 1px solid rgba(31, 41, 51, 0.85);
}

.app-header-slogan .app-claim {
  margin: 0;
  color: var(--text);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.app-header-slogan .app-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.app-active-account {
  max-width: 36vw;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.private-language-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 24, 33, 0.82);
}

.profile-button {
  max-width: min(360px, 48vw);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  color: var(--text);
}

.profile-button .profile-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
  overflow: hidden;
}

.profile-icon img,
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sidebar {
  grid-area: sidebar;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

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

.nav-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  border-radius: 12px;
}

.nav-button:hover,
.nav-button.active {
  background: var(--panel-hover);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.42);
}

.main {
  grid-area: main;
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.app-section {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.section-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 2px 2px 0;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.section-heading p {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.accounts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.heading-actions {
  justify-content: flex-end;
}

.account-modal-panel {
  width: min(620px, 100%);
}

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

.account-notes-field,
.account-modal-actions {
  grid-column: 1 / -1;
}

.account-modal-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.account-actions {
  margin-top: 10px;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

.global-filters {
  position: sticky;
  top: 82px;
  z-index: 10;
}

.account-required-message {
  padding: 28px;
  border: 1px dashed rgba(145, 167, 175, 0.34);
  border-radius: var(--radius);
  background: rgba(16, 28, 36, 0.68);
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
}

.settings-grid #logoutButton {
  position: static;
  width: auto;
  min-height: 100%;
  border-radius: 12px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
  gap: 18px;
  align-items: start;
}

.profile-card {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
  padding: 20px;
  border: 1px solid rgba(31, 41, 51, 0.88);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.16), transparent 34%),
    rgba(18, 24, 33, 0.82);
}

.profile-avatar-large {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--text);
  font-size: 34px;
  font-weight: 950;
}

.profile-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(59, 130, 246, 0.38);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-plus {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.12);
}

.plan-pro {
  border-color: rgba(251, 191, 36, 0.48);
  background: rgba(251, 191, 36, 0.14);
}

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

.profile-email-field,
.profile-plan-status,
.profile-actions,
#profileSaveMessage {
  grid-column: 1 / -1;
}

.profile-plan-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid rgba(31, 41, 51, 0.82);
  border-radius: 18px;
  background: rgba(11, 15, 20, 0.42);
}

.profile-plan-status > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-plan-status button {
  margin-left: auto;
}

.profile-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.subscription-panel {
  width: min(860px, 100%);
}

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

.pricing-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(31, 41, 51, 0.9);
  border-radius: 24px;
  background: rgba(18, 24, 33, 0.9);
}

.pricing-card-featured {
  border-color: rgba(59, 130, 246, 0.66);
  background:
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.22), transparent 34%),
    rgba(18, 24, 33, 0.96);
  box-shadow: 0 20px 70px rgba(59, 130, 246, 0.12);
}

.pricing-card h3 {
  margin: 0;
  font-size: 30px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pricing-card button {
  width: 100%;
  margin-top: 4px;
}

.product-section {
  gap: 20px;
}

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

.product-card {
  min-width: 0;
  min-height: 260px;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(31, 41, 51, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(59, 130, 246, 0.14), transparent 34%),
    rgba(18, 24, 33, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.product-card h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-card button {
  width: 100%;
  align-self: end;
  margin-top: auto;
}

.product-upgrade {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.18);
}

.database-section {
  display: grid;
  gap: 14px;
}

@media (max-width: 980px) {
  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "header"
      "sidebar"
      "main";
  }

  .sidebar {
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-button {
    width: auto;
    white-space: nowrap;
  }

  .accounts-layout,
  .settings-grid,
  .profile-layout,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .global-filters {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .app-logo h1 {
    font-size: 16px;
  }

  .profile-button {
    max-width: 44vw;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .main {
    padding: 14px 12px 22px;
  }

  .section-heading {
    display: grid;
    gap: 12px;
  }

  .section-heading .button-row,
  .section-heading button {
    width: 100%;
  }

  .heading-actions {
    justify-content: stretch;
  }

  .account-form {
    grid-template-columns: 1fr;
  }

  .account-modal-panel {
    width: 100%;
  }

  .filters,
  .import-grid {
    grid-template-columns: 1fr;
  }

  .database-filters {
    grid-template-columns: 1fr;
  }
}

/* Landing pública V7 */
.landing-view {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.18), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(56, 167, 255, 0.13), transparent 30%),
    linear-gradient(135deg, #0B0F14, #03080c 74%);
}

.landing-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(16px, 4vw, 46px);
}

.landing-brand,
.landing-actions,
.language-switch,
.landing-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-brand strong {
  font-size: 18px;
}

.landing-actions {
  min-width: 0;
}

.lang-button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.lang-button.active {
  background: rgba(59, 130, 246, 0.16);
  color: var(--text);
  border-color: var(--primary);
}

.hamburger-button {
  width: 46px;
  min-width: 46px;
  padding: 9px;
  display: grid;
  gap: 5px;
  place-content: center;
  background: #111f28;
  border-color: var(--line);
}

.hamburger-button span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--text);
  border-radius: 999px;
}

.landing-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 34px;
  align-content: center;
  padding: 36px clamp(16px, 5vw, 52px) 56px;
}

.landing-hero {
  max-width: 820px;
  display: grid;
  gap: 18px;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.landing-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
}

.landing-cta {
  flex-wrap: wrap;
  margin-top: 8px;
}

.landing-cta button {
  min-width: 170px;
}

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

.benefit-card {
  min-height: 138px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 28, 36, 0.82);
  box-shadow: var(--shadow);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.12);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h2 {
  margin: 0;
  font-size: 20px;
}

.public-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-items: end;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
}

.public-menu-panel {
  width: min(420px, 100%);
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 22px;
  background: rgba(16, 28, 36, 0.98);
  border-left: 1px solid var(--line);
}

.public-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.public-menu-links {
  display: grid;
  gap: 10px;
}

.public-menu-links a,
.public-menu-links button {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b151c;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.public-menu-language {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.login-view {
  position: fixed;
  inset: 0;
  z-index: 70;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.login-panel {
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .landing-header {
    padding: 14px;
  }

  .landing-login-button {
    display: none;
  }

  .landing-main {
    align-content: start;
    padding: 34px 14px 36px;
    text-align: center;
  }

  .landing-hero {
    justify-items: center;
  }

  .landing-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .landing-cta,
  .landing-cta button {
    width: 100%;
  }

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

  .benefit-card {
    min-height: 112px;
    text-align: left;
  }

  .public-menu-panel {
    width: 100%;
  }

  .login-panel {
    width: 100%;
    padding-top: 48px;
  }

  .app-header {
    min-height: 70px;
  }

  .panel-body {
    padding: 16px;
  }

  .strategy-item,
  .stat,
  .benefit-card {
    border-radius: 18px;
  }
}

/* Private navigation correction: top tabs on every viewport */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "header"
    "tabs"
    "main";
  padding-bottom: 0;
}

.app-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 66px;
  padding: 12px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid rgba(35, 57, 68, 0.7);
}

.sidebar {
  grid-area: tabs;
  position: sticky;
  top: 66px;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 35;
  width: 100%;
  min-height: auto;
  padding: 10px clamp(12px, 3vw, 28px);
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(35, 57, 68, 0.78);
  border-radius: 0;
  background: rgba(6, 14, 20, 0.94);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.main-nav {
  width: 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-button {
  width: auto;
  min-width: max-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(59, 130, 246, 0.14);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.52);
}

.nav-button[data-view-target="database"] {
  display: inline-flex;
}

.main {
  grid-area: main;
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 24px clamp(14px, 3vw, 32px) 40px;
}

@media (max-width: 1080px) {
  .app-header {
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
  }

  .app-header-slogan {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .app-logo h1 {
    display: block;
    font-size: 22px;
  }

  .app-logo-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .app-active-account {
    max-width: 58vw;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }

  .app-header-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .private-language-switch {
    gap: 4px;
  }

  .private-language-switch .lang-button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "header"
      "tabs"
      "main";
    padding-bottom: 0;
  }

  .app-header {
    min-height: 62px;
    align-items: center;
    padding: 10px 12px;
  }

  .sidebar {
    position: sticky;
    top: 62px;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 9px 12px;
    border-radius: 0;
  }

  .main-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
  }

  .nav-button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 999px;
  }

  .filter-popover {
    top: 92px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .filter-toggle {
    width: 100%;
  }

  .main {
    padding: 16px 12px 28px;
  }
}

/* Header privado: marca, slogan y acciones separados */
.app-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.app-logo h1 {
  color: var(--text);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 950;
}

.app-header-slogan {
  min-width: 0;
  justify-self: end;
  display: grid;
  gap: 3px;
  padding-left: clamp(12px, 2vw, 28px);
  border-left: 1px solid rgba(31, 41, 51, 0.85);
}

.app-header-slogan .app-claim {
  margin: 0;
  color: var(--text);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 900;
  line-height: 1.2;
}

.app-header-slogan .app-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.2;
}

@media (max-width: 1080px) {
  .app-header {
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
  }

  .app-header-slogan {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    min-height: 68px;
    padding: 10px 12px;
  }

  .app-logo h1 {
    display: block;
    font-size: 22px;
  }

  .app-active-account {
    max-width: 58vw;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .profile-layout,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-card {
    border-radius: 20px;
  }

  .profile-actions,
  .profile-actions button {
    width: 100%;
  }

  .profile-plan-status button {
    width: 100%;
    margin-left: 0;
  }

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

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

  .product-card {
    min-height: auto;
    border-radius: 20px;
  }
}

/* Sticky private header and top tabs correction */
:root {
  --private-header-height: 82px;
  --private-tabs-height: 60px;
}

.app-shell {
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: var(--private-header-height);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr) auto;
  grid-template-areas: "brand slogan actions";
  align-items: center;
  background: rgba(11, 15, 20, 0.96);
  border-bottom: 1px solid rgba(31, 41, 51, 0.92);
  backdrop-filter: blur(16px);
}

.app-logo {
  grid-area: brand;
}

.app-header-slogan {
  grid-area: slogan;
}

.app-header-actions {
  grid-area: actions;
}

.sidebar {
  position: sticky;
  top: var(--private-header-height);
  z-index: 110;
  width: 100%;
  min-height: var(--private-tabs-height);
  padding: 10px clamp(14px, 3vw, 28px);
  background: rgba(11, 15, 20, 0.95);
  border-right: 0;
  border-bottom: 1px solid rgba(31, 41, 51, 0.92);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.main-nav {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 0 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.main {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow: visible;
  padding: 24px clamp(14px, 3vw, 32px) 40px;
}

@media (max-width: 1080px) {
  :root {
    --private-header-height: 74px;
    --private-tabs-height: 58px;
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    gap: 12px;
  }

  .app-header-slogan {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --private-header-height: 112px;
    --private-tabs-height: 56px;
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "slogan slogan";
    align-items: center;
    min-height: var(--private-header-height);
    padding: 10px 12px 8px;
    gap: 6px 10px;
  }

  .app-header-slogan {
    display: grid;
    justify-self: start;
    width: 100%;
    padding-left: 42px;
    border-left: 0;
    gap: 1px;
  }

  .app-header-slogan .app-claim {
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-header-slogan .app-subtitle {
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-logo h1 {
    display: block;
    font-size: 21px;
    line-height: 1.05;
  }

  .app-active-account {
    max-width: 56vw;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-header-actions {
    gap: 6px;
  }

  .profile-button {
    max-width: 44px;
    min-width: 44px;
    padding: 6px;
  }

  .profile-button #userEmail {
    display: none;
  }

  .sidebar {
    top: var(--private-header-height);
    min-height: var(--private-tabs-height);
    padding: 8px 12px;
  }

  .main-nav {
    gap: 7px;
    padding-bottom: 3px;
  }

  .nav-button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .main {
    padding: 16px 12px 28px;
  }
}

@media (max-width: 380px) {
  :root {
    --private-header-height: 102px;
  }

  .app-header-slogan .app-subtitle {
    display: none;
  }
}

/* Final fixed private header correction */
:root {
  --private-header-height: 82px;
  --private-tabs-height: 68px;
  --private-tabs-gap: 2px;
  --private-fixed-offset: calc(var(--private-header-height) + var(--private-tabs-gap) + var(--private-tabs-height));
}

.app-shell {
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  height: var(--private-header-height);
  min-height: var(--private-header-height);
  max-height: var(--private-header-height);
  background: #0B0F14;
  border-bottom: 1px solid rgba(31, 41, 51, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.sidebar {
  position: fixed;
  top: calc(var(--private-header-height) + var(--private-tabs-gap));
  left: 0;
  right: 0;
  z-index: 290;
  width: 100%;
  height: var(--private-tabs-height);
  min-height: var(--private-tabs-height);
  max-height: var(--private-tabs-height);
  padding: 11px clamp(14px, 3vw, 28px);
  background: #0B0F14;
  border-right: 0;
  border-bottom: 1px solid rgba(31, 41, 51, 0.96);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
  overflow: visible;
}

.main-nav {
  height: auto;
  min-height: 44px;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 1px;
  padding-bottom: 1px;
}

.nav-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
}

.main {
  padding-top: calc(var(--private-fixed-offset) + 24px);
}

.filter-popover {
  top: calc(var(--private-fixed-offset) + 14px);
}

@media (max-width: 1080px) {
  :root {
    --private-header-height: 74px;
    --private-tabs-height: 66px;
  }
}

@media (max-width: 760px) {
  :root {
    --private-header-height: 112px;
    --private-tabs-height: 64px;
  }

  .app-header {
    height: var(--private-header-height);
    min-height: var(--private-header-height);
    max-height: var(--private-header-height);
    overflow: hidden;
  }

  .sidebar {
    top: calc(var(--private-header-height) + var(--private-tabs-gap));
    height: var(--private-tabs-height);
    min-height: var(--private-tabs-height);
    max-height: var(--private-tabs-height);
    padding: 10px 12px;
    overflow: visible;
  }

  .main-nav {
    width: 100%;
    margin: 0;
    gap: 7px;
    min-height: 42px;
    padding-top: 1px;
    padding-bottom: 1px;
    overflow-x: auto;
    overflow-y: visible;
  }

  .nav-button {
    min-height: 40px;
    line-height: 1.15;
  }

  .main {
    padding-top: calc(var(--private-fixed-offset) + 16px);
  }

  .filter-popover {
    top: calc(var(--private-fixed-offset) + 10px);
  }
}

@media (max-width: 380px) {
  :root {
    --private-header-height: 102px;
  }
}

/* Header user menu */
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  max-width: 42px;
  gap: 0;
  padding: 4px;
  justify-content: center;
  background: rgba(18, 24, 33, 0.82);
  border-color: rgba(31, 41, 51, 0.96);
  color: var(--text);
}

.profile-button:hover,
.profile-button[aria-expanded="true"] {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.42);
}

.profile-button .profile-icon,
.user-dropdown-head .profile-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(56, 189, 248, 0.72));
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 360;
  width: min(260px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(31, 41, 51, 0.96);
  border-radius: 18px;
  background: #121821;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

.user-dropdown-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(31, 41, 51, 0.86);
}

.user-dropdown-head .profile-icon {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.user-dropdown-head strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.user-dropdown-email {
  margin: 0;
  padding: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  border-bottom: 0;
}

.user-dropdown-plan {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.user-dropdown button {
  width: 100%;
  justify-content: flex-start;
  min-height: 40px;
  border-radius: 12px;
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

.user-dropdown button:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
}

.user-dropdown .danger-link {
  color: var(--danger);
}

@media (max-width: 760px) {
  .profile-button {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    padding: 4px;
  }

  .profile-button .profile-icon {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .user-dropdown {
    right: -2px;
  }
}

@media (max-width: 380px) {
  .profile-button {
    width: 42px;
    max-width: 42px;
    padding: 4px;
    justify-content: center;
  }
}

/* Floating filters and dark date inputs */
.global-filters.filter-popover {
  position: fixed;
  top: calc(var(--private-fixed-offset) + 14px);
  right: clamp(12px, 4vw, 40px);
  left: auto;
  z-index: 340;
  width: min(430px, calc(100vw - 24px));
  margin: 0;
  border-radius: 22px;
  background: #121821;
  border: 1px solid rgba(31, 41, 51, 0.96);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  overflow: visible;
}

.global-filters.filter-popover .panel-header {
  padding: 16px 16px 8px;
}

.global-filters.filter-popover .panel-body {
  padding: 14px 16px 16px;
}

.global-filters.filter-popover .filters {
  grid-template-columns: 1fr;
  gap: 12px;
}

.global-filters.filter-popover #resetFiltersButton,
.global-filters.filter-popover #closeFiltersButton {
  width: 100%;
  min-height: 44px;
}

.filter-toggle {
  width: auto;
  min-width: 98px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: rgba(18, 24, 33, 0.78);
  border-color: rgba(59, 130, 246, 0.28);
  color: var(--text);
}

.filter-toggle:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.52);
}

input[type="date"] {
  color-scheme: dark;
  min-height: 44px;
  padding: 10px 12px;
  background-color: rgba(11, 15, 20, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
}

input[type="date"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  outline: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.35);
  cursor: pointer;
  opacity: 0.9;
}

@media (max-width: 760px) {
  .global-filters.filter-popover {
    top: calc(var(--private-fixed-offset) + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--private-fixed-offset) - 24px);
    overflow-y: auto;
  }

  .filter-toggle {
    width: auto;
    min-width: 96px;
    justify-self: end;
  }
}

/* Public landing with real EdgeMetrics artwork */
#landingView.landing-view {
  position: relative;
  min-height: 100vh;
  display: block;
  overflow: hidden;
  background: #0B0F14;
}

#landingView .landing-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.82), rgba(11, 15, 20, 0.22));
  border-bottom: 1px solid rgba(31, 41, 51, 0.36);
  backdrop-filter: blur(10px);
}

#landingView .landing-brand .logo-mark {
  width: 34px;
  height: 34px;
}

#landingView .landing-brand strong {
  font-size: 17px;
}

#landingView .hamburger-button {
  display: none;
}

#landingView .landing-main {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
}

.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 18px 44px;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero .landing-cta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: min(42vh, 420px);
}

.hero .landing-cta button {
  min-width: 170px;
  min-height: 48px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

@media (max-width: 760px) {
  #landingView .landing-header {
    min-height: 64px;
    padding: 12px 14px;
  }

  #landingView .landing-brand strong {
    font-size: 15px;
  }

  #landingView .landing-login-button {
    display: inline-flex;
  }

  .hero {
    background-position: center;
    padding: 82px 14px 28px;
  }

  .hero .landing-cta {
    width: min(360px, 100%);
    display: grid;
    margin-top: min(48vh, 430px);
  }

  .hero .landing-cta button {
    width: 100%;
  }
}

/* Resilient CSS-only EdgeMetrics landing */
#landingView.landing-view {
  width: 100%;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(59, 130, 246, 0.28), transparent 28%),
    radial-gradient(circle at 14% 20%, rgba(56, 189, 248, 0.18), transparent 24%),
    radial-gradient(circle at 86% 78%, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(135deg, #05080d 0%, #0B0F14 44%, #07111e 100%);
}

#landingView .landing-header {
  background: rgba(5, 8, 13, 0.74);
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

#landingView .hamburger-button {
  display: inline-grid;
}

#landingView .landing-main {
  width: 100%;
  min-height: 100vh;
}

#landingView .hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  display: grid;
  place-items: center;
  gap: 28px;
  padding: 104px 18px 42px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(59, 130, 246, 0.08) 34.2%, transparent 35% 60%, rgba(56, 189, 248, 0.07) 60.2%, transparent 61%),
    radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.34), transparent 30%),
    radial-gradient(circle at 50% 64%, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.30), rgba(5, 8, 13, 0.92));
}

#landingView .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.65;
}

#landingView .hero::after {
  content: "";
  position: absolute;
  inset: 18% -10% auto -10%;
  height: 52%;
  z-index: 0;
  background:
    linear-gradient(135deg, transparent 8%, rgba(56, 189, 248, 0.28) 8.2%, transparent 8.8% 28%, rgba(59, 130, 246, 0.22) 28.2%, transparent 28.8% 52%, rgba(56, 189, 248, 0.16) 52.2%, transparent 52.8%),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(59, 130, 246, 0.14) 52px 54px, transparent 54px 92px);
  transform: skewY(-9deg);
  opacity: 0.52;
  filter: blur(0.2px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(860px, 100%);
}

.hero-logo {
  width: clamp(86px, 12vw, 132px);
  height: clamp(86px, 12vw, 132px);
  filter: drop-shadow(0 28px 52px rgba(59, 130, 246, 0.34));
}

#landingView .hero h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.58);
}

.hero-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.hero-copy p,
.hero-copy span {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(18px, 3.2vw, 34px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-copy span {
  color: rgba(226, 239, 255, 0.76);
  font-size: clamp(13px, 1.8vw, 19px);
  font-weight: 850;
}

#landingView .hero .landing-cta {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  justify-content: center;
}

#landingView .hero .landing-cta button {
  min-width: 178px;
  min-height: 50px;
}

@media (max-width: 760px) {
  #landingView .landing-header {
    min-height: 66px;
    padding: 12px 14px;
  }

  #landingView .landing-actions {
    gap: 7px;
  }

  #landingView .landing-login-button {
    display: none;
  }

  #landingView .hero {
    min-height: 100vh;
    padding: 92px 14px 30px;
    gap: 22px;
  }

  .hero-content {
    gap: 14px;
  }

  .hero-copy p {
    font-size: clamp(24px, 8vw, 36px);
  }

  .hero-copy span {
    max-width: 320px;
    font-size: 13px;
  }

  #landingView .hero .landing-cta {
    width: min(360px, 100%);
    display: grid;
    gap: 12px;
  }

  #landingView .hero .landing-cta button {
    width: 100%;
  }
}

/* Login security UX */
.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #FFFFFF;
  transform: translateY(-50%);
  box-shadow: none;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.42);
  outline: none;
}

.password-eye {
  width: 19px;
  height: 19px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.password-toggle[aria-pressed="true"] .password-eye {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7a17.8 17.8 0 0 1-3.2 4.1'/%3E%3Cpath d='M9.9 5.3A9.7 9.7 0 0 1 12 5c6.5 0 10 7 10 7a18.4 18.4 0 0 1-2.1 3.1'/%3E%3Cpath d='M4 4l16 16'/%3E%3Cpath d='M10.6 10.6A3 3 0 0 0 13.4 13.4'/%3E%3Cpath d='M6.1 6.1C3.4 8 2 12 2 12s3.5 7 10 7a9.8 9.8 0 0 0 4.2-.9'/%3E%3C/svg%3E");
}

.remember-session {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.remember-session input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.login-panel .google-button {
  min-height: 50px;
  font-weight: 850;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.10)),
    #121821;
  border-color: rgba(59, 130, 246, 0.38);
}

/* EdgeMetrics final brand lock: keep logo, wordmark and landing consistent. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #FFFFFF;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.brand-edge {
  color: #FFFFFF;
}

.brand-metrics,
.accent-edge {
  color: #3B82F6;
}

/* Inputs de fecha */
input[type="date"] {
  color-scheme: dark;
}

/* Icono calendario (Chrome, Edge) */
input[type="date"]::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 6px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  filter: none;
  opacity: 1;
  cursor: pointer;
}

/* Hover mas visible */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

#landingView.landing-view {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0B0F14;
}

#landingView.landing-view::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(59, 130, 246, 0.46), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(135deg, #05070d 0%, #0B0F14 48%, #020409 100%);
}

#landingView.landing-view::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background:
    repeating-radial-gradient(ellipse at -8% 72%, transparent 0 20px, rgba(59, 130, 246, 0.15) 21px 22px, transparent 23px 32px),
    radial-gradient(circle at 86% 76%, rgba(59, 130, 246, 0.26) 1px, transparent 1.8px),
    linear-gradient(128deg, transparent 0 52%, rgba(59, 130, 246, 0.12) 52.2%, transparent 53%),
    linear-gradient(90deg, transparent 0 72%, rgba(59, 130, 246, 0.06) 72.2%, transparent 73%);
  background-size: 100% 100%, 42px 42px, 100% 100%, 100% 100%;
  mask-image: radial-gradient(circle at 50% 54%, black 0 58%, transparent 86%);
}

#landingView .landing-main {
  width: 100%;
  max-width: none;
  flex: 1;
  min-height: calc(100vh - 80px);
  margin: 0;
  padding: 80px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

#landingView .landing-hero,
#landingView .hero {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 80px);
  height: auto;
  margin: 0;
  padding: clamp(26px, 5vh, 52px) clamp(14px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 38px);
  position: relative;
  overflow: visible;
  text-align: center;
  background: transparent;
}

#landingView .hero::before,
#landingView .hero::after,
#landingView .landing-hero::before,
#landingView .landing-hero::after {
  display: none;
}

#landingView .hero-content {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.8vh, 28px);
  padding: 0;
  text-align: center;
}

#landingView .landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#landingView .landing-brand .brand-logo {
  width: 36px;
  height: 36px;
}

#landingView .landing-brand .brand-wordmark {
  font-size: 18px;
}

#landingView .hero-logo.brand-logo {
  width: clamp(98px, 12vw, 156px);
  height: clamp(98px, 12vw, 156px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 42px rgba(59, 130, 246, 0.34));
}

#landingView .hero h1.brand-wordmark {
  display: inline-flex;
  width: auto;
  max-width: none;
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-align: center;
}

.app-logo .brand-logo,
.app-logo-mark.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-logo h1.brand-wordmark {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 850;
}

.public-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-menu-brand .brand-logo {
  width: 34px;
  height: 34px;
}

.public-menu-header .brand-wordmark,
.modal-header .brand-wordmark {
  font-size: 18px;
}

.login-panel::before {
  display: none;
}

.login-brand-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.login-brand-logo {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 20px 42px rgba(59, 130, 246, 0.30));
}

.login-wordmark {
  margin: 0;
  font-size: clamp(36px, 7vw, 56px);
}

.login-panel #loginTitle {
  max-width: none;
  margin: 2px 0 0;
  color: #FFFFFF;
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  #landingView .landing-brand .brand-wordmark {
    display: none;
  }

  #landingView .landing-main {
    min-height: calc(100vh - 66px);
    padding-top: 66px;
  }

  #landingView .landing-hero,
  #landingView .hero {
    min-height: calc(100vh - 66px);
    padding: 24px 14px 28px;
  }

  #landingView .hero h1.brand-wordmark {
    font-size: clamp(44px, 15vw, 68px);
  }

  .login-brand-logo {
    width: 64px;
    height: 64px;
  }

  .login-wordmark {
    font-size: clamp(34px, 12vw, 48px);
  }

  .login-panel #loginTitle {
    font-size: clamp(18px, 5.2vw, 24px);
  }
}

/* Unified EdgeMetrics brand system */
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #FFFFFF;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.brand-edge {
  color: #FFFFFF;
}

.brand-metrics,
.accent-edge {
  color: #3B82F6;
}

#landingView .landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#landingView .landing-brand .brand-logo {
  width: 36px;
  height: 36px;
}

#landingView .landing-brand .brand-wordmark {
  font-size: 18px;
}

#landingView .hero-logo.brand-logo,
#landingView .hero-logo.logo-mark {
  width: clamp(98px, 12vw, 156px);
  height: clamp(98px, 12vw, 156px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 42px rgba(59, 130, 246, 0.34));
}

#landingView .hero h1.brand-wordmark {
  display: inline-flex;
  width: auto;
  max-width: none;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 850;
  letter-spacing: -0.055em;
}

.app-logo .brand-logo,
.app-logo-mark.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-logo h1.brand-wordmark {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 850;
}

.login-panel::before {
  display: none;
}

.login-brand-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.login-brand-logo {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 20px 42px rgba(59, 130, 246, 0.30));
}

.login-wordmark {
  margin: 0;
  font-size: clamp(36px, 7vw, 56px);
}

.login-panel #loginTitle {
  max-width: none;
  margin: 2px 0 0;
  color: #FFFFFF;
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.public-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-menu-brand .brand-logo {
  width: 34px;
  height: 34px;
}

.public-menu-header .brand-wordmark,
.modal-header .brand-wordmark {
  font-size: 18px;
}

@media (max-width: 760px) {
  #landingView .landing-brand .brand-wordmark {
    display: none;
  }

  #landingView .hero h1.brand-wordmark {
    font-size: clamp(44px, 15vw, 68px);
  }

  .login-brand-logo {
    width: 64px;
    height: 64px;
  }

  .login-wordmark {
    font-size: clamp(34px, 12vw, 48px);
  }

  .login-panel #loginTitle {
    font-size: clamp(18px, 5.2vw, 24px);
  }
}

/* Landing emergency layout fix: one full-screen surface, never split. */
.landing-view,
#landingView.landing-view {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0B0F14;
}

.landing-view::before,
#landingView.landing-view::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(59, 130, 246, 0.46), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(135deg, #05070d 0%, #0B0F14 48%, #020409 100%);
}

.landing-view::after,
#landingView.landing-view::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background:
    repeating-radial-gradient(ellipse at -8% 72%, transparent 0 20px, rgba(59, 130, 246, 0.15) 21px 22px, transparent 23px 32px),
    radial-gradient(circle at 86% 76%, rgba(59, 130, 246, 0.26) 1px, transparent 1.8px),
    linear-gradient(128deg, transparent 0 52%, rgba(59, 130, 246, 0.12) 52.2%, transparent 53%),
    linear-gradient(90deg, transparent 0 72%, rgba(59, 130, 246, 0.06) 72.2%, transparent 73%);
  background-size: 100% 100%, 42px 42px, 100% 100%, 100% 100%;
  mask-image: radial-gradient(circle at 50% 54%, black 0 58%, transparent 86%);
}

.landing-header,
#landingView .landing-header {
  flex: 0 0 auto;
}

.landing-main,
#landingView .landing-main {
  width: 100%;
  max-width: none;
  flex: 1;
  min-height: calc(100vh - 80px);
  margin: 0;
  padding: 80px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

.landing-hero,
#landingView .landing-hero,
#landingView .hero {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 80px);
  height: auto;
  margin: 0;
  padding: clamp(26px, 5vh, 52px) clamp(14px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 38px);
  position: relative;
  overflow: visible;
  text-align: center;
  background: transparent;
}

#landingView .hero::before,
#landingView .hero::after,
.landing-hero::before,
.landing-hero::after {
  display: none;
}

#landingView .hero-content {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.8vh, 28px);
  padding: 0;
  text-align: center;
}

#landingView .hero h1 {
  width: 100%;
  max-width: none;
  text-align: center;
}

#landingView .hero-copy,
#landingView .hero .landing-cta {
  width: 100%;
  max-width: none;
  justify-content: center;
  justify-items: center;
  text-align: center;
}

@media (max-width: 760px) {
  .landing-main,
  #landingView .landing-main {
    min-height: calc(100vh - 66px);
    padding-top: 66px;
  }

  .landing-hero,
  #landingView .landing-hero,
  #landingView .hero {
    min-height: calc(100vh - 66px);
    padding: 24px 14px 28px;
  }
}

/* Absolute final single-screen landing override */
#landingView.landing-view {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 7%, rgba(59, 130, 246, 0.34), transparent 29%),
    radial-gradient(circle at 82% 82%, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(145deg, #03060c 0%, #0B0F14 52%, #020409 100%);
}

#landingView .landing-main {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
}

#landingView .hero {
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 36px);
  padding: 96px 18px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(59, 130, 246, 0.25), transparent 33%),
    linear-gradient(120deg, transparent 0 31%, rgba(59, 130, 246, 0.09) 31.2%, transparent 32% 58%, rgba(56, 189, 248, 0.06) 58.2%, transparent 59%),
    linear-gradient(180deg, rgba(2, 4, 9, 0.02), rgba(2, 4, 9, 0.86));
}

#landingView .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-radial-gradient(ellipse at 0% 64%, transparent 0 22px, rgba(59, 130, 246, 0.15) 23px 24px, transparent 25px 35px),
    radial-gradient(circle at 86% 72%, rgba(59, 130, 246, 0.20) 1px, transparent 2px),
    linear-gradient(130deg, transparent 0 45%, rgba(59, 130, 246, 0.08) 45.2%, transparent 46%);
  background-size: 100% 100%, 48px 48px, 100% 100%;
  opacity: 0.62;
  mask-image: radial-gradient(circle at 50% 54%, black, transparent 82%);
}

#landingView .hero::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: 8%;
  width: 44vw;
  height: 44vh;
  z-index: 0;
  opacity: 0.16;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(59, 130, 246, 0.42) 42px 48px, transparent 48px 58px),
    linear-gradient(100deg, transparent 0 8%, rgba(59, 130, 246, 0.45) 8.3% 10%, transparent 10.3% 20%, rgba(59, 130, 246, 0.5) 20.3% 23%, transparent 23.3%);
  transform: skewX(-12deg);
}

#landingView .hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 24px);
  padding: 0;
}

#landingView .hero-logo {
  width: clamp(96px, 12vw, 150px);
  height: clamp(96px, 12vw, 150px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 42px rgba(59, 130, 246, 0.34));
}

#landingView .hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#landingView .hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow: 0 20px 52px rgba(0, 0, 0, 0.58);
}

#landingView .edge-word {
  color: #FFFFFF;
}

#landingView .metrics-word {
  color: #3B82F6;
}

#landingView .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#landingView .hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.23em;
  line-height: 1.25;
  text-transform: uppercase;
}

#landingView .hero-copy .brand-edge {
  color: #3B82F6;
}

#landingView .hero-copy span {
  color: rgba(231, 242, 243, 0.74);
  font-size: clamp(13px, 1.45vw, 19px);
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

#landingView .hero .landing-cta {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

#landingView .hero .landing-cta button {
  min-width: 172px;
  min-height: 48px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  #landingView .hero {
    min-height: 100vh;
    height: auto;
    padding: 86px 14px 28px;
  }

  #landingView .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  #landingView .hero-copy p {
    max-width: 340px;
    font-size: clamp(17px, 5.4vw, 26px);
    letter-spacing: 0.12em;
  }

  #landingView .hero-copy span {
    max-width: 320px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  #landingView .hero .landing-cta {
    width: min(360px, 100%);
    display: grid;
    gap: 12px;
  }

  #landingView .hero .landing-cta button {
    width: 100%;
  }
}

/* Definitive stable landing override */
#landingView.landing-view {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 7%, rgba(59, 130, 246, 0.34), transparent 29%),
    radial-gradient(circle at 82% 82%, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(145deg, #03060c 0%, #0B0F14 52%, #020409 100%);
}

#landingView .landing-main {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
}

#landingView .hero {
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 36px);
  padding: 96px 18px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(59, 130, 246, 0.25), transparent 33%),
    linear-gradient(120deg, transparent 0 31%, rgba(59, 130, 246, 0.09) 31.2%, transparent 32% 58%, rgba(56, 189, 248, 0.06) 58.2%, transparent 59%),
    linear-gradient(180deg, rgba(2, 4, 9, 0.02), rgba(2, 4, 9, 0.86));
}

#landingView .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-radial-gradient(ellipse at 0% 64%, transparent 0 22px, rgba(59, 130, 246, 0.15) 23px 24px, transparent 25px 35px),
    radial-gradient(circle at 86% 72%, rgba(59, 130, 246, 0.20) 1px, transparent 2px),
    linear-gradient(130deg, transparent 0 45%, rgba(59, 130, 246, 0.08) 45.2%, transparent 46%);
  background-size: 100% 100%, 48px 48px, 100% 100%;
  opacity: 0.62;
  mask-image: radial-gradient(circle at 50% 54%, black, transparent 82%);
}

#landingView .hero::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: 8%;
  width: 44vw;
  height: 44vh;
  z-index: 0;
  opacity: 0.16;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(59, 130, 246, 0.42) 42px 48px, transparent 48px 58px),
    linear-gradient(100deg, transparent 0 8%, rgba(59, 130, 246, 0.45) 8.3% 10%, transparent 10.3% 20%, rgba(59, 130, 246, 0.5) 20.3% 23%, transparent 23.3%);
  transform: skewX(-12deg);
}

#landingView .hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 24px);
  padding: 0;
}

#landingView .hero-logo {
  width: clamp(96px, 12vw, 150px);
  height: clamp(96px, 12vw, 150px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 42px rgba(59, 130, 246, 0.34));
}

#landingView .hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#landingView .hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow: 0 20px 52px rgba(0, 0, 0, 0.58);
}

#landingView .edge-word {
  color: #FFFFFF;
}

#landingView .metrics-word {
  color: #3B82F6;
}

#landingView .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#landingView .hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.23em;
  line-height: 1.25;
  text-transform: uppercase;
}

#landingView .hero-copy .brand-edge {
  color: #3B82F6;
}

#landingView .hero-copy span {
  color: rgba(231, 242, 243, 0.74);
  font-size: clamp(13px, 1.45vw, 19px);
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

#landingView .hero .landing-cta {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

#landingView .hero .landing-cta button {
  min-width: 172px;
  min-height: 48px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  #landingView .hero {
    min-height: 100vh;
    height: auto;
    padding: 86px 14px 28px;
  }

  #landingView .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  #landingView .hero-copy p {
    max-width: 340px;
    font-size: clamp(17px, 5.4vw, 26px);
    letter-spacing: 0.12em;
  }

  #landingView .hero-copy span {
    max-width: 320px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  #landingView .hero .landing-cta {
    width: min(360px, 100%);
    display: grid;
    gap: 12px;
  }

  #landingView .hero .landing-cta button {
    width: 100%;
  }
}

/* Stable single-screen landing reset */
#landingView.landing-view {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 7%, rgba(59, 130, 246, 0.34), transparent 29%),
    radial-gradient(circle at 82% 82%, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(145deg, #03060c 0%, #0B0F14 52%, #020409 100%);
}

#landingView .landing-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.78), rgba(3, 6, 12, 0.18));
  border-bottom: 1px solid rgba(59, 130, 246, 0.16);
  backdrop-filter: blur(12px);
}

#landingView .landing-brand,
#landingView .landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#landingView .landing-brand .logo-mark,
#landingView .landing-brand .logo-mark img {
  width: 34px;
  height: 34px;
}

#landingView .landing-main {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
}

#landingView .hero {
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 36px);
  padding: 96px 18px 34px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(59, 130, 246, 0.25), transparent 33%),
    linear-gradient(120deg, transparent 0 31%, rgba(59, 130, 246, 0.09) 31.2%, transparent 32% 58%, rgba(56, 189, 248, 0.06) 58.2%, transparent 59%),
    linear-gradient(180deg, rgba(2, 4, 9, 0.02), rgba(2, 4, 9, 0.86));
}

#landingView .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-radial-gradient(ellipse at 0% 64%, transparent 0 22px, rgba(59, 130, 246, 0.15) 23px 24px, transparent 25px 35px),
    radial-gradient(circle at 86% 72%, rgba(59, 130, 246, 0.20) 1px, transparent 2px),
    linear-gradient(130deg, transparent 0 45%, rgba(59, 130, 246, 0.08) 45.2%, transparent 46%);
  background-size: 100% 100%, 48px 48px, 100% 100%;
  opacity: 0.62;
  mask-image: radial-gradient(circle at 50% 54%, black, transparent 82%);
}

#landingView .hero::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: 8%;
  width: 44vw;
  height: 44vh;
  z-index: 0;
  opacity: 0.16;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(59, 130, 246, 0.42) 42px 48px, transparent 48px 58px),
    linear-gradient(100deg, transparent 0 8%, rgba(59, 130, 246, 0.45) 8.3% 10%, transparent 10.3% 20%, rgba(59, 130, 246, 0.5) 20.3% 23%, transparent 23.3%);
  transform: skewX(-12deg);
}

#landingView .hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 24px);
  padding: 0;
}

#landingView .hero-logo {
  width: clamp(96px, 12vw, 150px);
  height: clamp(96px, 12vw, 150px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 42px rgba(59, 130, 246, 0.34));
}

#landingView .hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#landingView .hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow: 0 20px 52px rgba(0, 0, 0, 0.58);
}

#landingView .edge-word {
  color: #FFFFFF;
}

#landingView .metrics-word {
  color: #3B82F6;
}

#landingView .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#landingView .hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.23em;
  line-height: 1.25;
  text-transform: uppercase;
}

#landingView .hero-copy .brand-edge {
  color: #3B82F6;
}

#landingView .hero-copy span {
  color: rgba(231, 242, 243, 0.74);
  font-size: clamp(13px, 1.45vw, 19px);
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

#landingView .hero .landing-cta {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

#landingView .hero .landing-cta button {
  min-width: 172px;
  min-height: 48px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  #landingView .landing-header {
    min-height: 66px;
    padding: 12px 14px;
  }

  #landingView .landing-brand strong,
  #landingView .landing-login-button {
    display: none;
  }

  #landingView .landing-actions {
    gap: 7px;
  }

  #landingView .hero {
    min-height: 100vh;
    height: auto;
    padding: 86px 14px 28px;
  }

  #landingView .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  #landingView .hero-copy p {
    max-width: 340px;
    font-size: clamp(17px, 5.4vw, 26px);
    letter-spacing: 0.12em;
  }

  #landingView .hero-copy span {
    max-width: 320px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  #landingView .hero .landing-cta {
    width: min(360px, 100%);
    display: grid;
    gap: 12px;
  }

  #landingView .hero .landing-cta button {
    width: 100%;
  }
}

/* Premium EdgeMetrics start/login redesign */
#landingView.landing-view,
.login-view {
  background:
    radial-gradient(circle at 50% 44%, rgba(59, 130, 246, 0.26), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 86% 80%, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(145deg, #05070c 0%, #0B0F14 48%, #071522 100%);
}

#landingView .hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(59, 130, 246, 0.26), transparent 34%),
    linear-gradient(120deg, transparent 0 23%, rgba(59, 130, 246, 0.08) 23.2%, transparent 24% 46%, rgba(56, 189, 248, 0.07) 46.2%, transparent 47%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.12), rgba(5, 7, 12, 0.88));
}

#landingView .hero::before {
  background:
    radial-gradient(circle, rgba(59, 130, 246, 0.30) 1px, transparent 1.6px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px);
  background-size: 74px 74px, 82px 82px, 82px 82px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
  opacity: 0.72;
}

#landingView .hero::after {
  inset: 16% -18% auto -18%;
  height: 58%;
  background:
    linear-gradient(138deg, transparent 7%, rgba(59, 130, 246, 0.34) 7.2%, transparent 7.8% 26%, rgba(56, 189, 248, 0.24) 26.2%, transparent 26.8% 48%, rgba(59, 130, 246, 0.18) 48.2%, transparent 48.8% 72%, rgba(56, 189, 248, 0.12) 72.2%, transparent 72.8%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(59, 130, 246, 0.14) 46px 48px, transparent 48px 88px);
  transform: skewY(-10deg);
  opacity: 0.58;
}

.hero-content {
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
}

.hero-logo {
  width: clamp(96px, 12vw, 148px);
  height: clamp(96px, 12vw, 148px);
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 34px;
  background: rgba(18, 24, 33, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 34px 80px rgba(59, 130, 246, 0.24);
}

#landingView .hero h1 {
  font-size: clamp(50px, 8vw, 104px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-copy {
  gap: 10px;
}

.hero-copy p {
  max-width: 900px;
  color: #FFFFFF;
  font-size: clamp(24px, 3.45vw, 42px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: none;
}

.hero-copy span {
  color: #AAB4C0;
  font-size: clamp(15px, 1.75vw, 21px);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
}

#landingView .hero .landing-cta {
  gap: 12px;
}

#landingView .hero .landing-cta button,
.login-panel button {
  border-radius: 999px;
}

#landingView .landing-header {
  background: rgba(11, 15, 20, 0.72);
  border-bottom-color: rgba(31, 41, 51, 0.72);
}

.login-view {
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-backdrop {
  background:
    radial-gradient(circle at 50% 28%, rgba(59, 130, 246, 0.22), transparent 34%),
    rgba(5, 7, 12, 0.66);
}

.login-panel {
  width: min(480px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(31, 41, 51, 0.96);
  border-radius: 28px;
  background: rgba(18, 24, 33, 0.85);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 80px rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(18px);
}

.login-panel::before {
  display: none;
}

.login-panel h1 {
  max-width: 13ch;
  color: #FFFFFF;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.login-panel .brand-subtitle {
  color: #AAB4C0;
  font-weight: 600;
}

@media (max-width: 760px) {
  .hero-content {
    padding: 14px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 26px;
  }

  #landingView .hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hero-copy p {
    font-size: clamp(23px, 7.6vw, 34px);
  }

  .hero-copy span {
    max-width: 320px;
    font-size: 14px;
  }

  .login-view {
    padding: 14px;
  }

  .login-panel {
    border-radius: 24px;
  }
}

/* Final landing correction inspired by the corporate reference */
#landingView.landing-view {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0B0F14;
}

#landingView.landing-view::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(59, 130, 246, 0.46), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(135deg, #05070d 0%, #0B0F14 48%, #020409 100%);
}

#landingView.landing-view::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background:
    repeating-radial-gradient(ellipse at -8% 72%, transparent 0 20px, rgba(59, 130, 246, 0.15) 21px 22px, transparent 23px 32px),
    radial-gradient(circle at 86% 76%, rgba(59, 130, 246, 0.26) 1px, transparent 1.8px),
    linear-gradient(128deg, transparent 0 52%, rgba(59, 130, 246, 0.12) 52.2%, transparent 53%),
    linear-gradient(90deg, transparent 0 72%, rgba(59, 130, 246, 0.06) 72.2%, transparent 73%);
  background-size: 100% 100%, 42px 42px, 100% 100%, 100% 100%;
  mask-image: radial-gradient(circle at 50% 54%, black 0 58%, transparent 86%);
}

#landingView .landing-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 42px);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.76), rgba(5, 7, 13, 0.18));
  border-bottom: 1px solid rgba(59, 130, 246, 0.16);
}

#landingView .landing-brand .logo-mark,
#landingView .landing-brand .logo-mark img {
  width: 36px;
  height: 36px;
}

#landingView .landing-brand .brand-logo,
#landingView .landing-brand .brand-logo img {
  width: 36px;
  height: 36px;
}

#landingView .landing-brand .brand-wordmark {
  font-size: 18px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#landingView .landing-main {
  width: 100%;
  max-width: none;
  flex: 1;
  min-height: calc(100vh - 80px);
  margin: 0;
  padding: 80px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

#landingView .hero {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 80px);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 38px);
  padding: clamp(26px, 5vh, 52px) clamp(14px, 4vw, 48px);
  position: relative;
  overflow: visible;
  text-align: center;
  background: transparent;
}

#landingView .hero::before {
  display: none;
}

#landingView .hero::after {
  display: none;
}

#landingView .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vh, 26px);
  padding: 0;
  text-align: center;
}

#landingView .hero-logo {
  width: clamp(98px, 12vw, 156px);
  height: clamp(98px, 12vw, 156px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 42px rgba(59, 130, 246, 0.34));
}

#landingView .hero-logo.brand-logo {
  width: clamp(98px, 12vw, 156px);
  height: clamp(98px, 12vw, 156px);
}

#landingView .hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#landingView .hero h1 {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-align: center;
  text-shadow: 0 20px 52px rgba(0, 0, 0, 0.58);
}

#landingView .hero h1.brand-wordmark {
  display: inline-flex;
  width: auto;
  max-width: none;
  color: #FFFFFF;
  font-weight: 850;
}

#landingView .edge-word {
  color: #FFFFFF;
}

#landingView .metrics-word {
  color: #3B82F6;
}

.brand-edge {
  color: #FFFFFF;
}

.brand-metrics,
.accent-edge {
  color: #3B82F6;
}

#landingView .hero-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
}

#landingView .hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1.25;
  text-transform: uppercase;
}

#landingView .hero-copy .brand-edge {
  color: #3B82F6;
}

#landingView .hero-copy span {
  color: rgba(231, 242, 243, 0.74);
  font-size: clamp(13px, 1.45vw, 19px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#landingView .hero .landing-cta {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

#landingView .hero .landing-cta button {
  min-width: 172px;
  min-height: 48px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  #landingView .landing-header {
    min-height: 66px;
    padding: 12px 14px;
  }

  #landingView .landing-brand strong {
    display: none;
  }

  #landingView .landing-actions {
    gap: 7px;
  }

  #landingView .landing-login-button {
    display: none;
  }

  #landingView .landing-main {
    min-height: calc(100vh - 66px);
    padding-top: 66px;
  }

  #landingView .hero {
    min-height: calc(100vh - 66px);
    height: auto;
    padding: 24px 14px 28px;
  }

  #landingView .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  #landingView .hero-copy p {
    max-width: 340px;
    font-size: clamp(17px, 5.4vw, 26px);
    letter-spacing: 0.12em;
  }

  #landingView .hero-copy span {
    max-width: 320px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  #landingView .hero .landing-cta {
    width: min(360px, 100%);
    display: grid;
    gap: 12px;
  }

  #landingView .hero .landing-cta button {
    width: 100%;
  }
}
