:root {
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-soft: #f8f7f2;
  --text: #1d2419;
  --muted: #667064;
  --line: #ddd9ce;
  --accent: #1f2a1b;
  --accent-2: #d8b674;
  --danger: #aa3131;
  --success: #257448;
  --shadow: 0 18px 44px rgba(30, 35, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

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

a {
  color: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(600px 340px at 50% 18%, rgba(216, 182, 116, 0.28), transparent),
    var(--bg);
}

.login-panel {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  margin-bottom: 20px;
}

.login-panel h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.08;
}

.login-panel p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

label,
.field-label {
  color: #384032;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(216, 182, 116, 0.16);
}

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

.button,
button {
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 12px 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.button:hover,
button:hover {
  filter: brightness(1.05);
}

.button.secondary,
button.secondary {
  background: #ece8dc;
  color: var(--text);
}

.button.ghost,
button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button.danger,
button.danger {
  background: var(--danger);
}

.button.success,
button.success {
  background: var(--success);
}

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

.login-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.message,
.toast {
  display: none;
  border-radius: 12px;
  padding: 12px 13px;
  line-height: 1.45;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.message.is-visible,
.toast.is-visible {
  display: block;
}

.message.error {
  color: var(--danger);
  background: #fff2f0;
  border-color: #f0c7c0;
}

.message.success {
  color: var(--success);
  background: #effaf3;
  border-color: #bfe6cb;
}

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

.sidebar {
  background: #182015;
  color: #f8f5eb;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 22px;
  font-weight: 900;
}

.sidebar-brand span:first-child {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(216, 182, 116, 0.22);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  color: rgba(248, 245, 235, 0.78);
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.nav-link[aria-current="page"],
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.sidebar-footer {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
}

.content {
  padding: 26px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.action-row,
.toolbar,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.metric,
.panel,
.table-panel,
.form-panel,
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
}

.panel,
.table-panel,
.form-panel,
.preview-panel {
  padding: 18px;
}

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

.section-title h2 {
  margin: 0;
  font-size: 19px;
}

.toolbar {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
}

.toolbar input {
  min-width: min(100%, 260px);
  flex: 1;
}

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

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

.data-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #e7e2d5;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.status.active {
  color: #17643b;
  background: #e8f7ee;
}

.status.inactive {
  color: #8a352f;
  background: #fff0ed;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.steps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin-bottom: 16px;
}

.step-tab {
  background: #ebe7da;
  color: var(--muted);
  white-space: nowrap;
}

.step-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.entry-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.entry-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.image-preview img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: #eee;
}

.preview-box {
  display: grid;
  gap: 10px;
}

.preview-link {
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  word-break: break-all;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 38px 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(18, 22, 16, 0.48);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.qr-target {
  display: grid;
  place-items: center;
  margin: 14px 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  background: #182015;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.hide {
  display: none !important;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-footer {
    position: static;
    margin-top: 16px;
  }

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

@media (max-width: 720px) {
  .content {
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .entry-row {
    grid-template-columns: 1fr;
  }

  .table-panel {
    overflow-x: auto;
  }

  .data-table {
    min-width: 760px;
  }
}

/* Profiles dashboard ------------------------------------------------------ */

.profiles-page {
  --bg-primary: #050a08;
  --bg-secondary: #08110e;
  --surface-primary: #0c1713;
  --surface-secondary: #101e19;
  --surface-hover: #14271f;
  --border-subtle: rgba(105, 255, 190, 0.1);
  --border-active: rgba(38, 235, 151, 0.45);
  --accent: #20e59a;
  --accent-bright: #35f5ad;
  --accent-dark: #087b54;
  --accent-glow: rgba(32, 229, 154, 0.22);
  --text-primary: #f1f7f4;
  --text-secondary: #9cb0a7;
  --text-muted: #65786f;
  --success: #23df91;
  --warning: #f3b63f;
  --danger: #ff5252;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  color-scheme: dark;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 7%, rgba(20, 143, 96, 0.18), transparent 32%),
    radial-gradient(circle at 78% 100%, rgba(8, 102, 67, 0.14), transparent 38%),
    linear-gradient(135deg, #050806 0%, #07110d 55%, #061a12 100%);
  color: var(--text-primary);
}

.profiles-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(80, 255, 177, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 255, 177, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.profiles-page ::selection {
  background: rgba(32, 229, 154, 0.3);
  color: #fff;
}

.profiles-page svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profiles-page .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.profiles-page .skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--accent);
  color: #03130c;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease;
}

.profiles-page .skip-link:focus {
  transform: translateY(0);
}

.profiles-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.profiles-sidebar {
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  padding: 24px 18px 20px;
  overflow-y: auto;
  background: rgba(5, 13, 10, 0.88);
  border-right: 1px solid var(--border-subtle);
  box-shadow: 14px 0 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.profiles-brand {
  gap: 12px;
  padding: 2px 8px 29px;
  color: var(--text-primary);
}

.profiles-brand .brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 245, 173, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(32, 229, 154, 0.16), rgba(7, 29, 21, 0.84));
  color: var(--accent-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 24px rgba(32, 229, 154, 0.08);
}

.profiles-brand .brand-symbol svg {
  width: 26px;
  height: 26px;
}

.profiles-brand .brand-copy {
  display: grid;
  gap: 2px;
}

.profiles-brand .brand-copy strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.profiles-brand .brand-copy small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profiles-nav {
  gap: 7px;
}

.profiles-nav .nav-link {
  min-height: 46px;
  padding: 12px 13px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.profiles-nav .nav-link .nav-icon,
.profiles-sidebar .sidebar-logout .nav-icon {
  width: 18px;
  height: 18px;
}

.profiles-nav .nav-link:hover {
  color: var(--text-primary);
  border-color: rgba(105, 255, 190, 0.08);
  background: rgba(30, 103, 75, 0.12);
  transform: translateX(2px);
}

.profiles-nav .nav-link[aria-current="page"] {
  color: var(--text-primary);
  border-color: rgba(53, 245, 173, 0.16);
  background: linear-gradient(90deg, rgba(18, 112, 79, 0.42), rgba(12, 58, 42, 0.24));
  box-shadow: inset 3px 0 0 var(--accent), 0 0 22px rgba(32, 229, 154, 0.09);
  transform: none;
}

.profiles-nav .nav-link[aria-current="page"] .nav-icon {
  color: var(--accent-bright);
  filter: drop-shadow(0 0 5px rgba(53, 245, 173, 0.25));
}

.profiles-sidebar .sidebar-system-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 14px 12px;
  border: 1px solid rgba(105, 255, 190, 0.08);
  border-radius: var(--radius-md);
  background: rgba(12, 30, 23, 0.55);
}

.profiles-sidebar .sidebar-system-card > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profiles-sidebar .sidebar-system-card small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profiles-sidebar .sidebar-system-card strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-sidebar .system-pulse {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(35, 223, 145, 0.55);
}

.profiles-sidebar .system-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(35, 223, 145, 0.25);
  border-radius: inherit;
}

.profiles-sidebar .sidebar-system-card.is-error .system-pulse {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.45);
}

.profiles-sidebar .sidebar-system-card.is-error .system-pulse::after {
  border-color: rgba(255, 82, 82, 0.25);
}

.profiles-sidebar-footer {
  position: static;
  margin-top: 12px;
}

.profiles-sidebar .sidebar-logout {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.profiles-sidebar .sidebar-logout:hover {
  color: #ff8a8a;
  border-color: rgba(255, 82, 82, 0.12);
  background: rgba(255, 82, 82, 0.08);
  filter: none;
}

.profiles-page .sidebar-backdrop {
  display: none;
}

.profiles-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: 36px clamp(24px, 3vw, 48px) 48px;
}

.profiles-topbar {
  align-items: flex-end;
  margin-bottom: 26px;
}

.profiles-page .header-title-group {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.profiles-page .page-title .eyebrow,
.profiles-page .modal-panel .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profiles-page .page-title h1 {
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.profiles-page .page-title p {
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 13px;
}

.profiles-page .mobile-menu-button {
  display: none;
}

.profiles-page .add-profile-button,
.profiles-page .empty-add-button {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(91, 255, 194, 0.32);
  border-radius: 11px;
  background: linear-gradient(135deg, #19c986, #0c9f69);
  color: #edfff8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), 0 8px 24px rgba(18, 193, 127, 0.16);
  font-size: 12px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.profiles-page .add-profile-button svg {
  width: 17px;
  height: 17px;
}

.profiles-page .add-profile-button:hover,
.profiles-page .empty-add-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 11px 28px rgba(18, 193, 127, 0.24);
}

.profiles-page a:focus-visible,
.profiles-page button:focus-visible,
.profiles-page input:focus-visible,
.profiles-page select:focus-visible,
.profiles-page .table-scroll:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.profiles-metrics {
  gap: 13px;
  margin-bottom: 17px;
}

.profiles-page .profile-metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 31, 25, 0.94), rgba(8, 20, 15, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 14px 36px rgba(0, 0, 0, 0.15);
}

.profiles-page .profile-metric::after {
  content: "";
  position: absolute;
  top: -45px;
  right: -38px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(32, 229, 154, 0.06);
  filter: blur(5px);
}

.profiles-page .profile-metric .metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(53, 245, 173, 0.12);
  border-radius: 11px;
  background: rgba(12, 78, 55, 0.36);
  color: var(--accent-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profiles-page .profile-metric.is-muted .metric-icon {
  border-color: rgba(156, 176, 167, 0.1);
  background: rgba(79, 96, 88, 0.16);
  color: var(--text-secondary);
}

.profiles-page .profile-metric .metric-icon svg {
  width: 20px;
  height: 20px;
}

.profiles-page .profile-metric .metric-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profiles-page .profile-metric strong {
  margin: 0;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.profiles-page .profile-metric small {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.profiles-page .profile-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 170px 42px;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(10, 24, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 12px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.profiles-page .search-control,
.profiles-page .select-control {
  position: relative;
  min-width: 0;
}

.profiles-page .search-control {
  display: flex;
  align-items: center;
}

.profiles-page .search-control svg {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.profiles-page .profile-toolbar input,
.profiles-page .profile-toolbar select {
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(105, 255, 190, 0.09);
  border-radius: 9px;
  background-color: rgba(5, 14, 10, 0.78);
  color: var(--text-primary);
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.profiles-page .profile-toolbar input {
  height: 42px;
  padding: 10px 13px 10px 40px;
}

.profiles-page .profile-toolbar input::placeholder {
  color: #5f756b;
}

.profiles-page .profile-toolbar input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.55);
}

.profiles-page .select-control > span {
  position: absolute;
  top: 6px;
  left: 12px;
  z-index: 1;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
  text-transform: uppercase;
}

.profiles-page .profile-toolbar select {
  appearance: none;
  padding: 17px 34px 5px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239cb0a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.profiles-page .profile-toolbar input:focus,
.profiles-page .profile-toolbar select:focus {
  border-color: var(--border-active);
  background-color: rgba(7, 20, 14, 0.96);
  box-shadow: 0 0 0 3px rgba(32, 229, 154, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.profiles-page .reset-filters-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(105, 255, 190, 0.09);
  border-radius: 9px;
  background: rgba(5, 14, 10, 0.78);
  color: var(--text-muted);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.profiles-page .reset-filters-button svg {
  width: 17px;
  height: 17px;
}

.profiles-page .reset-filters-button:hover {
  color: var(--accent-bright);
  border-color: rgba(53, 245, 173, 0.24);
  background: rgba(16, 59, 43, 0.5);
  filter: none;
  transform: rotate(-18deg);
}

.profiles-page .profiles-table-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(9, 22, 17, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 24px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.profiles-page .table-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(105, 255, 190, 0.07);
  background: rgba(14, 31, 24, 0.44);
}

.profiles-page .table-panel-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.profiles-page .table-panel-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10px;
}

.profiles-page .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profiles-page .live-indicator > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(35, 223, 145, 0.5);
}

.profiles-page .table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: rgba(53, 245, 173, 0.25) rgba(4, 12, 8, 0.5);
  scrollbar-width: thin;
}

.profiles-page .table-scroll::-webkit-scrollbar {
  height: 8px;
}

.profiles-page .table-scroll::-webkit-scrollbar-track {
  background: rgba(4, 12, 8, 0.5);
}

.profiles-page .table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 12, 8, 0.5);
  border-radius: 999px;
  background: rgba(53, 245, 173, 0.25);
}

.profiles-page .profiles-table {
  min-width: 1040px;
  table-layout: fixed;
}

.profiles-page .profiles-table th,
.profiles-page .profiles-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(105, 255, 190, 0.055);
  color: var(--text-secondary);
  font-size: 11px;
}

.profiles-page .profiles-table th:first-child,
.profiles-page .profiles-table td:first-child {
  width: 68px;
  padding-left: 20px;
}

.profiles-page .profiles-table th:nth-child(2),
.profiles-page .profiles-table td:nth-child(2) {
  width: 145px;
}

.profiles-page .profiles-table th:nth-child(3),
.profiles-page .profiles-table td:nth-child(3) {
  width: 115px;
}

.profiles-page .profiles-table th:nth-child(4),
.profiles-page .profiles-table td:nth-child(4) {
  width: 165px;
}

.profiles-page .profiles-table th:nth-child(5),
.profiles-page .profiles-table td:nth-child(5) {
  width: 98px;
}

.profiles-page .profiles-table th:nth-child(6),
.profiles-page .profiles-table td:nth-child(6) {
  width: 90px;
}

.profiles-page .profiles-table th:nth-child(7),
.profiles-page .profiles-table td:nth-child(7) {
  width: 68px;
}

.profiles-page .profiles-table th:last-child,
.profiles-page .profiles-table td:last-child {
  width: 270px;
  padding-right: 20px;
}

.profiles-page .profiles-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  padding-top: 11px;
  padding-bottom: 11px;
  background: #0b1914;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profiles-page .profiles-table tbody tr {
  height: 72px;
  background: transparent;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.profiles-page .profiles-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(32, 229, 154, 0.045), rgba(32, 229, 154, 0.018));
  box-shadow: inset 2px 0 0 rgba(53, 245, 173, 0.35);
}

.profiles-page .profiles-table tbody tr:last-child td {
  border-bottom: 0;
}

.profiles-page .thumb {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(105, 255, 190, 0.12);
  border-radius: 11px;
  background: var(--surface-secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.22);
}

.profiles-page .profile-identity,
.profiles-page .business-name,
.profiles-page .date-cell,
.profiles-page .views-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .profile-identity strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .profile-identity small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .profile-link {
  display: block;
  overflow: hidden;
  color: #58dca9;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.profiles-page .profile-link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profiles-page .views-cell {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.profiles-page .status {
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.profiles-page .status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.profiles-page .status.active {
  border-color: rgba(35, 223, 145, 0.13);
  background: rgba(17, 115, 77, 0.24);
  color: #5be8b0;
}

.profiles-page .status.active::before {
  background: var(--success);
  box-shadow: 0 0 6px rgba(35, 223, 145, 0.55);
}

.profiles-page .status.inactive {
  border-color: rgba(243, 182, 63, 0.12);
  background: rgba(119, 78, 11, 0.22);
  color: #efbd55;
}

.profiles-page .status.inactive::before {
  background: var(--warning);
  box-shadow: 0 0 6px rgba(243, 182, 63, 0.38);
}

.profiles-page .profile-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.profiles-page .icon-action {
  position: relative;
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(105, 255, 190, 0.08);
  border-radius: 9px;
  background: rgba(20, 39, 31, 0.65);
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profiles-page .icon-action svg {
  width: 15px;
  height: 15px;
}

.profiles-page .icon-action:hover {
  color: var(--accent-bright);
  border-color: rgba(53, 245, 173, 0.25);
  background: rgba(19, 73, 53, 0.52);
  box-shadow: 0 0 14px rgba(32, 229, 154, 0.1);
  filter: none;
  transform: translateY(-1px);
}

.profiles-page .icon-action.delete-action {
  color: #b66a6a;
}

.profiles-page .icon-action.delete-action:hover {
  color: #ff7d7d;
  border-color: rgba(255, 82, 82, 0.25);
  background: rgba(118, 27, 27, 0.3);
  box-shadow: 0 0 14px rgba(255, 82, 82, 0.09);
}

.profiles-page .icon-action:disabled {
  opacity: 0.45;
  transform: none;
}

.profiles-page .skeleton-row:hover {
  background: transparent;
  box-shadow: none;
}

.profiles-page .skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(83, 111, 98, 0.1), rgba(110, 151, 132, 0.2), rgba(83, 111, 98, 0.1));
  background-size: 220% 100%;
  animation: profiles-skeleton 1.5s ease-in-out infinite;
}

.profiles-page .skeleton-avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.profiles-page .skeleton-text {
  width: 80%;
  height: 8px;
}

.profiles-page .skeleton-text + .skeleton-text {
  margin-top: 8px;
}

.profiles-page .skeleton-text.short {
  width: 45%;
}

.profiles-page .skeleton-text.wide {
  width: 90%;
}

.profiles-page .skeleton-pill {
  width: 62px;
  height: 22px;
  border-radius: 999px;
}

.profiles-page .skeleton-actions {
  width: 240px;
  height: 36px;
}

@keyframes profiles-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.profiles-page .profiles-empty-state {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  border-top: 1px solid rgba(105, 255, 190, 0.06);
}

.profiles-page .profiles-empty-state .empty-state-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(53, 245, 173, 0.14);
  border-radius: 15px;
  background: rgba(18, 77, 56, 0.26);
  color: var(--accent);
}

.profiles-page .profiles-empty-state .empty-state-icon svg {
  width: 23px;
  height: 23px;
}

.profiles-page .profiles-empty-state h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
}

.profiles-page .profiles-empty-state p {
  max-width: 360px;
  margin: 8px 0 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.profiles-page .profiles-empty-state.is-error .empty-state-icon {
  border-color: rgba(255, 82, 82, 0.17);
  background: rgba(118, 27, 27, 0.23);
  color: #ff7373;
}

.profiles-page .clear-empty-filters {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(105, 255, 190, 0.11);
  border-radius: 9px;
  background: rgba(20, 39, 31, 0.7);
  color: var(--text-secondary);
  font-size: 11px;
}

.profiles-page .clear-empty-filters:hover {
  color: var(--accent-bright);
  border-color: rgba(53, 245, 173, 0.24);
  filter: none;
}

.profiles-page .profiles-modal {
  z-index: 60;
  background: rgba(1, 7, 4, 0.76);
  backdrop-filter: blur(8px);
}

.profiles-page .profiles-modal .modal-panel {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid rgba(105, 255, 190, 0.13);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0e1d17, #08130e);
  color: var(--text-primary);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), 0 0 40px rgba(32, 229, 154, 0.06);
}

.profiles-page .profiles-modal .section-title {
  margin-bottom: 16px;
}

.profiles-page .profiles-modal .section-title h2 {
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
}

.profiles-page .modal-close-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: rgba(20, 39, 31, 0.7);
  color: var(--text-secondary);
}

.profiles-page .modal-close-button:hover {
  color: var(--text-primary);
  border-color: rgba(53, 245, 173, 0.25);
  filter: none;
}

.profiles-page .profiles-modal .qr-target {
  min-height: 264px;
  margin: 8px 0 18px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: #f7fff9;
}

.profiles-page .profiles-modal .qr-target canvas {
  max-width: 100%;
  height: auto !important;
}

.profiles-page .modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.profiles-page .modal-actions button {
  min-height: 42px;
  border: 1px solid rgba(53, 245, 173, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, #18bd7e, #0b8e5f);
  color: #fff;
  font-size: 11px;
}

.profiles-page .modal-actions button.secondary {
  border-color: var(--border-subtle);
  background: rgba(20, 39, 31, 0.75);
  color: var(--text-primary);
}

.profiles-page .profiles-toast {
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(53, 245, 173, 0.16);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(10, 28, 20, 0.96);
  color: var(--text-primary);
  font-size: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), 0 0 22px rgba(32, 229, 154, 0.07);
}

.profiles-page .profiles-toast.is-error {
  border-color: rgba(255, 82, 82, 0.2);
  border-left-color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .profiles-page *,
  .profiles-page *::before,
  .profiles-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .profiles-page .profile-toolbar {
    grid-template-columns: minmax(240px, 1fr) 155px 155px 42px;
  }

  .profiles-page .profile-metric {
    padding-inline: 14px;
  }
}

@media (max-width: 960px) {
  .profiles-page.sidebar-open {
    overflow: hidden;
  }

  .profiles-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .profiles-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(284px, calc(100vw - 42px));
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 210ms ease;
  }

  .profiles-sidebar.is-open {
    transform: translateX(0);
  }

  .profiles-page .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(1, 7, 4, 0.68);
    opacity: 0;
    visibility: hidden;
    cursor: default;
    backdrop-filter: blur(3px);
    transition: opacity 210ms ease, visibility 210ms ease;
  }

  .profiles-page .sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .profiles-content {
    max-width: none;
  }

  .profiles-page .mobile-menu-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin: 2px 14px 0 0;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(12, 30, 23, 0.72);
    color: var(--text-secondary);
  }

  .profiles-page .mobile-menu-button:hover {
    color: var(--accent-bright);
    border-color: rgba(53, 245, 173, 0.25);
    filter: none;
  }
}

