:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-elevated: #0f0f10;
  --panel: #111111;
  --panel-strong: #141414;
  --panel-soft: #171717;
  --surface: #111111;
  --surface-strong: #1b1b1b;
  --border: #262626;
  --border-strong: #333333;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-strong: #cfcfd5;
  --primary: #ffffff;
  --secondary: #e5e5e5;
  --accent: #3291ff;
  --success: #047857;
  --warning: #b45309;
  --danger: #dc2626;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 1px 1px rgba(255, 255, 255, 0.05);
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: min(1220px, calc(100% - 2rem));
  --content: min(1100px, calc(100% - 2rem));
  --transition: 180ms ease;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-elevated: #0f0f10;
  --panel: #111111;
  --panel-strong: #141414;
  --panel-soft: #171717;
  --surface: #111111;
  --surface-strong: #1b1b1b;
  --border: #262626;
  --border-strong: #333333;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-strong: #cfcfd5;
  --primary: #ffffff;
  --secondary: #e5e5e5;
  --accent: #3291ff;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 1px 1px rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Mobile / PWA: stable viewport height on Android Chrome */
@supports (min-height: 100dvh) {
  html {
    min-height: 100dvh;
  }
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(50, 145, 255, 0.08), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.035), transparent 22%),
    linear-gradient(180deg, #080808 0%, #0a0a0a 48%, #090909 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

/* Mobile drawer / secure viewer: lock background scroll only while overlay is open */
body.bs-mobile-drawer-open,
body.bs-viewer-modal-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
}

.container,
.content-wrap {
  width: var(--container);
  margin: 0 auto;
}

.content-wrap {
  width: var(--content);
}

.glass-card,
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.surface {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e2f8;
  font-size: 0.88rem;
}

