:root {
  color-scheme: dark;
  --bg: #111722;
  --panel: #182231;
  --panel-soft: #202c3d;
  --text: #eef4ff;
  --muted: #9fb0c7;
  --line: rgba(148, 163, 184, 0.24);
  --green: #7fe2a0;
  --red: #ff9c91;
  --blue: #62b6ff;
  --amber: #ffd58a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(17, 23, 34, 0.94);
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-btn,
.primary-btn,
.secondary-btn,
button,
select,
input {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  border-radius: 6px;
  font: inherit;
}

.icon-btn {
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn {
  height: 38px;
  padding: 0 14px;
  background: #4d7cfe;
  color: #fff;
  border-color: var(--blue);
  cursor: pointer;
  font-weight: 700;
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.secondary-btn {
  height: 38px;
  padding: 0 12px;
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--line);
  cursor: pointer;
  font-weight: 700;
}

.secondary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.import-result {
  max-height: 112px;
  overflow: auto;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 128, 61, 0.18);
  color: var(--green);
  font-size: 13px;
  line-height: 1.45;
}

.import-result.error {
  background: rgba(180, 35, 24, 0.18);
  color: var(--red);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  background: #141c28;
}

.tab {
  height: 34px;
  padding: 0 14px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.filters {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #141c28;
}

.filters.compact {
  grid-template-columns: minmax(160px, 320px);
}

.filters.user-tools {
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.6fr) minmax(120px, 0.6fr) minmax(220px, 1.4fr) minmax(120px, 0.6fr);
}

.bulk-bar {
  position: sticky;
  top: 72px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(180px, 260px) auto auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(13, 20, 31, 0.96);
  border-bottom: 1px solid rgba(88, 191, 255, 0.28);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.bulk-bar[hidden] {
  display: none;
}

.bulk-bar strong {
  color: #eaf2ff;
  white-space: nowrap;
}

.bulk-bar select {
  height: 36px;
}

.bulk-gambling-btn {
  border-color: rgba(127, 226, 160, 0.45);
  color: var(--green);
}

select,
input {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
}

.multi-dropdown {
  position: relative;
  min-width: 0;
}

.multi-button {
  position: relative;
  width: 100%;
  height: 38px;
  padding: 0 30px 0 10px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--panel-soft);
  border-color: var(--line);
}

.multi-button::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transform: translateY(-40%);
}

.multi-dropdown.has-selection .multi-button {
  border-color: rgba(98, 182, 255, 0.55);
  color: var(--blue);
  font-weight: 700;
}

.multi-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 5;
  display: none;
  width: max-content;
  min-width: 100%;
  max-width: 360px;
  max-height: 280px;
  padding: 6px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.multi-menu-tools {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  margin-bottom: 6px;
  padding-bottom: 6px;
  background: var(--panel);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.multi-menu-tools.with-search {
  align-items: center;
}

.multi-search {
  width: 230px;
  height: 34px;
  background: var(--panel-soft);
  border-color: var(--line);
}

.multi-clear {
  min-width: max-content;
  height: 34px;
  padding: 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.32);
}

.multi-clear:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.2);
}

.multi-clear:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.45;
}

.multi-dropdown.open .multi-menu {
  display: block;
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 7px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.multi-option:hover {
  background: var(--panel-soft);
}

.multi-option input {
  width: 14px;
  height: 14px;
  min-width: 14px;
  padding: 0;
  margin: 0;
  align-self: center;
}

.multi-dropdown .multi-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  flex: 0 0 14px;
  margin: 0;
}

.multi-option span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-option > span {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.approach-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  line-height: 1.2;
}

.approach-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  object-fit: contain;
  vertical-align: middle;
  background: #f7f3ef;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.22);
  filter: none;
}

.badge .approach-icon,
.approach-with-icon.compact .approach-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  padding: 0;
  border-radius: 6px;
}

.multi-option > span,
.multi-option .approach-with-icon {
  min-width: 0;
}

.multi-option .approach-with-icon {
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 18px 20px 32px;
}

.load-more {
  padding: 0 20px 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.card.selected {
  border-color: #67c7ff;
  box-shadow: 0 0 0 3px rgba(88, 191, 255, 0.22);
}

.card-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgba(13, 20, 31, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.card-select input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  accent-color: #58bfff;
}

.card.status-trash {
  border-color: rgba(220, 38, 38, 0.6);
  opacity: 0.82;
}

.thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel-soft);
}