@media (max-width: 800px) {
  .profiles-page .profile-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.5fr) 42px;
  }

  .profiles-page .search-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .profiles-content {
    padding: 24px 16px 36px;
  }

  .profiles-topbar {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }

  .profiles-page .header-title-group {
    flex: 1 1 100%;
  }

  .profiles-page .add-profile-button {
    width: 100%;
  }

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

  .profiles-page .profile-metric {
    min-height: 86px;
  }

  .profiles-page .profile-toolbar {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .profiles-page .search-control,
  .profiles-page .select-control {
    grid-column: 1 / -1;
  }

  .profiles-page .select-control[for="sortSelect"] {
    grid-column: 1;
    grid-row: 3;
  }

  .profiles-page .reset-filters-button {
    grid-column: 2;
    grid-row: 3;
  }

  .profiles-page .table-panel-heading {
    padding-inline: 16px;
  }

  .profiles-page .profiles-table {
    min-width: 1040px;
  }

  .profiles-page .profiles-table th:first-child,
  .profiles-page .profiles-table td:first-child {
    padding-left: 16px;
  }

  .profiles-page .profiles-table th:last-child,
  .profiles-page .profiles-table td:last-child {
    padding-right: 16px;
  }
}

@media (max-width: 460px) {
  .profiles-page .page-title .eyebrow {
    display: none;
  }

  .profiles-page .page-title h1 {
    font-size: 29px;
  }

  .profiles-page .page-title p {
    font-size: 12px;
  }

  .profiles-page .profile-metric {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 128px;
  }

  .profiles-page .profile-metric .metric-icon {
    width: 36px;
    height: 36px;
  }

  .profiles-page .profile-metric strong {
    font-size: 24px;
  }

  .profiles-page .table-panel-heading {
    align-items: flex-start;
  }

  .profiles-page .live-indicator {
    margin-top: 3px;
  }

  .profiles-page .modal-actions {
    grid-template-columns: 1fr;
  }

  .profiles-page .profiles-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

/* Live motion layer ------------------------------------------------------- */

.profiles-page::after {
  content: "";
  position: fixed;
  right: -18vw;
  bottom: -24vw;
  z-index: 0;
  width: max(520px, 48vw);
  height: max(520px, 48vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 196, 130, 0.09), rgba(8, 101, 68, 0.025) 42%, transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  animation: ambient-emerald-drift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.profiles-page .profiles-brand .brand-symbol,
.profiles-page .auth-brand .brand-symbol,
.profiles-page .mobile-auth-brand .brand-symbol {
  animation: brand-signal-breathe 4.8s ease-in-out infinite;
}

.profiles-page .system-pulse::after {
  animation: status-ring-pulse 2.4s ease-out infinite;
}

.profiles-page .live-indicator > span,
.profiles-page .auth-badge > span {
  animation: live-dot-pulse 1.9s ease-in-out infinite;
}

.profiles-page .profile-metric .metric-icon {
  animation: metric-icon-breathe 5s ease-in-out infinite;
}

.profiles-page .profile-metric:nth-child(2) .metric-icon { animation-delay: -1.25s; }
.profiles-page .profile-metric:nth-child(3) .metric-icon { animation-delay: -2.5s; }
.profiles-page .profile-metric:nth-child(4) .metric-icon { animation-delay: -3.75s; }

.profiles-page .profile-metric::after {
  animation: metric-ambient-shift 7s ease-in-out infinite alternate;
}

.profiles-page .profile-metric strong.is-counting {
  animation: metric-number-glow 720ms ease-out both;
}

.profiles-page .profiles-table tbody tr,
.profiles-page .dashboard-table tbody tr {
  animation: tech-row-enter 420ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.profiles-page .profiles-table tbody tr:nth-child(2),
.profiles-page .dashboard-table tbody tr:nth-child(2) { animation-delay: 45ms; }
.profiles-page .profiles-table tbody tr:nth-child(3),
.profiles-page .dashboard-table tbody tr:nth-child(3) { animation-delay: 90ms; }
.profiles-page .profiles-table tbody tr:nth-child(4),
.profiles-page .dashboard-table tbody tr:nth-child(4) { animation-delay: 135ms; }
.profiles-page .profiles-table tbody tr:nth-child(5),
.profiles-page .dashboard-table tbody tr:nth-child(5) { animation-delay: 180ms; }
.profiles-page .profiles-table tbody tr:nth-child(6),
.profiles-page .dashboard-table tbody tr:nth-child(6) { animation-delay: 225ms; }
.profiles-page .profiles-table tbody tr:nth-child(7),
.profiles-page .dashboard-table tbody tr:nth-child(7) { animation-delay: 270ms; }
.profiles-page .profiles-table tbody tr:nth-child(8),
.profiles-page .dashboard-table tbody tr:nth-child(8) { animation-delay: 315ms; }

.profiles-page .activity-item {
  animation: activity-slide-in 440ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.profiles-page .activity-item:nth-child(2) { animation-delay: 70ms; }
.profiles-page .activity-item:nth-child(3) { animation-delay: 140ms; }
.profiles-page .activity-item:nth-child(4) { animation-delay: 210ms; }
.profiles-page .activity-item:nth-child(5) { animation-delay: 280ms; }
.profiles-page .activity-item:nth-child(6) { animation-delay: 350ms; }
.profiles-page .activity-item:nth-child(7) { animation-delay: 420ms; }
.profiles-page .activity-item:nth-child(8) { animation-delay: 490ms; }

.profiles-page .tech-form-panel .steps::after {
  background-size: 220% 100%;
  animation: progress-energy-flow 2.8s linear infinite;
}

.profiles-page .nfc-hero-icon,
.profiles-page .nfc-primary-action svg {
  animation: nfc-signal-pulse 2.8s ease-in-out infinite;
}

.profiles-page .nfc-qr-panel .qr-target {
  position: relative;
  overflow: hidden;
}

.profiles-page .nfc-qr-panel .qr-target::after {
  content: "";
  position: absolute;
  right: 8%;
  left: 8%;
  top: 10%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(18, 193, 127, 0.7), transparent);
  box-shadow: 0 0 10px rgba(18, 193, 127, 0.42);
  opacity: 0.58;
  pointer-events: none;
  animation: qr-scan-line 4.2s ease-in-out infinite;
}

.profiles-page .landing-device-card {
  animation: landing-card-float 6.5s ease-in-out infinite;
  will-change: transform;
}

.profiles-page .landing-orbit {
  animation: landing-orbit-spin 24s linear infinite;
}

.profiles-page .orbit-two {
  animation-direction: reverse;
  animation-duration: 31s;
}

.profiles-page .landing-orbit::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 23%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(32, 229, 154, 0.62);
}

.profiles-page .landing-feature-chip {
  animation: feature-chip-float 5.2s ease-in-out infinite;
}

.profiles-page .chip-two {
  animation-delay: -2.6s;
}

.profiles-page .auth-showcase::before {
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: linear-gradient(110deg, transparent 42%, rgba(32, 229, 154, 0.035) 49%, transparent 56%);
  transform: translateX(-30%);
  pointer-events: none;
  animation: auth-ambient-sweep 11s ease-in-out infinite;
}

@keyframes ambient-emerald-drift {
  0% { opacity: 0.65; transform: translate3d(0, 0, 0) scale(0.92); }
  48% { opacity: 1; }
  100% { opacity: 0.72; transform: translate3d(-8vw, -6vh, 0) scale(1.08); }
}

@keyframes brand-signal-breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 18px rgba(32, 229, 154, 0.06); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 29px rgba(32, 229, 154, 0.16); }
}