.section {
  padding: 2rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading h1,
.section-heading h2,
.hero-title,
.auth-card h1,
.page-title,
.stat-value,
.price-card__price,
.biodata-name {
  font-family: "Outfit", sans-serif;
}

.section-heading h1,
.section-heading h2,
.hero-title,
.page-title {
  margin: 0.75rem 0 0.85rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-heading h1,
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.section-heading h2,
.page-title {
  font-size: clamp(1.85rem, 3vw, 3rem);
}

.section-copy,
.page-subtitle,
.auth-card p,
.input-help,
.card-copy,
.list-copy,
.table-note,
.biodata-section p {
  color: var(--muted);
  line-height: 1.7;
}

.btn-row,
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  min-height: 3.15rem;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 32px rgba(109, 124, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(109, 124, 255, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted-strong);
}

.btn-ghost {
  min-height: auto;
  padding: 0;
  color: #dbe7ff;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.badge-success {
  color: #c8ffe7;
  background: rgba(85, 215, 154, 0.12);
  border-color: rgba(85, 215, 154, 0.18);
}

.badge-warning {
  color: #ffe6be;
  background: rgba(255, 187, 99, 0.12);
  border-color: rgba(255, 187, 99, 0.18);
}

.badge-danger {
  color: #ffd0d8;
  background: rgba(255, 107, 131, 0.12);
  border-color: rgba(255, 107, 131, 0.18);
}

.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.alert-info {
  border-color: rgba(87, 214, 255, 0.18);
  background: rgba(87, 214, 255, 0.08);
}

.alert-warning {
  border-color: rgba(255, 187, 99, 0.18);
  background: rgba(255, 187, 99, 0.08);
}

.alert-danger {
  border-color: rgba(255, 107, 131, 0.18);
  background: rgba(255, 107, 131, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1.25rem 0;
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.94), rgba(7, 16, 28, 0.58));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.05;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

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

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.brand__name {
  color: var(--text);
  white-space: nowrap;
}

.brand__tagline {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .brand {
    gap: 0.65rem;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    padding: 3px;
    border-radius: 14px;
  }

  .brand__tagline {
    font-size: 0.68rem;
  }
}

.nav-links,
.nav-menu,
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--muted);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-toggle,
.sidebar-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span,
.sidebar-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(3, 8, 18, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-layout {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.25rem;
}

.auth-visual,
.auth-card {
  border-radius: var(--radius-xl);
}

.auth-visual {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: auto -12% -24% auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(109, 124, 255, 0.3), transparent 60%);
}

.auth-visual__panel {
  position: relative;
  z-index: 1;
  max-width: 430px;
}

.auth-card {
  padding: 2rem;
}

.auth-card h1 {
  margin: 0.65rem 0;
  font-size: 2.1rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

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

.field {
  display: grid;
  gap: 0.55rem;
}

.field label,
.toggle-card__label,
.setting-row h3,
.biodata-section h3,
.price-card h3,
.stat-card h3,
.table-card h3,
.viewer-card h3,
.summary-card h3 {
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(87, 214, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(87, 214, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.checkbox-row,
.inline-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.checkbox-row {
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row input {
  accent-color: var(--primary);
}

.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 12, 22, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-self: start;
}

.sidebar__panel {
  height: 100%;
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  color: var(--muted);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.sidebar-meta {
  margin-top: auto;
  padding: 1rem;
  border-radius: 22px;
}

.sidebar-meta h3,
.topbar h2,
.panel-title,
.timeline-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Outfit", sans-serif;
}

.main-panel {
  padding: 1.2rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-xl);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search {
  min-width: 260px;
}

.avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.25), rgba(153, 104, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.25rem;
}

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-card,
.summary-card,
.viewer-card,
.table-card,
.form-card,
.price-card,
.timeline-card,
.notice-banner,
.upload-card,
.link-card,
.biodata-card,
.gallery-card,
.otp-card,
.security-banner,
.toggle-card,
.setting-row,
.comparison-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 0.5rem;
}

.stat-card {
  min-height: 150px;
  transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover,
.price-card:hover,
.viewer-card:hover,
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.stat-label,
.meta-label,
.viewer-row span,
.table-cell.muted {
  color: var(--muted);
}

.stat-value {
  margin: 0.55rem 0 0.35rem;
  font-size: 2rem;
}

.progress {
  width: 100%;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.chart {
  min-height: 260px;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.chart-bar {
  height: var(--value, 45%);
  min-height: 28px;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(180deg, rgba(87, 214, 255, 0.9), rgba(109, 124, 255, 0.9) 58%, rgba(153, 104, 255, 0.95));
}

.line-chart {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  overflow: hidden;
}

.line-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewer-list,
.activity-list,
.settings-list {
  display: grid;
  gap: 1rem;
}

.viewer-row,
.activity-item,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.viewer-meta,
.mini-stack {
  display: grid;
  gap: 0.25rem;
}

.table {
  display: grid;
  gap: 0.7rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr 0.9fr;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.table-row.header {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-weight: 700;
}

.dashboard-cards,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.progress-step {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.progress-step.active {
  background: rgba(109, 124, 255, 0.16);
  border-color: rgba(109, 124, 255, 0.28);
  color: var(--text);
}

.upload-zone {
  min-height: 180px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.toggle-card,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background var(--transition);
}

.slider::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.biodata-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 1.25rem;
}

.biodata-hero {
  position: relative;
  overflow: hidden;
}

.biodata-hero__image {
  min-height: 330px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(9, 15, 28, 0.14), rgba(9, 15, 28, 0.68)),
    radial-gradient(circle at top left, rgba(109, 124, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #223154, #131c30);
  filter: saturate(0.95);
}

.blur-preview {
  position: absolute;
  inset: 1rem;
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
}

.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transform: rotate(-22deg);
  pointer-events: none;
}

.biodata-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.biodata-name {
  margin: 0.9rem 0 0.4rem;
  font-size: 2rem;
}

.biodata-section {
  display: grid;
  gap: 0.9rem;
}

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

.detail-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

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

.gallery-tile {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.15), rgba(7, 16, 28, 0.62)),
    linear-gradient(135deg, rgba(109, 124, 255, 0.34), rgba(153, 104, 255, 0.22));
}

.pricing-hero,
.page-hero {
  padding: 3rem 0 2rem;
}

.price-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border-color: rgba(109, 124, 255, 0.34);
  transform: scale(1.02);
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(109, 124, 255, 0.12), transparent 48%);
  pointer-events: none;
}

.price-card--spotlight {
  border-color: rgba(87, 214, 255, 0.3);
  box-shadow:
    0 24px 80px rgba(3, 7, 18, 0.45),
    0 0 0 1px rgba(87, 214, 255, 0.08),
    0 0 34px rgba(87, 214, 255, 0.12);
  transform: translateY(-8px);
}

.price-card__price {
  font-size: 2.7rem;
  margin: 0.8rem 0;
}

.price-card__duration {
  margin: -0.3rem 0 0.85rem;
  color: var(--muted-strong);
  font-weight: 600;
}

.price-card__note {
  margin-top: auto;
  margin-bottom: 1rem;
  color: #dfe7ff;
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 1.5rem;
  color: var(--muted);
}

.feature-list span {
  position: relative;
  padding-left: 1.1rem;
}

.feature-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow: 0 0 14px rgba(87, 214, 255, 0.38);
}

.pricing-hero {
  position: relative;
  overflow: hidden;
}

.pricing-toggle {
  width: fit-content;
  margin-top: 1.5rem;
  padding: 0.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.pricing-toggle__pill {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.26), rgba(153, 104, 255, 0.22));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(109, 124, 255, 0.18);
}

.pricing-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.pricing-ambient--one {
  width: 220px;
  height: 220px;
  top: 0;
  right: 12%;
  background: radial-gradient(circle, rgba(109, 124, 255, 0.18), transparent 65%);
}

.pricing-ambient--two {
  width: 180px;
  height: 180px;
  left: 4%;
  bottom: 0;
  background: radial-gradient(circle, rgba(87, 214, 255, 0.14), transparent 65%);
}

.pricing-faq-section,
.pricing-cta-section {
  position: relative;
  overflow: hidden;
}

.faq-list {
  display: grid;
  gap: 1.25rem;
}

.faq-item {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.faq-icon {
  font-size: 1.5rem;
  color: #dbe6ff;
  transition: transform var(--transition);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease, visibility 300ms;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.faq-answer p {
  min-height: 0;
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.pricing-cta-section {
  text-align: center;
}

.pricing-cta-section .btn-row {
  justify-content: center;
}

.comparison-grid {
  display: grid;
  gap: 1.1rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.otp-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.otp-card {
  width: min(520px, 100%);
  text-align: center;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.otp-input {
  min-height: 4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.otp-pulse {
  width: 86px;
  height: 86px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 214, 255, 0.34), rgba(109, 124, 255, 0.12));
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(87, 214, 255, 0.22);
  animation: pulse 2.2s ease-in-out infinite;
}

.qr-placeholder {
  aspect-ratio: 1 / 1;
  max-width: 180px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 20%, transparent 20%, transparent 40%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.08) 60%, transparent 60%, transparent 80%, rgba(255, 255, 255, 0.08) 80%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 20%, transparent 20%, transparent 40%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.08) 60%, transparent 60%, transparent 80%, rgba(255, 255, 255, 0.08) 80%);
  background-size: 22px 22px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(9, 15, 28, 0.92);
  border: 1px solid rgba(87, 214, 255, 0.2);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.modal__card {
  width: min(520px, 100%);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(87, 214, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(87, 214, 255, 0);
  }
}

@media (max-width: 1080px) {
  .auth-layout,
  .content-grid,
  .biodata-layout,
  .dashboard-cards,
  .pricing-grid,
  .comparison-row,
  .app-layout,
  .stats-grid,
  .three-grid,
  .two-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 82vw);
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: 40;
  }

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

  body.sidebar-open .app-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .main-panel {
    padding: 1rem;
  }

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

@media (max-width: 760px) {
  .navbar,
  .container,
  .content-wrap {
    width: min(100% - 1rem, 100%);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0.5rem;
    right: 0.5rem;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(9, 15, 28, 0.96);
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

  body.menu-open .nav-links,
  body.menu-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open .nav-toggle span:first-child {
    transform: translateY(0.25rem) rotate(45deg);
  }

  body.menu-open .nav-toggle span:last-child {
    transform: translateY(-0.25rem) rotate(-45deg);
  }

  body.menu-open .app-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .header-actions {
    display: none;
  }

  .auth-layout,
  .form-grid.two-col,
  .detail-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .otp-inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-card,
  .auth-visual,
  .topbar,
  .price-card,
  .biodata-card {
    padding: 1.25rem;
  }

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

  .topbar__left,
  .topbar__right {
    width: 100%;
    flex-wrap: wrap;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Minimal premium system refresh */
html {
  background: var(--bg);
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  padding-bottom: 0;
  transition: background-color 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.16;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 65%);
}

* {
  letter-spacing: 0;
}

*::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.page-bg,
.pricing-ambient,
.hero-ring,
.device-glow,
.security-radar__pulse,
.auth-visual::before {
  display: none;
}

.glass-card,
.panel,
.surface,
.stat-card,
.summary-card,
.viewer-card,
.table-card,
.form-card,
.price-card,
.timeline-card,
.notice-banner,
.upload-card,
.link-card,
.biodata-card,
.gallery-card,
.otp-card,
.security-banner,
.toggle-card,
.setting-row,
.comparison-card,
.auth-card,
.auth-visual,
.sidebar__panel,
.sidebar-meta,
.topbar,
.faq-item,
.modal__card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-right: 1px solid var(--border);
}

.navbar,
.topbar,
.sidebar__panel {
  gap: 1rem;
}

.nav-links {
  background: transparent;
}

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

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

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

.nav-link,
.sidebar-link,
.footer-grid a,
.muted,
.section-copy,
.page-subtitle,
.auth-card p,
.input-help,
.card-copy,
.list-copy,
.table-note,
.biodata-section p,
.feature-list,
.stat-label,
.meta-label,
.viewer-row span,
.table-cell.muted {
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active,
.sidebar-link:hover,
.sidebar-link.active,
.footer-grid a:hover {
  color: var(--text);
}

.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.75rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: 2rem 1.5rem 0;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.footer-grid h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.footer-grid a {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.55rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid a:hover {
  transform: translateX(2px);
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
}

.footer-copy {
  margin: 0.65rem 0 0;
  max-width: 26rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-links a {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 0;
}

.social-links a:hover {
  background: var(--panel);
  border-color: var(--border-strong);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding: 2.25rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 0;
  }
}

.sidebar-link:hover,
.sidebar-link.active,
.stat-card:hover,
.price-card:hover,
.viewer-card:hover,
.timeline-card:hover {
  background: var(--panel-soft);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.eyebrow,
.badge {
  background: var(--panel-soft);
  color: var(--muted-strong);
  border: 1px solid var(--border);
}

.badge-success,
.badge-warning,
.badge-danger {
  background: var(--panel-soft);
  border-color: var(--border);
  color: var(--text);
}

.btn {
  border-radius: 999px;
  box-shadow: none;
  min-height: 2.75rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  box-shadow: var(--shadow-soft);
}

.btn-secondary,
.btn-outline {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--border-strong);
  background: var(--panel-soft);
}

.input,
.select,
.textarea,
.otp-input {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  min-height: 2.9rem;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.input:focus,
.select:focus,
.textarea:focus,
.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.section-heading h1,
.section-heading h2,
.hero-title,
.page-title {
  font-size: 3.75rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-card h1,
.biodata-name {
  letter-spacing: 0;
}

.price-card {
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  gap: 0.25rem;
}

.price-card::before {
  display: none;
}

.price-card.featured,
.price-card--spotlight {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.price-card--spotlight {
  outline: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: -1px;
}

.price-card__price {
  color: var(--text);
  letter-spacing: 0;
}

.feature-list span::before {
  background: var(--text);
  box-shadow: none;
}

.pricing-toggle {
  background: var(--panel);
  border: 1px solid var(--border);
}

.pricing-toggle__pill {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: none;
}

.chart-bar,
.progress > span,
.share-progress__bar {
  background: var(--text);
  box-shadow: none;
}

.chart-bar,
.bar,
.float-card,
.otp-pulse,
.security-radar__pulse {
  animation: none;
}

.line-chart,
.stat-card,
.table-row,
.detail-item,
.security-chip,
.device-row,
.activity-item {
  background: var(--panel-soft);
  border-color: var(--border);
}

.toast,
.nav-links,
.biodata-hero__image,
.blur-preview,
.gallery-tile,
.qr-placeholder {
  background: var(--panel);
  border-color: var(--border);
}

.biodata-hero__image,
.gallery-tile {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 20%, transparent), color-mix(in srgb, var(--panel) 70%, transparent)),
    var(--panel-soft);
}

.blur-preview {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.watermark {
  color: color-mix(in srgb, var(--text) 12%, transparent);
}

.social-links a,
.icon-badge {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  color: var(--text);
}

.biodata-view-header {
  position: static;
  border-radius: var(--radius-xl);
}

.biodata-view-header .navbar {
  width: 100%;
}

.section-offset-sm {
  margin-top: 1rem;
}

.section-gap-sm {
  margin: 0 0 2rem;
}

.section-gap-md {
  margin: 1rem 0 2rem;
}

.section-gap-lg {
  margin: 0 0 4rem;
}

.dashboard__stats,
.stats-grid,
.pricing-grid,
.three-grid,
.two-grid,
.dashboard-cards,
.feature-grid,
.timeline,
.testimonial-grid {
  align-items: stretch;
}

.table {
  overflow-x: auto;
}

.table-row {
  min-width: 0;
}

.table-row > *,
.comparison-row > *,
.stat-card,
.summary-card,
.viewer-card,
.table-card,
.form-card,
.price-card,
.biodata-card,
.gallery-card,
.link-card {
  min-width: 0;
}

.table-row > *,
.comparison-row > * {
  overflow-wrap: anywhere;
}

.nextfable-badge {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(340px, calc(100vw - 2rem));
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.78rem;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.nextfable-badge:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--text);
}

.nextfable-badge img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  border-radius: 50%;
}

.empty-state,
.skeleton {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.empty-state {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.skeleton {
  min-height: 1rem;
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 8%, transparent), transparent);
  animation: skeletonSweep 1.4s ease-in-out infinite;
}

@keyframes skeletonSweep {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 760px) {
  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: 2.4rem;
  }

  .header-actions {
    display: flex;
    gap: 0.5rem;
  }

  .header-actions .btn {
    display: none;
  }

  .pricing-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 0.82rem;
    overflow-x: auto;
  }

  .nav-links {
    background: var(--panel);
    border-color: var(--border);
    box-shadow: var(--shadow);
  }

  .sidebar {
    width: min(320px, calc(100vw - 1.25rem));
  }

  .sidebar__panel {
    overflow-y: auto;
  }

  .btn-row,
  .quick-actions,
  .hero__actions {
    width: 100%;
  }

  .btn-row .btn,
  .quick-actions .btn,
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .comparison-row {
    gap: 0.55rem;
  }

  .otp-input {
    min-height: 3.4rem;
  }
}

@media (max-width: 420px) {
  .pricing-toggle {
    align-items: stretch;
    border-radius: var(--radius-lg);
    flex-direction: column;
  }

  .pricing-toggle__pill {
    text-align: center;
  }
}

/* ==================== COMPREHENSIVE RESPONSIVE DESIGN ==================== */

/* Tablet: 768px and below */
@media (max-width: 768px) {
  :root {
    --container: min(100%, calc(100% - 1.5rem));
  }

  .section {
    padding: 2rem 0 3rem;
  }

  .stats-grid,
  .three-grid,
  .dashboard-cards,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: 2.2rem;
  }

  .btn {
    min-height: 2.8rem;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .stat-card,
  .price-card {
    padding: 1.5rem;
  }

  .auth-card h1 {
    font-size: 1.8rem;
  }

  .biodata-name {
    font-size: 1.6rem;
  }
}

/* Large Mobile: 600px - 768px */
@media (min-width: 601px) and (max-width: 768px) {
  .stats-grid,
  .three-grid,
  .dashboard-cards,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-heading h1,
  .section-heading h2 {
    font-size: 2.1rem;
  }

  .btn {
    min-height: 2.8rem;
  }

  .input,
  .select,
  .textarea {
    min-height: 3rem;
  }
}

/* Medium Mobile: 481px - 600px */
@media (min-width: 481px) and (max-width: 600px) {
  .stats-grid,
  .three-grid,
  .dashboard-cards,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 1.8rem;
  }

  .btn {
    min-height: 2.5rem;
  }

  .input,
  .select,
  .textarea {
    min-height: 2.8rem;
  }

  .otp-inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
  :root {
    --container: min(100%, calc(100% - 0.75rem));
    font-size: 14px;
  }

  .section {
    padding: 1.5rem 0 2rem;
  }

  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: 1.6rem;
  }

  .section-heading {
    margin-bottom: 1.25rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .btn {
    min-height: 2.4rem;
    padding: 0 0.8rem;
    font-size: 0.85rem;
    gap: 0.3rem;
  }

  .auth-card,
  .auth-visual,
  .topbar,
  .price-card,
  .biodata-card,
  .stat-card,
  .summary-card,
  .viewer-card,
  .table-card,
  .form-card,
  .timeline-card {
    padding: 1rem;
  }

  .auth-card h1 {
    font-size: 1.3rem;
    margin: 0.4rem 0;
  }

  .biodata-name {
    font-size: 1.2rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .badge,
  .eyebrow {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
  }

  .field label {
    font-size: 0.9rem;
  }

  .input,
  .select,
  .textarea,
  .otp-input {
    min-height: 2.6rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  .textarea {
    min-height: 5rem;
  }

  .otp-input {
    min-height: 3rem;
    font-size: 1rem;
  }

  .otp-inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .progress-steps {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .progress-step {
    padding: 0.75rem 0.8rem;
    font-size: 0.8rem;
  }

  .feature-list span {
    padding-left: 0.9rem;
    font-size: 0.85rem;
  }

  .feature-list span::before {
    width: 0.35rem;
    height: 0.35rem;
    top: 0.5rem;
  }

  .nextfable-badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    gap: 0.4rem;
  }

  .nextfable-badge img {
    width: 1rem;
    height: 1rem;
  }

  .price-card__price {
    font-size: 1.8rem;
    margin: 0.5rem 0 0.3rem;
  }

  .price-card__duration {
    font-size: 0.85rem;
  }

  .pricing-toggle {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    gap: 0.5rem;
  }

  .pricing-toggle__pill {
    text-align: center;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .chart {
    min-height: 150px;
    gap: 0.5rem;
  }

  .chart-bar {
    min-height: 20px;
  }

  .modal__card,
  .otp-card {
    padding: 1.2rem;
  }

  .otp-card h1 {
    font-size: 1.4rem;
  }

  .alert {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
  }

  .upload-zone {
    min-height: 140px;
    padding: 1rem;
  }

  .table {
    font-size: 0.85rem;
  }

  .table-row {
    padding: 0.75rem 0.8rem;
    gap: 0.6rem;
  }

  .table-row.header {
    font-size: 0.75rem;
  }

  .detail-item {
    padding: 0.8rem 0.85rem;
  }

  .biodata-hero__image {
    min-height: 240px;
  }

  .watermark {
    font-size: clamp(0.9rem, 3vw, 2rem);
  }

  .avatar {
    width: 2.4rem;
    height: 2.4rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  .stat-label,
  .meta-label {
    font-size: 0.8rem;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .main-panel {
    padding: 0.8rem;
  }

  .topbar {
    top: 0.8rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .topbar h2 {
    font-size: 1.2rem;
    margin: 0;
  }
}

/* Extra Small Mobile: 375px and below */
@media (max-width: 375px) {
  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: 1.4rem;
  }

  .btn {
    min-height: 2.2rem;
    padding: 0 0.7rem;
    font-size: 0.8rem;
  }

  .auth-card h1 {
    font-size: 1.2rem;
  }

  .input,
  .select,
  .textarea,
  .otp-input {
    min-height: 2.4rem;
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
  }

  .auth-card,
  .stat-card,
  .price-card {
    padding: 0.9rem;
  }

  .section {
    padding: 1.2rem 0 1.8rem;
  }

  .section-heading {
    margin-bottom: 1rem;
  }

  .price-card__price {
    font-size: 1.6rem;
  }

  .nextfable-badge {
    font-size: 0.65rem;
  }

  .otp-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .feature-list {
    margin: 0.8rem 0 1rem;
  }
}

/* Laptop / Small Desktop: 1024px - 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {
  .section {
    padding: 5rem 0;
  }

  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: clamp(2.8rem, 4vw, 3.8rem);
  }

  .stats-grid,
  .dashboard-cards,
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Large Desktop: 1441px - 1920px */
@media (min-width: 1441px) and (max-width: 1920px) {
  .section {
    padding: 6rem 0;
  }

  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: clamp(3rem, 5vw, 4.2rem);
  }

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

/* Ultra-wide Desktop / TV: 1921px and above */
@media (min-width: 1921px) {
  .section {
    padding: 7rem 0;
  }

  .section-heading {
    max-width: 900px;
    margin-bottom: 5rem;
  }

  .btn {
    min-height: 3.6rem;
    padding: 0 1.6rem;
    font-size: 1.05rem;
  }

  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: clamp(4rem, 7vw, 5.5rem);
  }

  .stat-value {
    font-size: 2.3rem;
  }

  .stat-card,
  .price-card {
    padding: 2rem;
  }

  .price-card__price {
    font-size: 3.2rem;
  }

  .auth-card,
  .topbar,
  .biodata-card {
    padding: 2.2rem;
  }

  .auth-card h1 {
    font-size: 2.4rem;
  }

  .biodata-name {
    font-size: 2.2rem;
  }

  .input,
  .select,
  .textarea {
    min-height: 3.6rem;
    padding: 1.1rem 1.2rem;
    font-size: 1rem;
  }

  .chart {
    min-height: 320px;
  }

  .progress-steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

/* Large Monitor / High Resolution: 2560px and above */
@media (min-width: 2560px) {
  :root {
    --container: min(1600px, calc(100% - 2rem));
  }

  .section {
    padding: 8rem 0;
  }

  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: 5rem;
  }

  .btn {
    min-height: 4rem;
    padding: 0 2rem;
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 2.8rem;
  }

  .auth-card,
  .stat-card,
  .price-card {
    padding: 2.5rem;
  }

  .auth-card h1 {
    font-size: 2.8rem;
  }

  .price-card__price {
    font-size: 3.8rem;
  }

  .input,
  .select,
  .textarea {
    min-height: 4rem;
    padding: 1.3rem 1.4rem;
    font-size: 1.1rem;
  }

  .chart {
    min-height: 380px;
  }

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

  .table {
    font-size: 1rem;
  }

  .table-row {
    padding: 1.2rem 1.3rem;
  }
}

/* ── SELECT DROPDOWN FIX (white elements) ──────────────────────────────────── */
select,
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem !important;
}

select option {
  background-color: var(--panel) !important;
  color: var(--text) !important;
}

/* Dark mode explicit override */
:root[data-theme="dark"] select,
:root[data-theme="dark"] select.input {
  background-color: #111111 !important;
  color: #fafafa !important;
  border-color: #262626 !important;
}

:root[data-theme="dark"] select option {
  background-color: #111111 !important;
  color: #fafafa !important;
}

/* ── NOTIFICATION PANEL ──────────────────────────────────────────────────── */
.notif-panel {
  margin-bottom: 1rem;
  animation: slideDown 0.2s ease;
}

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

.request-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.request-card .request-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.request-card .request-actions {
  display: flex;
  gap: 8px;
}

.request-card .request-actions button {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.request-card .approve-btn {
  background: var(--text) !important;
  color: var(--bg) !important;
  border-color: var(--text) !important;
}

.request-card .deny-btn {
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

/* ── MODE CARDS ──────────────────────────────────────────────────────────── */
.mode-card {
  cursor: pointer;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--panel);
  transition: border-color 0.15s, background 0.15s;
}

.mode-card.selected {
  border-color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 6%, var(--panel)) !important;
}

/* ── WAITING STATE ───────────────────────────────────────────────────────── */
.waiting-banner {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  text-align: center;
}

/* ── Fix white dropdown options ─────────────────────────────────────────────── */
select.input option,
select option {
  background: #111111;
  color: #fafafa;
}

select.input {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Fix radio buttons ───────────────────────────────────────────────────────── */
input[type="radio"] {
  accent-color: #60a5fa;
  width: 16px;
  height: 16px;
}

/* ── Fix any white bg leaking on cards ──────────────────────────────────────── */
.biodata-card,
.link-card,
.form-card,
.otp-card,
.stat-card,
.viewer-card,
.table-card,
.summary-card,
.notice-banner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.mode-card {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, background 0.15s;
}

.mode-card:has(input:checked) {
  border-color: #60a5fa;
  background: rgba(96,165,250,0.07);
}

/* ── PWA + NOTIFICATIONS ─────────────────────────────────────────────────── */
body.bs-standalone {
  -webkit-user-select: none;
  user-select: none;
}

.bs-notification-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.bs-notification-bell {
  position: relative;
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.bs-notification-bell:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.bs-notification-bell::before {
  content: "";
  width: 1rem;
  height: 1rem;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--text);
}

.bs-notification-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  padding: 0 0.28rem;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.32);
}

.bs-notification-badge.is-visible {
  display: inline-flex;
}

.bs-notification-panel {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: min(380px, calc(100vw - 2.5rem));
  max-height: min(calc(100vh - 2.5rem), 560px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.96), rgba(18, 18, 18, 0.92));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  z-index: 50;
}

.bs-notification-panel.is-open {
  display: flex;
  flex-direction: column;
  animation: slideDown 0.2s ease;
}

.bs-notification-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bs-notification-panel__header h3 {
  margin: 0;
  font-size: 1rem;
}

.bs-notification-panel__body {
  padding: 0.85rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0.7rem;
}

.bs-notification-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.bs-notification-item:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.bs-notification-item.is-unread {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.08);
}

.bs-notification-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.bs-notification-item__title {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}

.bs-notification-item__message {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.bs-notification-item__time {
  font-size: 0.76rem;
  color: var(--muted);
}

.bs-notification-empty {
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.bs-notification-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bs-install-prompt {
  position: fixed;
  inset: auto 1rem 1rem auto;
  width: min(360px, calc(100vw - 2rem));
  z-index: 70;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.96), rgba(8, 8, 10, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  display: none;
}

.bs-install-prompt.is-visible {
  display: grid;
  gap: 0.85rem;
  animation: slideDown 0.2s ease;
}

.bs-install-prompt__title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
}

.bs-install-prompt__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.bs-install-prompt__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.bs-install-prompt__actions .btn {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 720px) {
  .bs-notification-panel {
    position: fixed;
    top: auto;
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    bottom: max(1rem, calc(0.85rem + env(safe-area-inset-bottom, 0px)));
    width: auto;
    max-height: none;
    overflow: visible;
    z-index: 68;
  }

  .bs-install-prompt {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
  }

  .bs-notification-panel__footer,
  .bs-install-prompt__actions {
    flex-direction: column;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== Mobile-first app shell refresh ==================== */
:root[data-theme="dark"] {
  color-scheme: dark;
}

@media (max-width: 1080px) {
  html,
  body {
    background:
      radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 30%),
      radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.12), transparent 22%),
      linear-gradient(180deg, #060b14 0%, #09111f 48%, #070b14 100%);
  }
}

body {
  min-height: 100vh;
}

body::before {
  opacity: 0.08;
  background-size: 84px 84px;
}

.site-header,
.topbar,
.sidebar__panel,
.sidebar-meta,
.glass-card,
.panel,
.surface,
.stat-card,
.summary-card,
.viewer-card,
.table-card,
.form-card,
.price-card,
.timeline-card,
.notice-banner,
.upload-card,
.link-card,
.biodata-card,
.gallery-card,
.otp-card,
.security-banner,
.toggle-card,
.setting-row,
.comparison-card,
.auth-card,
.auth-visual,
.sidebar-panel,
.sidebar__panel,
.sidebar-meta,
.modal__card {
  background: linear-gradient(180deg, rgba(9, 14, 26, 0.92), rgba(12, 18, 31, 0.92));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.eyebrow,
.badge,
.icon-badge {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.08);
  color: #dbe5f7;
}

.btn {
  min-height: 3rem;
  padding-inline: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  color: #07111f;
}

.btn-secondary,
.btn-outline {
  background: rgba(148, 163, 184, 0.08);
}

.input,
.select,
.textarea,
.otp-input {
  min-height: 3.1rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.14);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(203, 213, 225, 0.58);
}

.input:focus,
.select:focus,
.textarea:focus,
.otp-input:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.navbar {
  align-items: center;
  min-height: 3.8rem;
}

.brand {
  letter-spacing: -0.03em;
}

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

.brand__tagline {
  color: #94a3b8;
}

.container,
.content-wrap,
.navbar {
  width: min(1180px, calc(100% - 1.2rem));
}

.section {
  padding: 1.2rem 0 2rem;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.section-heading p,
.section-copy,
.page-subtitle,
.auth-card p,
.input-help,
.card-copy,
.list-copy,
.table-note,
.biodata-section p,
.muted {
  color: rgba(203, 213, 225, 0.76);
}

.section-heading h1,
.section-heading h2,
.hero-title,
.page-title,
.auth-card h1,
.biodata-name,
.stat-value,
.price-card__price {
  letter-spacing: -0.04em;
}

.page-shell,
.auth-shell,
.otp-shell {
  min-height: 100vh;
}

.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0.8rem;
  background: rgba(6, 10, 20, 0.82);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar__panel,
.sidebar-panel {
  height: 100%;
  padding: 1rem;
  border-radius: 26px;
}

.sidebar-nav {
  gap: 0.55rem;
}

.sidebar-link {
  padding: 0.92rem 1rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.03);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.18);
}

.main-panel {
  padding: 0.9rem;
}

.topbar {
  top: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 24px;
}

.topbar__left,
.topbar__right {
  gap: 0.8rem;
}

.avatar {
  border-radius: 18px;
}

.stats-grid,
.dashboard-cards,
.pricing-grid,
.content-grid,
.biodata-layout,
.two-grid,
.three-grid,
.grid-2,
.grid-3,
.grid-4,
.auth-layout,
.comparison-grid,
.timeline,
.feature-grid {
  gap: 0.9rem;
}

.stat-card,
.summary-card,
.viewer-card,
.table-card,
.form-card,
.price-card,
.timeline-card,
.notice-banner,
.upload-card,
.link-card,
.biodata-card,
.gallery-card,
.otp-card,
.security-banner,
.toggle-card,
.setting-row,
.comparison-card,
.auth-card,
.auth-visual {
  border-radius: 24px;
  padding: 1.05rem;
}

.section-block,
.bio-section,
.gate-card,
.share-card,
.settings-card,
.analytics-card,
.dashboard-card,
.dashboard-panel {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.94), rgba(12, 18, 31, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.dashboard-quick-actions .btn {
  min-width: 0;
}

.badge-success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.18);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.18);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.18);
}