.thumb-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-body {
  padding: 12px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.video-id {
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.uuid-row {
  min-height: 28px;
  padding: 6px 7px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel-soft);
  font-family: Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(77, 124, 254, 0.18);
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}

.badge:has(.approach-with-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 7px;
  line-height: 1;
}

.badge .approach-with-icon {
  align-items: center;
  height: 24px;
  line-height: 1;
}

.badge .approach-with-icon > span {
  display: flex;
  align-items: center;
  height: 24px;
}

.status-badge.trash {
  background: rgba(220, 38, 38, 0.14);
  color: var(--red);
}

.status-badge.gambling {
  background: rgba(22, 163, 74, 0.14);
  color: var(--green);
}

.public-row {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin: -2px 0 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.public-row.published {
  background: rgba(21, 128, 61, 0.18);
  color: var(--green);
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.stat {
  padding: 7px;
  border-radius: 6px;
  background: var(--panel-soft);
  font-size: 12px;
}

.stat strong {
  display: block;
  font-size: 15px;
}

.small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.geo-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}

.geo-add-input {
  height: 30px;
  min-width: 0;
  padding: 0 8px;
  text-transform: uppercase;
  font-size: 12px;
}

.geo-add-form button {
  height: 30px;
  padding: 0 9px;
  border-color: rgba(98, 182, 255, 0.38);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.actions,
.selects {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.actions {
  grid-template-columns: repeat(2, 1fr);
}

button {
  height: 34px;
  cursor: pointer;
}

button.gambling {
  color: var(--green);
}

button.trash {
  color: var(--red);
}

.actions button.active-choice {
  border-color: currentColor;
  background: rgba(148, 163, 184, 0.16);
  font-weight: 800;
}

.selects {
  grid-template-columns: 1fr 1fr;
}

.public-actions {
  display: grid;
  margin-top: 10px;
}

button.publish {
  border-color: #9ec7ad;
  color: var(--green);
  font-weight: 700;
}

button.unpublish {
  border-color: #e4b5ad;
  color: var(--red);
  font-weight: 700;
}

select option {
  background: var(--panel);
  color: var(--text);
}

button.gambling,
button.trash,
button.publish,
button.unpublish {
  background: var(--panel-soft);
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.table-wrap {
  padding: 18px 20px 32px;
  overflow-x: auto;
}

.dashboard-view {
  padding: 18px 20px 32px;
}

.compact-overview {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin-bottom: 20px;
}

.section-title {
  margin: 22px 0 12px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.download-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel-soft);
}

.download-card-body {
  padding: 12px;
}

.flush-table {
  padding: 0;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

.stats-table th {
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 700;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.sort-btn span {
  display: inline-flex;
  width: 14px;
  color: var(--muted);
}

.sort-btn.active {
  color: var(--blue);
}

.sort-btn.active span {
  color: var(--blue);
}

.stats-table tr.total-row td {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.stats-table tr.group-gap td {
  border-top: 2px solid #b8c1cf;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.approved,
.status-pill.ready_external,
.status-pill.plan-solo,
.status-pill.plan-team {
  background: rgba(21, 128, 61, 0.18);
  color: var(--green);
}

.status-pill.blocked {
  background: rgba(180, 35, 24, 0.18);
  color: var(--red);
}

.status-pill.pending,
.status-pill.plan-none {
  background: rgba(161, 92, 7, 0.18);
  color: var(--amber);
}

.users-table tr.inactive-user td {
  opacity: 0.74;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-team-details {
  min-width: 190px;
  color: #dce9fb;
}

.admin-team-details summary {
  cursor: pointer;
  color: #67c7ff;
  font-weight: 900;
}

.team-member-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(11, 18, 32, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 7px;
}

.team-member-line,
.team-member-of {
  display: grid;
  gap: 2px;
}

.team-member-line span,
.team-member-of strong {
  color: #eef5ff;
  font-weight: 800;
  word-break: break-word;
}

.team-member-line em,
.team-member-of em,
.team-member-of span {
  color: #9fb0c7;
  font-size: 12px;
  font-style: normal;
}

.team-member-of em {
  color: #7fe2a0;
}

.team-member-of em:last-child {
  width: fit-content;
}

.muted-line {
  color: #9fb0c7;
}

.row-actions button {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.row-actions button.active-choice {
  border-color: rgba(98, 182, 255, 0.75);
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 900px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-bar {
    top: 64px;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .filters,
  .grid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .bulk-bar {
    grid-template-columns: 1fr;
  }
}

.server-admin {
  background: #111722;
  color: #eef4ff;
}

.server-admin .tab,
.server-admin .secondary-btn,
.server-admin select,
.server-admin input,
.server-admin button {
  color: #18202a;
}

.admin-shell-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(17, 23, 34, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-shell-header h1 {
  color: #fff;
}

.admin-shell-header p,
.server-admin p {
  color: #9fb0c7;
}

.admin-shell {
  padding: 20px 22px 40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.overview-grid.compact-overview {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.overview-card {
  min-height: 112px;
  padding: 16px;
  background: #182231;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
}

.overview-card span,
.overview-card small {
  display: block;
  color: #9fb0c7;
  font-size: 12px;
}

.overview-card strong {
  display: block;
  margin: 12px 0 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.admin-tabs {
  padding: 0;
  margin-bottom: 0;
  background: transparent;
}

.admin-tabs .tab {
  background: transparent;
  color: #9fb0c7;
}

.admin-tabs .tab.active {
  background: #fff;
  color: #18202a;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.admin-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.admin-panel-head select {
  width: 220px;
}

.admin-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.server-admin .admin-public-card {
  background: #182231;
  color: #eef4ff;
  border-color: rgba(96, 165, 250, 0.22);
}

.server-admin .admin-public-card.inactive {
  opacity: 0.78;
}

.server-admin .admin-public-card .thumb-link {
  background: #222d3e;
}

.server-admin .admin-public-card .video-id {
  color: #f8fbff;
}

.server-admin .admin-public-card .badge {
  background: rgba(77, 124, 254, 0.18);
  color: #8fb6ff;
}

.server-admin .admin-public-card .public-row {
  background: #202c3d;
  color: #9fb0c7;
}

.server-admin .admin-public-card .public-row.published {
  background: rgba(21, 128, 61, 0.18);
  color: #7fe2a0;
}

.server-admin .admin-public-card .small {
  color: #b8c7dc;
}

.server-admin .admin-public-card .stat {
  background: #202c3d;
  color: #cbd7e7;
}

.server-admin .admin-public-card .stat strong {
  color: #fff;
}

.server-admin .admin-public-card button {
  background: #202c3d;
  border-color: rgba(148, 163, 184, 0.28);
  color: #dbe8fa;
}

.server-admin .admin-public-card select {
  background: #202c3d;
  border-color: rgba(148, 163, 184, 0.28);
  color: #dbe8fa;
}

.server-admin .admin-public-card button.gambling {
  color: #7fe2a0;
}

.server-admin .admin-public-card button.trash,
.server-admin .admin-public-card button.unpublish {
  color: #ff9c91;
}

.server-admin .admin-public-card button.publish {
  border-color: rgba(127, 226, 160, 0.55);
  color: #7fe2a0;
}

.admin-download-count {
  margin-top: 8px;
  text-align: center;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  background: #fff;
  color: #18202a;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.compact-link {
  margin-top: 10px;
}

.admin-table-wrap {
  padding: 0;
}

.mono-cell {
  font-family: Consolas, monospace;
}

.ua-cell {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 12px;
}

.log-status.blocked {
  background: #fff1f0;
  color: var(--red);
}

.log-status.ready_external {
  background: #ecfdf3;
  color: var(--green);
}

.log-status.pending,
.log-status.unknown {
  background: #fff7e6;
  color: var(--amber);
}

.log-status.approved {
  background: #ecfdf3;
  color: var(--green);
}

.log-status.blocked {
  background: #fff1f0;
  color: var(--red);
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(76, 139, 255, 0.18), transparent 26%),
    #0d141f;
  color: #eaf2ff;
}

.auth-card {
  width: min(420px, calc(100vw - 32px));
  padding: 34px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.auth-logo {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: url("/static/avs-logo-mark.svg") center / contain no-repeat;
  border-radius: 999px;
  font-size: 0;
}

.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 26px;
}

.auth-card p {
  margin: 8px 0 24px;
  text-align: center;
  color: #a9b8cc;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #cbd8ea;
  font-weight: 700;
}

.auth-form input {
  height: 44px;
  padding: 0 12px;
  background: #202c3d;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 7px;
  color: #fff;
  font-size: 16px;
}

.auth-form button {
  height: 46px;
  margin-top: 8px;
  background: linear-gradient(135deg, #4bbdff, #685bff);
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-message {
  min-height: 20px;
  color: #9fb0c7;
  text-align: center;
}

.auth-message.error {
  color: #ff9c91;
}

.auth-bottom {
  margin: 18px 0 0;
  text-align: center;
}

.auth-bottom a {
  color: #67c7ff;
  font-weight: 800;
}

.link-button {
  padding: 0;
  color: #67c7ff;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.public-page {
  min-height: 100vh;
  margin: 0;
  background: #0d141f;
  color: #eaf2ff;
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(13, 20, 31, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.public-brand span {
  width: 42px;
  height: 42px;
  display: block;
  background: url("/static/avs-logo-mark.svg") center / contain no-repeat;
  border-radius: 999px;
  font-size: 0;
  flex: 0 0 auto;
}

.public-brand strong {
  font-size: 18px;
}

.public-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.public-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.public-nav a,
.public-user a {
  color: #c9d8ee;
  font-weight: 700;
  text-decoration: none;
}

.public-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #a9b8cc;
  min-width: 0;
}

.public-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: linear-gradient(135deg, #4bbdff, #685bff);
  border-radius: 7px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.public-link {
  background: #172233;
  color: #dbe8fa;
  border-color: rgba(148, 163, 184, 0.25);
}

.public-main {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.public-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 28px;
}

.public-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
}

.public-hero p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #a9b8cc;
  font-size: 18px;
}

.access-box {
  width: min(360px, 100%);
  padding: 16px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
}

.access-box strong,
.access-box span {
  display: block;
}

.access-box span {
  margin-top: 5px;
  color: #9fb0c7;
}


.favorites-page .public-filters {
  display: none;
}

.public-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  padding: 14px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.public-filters select,
.public-filters input {
  min-height: 40px;
  background: #202c3d;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 7px;
  color: #fff;
  padding: 0 11px;
  font-size: 15px;
}

.public-filters .multi-button {
  height: 40px;
  background: #202c3d;
  border-color: rgba(148, 163, 184, 0.28);
  color: #fff;
}

.public-filters .multi-menu {
  background: #172233;
  border-color: rgba(148, 163, 184, 0.28);
  color: #eaf2ff;
}

.public-filters .multi-option:hover {
  background: #202c3d;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.public-card {
  overflow: hidden;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.public-card:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 191, 255, 0.55);
}

.public-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #202c3d;
}

.public-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lock-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  background: rgba(13, 20, 31, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #c9d8ee;
  font-size: 12px;
  font-weight: 800;
}

.public-card-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.public-card-metrics {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
}

.public-card-metrics > .badge {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
}

.public-card-metrics > .badge .approach-with-icon > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-card-metrics > .public-view-count,
.public-card-metrics .geo-count-badge,
.public-card-metrics > .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.public-view-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #a9bad0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.views-help {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  flex: 0 0 16px;
  border: 1px solid rgba(169, 186, 208, 0.55);
  border-radius: 999px;
  color: #c9d8ee;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.views-help:hover,
.views-help:focus-visible {
  border-color: #67c7ff;
  color: #67c7ff;
  outline: none;
}

.badge.soft {
  background: rgba(148, 163, 184, 0.12);
  color: #c9d8ee;
}

.public-geo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #9fb0c7;
  font-weight: 700;
}

.geo-match {
  color: #dce9fb;
}

.geo-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #e5eefc;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.public-load {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.public-empty {
  grid-column: 1 / -1;
  color: #9fb0c7;
}

.plans-section {
  margin-top: 48px;
}

.plans-section h2 {
  font-size: 28px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plans-grid article {
  padding: 22px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.plans-grid h3 {
  margin: 0 0 8px;
}

.plans-grid strong {
  color: #67c7ff;
  font-size: 22px;
}

.plans-grid p {
  color: #9fb0c7;
}



.home-main {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.home-hero {
  min-height: calc(100vh - 104px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  position: relative;
  padding: 34px 0 46px;
}

.home-hero::before {
  content: none;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  width: min(940px, 100%);
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.home-hero h1 {
  max-width: 940px;
  margin: 0 auto;
  color: #eef4ff;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero h1 span {
  display: block;
}

.home-gradient-title {
  color: transparent;
  background: linear-gradient(100deg, #54d5ff 0%, #5d93ff 42%, #7b4dff 78%, #54d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-lead {
  max-width: 820px;
  margin: 22px auto 0;
  color: #eef4ff;
  font-size: 19px;
  line-height: 1.5;
}

.home-hero-card {
  width: min(770px, 100%);
  margin: 28px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(13, 25, 30, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 80px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px);
}

.home-hero-card p {
  max-width: 650px;
  margin: 10px auto 0;
  color: #9fb0c7;
  line-height: 1.5;
}

.home-hero-card .home-proof {
  margin-top: 18px;
}

.home-card-kicker {
  margin-top: 0 !important;
  color: #31e6bc !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-actions,
.home-price-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-actions a {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 18px;
}
.home-actions a,
.home-price-actions a {
  min-height: 44px;
  padding-inline: 18px;
}

.home-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.home-proof span,
.home-roadmap-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(88, 191, 255, 0.28);
  border-radius: 999px;
  background: rgba(19, 29, 43, 0.72);
  color: #c9d8ee;
  font-weight: 800;
}

.home-hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
  order: -1;
  position: relative;
  isolation: isolate;
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(820px, 82vh, 96vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 43% 50%, rgba(84, 213, 255, 0.34), transparent 52%),
    radial-gradient(circle at 62% 46%, rgba(122, 77, 255, 0.38), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(55, 104, 255, 0.18), transparent 66%);
  filter: blur(24px);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

@property --avs-ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 205deg;
}
.home-logo-orbit {
  position: relative;
  width: min(560px, 58vh, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: visible;
  animation: avsLogoFloat 7s ease-in-out infinite;
}

.home-logo-orbit::before,
.home-logo-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.home-logo-orbit::before {
  --avs-ring-angle: 205deg;
  inset: 4.8%;
  background: conic-gradient(from var(--avs-ring-angle), #55d8ff 0deg, #58b8ff 46deg, #6e76ff 132deg, #7b4dff 224deg, #55d8ff 312deg, #55d8ff 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px));
  opacity: 1;
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(84, 216, 255, 0.58)) drop-shadow(0 0 18px rgba(123, 77, 255, 0.46));
  animation: avsRingFlow 5.5s linear infinite, avsGlowPulse 5.8s ease-in-out infinite;
}

.home-logo-orbit::after {
  --avs-ring-angle: 205deg;
  inset: 1.2%;
  background: conic-gradient(from var(--avs-ring-angle), rgba(85, 216, 255, 0.86) 0deg, rgba(88, 184, 255, 0.46) 46deg, rgba(110, 118, 255, 0.36) 132deg, rgba(123, 77, 255, 0.72) 224deg, rgba(85, 216, 255, 0.86) 312deg, rgba(85, 216, 255, 0.86) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 40px), #000 calc(100% - 22px), transparent calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 40px), #000 calc(100% - 22px), transparent calc(100% - 1px));
  opacity: 0.86;
  z-index: 0;
  filter: blur(20px);
  animation: avsRingFlow 5.5s linear infinite, avsGlowPulse 5.8s ease-in-out infinite;
}

.home-logo-orbit img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.5), inset 0 0 58px rgba(103, 199, 255, 0.14), inset 0 0 120px rgba(122, 77, 255, 0.08);
}

@keyframes avsRingFlow {
  to { --avs-ring-angle: 565deg; }
}
@keyframes avsRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes avsLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.015); }
}

@keyframes avsGlowPulse {
  0%, 100% { opacity: 0.52; transform: scale(0.96); }
  50% { opacity: 0.92; transform: scale(1.04); }
}

.home-product,
.home-grid-section,
.home-roadmap,
.home-pricing-strip {
  margin-top: 26px;
}

.home-product-head,
.home-roadmap,
.home-pricing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.home-product-head h2,
.home-roadmap h2,
.home-pricing-strip h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.home-preview-shell {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #131d2b 0%, #101927 100%);
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.35);
}

.home-preview-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.home-preview-toolbar span,
.home-preview-toolbar button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: #202c3d;
  color: #dbe8fb;
  font-weight: 800;
  text-align: left;
}

.home-preview-toolbar button {
  background: linear-gradient(135deg, #4bbdff, #685bff);
  color: #fff;
  text-align: center;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-preview-grid article {
  overflow: hidden;
  min-height: 238px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 9px;
  background: #182231;
}

.home-thumb {
  height: 146px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background-color: #0c1320;
  background-size: cover;
  background-position: center;
}

.thumb-a { background-image: linear-gradient(135deg, rgba(84, 213, 255, 0.28), rgba(122, 77, 255, 0.18)), url("/static/avs-logo-mark.svg"); background-size: 100% 100%, 82px 82px; background-repeat: no-repeat; }
.thumb-b { background-image: radial-gradient(circle at 28% 30%, #67c7ff, transparent 22%), linear-gradient(145deg, #172233, #2b1e57 58%, #131d2b); }
.thumb-c { background-image: radial-gradient(circle at 70% 36%, #7a4dff, transparent 24%), linear-gradient(145deg, #1b2b41, #121b29 62%); }
.thumb-d { background-image: radial-gradient(circle at 45% 35%, #54d5ff, transparent 20%), linear-gradient(145deg, #111827, #263752 70%); }

.home-preview-grid strong,
.home-preview-grid p {
  display: block;
  margin: 14px 14px 0;
}

.home-preview-grid p {
  margin-top: 8px;
  color: #9fb0c7;
}

.home-grid-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-grid-section article,
.home-roadmap,
.home-pricing-strip {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: #131d2b;
}

.home-grid-section span {
  color: #67c7ff;
  font-weight: 900;
}

.home-grid-section h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.home-grid-section p,
.home-roadmap p,
.home-pricing-strip p {
  margin: 0;
  color: #9fb0c7;
  line-height: 1.55;
}

.home-roadmap > div:first-child {
  max-width: 720px;
}

.home-roadmap-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 420px;
}

@media (max-width: 920px) {
  .home-product-head,
  .home-roadmap,
  .home-pricing-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .home-logo-orbit {

    width: min(500px, 54vh, 82vw);
    margin: 0 auto;
  }

  .home-preview-toolbar,
  .home-preview-grid,
  .home-grid-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-roadmap-list {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .home-main {
    padding-top: 36px;
  }

  .home-hero {
    min-height: auto;
    text-align: left;
    justify-items: center;
    gap: 24px;
    padding-top: 24px;
  }

  .home-hero-copy {
    text-align: left;
  }

  .home-logo-orbit {

    width: min(360px, 82vw);
  }

  .home-actions,
  .home-proof,
  .home-price-actions {
    justify-content: flex-start;
  }

  .home-preview-toolbar,
  .home-preview-grid,
  .home-grid-section {
    grid-template-columns: 1fr;
  }
}

.plans-page-main {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.plans-hero {
  max-width: 820px;
  padding: 16px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #67c7ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plans-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.plans-hero p:last-child {
  max-width: 760px;
  margin-top: 18px;
  color: #a9b8cc;
  font-size: 18px;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 560px;
  padding: 28px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}

.pricing-card.featured {
  border-color: rgba(88, 191, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(104, 91, 255, 0.18), 0 24px 70px rgba(21, 34, 55, 0.35);
}

.pricing-label {
  margin: 0 0 10px;
  color: #67c7ff;
  font-size: 15px;
  font-weight: 900;
}

.pricing-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.pricing-card strong {
  display: block;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.pricing-card strong span {
  color: #9fb0c7;
  font-size: 17px;
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
  color: #c9d8ee;
  line-height: 1.45;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #67c7ff;
  border-radius: 999px;
}

.pricing-cta {
  width: 100%;
  min-height: 46px;
}

.plans-flow {
  margin-top: 42px;
}

.plans-flow h2,
.plans-contact h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-grid article,
.plans-contact {
  padding: 22px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.flow-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: #202c3d;
  border: 1px solid rgba(88, 191, 255, 0.45);
  border-radius: 999px;
  color: #67c7ff;
  font-weight: 900;
}

.flow-grid h3 {
  margin: 0 0 8px;
}

.flow-grid p,
.plans-contact p {
  color: #9fb0c7;
}

.plans-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.creative-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 7, 18, 0.72);
}

.modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  position: relative;
  padding: 18px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-card.wide {
  width: min(720px, 100%);
}

.modal-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #202c3d;
}

.modal-card h2 {
  margin: 18px 0 8px;
}

.modal-card p {
  color: #c9d8ee;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  background: rgba(13, 20, 31, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}

.modal-meta,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.modal-meta > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 38px;
  padding: 0 12px;
  background: #202c3d;
  border-radius: 999px;
  color: #dbe8fa;
  font-weight: 800;
  line-height: 1;
}

.modal-cta {
  margin-top: 8px;
}

.account-main {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.account-panel {
  padding: 28px;
  background: #131d2b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}

.account-panel h1 {
  margin: 0;
  font-size: 36px;
}

.account-panel p {
  margin: 8px 0 0;
  color: #9fb0c7;
}

.account-content {
  margin-top: 24px;
}

.account-status {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #202c3d;
}

.account-status strong,
.account-status span {
  display: block;
}

.account-status strong {
  color: #fff;
  font-size: 18px;
}

.account-status span {
  margin-top: 4px;
  color: #c9d8ee;
}

.account-status.active {
  border-color: rgba(127, 226, 160, 0.45);
}

.account-status.pending {
  border-color: rgba(251, 176, 64, 0.45);
}

.account-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.account-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: rgba(32, 44, 61, 0.72);
  border-radius: 7px;
}

.account-list dt {
  color: #9fb0c7;
  font-weight: 700;
}

.account-list dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.account-security {
  margin-top: 22px;
  padding: 18px;
  background: rgba(32, 44, 61, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.account-security h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.account-section-head h2 {
  margin-bottom: 4px;
}

.account-muted {
  margin: 0;
  color: #9fb0c7;
}

.account-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.team-form {
  max-width: 620px;
  grid-template-columns: minmax(220px, 1fr) 160px;
  align-items: end;
}

.team-form .account-message {
  grid-column: 1 / -1;
}

.account-form label {
  display: grid;
  gap: 7px;
  color: #cbd8ea;
  font-weight: 800;
}

.account-form input {
  height: 42px;
  padding: 0 12px;
  color: #eef5ff;
  background: #111b2a;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 7px;
  outline: none;
}

.account-form button {
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, #4bbdff, #685bff);
  border: 0;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}

.account-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.account-message {
  min-height: 20px;
  color: #9ff0c1;
}

.account-message.error {
  color: #ff9c91;
}

.account-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  color: #eef5ff;
}

.account-table th,
.account-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
  vertical-align: middle;
}

.account-table th {
  color: #9fb0c7;
  font-size: 12px;
  text-transform: uppercase;
}

.account-empty {
  padding: 20px;
  background: #202c3d;
  border-radius: 8px;
}

.account-empty h2 {
  margin: 0 0 8px;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-panel-head select {
    width: 100%;
  }

  .public-topbar,
  .public-hero {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .public-nav,
  .public-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .public-filters,
  .public-grid,
  .plans-grid,
  .pricing-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-contact {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .admin-shell-header,
  .admin-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .public-filters,
  .public-grid,
  .plans-grid,
  .pricing-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .account-list div {
    grid-template-columns: 1fr;
  }

  .team-form {
    grid-template-columns: 1fr;
  }
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.78);
  color: #c9d8ee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.favorite-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 191, 255, 0.7);
  color: #67c7ff;
  background: rgba(19, 29, 43, 0.92);
}

.favorite-btn.active {
  border-color: rgba(244, 201, 93, 0.9);
  color: #ffd666;
  background: rgba(112, 78, 20, 0.88);
  box-shadow: 0 0 14px rgba(244, 201, 93, 0.28);
}

.modal-thumb-wrap {
  position: relative;
}

.modal-video-launch {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #202c3d;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.modal-video-launch img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.modal-video-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.12);
  transition: background 0.15s ease;
}

.modal-video-launch:hover::after {
  background: rgba(3, 7, 18, 0.26);
}

.modal-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 48px;
  padding-left: 4px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.94);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.modal-youtube-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  border-radius: 7px;
}

.modal-favorite {
  top: 12px;
  right: 12px;
  z-index: 3;
}


.notification-box {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-btn {
  width: 38px;
  height: 38px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #131d2b;
  color: #c9d8ee;
  cursor: pointer;
  font-weight: 900;
}

.notification-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-btn:hover,
.notification-btn.has-unread {
  border-color: rgba(88, 191, 255, 0.65);
  color: #67c7ff;
}

.notification-btn em {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #4d7cff;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.notification-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 24px));
  max-height: 460px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #131d2b;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.45);
}

.notification-panel.open {
  display: grid;
  gap: 10px;
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #eef4ff;
}

.notification-head span,
.notification-item span,
.notification-empty {
  color: #9fb0c7;
  font-size: 12px;
}

.notification-item {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: #182231;
}

.notification-item.unread {
  border-color: rgba(88, 191, 255, 0.45);
  background: rgba(35, 68, 108, 0.36);
}

.notification-item strong {
  color: #eef4ff;
  font-size: 14px;
}

.notification-item p {
  margin: 0;
  color: #c9d8ee;
  line-height: 1.35;
}

.notification-empty {
  padding: 14px 6px 6px;
}























.home-product {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 34px;
  min-height: 560px;
  padding: 34px 0 28px;
  overflow: hidden;
}

.home-product-copy {
  position: relative;
  z-index: 2;
}

.home-product-copy h2 {
  margin: 0;
  max-width: 540px;
  color: #eef4ff;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-product-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #b9c8df;
  font-size: 18px;
  line-height: 1.58;
}

.home-product-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.home-product-points span {
  width: fit-content;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(88, 191, 255, 0.24);
  border-radius: 999px;
  background: rgba(19, 29, 43, 0.7);
  color: #dbe8fb;
  font-weight: 800;
}

.home-showcase {
  position: relative;
  display: block;
  min-height: 620px;
  margin-right: calc((100vw - min(1380px, calc(100vw - 32px))) / -2);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0b121d;
  box-shadow: none;
  text-decoration: none;
}

.home-showcase::before,
.home-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.home-showcase::before {
  background:
    linear-gradient(90deg, #0b121d 0%, rgba(11, 18, 29, 0.78) 7%, transparent 22%, transparent 82%, rgba(11, 18, 29, 0.78) 94%, #0b121d 100%),
    linear-gradient(180deg, #0b121d 0%, rgba(11, 18, 29, 0.58) 8%, transparent 20%, transparent 82%, rgba(11, 18, 29, 0.82) 95%, #0b121d 100%);
}

.home-showcase::after {
  background: radial-gradient(circle at 58% 47%, transparent 0%, transparent 42%, rgba(11, 18, 29, 0.22) 68%, rgba(11, 18, 29, 0.86) 100%);
}

.showcase-bg-grid {
  position: absolute;
  inset: -10px -86px -22px -118px;
  display: grid;
  grid-template-columns: repeat(4, 320px);
  grid-auto-rows: 188px;
  gap: 14px;
  transform: translateX(0);
  opacity: 0.76;
}

.mock-card {
  position: relative;
  overflow: hidden;
  padding: 112px 14px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: #111b2a;
  color: #dbe8fb;
  box-shadow: inset 0 -86px 70px rgba(2, 6, 23, 0.82);
}

.mock-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 124px;
  background-size: cover;
  background-position: center;
  opacity: 0.92;
}

.mock-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(2, 6, 23, 0.34) 62%, rgba(2, 6, 23, 0.88) 100%);
}

.mock-card span,
.mock-card strong,
.mock-card em {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-right: 6px;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(23, 36, 55, 0.86);
  font-style: normal;
  font-weight: 900;
}

.mock-card strong {
  color: #9fb0c7;
}

.mock-card em {
  display: flex;
  width: fit-content;
  color: #dbe8fb;
}

.mock-a::before { background-image: radial-gradient(circle at 28% 18%, #ffd15c 0 5%, transparent 18%), linear-gradient(135deg, #072a19, #131d2b 54%, #2b1d56); }
.mock-b::before { background-image: radial-gradient(circle at 56% 42%, #54d5ff 0 12%, transparent 28%), linear-gradient(135deg, #162746, #6845ff 68%, #0f1724); }
.mock-c::before { background-image: radial-gradient(circle at 44% 30%, #ffde59 0 14%, transparent 30%), linear-gradient(135deg, #2b1d56, #131d2b 62%); }
.mock-d::before { background-image: radial-gradient(circle at 70% 28%, #67c7ff 0 9%, transparent 24%), linear-gradient(135deg, #0b3228, #101927 62%, #422e88); }
.mock-e::before { background-image: radial-gradient(circle at 36% 40%, #ff5e8a 0 10%, transparent 28%), linear-gradient(135deg, #39142b, #101927 62%); }
.mock-f::before { background-image: radial-gradient(circle at 50% 38%, #52e6ff 0 16%, transparent 31%), linear-gradient(135deg, #151f33, #20376a 58%, #101927); }

.showcase-modal {
  position: absolute;
  z-index: 4;
  left: 340px;
  top: 50%;
  width: 720px;
  max-width: calc(100% - 118px);
  transform: translateY(-50%);
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #121d2d;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.58), 0 0 80px rgba(84, 213, 255, 0.1);
  color: #dbe8fb;
}

.showcase-preview {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #000 0%, #000 12.5%, transparent 12.5%, transparent 87.5%, #000 87.5%, #000 100%),
    radial-gradient(circle at 73% 48%, rgba(255, 187, 74, 0.74), transparent 14%),
    linear-gradient(135deg, #063814 0%, #20b13d 46%, #0a4a23 100%);
}

.showcase-preview::before {
  content: "GRATIS KANS OP\A €10.000";
  white-space: pre;
  position: absolute;
  left: 40%;
  top: 23%;
  transform: translate(-50%, -50%) rotate(-1deg);
  color: #fff;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 0.88;
  font-weight: 1000;
  text-align: center;
  text-shadow: 0 4px 0 rgba(13, 83, 18, 0.72), 0 0 30px rgba(255, 221, 86, 0.3);
}

.showcase-preview::after {
  content: "SPEEL MEE";
  position: absolute;
  left: 34%;
  top: 47%;
  bottom: auto;
  transform: translateX(-50%);
  padding: 8px 42px;
  border-radius: 3px;
  background: #ffe928;
  color: #25180b;
  font-size: 18px;
  font-weight: 1000;
  white-space: nowrap;
}

.showcase-star {
  position: absolute;
  right: 13px;
  top: 13px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #dbe8fb;
  font-size: 21px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.showcase-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #26354b;
  color: #eef4ff;
  font-size: 18px;
  font-weight: 900;
}

.showcase-modal p {
  margin: 9px 0 0;
  color: #dbe8fb;
  font-weight: 800;
}

.showcase-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.showcase-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  background: #eef4ff;
  color: #111827;
  font-weight: 900;
}

.showcase-actions span:last-child {
  background: linear-gradient(135deg, #4bbdff, #685bff);
  color: #fff;
}

@media (max-width: 920px) {
  .home-product {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-product-copy h2,
  .home-product-copy p {
    max-width: none;
  }

  .home-showcase {
  position: relative;
  display: block;
  min-height: 620px;
  margin-right: calc((100vw - min(1380px, calc(100vw - 32px))) / -2);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0b121d;
  box-shadow: none;
  text-decoration: none;
}

  .showcase-modal {
  position: absolute;
  z-index: 4;
  left: 340px;
  top: 50%;
  width: 720px;
  max-width: calc(100% - 118px);
  transform: translateY(-50%);
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #121d2d;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.58), 0 0 80px rgba(84, 213, 255, 0.1);
  color: #dbe8fb;
}
}

@media (max-width: 640px) {
  .home-product {
    padding-top: 18px;
  }

  .home-showcase {
  position: relative;
  display: block;
  min-height: 620px;
  margin-right: calc((100vw - min(1380px, calc(100vw - 32px))) / -2);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0b121d;
  box-shadow: none;
  text-decoration: none;
}

  .showcase-bg-grid {
  position: absolute;
  inset: -10px -86px -22px -118px;
  display: grid;
  grid-template-columns: repeat(4, 320px);
  grid-auto-rows: 188px;
  gap: 14px;
  transform: translateX(0);
  opacity: 0.76;
}

  .showcase-modal {
  position: absolute;
  z-index: 4;
  left: 340px;
  top: 50%;
  width: 720px;
  max-width: calc(100% - 118px);
  transform: translateY(-50%);
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #121d2d;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.58), 0 0 80px rgba(84, 213, 255, 0.1);
  color: #dbe8fb;
}

  .showcase-preview {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #000 0%, #000 12.5%, transparent 12.5%, transparent 87.5%, #000 87.5%, #000 100%),
    radial-gradient(circle at 73% 48%, rgba(255, 187, 74, 0.74), transparent 14%),
    linear-gradient(135deg, #063814 0%, #20b13d 46%, #0a4a23 100%);
}

  .showcase-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #26354b;
  color: #eef4ff;
  font-size: 18px;
  font-weight: 900;
}
}
/* home showcase v2 */
.home-product {
  grid-template-columns: minmax(260px, 0.48fr) minmax(760px, 1.52fr);
  gap: 22px;
}

.home-product-copy {
  max-width: 380px;
}

.home-product-copy h2 {
  max-width: 360px;
  font-size: clamp(30px, 3.5vw, 46px);
}

.home-showcase {
  min-height: 620px;
}

.showcase-bg-grid {
  inset: -74px -74px -38px -120px;
  grid-template-columns: repeat(4, 302px);
  grid-auto-rows: 150px;
  gap: 14px;
  opacity: 0.8;
}

.mock-card {
  padding: 0;
  border: 1px solid rgba(70, 96, 132, 0.28);
  border-radius: 7px;
  background: rgba(14, 25, 42, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  opacity: 0.78;
}

.mock-card::before {
  height: 94px;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.mock-card::after {
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.3) 58%, rgba(2, 6, 23, 0.88) 100%);
}

.mock-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
}

.mock-card span,
.mock-card strong,
.mock-card em {
  margin: 0;
}

.mock-meta span,
.mock-meta strong,
.mock-meta em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  max-width: 118px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 48, 72, 0.78);
  color: #cbd8ec;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-meta strong.approved {
  background: rgba(22, 120, 74, 0.86);
  color: #effff6;
}

.mock-meta strong.rejected {
  background: rgba(149, 42, 42, 0.86);
  color: #fff1f1;
}

.mock-meta em {
  flex: 0 0 auto;
  width: auto;
  color: #d8e4f7;
}

.mock-star {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: grid !important;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.46) !important;
  color: #dbe8fb;
  font-size: 15px;
  line-height: 1;
}

.mock-star.gold {
  color: #f8d56a;
  border-color: rgba(248, 213, 106, 0.5);
  background: rgba(12, 19, 32, 0.72) !important;
  text-shadow: 0 0 10px rgba(248, 213, 106, 0.38);
}

.mock-card.soft-row {
  filter: blur(1.2px);
  opacity: 0.46;
}

.showcase-modal {
  left: 430px;
  top: 50%;
  width: 720px;
  max-width: calc(100% - 112px);
  padding: 18px 18px 22px;
  border-color: rgba(79, 111, 151, 0.74);
  border-radius: 8px;
  background: #142032;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 54px rgba(56, 156, 255, 0.08);
}

.showcase-preview {
  min-height: 344px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #000 0%, #000 12.5%, transparent 12.5%, transparent 87.5%, #000 87.5%, #000 100%),
    radial-gradient(circle at 77% 52%, rgba(255, 226, 92, 0.76), transparent 16%),
    linear-gradient(135deg, #063814 0%, #189b36 45%, #0a4a23 100%);
}

.showcase-preview::before {
  left: 39%;
  top: 23%;
  font-size: clamp(38px, 4.2vw, 58px);
}

.showcase-preview::after {
  left: 34%;
  top: 48%;
  padding: 9px 48px;
}

.showcase-star {
  border-color: rgba(248, 213, 106, 0.55);
  background: rgba(9, 16, 29, 0.72);
  color: #f8d56a;
  box-shadow: 0 0 18px rgba(248, 213, 106, 0.18), inset 0 0 0 1px rgba(255,255,255,0.03);
  text-shadow: 0 0 10px rgba(248, 213, 106, 0.42);
}

.showcase-tags {
  gap: 8px;
  margin-top: 12px;
}

.showcase-tags span {
  min-height: 30px;
  padding: 0 11px;
  background: #26354b;
  color: #eef4ff;
  font-size: 15px;
}

.showcase-tags span.approved {
  background: #16784a;
  color: #effff6;
  box-shadow: inset 0 0 0 1px rgba(114, 255, 185, 0.18);
}

.showcase-modal p {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.showcase-actions {
  gap: 9px;
  margin-top: 10px;
}

.showcase-actions span {
  min-width: 92px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, #58b8ff, #685bff);
  color: #fff;
  font-size: 15px;
}

.showcase-actions span:last-child {
  min-width: 106px;
  background: #f4f7fb;
  color: #111827;
}

@media (max-width: 920px) {
  .home-product {
    grid-template-columns: 1fr;
  }

  .home-product-copy,
  .home-product-copy h2 {
    max-width: none;
  }

  .showcase-modal {
    left: 50%;
    max-width: calc(100% - 32px);
    transform: translate(-50%, -50%);
  }
}








.html5-preview {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(98, 182, 255, 0.32), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(124, 90, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #101927, #1a2637);
}

.html5-preview iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.24);
  transform-origin: center;
}

.html5-preview-cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 25, 0.08), rgba(10, 16, 25, 0.22));
}

.html5-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(226, 237, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.html5-mark {
  position: absolute;
  left: 10px;
  top: 10px;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, #62b6ff, #7c5cff);
  font-size: 12px;
  font-weight: 800;
}

.html5-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.html5-open {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}


/* home final polish */
.home-main {
  width: min(1440px, calc(100vw - 32px));
}

.home-hero {
  padding-top: 20px;
}

.home-actions a {
  min-height: 54px;
  padding-inline: 30px;
  font-size: 18px;
}

.home-product {
  grid-template-columns: minmax(340px, 0.54fr) minmax(780px, 1.46fr);
  gap: 30px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.home-product-copy {
  max-width: 430px;
  padding-left: 4px;
}

.home-product-copy h2 {
  max-width: 430px;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.06;
}

.home-product-copy p:not(.eyebrow) {
  max-width: 410px;
  margin-top: 18px;
  color: #c5d2e5;
  font-size: 17px;
  line-height: 1.58;
}

.home-product-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 24px;
}

.home-product-points span {
  width: fit-content;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(88, 191, 255, 0.26);
  border-radius: 999px;
  background: rgba(19, 29, 43, 0.72);
  color: #dbe8fb;
  font-weight: 850;
}

.home-showcase {
  min-height: 640px;
}

.home-grid-section {
  margin-top: 34px;
}

.home-grid-section article,
.home-roadmap,
.home-pricing-strip {
  border-color: rgba(88, 191, 255, 0.16);
  background: rgba(18, 29, 45, 0.72);
}

.home-grid-section h3 {
  color: #eef4ff;
}

.home-roadmap,
.home-pricing-strip {
  gap: 24px;
}

.home-roadmap-list span {
  color: #dbe8fb;
}

@media (max-width: 1100px) {
  .home-product {
    grid-template-columns: 1fr;
  }

  .home-product-copy,
  .home-product-copy h2,
  .home-product-copy p:not(.eyebrow) {
    max-width: 760px;
  }

  .home-showcase {
    margin-right: 0;
  }
}
/* home viewport balance */
.home-hero {
  min-height: calc(100vh - 78px);
  gap: 14px;
  padding: 18px 0 34px;
}

.home-logo-orbit {
  width: min(470px, 47vh, 70vw);
}

.home-hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.01;
}

.home-lead {
  max-width: 790px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.45;
}

.home-actions {
  margin-top: 22px;
}

.home-product {
  grid-template-columns: minmax(430px, 0.62fr) minmax(760px, 1.38fr);
}

.home-product-copy {
  max-width: 500px;
}

.home-product-copy h2 {
  max-width: 500px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

.home-product-copy p:not(.eyebrow) {
  max-width: 480px;
}

@media (max-width: 1100px) {
  .home-product {
    grid-template-columns: 1fr;
  }
}
/* home first screen fit */
.home-logo-orbit {
  width: min(420px, 41vh, 68vw);
}

.home-hero h1 {
  font-size: clamp(38px, 4.8vw, 62px);
}

.home-lead {
  max-width: 760px;
  font-size: 17px;
}
/* home first screen compact */
.home-logo-orbit {
  width: min(360px, 35vh, 66vw);
}

.home-hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
}

.home-lead {
  margin-top: 14px;
}

.home-actions {
  margin-top: 18px;
}
/* home first screen final fit */
.home-hero {
  min-height: auto;
  padding: 64px 0 82px;
}

.home-logo-orbit {
  width: min(320px, 31vh, 64vw);
}

.home-hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
}

.home-actions a {
  min-height: 50px;
}
/* home showcase visible fit */
.showcase-modal {
  left: 220px;
  width: min(620px, calc(100% - 270px));
}

.showcase-preview {
  min-height: 300px;
}

.showcase-preview::before {
  font-size: clamp(34px, 3.7vw, 52px);
}

@media (min-width: 1400px) {
  .showcase-modal {
    left: 300px;
    width: 640px;
  }

  .showcase-preview {
    min-height: 330px;
  }
}
/* home showcase preview text fit */
.showcase-preview::before {
  left: 48%;
}

.showcase-preview::after {
  left: 39%;
}
/* home lower sections polish */
.home-roadmap h2,
.home-pricing-strip h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.08;
}

.home-roadmap p,
.home-pricing-strip p {
  max-width: 760px;
}

.home-roadmap,
.home-pricing-strip {
  padding: 28px;
  border-radius: 10px;
}

.home-pricing-strip {
  align-items: center;
}

.home-price-actions {
  flex: 0 0 auto;
  margin-top: 0;
}
/* home gradient title descender fix */
.home-gradient-title {
  line-height: 1.14;
  padding-bottom: 0.08em;
}
/* home stats strip */
.home-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin: 38px 0 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(88, 191, 255, 0.16);
  border-bottom: 1px solid rgba(88, 191, 255, 0.16);
  background:
    radial-gradient(circle at 18% 50%, rgba(84, 213, 255, 0.08), transparent 30%),
    radial-gradient(circle at 78% 50%, rgba(123, 77, 255, 0.1), transparent 32%);
}

.home-stats article {
  display: grid;
  place-items: center;
  min-height: 98px;
  padding: 8px 18px;
  text-align: center;
  border-right: 1px solid rgba(148, 163, 184, 0.13);
}

.home-stats article:last-child {
  border-right: 0;
}

.home-stats strong {
  display: block;
  color: #f3f7ff;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(88, 191, 255, 0.12);
}

.home-stats span {
  display: block;
  margin-top: 10px;
  color: #8fa2bb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stats article:nth-child(2n) {
    border-right: 0;
  }

  .home-stats article:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
  }
}

@media (max-width: 560px) {
  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-stats article {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  }

  .home-stats article:last-child {
    border-bottom: 0;
  }
}
/* home CTA strip */
.home-cta-strip {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 34px 36px;
  border-color: rgba(88, 191, 255, 0.28);
  background:
    radial-gradient(circle at 78% 18%, rgba(123, 77, 255, 0.22), transparent 32%),
    radial-gradient(circle at 24% 50%, rgba(84, 213, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(18, 29, 45, 0.92), rgba(12, 18, 30, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 70px rgba(2, 6, 23, 0.32);
}

.home-cta-strip::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: conic-gradient(from 210deg, rgba(84, 213, 255, 0.46), rgba(123, 77, 255, 0.44), rgba(84, 213, 255, 0.46));
  filter: blur(44px);
  opacity: 0.42;
  pointer-events: none;
}

.home-cta-strip > * {
  position: relative;
  z-index: 1;
}

.home-cta-strip h2 {
  max-width: 820px;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.06;
}

.home-cta-strip p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 12px;
  color: #c7d6ea;
  font-size: 17px;
}

.home-cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.home-cta-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(88, 191, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.58);
  color: #e5efff;
  font-weight: 850;
}

.home-cta-strip .home-price-actions {
  justify-content: flex-end;
  min-width: 330px;
}

.home-cta-strip .home-price-actions a {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 17px;
}

@media (max-width: 920px) {
  .home-cta-strip {
    padding: 28px 22px;
  }

  .home-cta-strip .home-price-actions {
    justify-content: flex-start;
    min-width: 0;
    margin-top: 22px;
  }
}
/* home CTA competitor-style final */
.home-cta-strip {
  display: grid;
  place-items: center;
  gap: 0;
  min-height: 310px;
  margin-top: 34px;
  padding: 62px 24px;
  text-align: center;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(84, 213, 255, 0.08), transparent 32%),
    radial-gradient(circle at 72% 40%, rgba(123, 77, 255, 0.09), transparent 34%),
    #080c13;
  box-shadow: none;
}

.home-cta-strip::after {
  content: none;
}

.home-cta-copy {
  max-width: 900px;
}

.home-cta-strip h2 {
  max-width: 900px;
  margin: 0 auto;
  color: #f3f7ff;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-cta-strip p:not(.eyebrow) {
  max-width: 820px;
  margin: 16px auto 0;
  color: #9aa8bb;
  font-size: 18px;
  line-height: 1.55;
}

.home-cta-points {
  justify-content: center;
  margin-top: 18px;
}

.home-cta-points span {
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(88, 191, 255, 0.22);
  background: rgba(16, 25, 39, 0.62);
  color: #cbd8ec;
  font-size: 13px;
}

.home-cta-strip .home-price-actions {
  justify-content: center;
  min-width: 0;
  margin-top: 32px;
}

.home-cta-strip .home-price-actions a {
  min-width: 210px;
  min-height: 54px;
  padding-inline: 26px;
  font-size: 17px;
}

@media (max-width: 640px) {
  .home-cta-strip {
    min-height: auto;
    padding: 44px 18px;
  }

  .home-cta-strip .home-price-actions a {
    width: 100%;
  }
}
/* home CTA hard center */
.home-cta-strip.home-pricing-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-cta-copy {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.home-cta-strip .home-price-actions {
  width: 100%;
  justify-content: center;
}
/* public HTML5 page */
.public-html5-card .public-thumb {
  overflow: hidden;
}

.public-html5-card .html5-preview {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.public-html5-preview iframe {
  filter: saturate(0.92) contrast(0.94) brightness(0.78);
}

.html5-page .favorite-btn {
  display: none;
}

.modal-html5-preview {
  width: 100%;
  border-radius: 8px;
}

.modal-html5-preview iframe {
  filter: none;
  pointer-events: auto;
}

.html5-page .public-card .lock-badge {
  background: rgba(13, 20, 31, 0.9);
}

/* public HTML5 modal size fix */
.modal-card.wide:has(.modal-html5-preview) {
  width: min(960px, 100%);
}

.modal-html5-preview {
  min-height: min(62vh, 620px);
  aspect-ratio: 16 / 9;
}

.modal-html5-preview iframe {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: none;
  pointer-events: auto;
}

/* public HTML5 modal wider for locked and approved cards */
.modal-card:has(.modal-html5-preview) {
  width: min(960px, 100%);
}


.html5-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(83, 198, 255, 0.28), transparent 26%),
    radial-gradient(circle at 78% 74%, rgba(124, 92, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #101a2a 0%, #17263b 46%, #0d1422 100%);
  color: #eef5ff;
  text-align: center;
}

.html5-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(92, 184, 255, 0.2);
  border-radius: 14px;
}

.html5-placeholder-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(78, 190, 255, 0.35), rgba(124, 92, 255, 0.28));
  filter: blur(24px);
  opacity: 0.72;
}

.html5-placeholder strong,
.html5-placeholder small {
  position: relative;
  z-index: 1;
}

.html5-placeholder strong {
  max-width: 82%;
  font-size: 20px;
  line-height: 1.08;
  text-transform: uppercase;
}

.html5-placeholder small {
  color: #bcd4f4;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-html5-preview iframe,
.locked-html5-preview iframe {
  display: none;
}

.modal-html5-preview.locked-html5-preview {
  min-height: 360px;
}