@keyframes status-ring-pulse {
  0% { opacity: 0.7; transform: scale(0.72); }
  72%, 100% { opacity: 0; transform: scale(1.75); }
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes metric-icon-breathe {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: translateY(-2px); filter: drop-shadow(0 0 7px rgba(32, 229, 154, 0.18)); }
}

@keyframes metric-ambient-shift {
  from { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.55; }
  to { transform: translate3d(-18px, 16px, 0) scale(1.18); opacity: 1; }
}

@keyframes metric-number-glow {
  0% { color: var(--accent-bright); text-shadow: 0 0 16px rgba(32, 229, 154, 0.35); transform: translateY(3px); }
  100% { color: var(--text-primary); text-shadow: none; transform: translateY(0); }
}

@keyframes tech-row-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes activity-slide-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes progress-energy-flow {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@keyframes nfc-signal-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
  50% { filter: drop-shadow(0 0 8px rgba(32, 229, 154, 0.4)); transform: scale(1.04); }
}

@keyframes qr-scan-line {
  0%, 8% { top: 10%; opacity: 0; }
  16% { opacity: 0.58; }
  82% { opacity: 0.58; }
  92%, 100% { top: 90%; opacity: 0; }
}

@keyframes landing-card-float {
  0%, 100% { transform: perspective(900px) rotateY(-8deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-6deg) rotateX(2deg) translateY(-12px); }
}