.mobile-app-header,
.mobile-app-actions,
.mobile-bottom-nav,
.bs-mobile-drawer,
.bs-mobile-profile-menu,
.bs-viewer-modal {
  display: none;
}

.mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 38;
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(7, 11, 20, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-app-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.mobile-app-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.mobile-app-header__mark {
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 12px;
}

.mobile-app-header__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.mobile-app-header__text strong {
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
}

.mobile-app-header__text span {
  color: rgba(203, 213, 225, 0.64);
  font-size: 0.8rem;
}

.mobile-app-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.mobile-icon-btn {
  position: relative;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.08);
  display: inline-grid;
  place-items: center;
}

.mobile-icon-btn::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  mask: var(--icon-mask) center / contain no-repeat;
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
}

.mobile-icon-btn--menu {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
}

.mobile-icon-btn--bell {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E");
}

.mobile-icon-btn--profile {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.mobile-bottom-nav {
  position: fixed;
  left: max(0.6rem, env(safe-area-inset-left, 0px));
  right: max(0.6rem, env(safe-area-inset-right, 0px));
  bottom: max(0.6rem, calc(0.35rem + env(safe-area-inset-bottom, 0px)));
  z-index: 55;
  /* display controlled with .mobile-app-header (hidden on desktop; grid in ≤1080px) */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-bottom-nav__item {
  min-height: 3.2rem;
  padding: 0.45rem 0.25rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.mobile-bottom-nav__item svg.nav-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.82;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.mobile-bottom-nav__item.is-active svg.nav-icon {
  opacity: 1;
  transform: translateY(-1px) scale(1.08);
}

.mobile-bottom-nav__item.is-active {
  background: rgba(96, 165, 250, 0.15);
  color: #eef6ff;
}

.bs-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.bs-mobile-drawer.is-open {
  display: block;
}

.bs-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  border: 0;
}

.bs-mobile-drawer__panel {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  bottom: 0.5rem;
  width: min(88vw, 320px);
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 14, 26, 0.98), rgba(12, 18, 31, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  overflow: auto;
  transform: translateX(-4px);
}

.bs-mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bs-mobile-drawer__nav {
  display: grid;
  gap: 0.55rem;
}

.bs-mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.06);
  color: rgba(226, 232, 240, 0.88);
  border: 1px solid transparent;
}