@keyframes landing-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes feature-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes auth-ambient-sweep {
  0%, 22% { transform: translateX(-36%); opacity: 0; }
  36% { opacity: 1; }
  62% { opacity: 1; }
  78%, 100% { transform: translateX(36%); opacity: 0; }
}

/* Platform credits ------------------------------------------------------- */

.profiles-page .profiles-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.profiles-page .platform-credit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: auto;
  padding: 34px 2px 0;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profiles-page .platform-credit::before {
  content: "";
  width: 22px;
  height: 1px;
  margin-right: 4px;
  background: linear-gradient(90deg, transparent, rgba(53, 245, 173, 0.42));
}

.profiles-page .platform-credit strong,
.profiles-page .auth-platform-credit strong,
.profiles-page .landing-footer strong {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.profiles-page .auth-login-panel {
  position: relative;
}

.profiles-page .auth-platform-credit {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: 24px;
  margin: 0;
  color: var(--text-muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .profiles-page .platform-credit {
    justify-content: center;
    padding-top: 28px;
  }

  .profiles-page .auth-platform-credit {
    right: 24px;
    bottom: 20px;
  }
}

/* Shared emerald platform components ------------------------------------- */

.profiles-page .tech-secondary-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(105, 255, 190, 0.11);
  border-radius: 11px;
  background: rgba(13, 31, 24, 0.78);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.profiles-page .tech-secondary-button svg {
  width: 17px;
  height: 17px;
}

.profiles-page .tech-secondary-button:hover {
  color: var(--accent-bright);
  border-color: rgba(53, 245, 173, 0.25);
  background: rgba(18, 67, 49, 0.5);
  filter: none;
  transform: translateY(-1px);
}

.profiles-page .panel-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profiles-page .message {
  border: 1px solid rgba(105, 255, 190, 0.1);
  background: rgba(14, 34, 26, 0.76);
  color: var(--text-secondary);
}

.profiles-page .message.error {
  border-color: rgba(255, 82, 82, 0.2);
  background: rgba(118, 27, 27, 0.22);
  color: #ff8a8a;
}

.profiles-page .message.success {
  border-color: rgba(35, 223, 145, 0.18);
  background: rgba(17, 115, 77, 0.2);
  color: #67e8b5;
}

/* Dashboard */

.dashboard-page .profiles-content {
  max-width: 1720px;
}

.dashboard-page .dashboard-header-actions,
.profile-form-page .form-header-actions {
  flex-wrap: nowrap;
}

.profiles-page .dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.profiles-page .dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(9, 22, 17, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 24px 54px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.profiles-page .dashboard-panel-heading {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(105, 255, 190, 0.07);
  background: rgba(14, 31, 24, 0.42);
}

.profiles-page .dashboard-panel-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.profiles-page .dashboard-panel-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.profiles-page .panel-link {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.profiles-page .panel-link:hover {
  color: var(--accent-bright);
}

.profiles-page .dashboard-table {
  min-width: 700px;
  table-layout: fixed;
}

.profiles-page .dashboard-table th,
.profiles-page .dashboard-table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(105, 255, 190, 0.055);
  color: var(--text-secondary);
  font-size: 10px;
  vertical-align: middle;
}

.profiles-page .dashboard-table th {
  height: 42px;
  background: #0b1914;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.profiles-page .dashboard-table th:first-child,
.profiles-page .dashboard-table td:first-child {
  width: 25%;
  padding-left: 20px;
}

.profiles-page .dashboard-table th:nth-child(2) {
  width: 22%;
}

.profiles-page .dashboard-table th:nth-child(3) {
  width: 15%;
}

.profiles-page .dashboard-table th:nth-child(4) {
  width: 11%;
}

.profiles-page .dashboard-table th:nth-child(5) {
  width: 18%;
}

.profiles-page .dashboard-table th:last-child,
.profiles-page .dashboard-table td:last-child {
  width: 54px;
  padding-right: 18px;
}

.profiles-page .dashboard-table tbody tr {
  height: 66px;
  transition: background 170ms ease;
}

.profiles-page .dashboard-table tbody tr:hover {
  background: rgba(32, 229, 154, 0.035);
}

.profiles-page .dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.profiles-page .dashboard-identity strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .dashboard-identity small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .dashboard-business {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .dashboard-edit-action {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.profiles-page .dashboard-empty-state {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 25px;
  color: var(--text-muted);
  text-align: center;
}

.profiles-page .dashboard-empty-state strong {
  color: var(--text-primary);
  font-size: 12px;
}

.profiles-page .dashboard-empty-state span,
.profiles-page .dashboard-empty-state a {
  font-size: 10px;
}

.profiles-page .dashboard-empty-state a {
  color: var(--accent);
}

.profiles-page .activity-list {
  display: grid;
}

.profiles-page .activity-loading {
  display: grid;
  gap: 12px;
  padding: 25px 20px;
}

.profiles-page .activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(105, 255, 190, 0.055);
  transition: background 170ms ease;
}

.profiles-page .activity-item:last-child {
  border-bottom: 0;
}

.profiles-page .activity-item:hover {
  background: rgba(32, 229, 154, 0.035);
}

.profiles-page .activity-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 245, 173, 0.12);
  border-radius: 10px;
  background: rgba(12, 78, 55, 0.3);
  color: var(--accent);
}

.profiles-page .activity-icon svg {
  width: 17px;
  height: 17px;
}

.profiles-page .activity-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profiles-page .activity-copy strong {
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
}

.profiles-page .activity-copy > span {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .activity-copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .activity-item > time {
  color: var(--text-muted);
  font-size: 8px;
  white-space: nowrap;
}

/* Profile form studio */

.profile-form-page .profiles-content {
  max-width: 1500px;
}

.profiles-page .tech-form-panel {
  --form-progress: 20%;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(9, 22, 17, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 24px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.profiles-page .tech-form-panel .steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(105, 255, 190, 0.07);
  background: rgba(7, 18, 13, 0.78);
  scrollbar-width: thin;
}

.profiles-page .tech-form-panel .steps::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--form-progress);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-bright));
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 220ms ease;
}

.profiles-page .tech-form-panel .step-tab {
  min-height: 62px;
  justify-content: flex-start;
  padding: 14px 17px;
  border: 0;
  border-right: 1px solid rgba(105, 255, 190, 0.055);
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 170ms ease, background 170ms ease;
}

.profiles-page .tech-form-panel .step-tab > span {
  color: #50665c;
  font-family: Manrope, Inter, sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.profiles-page .tech-form-panel .step-tab:hover {
  color: var(--text-secondary);
  background: rgba(32, 229, 154, 0.025);
  filter: none;
}

.profiles-page .tech-form-panel .step-tab.is-active {
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(26, 103, 75, 0.22), rgba(11, 34, 25, 0.08));
}

.profiles-page .tech-form-panel .step-tab.is-active > span {
  color: var(--accent-bright);
}

.profiles-page .form-section {
  min-height: 420px;
  padding: clamp(22px, 3vw, 34px);
}

.profiles-page .form-section-heading {
  margin-bottom: 24px;
}

.profiles-page .form-section-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.profiles-page .form-section-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.profiles-page .form-section-heading.section-title {
  align-items: flex-end;
}

.profiles-page .tech-form-panel .form-grid {
  gap: 18px;
}

.profiles-page .tech-form-panel .field {
  gap: 8px;
  margin-top: 0;
  color: var(--text-secondary);
}

.profiles-page .tech-form-panel .field > span:first-child,
.profiles-page .tech-form-panel .field-label {
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profiles-page .tech-form-panel input,
.profiles-page .tech-form-panel select,
.profiles-page .tech-form-panel textarea {
  min-height: 44px;
  border: 1px solid rgba(105, 255, 190, 0.1);
  border-radius: 10px;
  background-color: rgba(5, 14, 10, 0.78);
  color: var(--text-primary);
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.profiles-page .tech-form-panel input::placeholder,
.profiles-page .tech-form-panel textarea::placeholder {
  color: #53685e;
}

.profiles-page .tech-form-panel input:focus,
.profiles-page .tech-form-panel select:focus,
.profiles-page .tech-form-panel textarea:focus {
  border-color: var(--border-active);
  background-color: rgba(7, 20, 14, 0.96);
  box-shadow: 0 0 0 3px rgba(32, 229, 154, 0.1);
}

.profiles-page .tech-form-panel select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239cb0a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.profiles-page .tech-form-panel input[type="color"] {
  min-height: 46px;
  padding: 5px;
  cursor: pointer;
}

.profiles-page .tech-form-panel input[type="file"] {
  padding: 6px;
  color: var(--text-muted);
}

.profiles-page .tech-form-panel input[type="file"]::file-selector-button {
  height: 31px;
  margin-right: 10px;
  padding: 0 11px;
  border: 1px solid rgba(53, 245, 173, 0.15);
  border-radius: 7px;
  background: rgba(18, 77, 56, 0.34);
  color: var(--accent-bright);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.profiles-page .tech-form-panel .upload-field {
  position: relative;
  min-height: 138px;
  padding: 14px;
  border: 1px dashed rgba(105, 255, 190, 0.15);
  border-radius: 12px;
  background: rgba(12, 31, 23, 0.36);
}

.profiles-page .tech-form-panel .image-preview {
  min-height: 0;
  margin-top: 2px;
}

.profiles-page .tech-form-panel .image-preview img {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(53, 245, 173, 0.16);
  border-radius: 12px;
  background: var(--surface-secondary);
}

.profiles-page .tech-form-panel .image-preview img:not([src]),
.profiles-page .tech-form-panel .image-preview img[src=""] {
  display: none;
}

.profiles-page .tech-form-panel .preview-link {
  padding: 13px 14px;
  border: 1px solid rgba(105, 255, 190, 0.09);
  border-radius: 10px;
  background: rgba(5, 14, 10, 0.65);
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.6;
  word-break: break-word;
}

.profiles-page .tech-form-panel .preview-link strong {
  color: var(--text-primary);
}

.profiles-page .tech-form-panel #slugStatus {
  min-height: 16px;
  color: var(--text-muted);
  font-size: 9px;
}

.profiles-page .tech-form-panel .action-row > button.secondary,
.profiles-page .tech-form-panel #addWebsiteButton {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(105, 255, 190, 0.1);
  border-radius: 9px;
  background: rgba(18, 52, 39, 0.5);
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 700;
}

.profiles-page .tech-form-panel .action-row > button.secondary:hover,
.profiles-page .tech-form-panel #addWebsiteButton:hover {
  color: var(--accent-bright);
  border-color: rgba(53, 245, 173, 0.25);
  filter: none;
}

.profiles-page .tech-form-panel .entry-list {
  gap: 12px;
  margin-top: 18px;
}

.profiles-page .tech-form-panel .entry-row {
  grid-template-columns: minmax(150px, 0.8fr) minmax(240px, 1.4fr) minmax(170px, auto);
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(105, 255, 190, 0.08);
  border-radius: 12px;
  background: rgba(10, 27, 20, 0.55);
}

.profiles-page .tech-form-panel .entry-row .action-row {
  flex-wrap: nowrap;
  align-items: end;
}

.profiles-page .tech-form-panel .entry-row .action-row .field {
  width: 72px;
}

.profiles-page .tech-form-panel .entry-row button.danger {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 82, 82, 0.16);
  border-radius: 9px;
  background: rgba(118, 27, 27, 0.25);
  color: #ff8181;
  font-size: 9px;
}

.profiles-page .tech-form-panel .preview-panel {
  padding: 20px;
  border: 1px solid rgba(105, 255, 190, 0.09);
  border-radius: 13px;
  background: rgba(10, 27, 20, 0.5);
  box-shadow: none;
}

.profiles-page .wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  justify-content: flex-end;
  min-height: 72px;
  margin-top: 0;
  padding: 14px clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(105, 255, 190, 0.08);
  background: rgba(7, 18, 13, 0.94);
  backdrop-filter: blur(12px);
}

.profiles-page .wizard-actions button {
  min-width: 104px;
  min-height: 42px;
  border: 1px solid rgba(53, 245, 173, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, #19c986, #0c9f69);
  color: #fff;
  font-size: 10px;
  box-shadow: 0 7px 20px rgba(18, 193, 127, 0.12);
}

.profiles-page .wizard-actions button.secondary {
  border-color: rgba(105, 255, 190, 0.1);
  background: rgba(20, 39, 31, 0.75);
  color: var(--text-secondary);
  box-shadow: none;
}

.profiles-page .wizard-actions button:disabled {
  opacity: 0.35;
}

.profile-form-page #formMessage {
  margin-bottom: 14px;
}

/* NFC writer */

.nfc-write-page .profiles-content {
  max-width: 1440px;
}