.bs-mobile-drawer__link.is-active {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.12);
}

.bs-mobile-drawer__link small {
  color: rgba(203, 213, 225, 0.55);
}

.bs-mobile-profile-menu {
  position: fixed;
  right: max(0.6rem, env(safe-area-inset-right, 0px));
  top: max(4.7rem, calc(3.5rem + env(safe-area-inset-top, 0px)));
  z-index: 61;
  min-width: min(260px, calc(100vw - 1.2rem));
  padding: 0.7rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  display: none;
}

.bs-mobile-profile-menu.is-open {
  display: grid;
  gap: 0.45rem;
}

.bs-mobile-profile-menu__item {
  min-height: 2.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.06);
  text-align: left;
}

.floating-save-bar {
  position: static;
  bottom: auto;
  z-index: 22;
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem;
  margin-top: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.floating-save-bar .btn {
  flex: 1 1 0;
}

.wizard-stepper {
  position: sticky;
  top: 4.8rem;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem;
  border-radius: 20px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.bs-create-wizard {
  display: grid;
  gap: 0.65rem;
}

.wizard-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.75rem;
}

.wizard-actions .btn {
  flex: 1 1 0;
}

.bs-create-wizard + .section-block {
  margin-top: 0.25rem;
}

.wizard-step {
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 16px;
  color: rgba(203, 213, 225, 0.7);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.wizard-step.is-active {
  background: rgba(96, 165, 250, 0.16);
  color: #eef6ff;
}

.section-block {
  margin-bottom: 0.9rem;
  padding: 1rem;
}

.section-block h3,
.bio-section h3,
.share-card h3,
.settings-card h3,
.analytics-card h3 {
  margin-top: 0;
  font-family: "Outfit", sans-serif;
}

.field-group {
  gap: 0.45rem;
}

.field-group label {
  color: #e2e8f0;
}

.field-group .input,
.field-group .select,
.field-group .textarea {
  background: rgba(148, 163, 184, 0.08);
}

.bio-section {
  padding: 1rem;
}

.viewer-shell,
.viewer-hero,
.viewer-grid,
.viewer-card,
.viewer-gallery,
.secure-viewer {
  border-radius: 28px;
}

.watermark-overlay {
  color: rgba(248, 250, 252, 0.12);
  mix-blend-mode: screen;
}

.viewer-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 31, 0.96), rgba(9, 14, 26, 0.96));
}

.viewer-hero__image,
.biodata-hero__image {
  min-height: 300px;
  border-radius: 24px;
}

.viewer-gallery {
  display: grid;
  gap: 0.75rem;
}

.viewer-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 0.55rem;
}

.viewer-gallery__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.06);
}

.viewer-gallery__thumb.is-active {
  border-color: rgba(96, 165, 250, 0.38);
}

.bs-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bs-viewer-modal.is-open {
  display: grid;
  place-items: center;
}

.bs-viewer-modal__shell {
  width: min(100%, 760px);
  max-height: calc(100vh - 1.5rem);
  max-height: min(92dvh, calc(100dvh - 1.5rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(9, 14, 26, 0.98), rgba(12, 18, 31, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.bs-viewer-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bs-viewer-modal__image {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(148, 163, 184, 0.06);
}

.bs-viewer-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.page-view-biodata #bio-photo-img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

@media print {
  .page-view-biodata body,
  body.page-view-biodata {
    display: none !important;
  }
}

body.page-view-biodata.bs-secure-capture-guard::before {
  content: "Secure view protected";
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Outfit", sans-serif;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.bs-viewer-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 0.5rem;
}

.bs-viewer-modal__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.bs-viewer-modal__thumb.is-active {
  border-color: rgba(96, 165, 250, 0.38);
}

.bs-notification-panel {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(9, 14, 26, 0.98), rgba(12, 18, 31, 0.98));
}

.request-trigger {
  position: relative;
  min-height: 3.05rem;
  min-width: 7.75rem;
  padding: 0.72rem 1rem 0.72rem 3.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(148, 163, 184, 0.1)),
    rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #eef6ff;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: visible;
  isolation: isolate;
  white-space: nowrap;
}

.request-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.34);
}