.profiles-page .nfc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(9, 22, 17, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 24px 54px rgba(0, 0, 0, 0.18);
}

.profiles-page .nfc-control-panel,
.profiles-page .nfc-qr-panel {
  padding: clamp(24px, 3vw, 38px);
}

.profiles-page .nfc-control-panel {
  border-right: 1px solid rgba(105, 255, 190, 0.08);
}

.profiles-page .nfc-panel-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 26px;
}

.profiles-page .nfc-hero-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(53, 245, 173, 0.18);
  border-radius: 15px;
  background: rgba(12, 78, 55, 0.34);
  color: var(--accent-bright);
  box-shadow: 0 0 24px rgba(32, 229, 154, 0.08);
}

.profiles-page .nfc-hero-icon svg {
  width: 25px;
  height: 25px;
}

.profiles-page .nfc-panel-heading h2,
.profiles-page .nfc-qr-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.profiles-page .nfc-panel-heading p,
.profiles-page .nfc-qr-heading p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.profiles-page .nfc-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 23px;
  padding: 0;
  list-style: none;
}

.profiles-page .nfc-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(105, 255, 190, 0.07);
  border-radius: 11px;
  background: rgba(8, 24, 17, 0.5);
}

.profiles-page .nfc-steps li > span {
  color: var(--accent);
  font-family: Manrope, Inter, sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.profiles-page .nfc-steps li div {
  display: grid;
  gap: 3px;
}

.profiles-page .nfc-steps strong {
  color: var(--text-primary);
  font-size: 10px;
}

.profiles-page .nfc-steps small {
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.4;
}

.profiles-page .nfc-status-message {
  margin-bottom: 13px;
  font-size: 10px;
}

.profiles-page .nfc-profile-summary {
  gap: 10px;
  margin-bottom: 18px;
}

.profiles-page .nfc-selected-profile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(105, 255, 190, 0.08);
  border-radius: 11px;
  background: rgba(8, 24, 17, 0.58);
}

.profiles-page .nfc-selected-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(12, 78, 55, 0.32);
  color: var(--accent);
}

.profiles-page .nfc-selected-icon svg {
  width: 18px;
  height: 18px;
}

.profiles-page .nfc-selected-profile > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profiles-page .nfc-selected-profile small {
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profiles-page .nfc-selected-profile strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .nfc-selected-profile > span:nth-child(2) > span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .nfc-profile-link {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid rgba(105, 255, 190, 0.07);
  border-radius: 10px;
  background: rgba(5, 14, 10, 0.62);
}

.profiles-page .nfc-profile-link span {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profiles-page .nfc-profile-link strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profiles-page .nfc-actions {
  gap: 9px;
}

.profiles-page .nfc-actions button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(105, 255, 190, 0.1);
  border-radius: 10px;
  background: rgba(20, 39, 31, 0.75);
  color: var(--text-secondary);
  font-size: 10px;
  box-shadow: none;
}

.profiles-page .nfc-actions .nfc-primary-action {
  border-color: rgba(53, 245, 173, 0.25);
  background: linear-gradient(135deg, #19c986, #0c9f69);
  color: #fff;
  box-shadow: 0 8px 24px rgba(18, 193, 127, 0.16);
}

.profiles-page .nfc-actions button:hover {
  border-color: rgba(53, 245, 173, 0.25);
  color: var(--accent-bright);
  filter: none;
  transform: translateY(-1px);
}

.profiles-page .nfc-actions .nfc-primary-action:hover {
  color: #fff;
  filter: brightness(1.08);
}

.profiles-page .nfc-qr-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(13, 36, 26, 0.58), rgba(5, 16, 11, 0.46));
}