.request-trigger.is-open {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(148, 163, 184, 0.12));
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.2);
}

.request-trigger::before {
  content: "";
  position: absolute;
  left: 1rem;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  opacity: 0.92;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.request-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%);
  pointer-events: none;
}

.request-trigger__label {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.request-trigger__badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.18rem;
  height: 1.18rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
}

.requests-panel {
  margin-top: 0.15rem;
}

.page-share-link .requests-panel {
  position: sticky;
  top: calc(5.25rem + env(safe-area-inset-top, 0px));
  z-index: 24;
  align-self: start;
}

.page-share-link .requests-panel__surface {
  max-height: calc(100dvh - 7.5rem - env(safe-area-inset-top, 0px));
  overflow: auto;
}

.page-share-link .bs-notification-panel {
  bottom: max(5.75rem, calc(5.25rem + env(safe-area-inset-bottom, 0px)));
  max-height: calc(100dvh - 7.75rem);
  overflow: hidden;
}

.page-share-link .bs-notification-panel__body {
  overflow-y: auto;
}

.requests-panel__surface {
  padding: 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(9, 14, 26, 0.96), rgba(12, 18, 31, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.requests-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.requests-panel__header h3 {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.03em;
}

.requests-panel__close {
  min-height: 2.45rem;
  padding-inline: 0.85rem;
  border-radius: 999px;
}

.requests-panel .request-card {
  margin-bottom: 0.8rem;
}

.bs-notification-item {
  border-radius: 18px;
  padding: 1rem;
}

.bs-notification-item {
  cursor: pointer;
}

.bs-notification-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.bs-request-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bs-request-actions__btn {
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.bs-request-actions__btn--danger {
  border-color: rgba(248, 113, 113, 0.34);
  color: #fecaca;
}

.bs-request-actions__btn--danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
}

.bs-install-prompt {
  border-radius: 24px;
}

@media (min-width: 761px) {
  .nextfable-badge {
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: min(360px, calc(100vw - 2.5rem));
  }
}

.skeleton-line,
.bs-app-skeleton {
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.06));
  background-size: 200% 100%;
  animation: skeletonSweep 1.25s ease-in-out infinite;
}

.bs-app-skeleton {
  min-height: 1rem;
}

.request-card,
.mode-card,
.waiting-banner {
  border-radius: 20px;
}

.request-card {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.waiting-banner {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.18);
}

.select,
select.input {
  color-scheme: dark;
}

@media (max-width: 1080px) {
  .app-layout,
  .auth-layout,
  .content-grid,
  .biodata-layout,
  .dashboard-cards,
  .pricing-grid,
  .comparison-row,
  .stats-grid,
  .three-grid,
  .two-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    transform: translateX(-102%);
    transition: transform 220ms ease;
    z-index: 58;
  }

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

  body.sidebar-open .app-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .mobile-app-header,
  .mobile-app-actions {
    display: flex;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .bs-mobile-drawer.is-open {
    display: block;
  }

  .bs-mobile-profile-menu.is-open {
    display: grid;
  }

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

  .topbar__left,
  .topbar__right {
    width: 100%;
    flex-wrap: wrap;
  }

  .floating-save-bar {
    bottom: auto;
  }

  .wizard-stepper {
    top: 4.35rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: none;
  }

  /* Public biodata viewer: keep original top nav + full scroll (mobile shell skipped in JS) */
  body.page-view-biodata .site-header {
    display: block;
  }

  body.page-view-biodata {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  /* Space for fixed bottom nav — only when mobile shell injects the nav (see JS) */
  body.bs-mobile-shell-active {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.bs-mobile-shell-active .topbar {
    display: none !important;
  }

  .container,
  .content-wrap,
  .navbar {
    width: min(100%, calc(100% - 0.9rem));
  }

  .main-panel {
    padding: 0.75rem;
  }

  .sidebar__panel,
  .sidebar-panel {
    border-radius: 22px;
  }

  .auth-layout {
    gap: 0.85rem;
  }

  .auth-visual {
    display: none;
  }

  .auth-card,
  .otp-card {
    padding: 1rem;
  }

  .section-heading h1,
  .section-heading h2,
  .hero-title,
  .page-title {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .stats-grid,
  .dashboard-cards,
  .pricing-grid,
  .comparison-row,
  .content-grid,
  .biodata-layout,
  .two-grid,
  .three-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 0.75rem;
  }

  .section-block,
  .bio-section,
  .gate-card,
  .share-card,
  .settings-card,
  .analytics-card,
  .dashboard-card,
  .stat-card,
  .summary-card,
  .viewer-card,
  .table-card,
  .form-card,
  .price-card,
  .timeline-card,
  .notice-banner,
  .upload-card,
  .link-card,
  .biodata-card,
  .gallery-card,
  .otp-card,
  .security-banner,
  .toggle-card,
  .setting-row,
  .comparison-card,
  .auth-card,
  .auth-visual {
    padding: 0.95rem;
    border-radius: 22px;
  }

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

  .wizard-step {
    min-height: 2.5rem;
  }

  .floating-save-bar {
    bottom: auto;
    margin-bottom: 0 !important;
  }

  .mobile-bottom-nav {
    left: max(0.45rem, env(safe-area-inset-left, 0px));
    right: max(0.45rem, env(safe-area-inset-right, 0px));
    bottom: max(0.45rem, calc(0.28rem + env(safe-area-inset-bottom, 0px)));
    gap: 0.25rem;
  }

  .mobile-bottom-nav__item {
    min-height: 3rem;
    font-size: 0.66rem;
  }

  .bs-viewer-modal {
    padding: 0.45rem;
  }

  .bs-viewer-modal__shell {
    width: 100%;
    max-height: calc(100vh - 0.9rem);
    max-height: min(92dvh, calc(100dvh - 0.9rem));
    border-radius: 24px;
  }

  .bs-notification-panel {
    inset: auto 0.45rem max(1rem, calc(0.85rem + env(safe-area-inset-bottom, 0px))) 0.45rem;
    width: auto;
    max-height: none;
    overflow: visible;
    z-index: 68;
  }

  .page-share-link .bs-notification-panel {
    bottom: max(5.75rem, calc(5.25rem + env(safe-area-inset-bottom, 0px)));
    max-height: calc(100dvh - 7.75rem);
    overflow: hidden;
  }

  .request-trigger {
    min-height: 2.75rem;
    min-width: 7.1rem;
    padding: 0.66rem 0.9rem 0.66rem 2.95rem;
    font-size: 0.88rem;
    border-radius: 999px;
  }

  .request-trigger__badge {
    top: -0.3rem;
    right: -0.3rem;
    min-width: 1.1rem;
    height: 1.1rem;
  }

  .nextfable-badge {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    bottom: auto !important;
    z-index: 10;
    margin: 1.5rem auto calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
    max-width: min(340px, calc(100% - 1.5rem));
    justify-content: center;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.82) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 0.55rem 1rem !important;
    border-radius: 999px !important;
    width: max-content;
  }

  .bs-install-prompt {
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    width: auto;
  }
}

@media (max-width: 900px) {
  .share-page-grid,
  .analytics-grid,
  .settings-grid,
  .viewer-grid,
  .dashboard-stats {
    grid-template-columns: 1fr !important;
  }

  .share-card--stack {
    gap: 0.75rem;
  }

  .page-share-link .requests-panel {
    position: static;
  }

  .page-share-link .requests-panel__surface {
    max-height: none;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .bs-app-skeleton {
    animation: none;
  }
}

@media (max-width: 760px) {
  body.bs-mobile-shell-active.page-create-biodata .main-panel {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 5.75rem - env(safe-area-inset-bottom, 0px));
    gap: 0;
  }

  body.bs-mobile-shell-active.page-create-biodata .section-block:not([hidden]) {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    margin-bottom: 0.75rem !important;
  }

  body.bs-mobile-shell-active.page-create-biodata .section-block:not([hidden]) .form-row {
    flex-grow: 1;
  }
}

/* Pricing launch refresh */
body.page-pricing .pricing-hero {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

body.page-pricing .pricing-hero .section-copy {
  max-width: 760px;
  margin-inline: auto;
}

body.page-pricing .pricing-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.65rem;
}

body.page-pricing .pricing-trust-strip span {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(3, 7, 18, 0.18);
}

body.page-pricing .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body.page-pricing .price-card {
  gap: 0.8rem;
  padding: 1.6rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(12, 18, 32, 0.98), rgba(8, 14, 25, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 24px 60px rgba(3, 7, 18, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

body.page-pricing .price-card::before {
  background: radial-gradient(circle at top, rgba(87, 214, 255, 0.12), transparent 48%);
}

body.page-pricing .price-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

body.page-pricing .price-card__heading {
  display: grid;
  gap: 0.3rem;
}

body.page-pricing .price-card__audience {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

body.page-pricing .price-card__price {
  margin: 0.25rem 0 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

body.page-pricing .price-card__duration {
  margin: 0;
  color: #d9e2f5;
  font-weight: 700;
}

body.page-pricing .price-card__note {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

body.page-pricing .price-card .feature-list {
  margin: 0.45rem 0 0.25rem;
}

body.page-pricing .price-card .btn-block {
  margin-top: auto;
}

body.page-pricing .price-card.featured,
body.page-pricing .price-card--recommended {
  transform: translateY(-8px);
  border-color: rgba(109, 124, 255, 0.38);
  box-shadow:
    0 28px 72px rgba(2, 6, 23, 0.42),
    0 0 0 1px rgba(109, 124, 255, 0.12),
    0 0 34px rgba(109, 124, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 25, 44, 0.98), rgba(10, 16, 30, 0.97)),
    linear-gradient(180deg, rgba(109, 124, 255, 0.15), transparent);
}

body.page-pricing .price-card--free {
  background:
    linear-gradient(180deg, rgba(11, 18, 30, 0.98), rgba(8, 14, 24, 0.96)),
    radial-gradient(circle at top, rgba(87, 214, 255, 0.08), transparent 48%);
}

body.page-pricing .price-card--family {
  background:
    linear-gradient(180deg, rgba(12, 18, 33, 0.98), rgba(9, 15, 27, 0.96)),
    radial-gradient(circle at top, rgba(153, 104, 255, 0.08), transparent 52%);
}

body.page-pricing .price-card--bureau {
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.98), rgba(7, 12, 21, 0.96)),
    radial-gradient(circle at top, rgba(87, 214, 255, 0.08), transparent 54%);
  border-color: rgba(87, 214, 255, 0.14);
}

body.page-pricing .price-card--bureau-pro {
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.98), rgba(6, 10, 18, 0.96)),
    radial-gradient(circle at top, rgba(87, 214, 255, 0.12), transparent 56%);
  border-color: rgba(87, 214, 255, 0.18);
}

body.page-pricing .comparison-card {
  position: relative;
  overflow: hidden;
}

body.page-pricing .comparison-table-wrap {
  overflow-x: auto;
  margin-top: 1.2rem;
  padding-bottom: 0.25rem;
}

body.page-pricing .comparison-grid--pricing {
  min-width: 920px;
}

body.page-pricing .comparison-grid--pricing .comparison-row {
  grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr));
}

body.page-pricing .comparison-grid--pricing .comparison-row--header {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

body.page-pricing .comparison-grid--pricing .comparison-row span,
body.page-pricing .comparison-grid--pricing .comparison-row strong {
  font-size: 0.95rem;
}

body.page-pricing .pricing-faq-section .faq-item {
  background: rgba(255, 255, 255, 0.04);
}

body.page-pricing .pricing-cta-section .section-copy {
  max-width: 740px;
  margin-inline: auto;
}

body.page-pricing .footer-copy {
  max-width: 38rem;
  line-height: 1.8;
}

@media (max-width: 980px) {
  body.page-pricing .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-pricing .price-card.featured,
  body.page-pricing .price-card--recommended {
    transform: none;
  }
}

@media (max-width: 720px) {
  body.page-pricing .pricing-grid {
    grid-template-columns: 1fr;
  }

  body.page-pricing .pricing-trust-strip {
    gap: 0.5rem;
  }

  body.page-pricing .pricing-trust-strip span {
    width: 100%;
    text-align: center;
  }

  body.page-pricing .comparison-table-wrap {
    margin-inline: calc(-1 * var(--page-padding, 1rem));
    padding-inline: var(--page-padding, 1rem);
  }
}