.profiles-page .nfc-qr-panel .qr-target {
  min-height: 274px;
  display: grid;
  place-items: center;
  flex: 1;
  margin: 24px 0 18px;
  padding: 22px;
  border: 1px solid rgba(53, 245, 173, 0.13);
  border-radius: 14px;
  background: #f7fff9;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25), 0 0 26px rgba(32, 229, 154, 0.06);
}

.profiles-page .nfc-qr-panel .qr-target canvas {
  max-width: 100%;
  height: auto !important;
}

.profiles-page .nfc-qr-panel .qr-target a,
.profiles-page .profiles-modal .qr-target a {
  color: #087b54;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  word-break: break-all;
}

.profiles-page .secure-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.5;
}

.profiles-page .secure-note svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Authentication */

.tech-auth-page.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: auto;
  background:
    radial-gradient(circle at 14% 20%, rgba(20, 143, 96, 0.19), transparent 31%),
    radial-gradient(circle at 88% 80%, rgba(8, 102, 67, 0.16), transparent 34%),
    linear-gradient(135deg, #030705 0%, #07110d 52%, #04130c 100%);
}

.tech-auth-page::before {
  opacity: 0.1;
}

.profiles-page .auth-grid,
.profiles-page .landing-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(80, 255, 177, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 255, 177, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.profiles-page .auth-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  overflow: hidden;
  border: 1px solid rgba(105, 255, 190, 0.11);
  border-radius: 22px;
  background: rgba(5, 15, 10, 0.72);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
}

.profiles-page .auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 42px 48px 34px;
  border-right: 1px solid rgba(105, 255, 190, 0.08);
  background:
    radial-gradient(circle at 16% 16%, rgba(30, 166, 112, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(9, 32, 22, 0.82), rgba(3, 12, 8, 0.7));
}

.profiles-page .auth-showcase::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -190px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(53, 245, 173, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(53, 245, 173, 0.018), 0 0 0 140px rgba(53, 245, 173, 0.012);
}

.profiles-page .auth-brand,
.profiles-page .mobile-auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.profiles-page .auth-brand .brand-symbol,
.profiles-page .mobile-auth-brand .brand-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 245, 173, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(32, 229, 154, 0.17), rgba(7, 29, 21, 0.84));
  color: var(--accent-bright);
  box-shadow: 0 0 24px rgba(32, 229, 154, 0.08);
}

.profiles-page .auth-brand .brand-symbol svg,
.profiles-page .mobile-auth-brand .brand-symbol svg {
  width: 25px;
  height: 25px;
}

.profiles-page .auth-brand > span:last-child,
.profiles-page .mobile-auth-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.profiles-page .auth-brand strong,
.profiles-page .mobile-auth-brand strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 15px;
}

.profiles-page .auth-brand small,
.profiles-page .mobile-auth-brand small {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profiles-page .auth-showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 530px;
  margin-block: auto;
  padding-block: 60px;
}

.profiles-page .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(53, 245, 173, 0.12);
  border-radius: 999px;
  background: rgba(18, 77, 56, 0.24);
  color: #75dcb5;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profiles-page .auth-badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(32, 229, 154, 0.55);
}

.profiles-page .auth-showcase-copy h1,
.profiles-page .landing-hero h1 {
  margin: 20px 0 16px;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.profiles-page .auth-showcase-copy h1 em,
.profiles-page .landing-hero h1 em {
  color: var(--accent-bright);
  font-style: normal;
  text-shadow: 0 0 30px rgba(32, 229, 154, 0.13);
}

.profiles-page .auth-showcase-copy > p,
.profiles-page .landing-hero > p {
  max-width: 500px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.75;
}

.profiles-page .auth-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.profiles-page .auth-feature-list > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 9px;
}

.profiles-page .auth-feature-list > div > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 245, 173, 0.1);
  border-radius: 8px;
  background: rgba(18, 77, 56, 0.22);
  color: var(--accent);
}

.profiles-page .auth-feature-list svg {
  width: 14px;
  height: 14px;
}

.profiles-page .auth-showcase-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.profiles-page .auth-showcase-footer span {
  margin-inline: 6px;
  color: var(--accent-dark);
}

.profiles-page .auth-login-panel.login-panel {
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 62px);
  border: 0;
  border-radius: 0;
  background: rgba(6, 17, 12, 0.68);
  box-shadow: none;
}

.profiles-page .mobile-auth-brand {
  display: none;
}

.profiles-page .login-heading .eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profiles-page .login-heading h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.profiles-page .login-heading p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

.profiles-page .auth-login-panel form {
  margin-top: 27px;
}

.profiles-page .auth-login-panel .message {
  margin-bottom: 15px;
  font-size: 9px;
}

.profiles-page .auth-field {
  gap: 8px;
  margin-top: 15px;
}

.profiles-page .auth-field > span:first-child {
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profiles-page .auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profiles-page .auth-input-wrap > svg {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.profiles-page .auth-input-wrap input {
  height: 46px;
  padding: 11px 42px 11px 40px;
  border: 1px solid rgba(105, 255, 190, 0.1);
  border-radius: 10px;
  background: rgba(3, 12, 8, 0.72);
  color: var(--text-primary);
  font-size: 11px;
}

.profiles-page .auth-input-wrap input::placeholder {
  color: #53685e;
}

.profiles-page .auth-input-wrap input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(32, 229, 154, 0.1);
}

.profiles-page .password-toggle {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
}

.profiles-page .password-toggle svg {
  width: 16px;
  height: 16px;
}

.profiles-page .password-toggle:hover {
  color: var(--accent);
  background: rgba(18, 77, 56, 0.25);
  filter: none;
}

.profiles-page .auth-submit-button {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  padding: 11px 15px;
  border: 1px solid rgba(91, 255, 194, 0.3);
  border-radius: 10px;
  background: linear-gradient(135deg, #19c986, #0c9f69);
  color: #fff;
  box-shadow: 0 10px 27px rgba(18, 193, 127, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 10px;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.profiles-page .auth-submit-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(18, 193, 127, 0.23);
}

.profiles-page .auth-submit-button.is-loading svg {
  animation: auth-arrow-pulse 800ms ease-in-out infinite alternate;
}

@keyframes auth-arrow-pulse {
  to { transform: translateX(3px); opacity: 0.55; }
}

.profiles-page .auth-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.5;
}

.profiles-page .auth-security-note svg {
  width: 15px;
  height: 15px;
  color: var(--accent-dark);
}

.profiles-page .auth-back-link {
  align-self: flex-start;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 9px;
  text-decoration: none;
  transition: color 160ms ease;
}

.profiles-page .auth-back-link:hover {
  color: var(--accent);
}

/* Platform landing */

.platform-landing-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.profiles-page .landing-header {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  border-bottom: 1px solid rgba(105, 255, 190, 0.07);
}

.profiles-page .landing-login-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(105, 255, 190, 0.12);
  border-radius: 10px;
  background: rgba(13, 31, 24, 0.68);
  color: var(--text-secondary);
  font-size: 9px;
}

.profiles-page .landing-login-button:hover {
  color: var(--accent-bright);
  border-color: rgba(53, 245, 173, 0.25);
  filter: none;
}

.profiles-page .landing-main {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  min-height: calc(100vh - 154px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.85fr);
  align-items: center;
  gap: 60px;
  margin-inline: auto;
  padding-block: 54px 68px;
}

.profiles-page .landing-hero {
  position: relative;
  z-index: 2;
}

.profiles-page .landing-hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 6.3vw, 82px);
}

.profiles-page .landing-hero > p {
  max-width: 590px;
  font-size: 13px;
}

.profiles-page .landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.profiles-page .landing-secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 8px;
}

.profiles-page .landing-secure-note svg {
  width: 15px;
  height: 15px;
  color: var(--accent-dark);
}

.profiles-page .landing-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.profiles-page .landing-orbit {
  position: absolute;
  border: 1px solid rgba(53, 245, 173, 0.09);
  border-radius: 50%;
}

.profiles-page .orbit-one {
  width: 430px;
  height: 430px;
}

.profiles-page .orbit-two {
  width: 330px;
  height: 330px;
  border-color: rgba(53, 245, 173, 0.06);
}

.profiles-page .landing-device-card {
  position: relative;
  z-index: 2;
  width: 275px;
  height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 194, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(28, 92, 66, 0.48), rgba(5, 19, 13, 0.86)),
    #07130e;
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.4), 0 0 50px rgba(32, 229, 154, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
}

.profiles-page .landing-device-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.055), transparent 38%);
}

.profiles-page .landing-device-glow {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(32, 229, 154, 0.11);
  filter: blur(48px);
}

.profiles-page .landing-nfc-mark {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(91, 255, 194, 0.24);
  border-radius: 22px;
  background: rgba(10, 54, 38, 0.65);
  color: var(--accent-bright);
  box-shadow: 0 0 34px rgba(32, 229, 154, 0.16);
}

.profiles-page .landing-nfc-mark svg {
  width: 40px;
  height: 40px;
}

.profiles-page .landing-device-card small,
.profiles-page .landing-device-card strong,
.profiles-page .landing-device-card > span:last-child {
  position: relative;
}

.profiles-page .landing-device-card small {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profiles-page .landing-device-card strong {
  margin-top: 8px;
  color: var(--text-primary);
  font-family: Manrope, Inter, sans-serif;
  font-size: 22px;
}

.profiles-page .landing-device-card > span:last-child {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 9px;
}

.profiles-page .landing-feature-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(105, 255, 190, 0.13);
  border-radius: 12px;
  background: rgba(8, 24, 17, 0.88);
  color: var(--accent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.profiles-page .landing-feature-chip svg {
  width: 18px;
  height: 18px;
}

.profiles-page .landing-feature-chip > span {
  display: grid;
  gap: 2px;
}

.profiles-page .landing-feature-chip small {
  color: var(--text-muted);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profiles-page .landing-feature-chip strong {
  color: var(--text-primary);
  font-size: 9px;
}

.profiles-page .chip-one {
  top: 92px;
  right: 0;
}

.profiles-page .chip-two {
  left: 2px;
  bottom: 92px;
}

.profiles-page .landing-footer {
  position: absolute;
  right: 24px;
  bottom: 17px;
  left: 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 8px;
}

@media (max-width: 1220px) {
  .profiles-page .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profiles-page .activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profiles-page .activity-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }

  .profiles-page .landing-main {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.75fr);
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .dashboard-page .dashboard-header-actions,
  .profile-form-page .form-header-actions {
    flex-wrap: wrap;
  }

  .profiles-page .nfc-workspace {
    grid-template-columns: 1fr;
  }

  .profiles-page .nfc-control-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(105, 255, 190, 0.08);
  }

  .profiles-page .nfc-qr-panel .qr-target {
    min-height: 250px;
  }

  .profiles-page .auth-shell {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
  }

  .profiles-page .auth-showcase {
    display: none;
  }

  .profiles-page .mobile-auth-brand {
    display: inline-flex;
    margin-bottom: 42px;
  }

  .profiles-page .landing-main {
    grid-template-columns: 1fr;
    padding-top: 70px;
    text-align: center;
  }

  .profiles-page .landing-hero > p {
    margin-inline: auto;
  }

  .profiles-page .landing-actions {
    justify-content: center;
  }

  .profiles-page .landing-visual {
    min-height: 480px;
  }

  .platform-landing-page {
    overflow: auto;
  }

  .profiles-page .landing-footer {
    position: relative;
    padding: 20px 0;
  }
}

@media (max-width: 720px) {
  .dashboard-page .profiles-topbar,
  .profile-form-page .profiles-topbar,
  .nfc-write-page .profiles-topbar {
    flex-direction: row;
  }

  .dashboard-page .dashboard-header-actions,
  .profile-form-page .form-header-actions {
    width: 100%;
  }

  .dashboard-page .dashboard-header-actions > *,
  .profile-form-page .form-header-actions > *,
  .profile-form-page .profiles-topbar > .tech-secondary-button,
  .nfc-write-page .profiles-topbar > .tech-secondary-button {
    flex: 1;
  }

  .profiles-page .activity-list {
    grid-template-columns: 1fr;
  }

  .profiles-page .activity-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid rgba(105, 255, 190, 0.055);
  }

  .profiles-page .dashboard-panel-heading {
    padding-inline: 16px;
  }

  .profiles-page .tech-form-panel .steps {
    grid-template-columns: repeat(5, 138px);
  }

  .profiles-page .form-section {
    min-height: 0;
    padding: 22px 16px 28px;
  }

  .profiles-page .tech-form-panel .entry-row {
    grid-template-columns: 1fr;
  }

  .profiles-page .tech-form-panel .entry-row .action-row {
    justify-content: space-between;
  }

  .profiles-page .wizard-actions {
    padding-inline: 16px;
  }

  .profiles-page .nfc-control-panel,
  .profiles-page .nfc-qr-panel {
    padding: 22px 16px;
  }

  .profiles-page .nfc-actions button {
    flex: 1 1 calc(50% - 9px);
  }

  .profiles-page .nfc-actions .nfc-primary-action {
    flex-basis: 100%;
  }

  .tech-auth-page.auth-page {
    align-items: stretch;
    padding: 16px;
  }

  .profiles-page .auth-shell {
    min-height: calc(100vh - 32px);
  }

  .profiles-page .auth-login-panel.login-panel {
    padding: 32px 24px;
  }

  .profiles-page .mobile-auth-brand {
    margin-bottom: 52px;
  }

  .profiles-page .landing-header,
  .profiles-page .landing-main {
    width: min(100% - 32px, 1280px);
  }

  .profiles-page .landing-header {
    min-height: 78px;
  }

  .profiles-page .landing-main {
    min-height: 0;
    padding-top: 58px;
  }

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

  .profiles-page .landing-hero > p {
    font-size: 11px;
  }

  .profiles-page .landing-visual {
    min-height: 430px;
    transform: scale(0.88);
  }
}

@media (max-width: 460px) {
  .profiles-page .dashboard-panel-heading p,
  .profiles-page .live-indicator {
    display: none;
  }

  .profile-form-page .form-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profiles-page .wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profiles-page .wizard-actions button {
    min-width: 0;
  }

  .profiles-page .nfc-panel-heading {
    align-items: flex-start;
  }

  .profiles-page .nfc-selected-profile {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .profiles-page .nfc-selected-profile > .status {
    grid-column: 2;
    justify-self: start;
  }

  .profiles-page .landing-login-button span {
    display: none;
  }

  .profiles-page .landing-login-button {
    width: 40px;
    padding: 0;
  }

  .profiles-page .landing-visual {
    min-height: 390px;
    margin-inline: -38px;
    transform: scale(0.76);
  }

  .profiles-page .landing-footer {
    align-items: center;
    flex-direction: column;
    gap: 7px;
  }
}
