:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-strong: #010066;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #cc0001;
  --accent-strong: #9f0000;
  --accent-soft: #fee2e2;
  --blue: #010066;
  --blue-strong: #010044;
  --blue-soft: #edf1ff;
  --cyan: #010066;
  --warm: #ffcc00;
  --gold: #ffcc00;
  --shadow: 0 18px 52px rgba(1, 0, 102, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  padding-bottom: 82px;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 44px);
  border-bottom: 1px solid rgba(1, 0, 102, 0.08);
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(18px);
}

.login-mode .topbar {
  position: static;
  grid-template-columns: 1fr auto;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.login-mode .nav-links,
.login-mode .wallet-button,
.login-mode .account-button {
  display: none;
}

.brand,
.nav-links,
.wallet-button,
.menu-toggle,
.hero-actions,
.featured-info,
.stats-strip,
.market-controls,
.form-row,
.cms-tabs,
.table-heading,
.tool-list,
.payment-methods,
.policy-tags {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--gold);
  overflow: hidden;
}

.brand-mark.image-mark {
  background: transparent;
  color: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  background: var(--blue);
  color: white;
}

.page-section {
  display: none !important;
}

.page-section.active {
  display: block !important;
}

.hero.page-section.active,
.mint-panel.page-section.active {
  display: grid !important;
}

.wallet-button,
.account-button,
.menu-toggle,
.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.menu-toggle {
  display: none;
  justify-content: center;
  padding: 0 14px;
  background: var(--surface);
  color: var(--blue);
  border: 1px solid var(--line);
}

.wallet-button {
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.account-button {
  min-height: 40px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
}

.wallet-button.connected {
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.28);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.connected .status-dot {
  background: #16a34a;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  min-height: auto;
  padding: clamp(24px, 5vw, 52px) clamp(14px, 5vw, 56px);
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.62;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.primary-action {
  background: var(--accent);
  color: white;
}

.primary-action:hover {
  background: var(--accent-strong);
}

.secondary-action {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue);
}

.hero-showcase {
  min-width: 0;
}

.featured-nft {
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-nft img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured-info {
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.featured-info strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
  font-size: 0.86rem;
}

.price-pill,
.tag {
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 800;
}

.price-pill {
  padding: 10px 12px;
  background: #fef3c7;
  color: #92400e;
}

.stats-strip {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-strip strong {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
}

.section,
.mint-panel {
  padding: 28px clamp(14px, 5vw, 56px);
}

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

.discover-header,
.discover-search,
.mini-section-heading {
  display: flex;
  align-items: center;
}

.discover-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.discover-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.discover-tabs button,
.category-pills button {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.discover-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.discover-tabs button.active {
  background: var(--surface-strong);
  color: white;
}

.discover-search {
  gap: 12px;
  margin-bottom: 14px;
}

.discover-search .search-box {
  flex: 1;
}

.discover-search .search-box input {
  min-height: 50px;
  border-radius: 16px;
  font-size: 1rem;
}

.discover-search .select-box {
  min-width: 220px;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pills button {
  min-height: 38px;
  white-space: nowrap;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.category-pills button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.market-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin: 4px 0 20px;
}

.mini-section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-section-heading h3 {
  margin: 0;
  font-size: 1.12rem;
}

.mini-section-heading a,
.mini-section-heading span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

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

.collection-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.collection-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collection-card div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.collection-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.trending-board {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.trending-board ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trending-board li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.trending-board li:first-child {
  border-top: 0;
}

.trending-board strong {
  color: var(--cyan);
}

.item-heading {
  margin-top: 8px;
}

.market-controls {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: end;
}

.search-box,
.select-box,
.mint-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.search-box input,
.select-box select,
.mint-form input,
.mint-form select,
.mint-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.search-box input,
.select-box select {
  min-height: 44px;
  padding: 0 13px;
}

.search-box input {
  min-width: min(340px, 76vw);
}

.authenticity-banner {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(260px, 1fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: var(--blue-soft);
}

.authenticity-banner strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-strong);
  font-size: 1.4rem;
}

.authenticity-banner p {
  margin: 0;
  color: var(--blue-strong);
  line-height: 1.6;
}

.policy-tags {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.policy-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.nft-card {
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.nft-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.nft-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-top {
  align-items: start;
}

.card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.creator {
  color: var(--muted);
  font-size: 0.86rem;
}

.tag {
  padding: 7px 9px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 0.72rem;
}

.card-bottom {
  align-items: center;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.card-bottom button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-strong);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.card-bottom .fiat-button {
  background: var(--cyan);
}

.checkout-section {
  background: #f1f5f9;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
}

.checkout-copy p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.75;
}

.payment-methods {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.payment-methods span {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue-strong);
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid var(--line);
}

.checkout-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(31, 35, 47, 0.12);
}

.checkout-card strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.checkout-row b {
  color: var(--text);
}

.checkout-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-card select {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.mint-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.68fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #f1f5f9;
}

.mint-copy p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 8px 8px 0;
  color: #334155;
}

.mint-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(31, 35, 47, 0.12);
}

.form-row {
  gap: 14px;
}

.form-row label {
  flex: 1;
}

.mint-form input,
.mint-form select {
  min-height: 46px;
  padding: 0 13px;
}

.mint-form textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px 13px;
}

.full {
  width: 100%;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.profit-grid,
.dashboard-grid,
.protection-grid,
.security-grid,
.growth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

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

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

.growth-section {
  background: #f8fafc;
}

.growth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.growth-feature {
  position: sticky;
  top: 112px;
  min-height: 100%;
  padding: 22px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: white;
}

.growth-feature h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.growth-feature p {
  color: #dbeafe;
  line-height: 1.7;
}

.growth-feature .metric-label {
  color: #cfd3ff;
}

.growth-feature .secondary-action {
  width: fit-content;
  background: white;
  color: var(--blue-strong);
  border: 0;
}

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

.growth-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.growth-grid span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
}

.growth-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.08rem;
}

.growth-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-grid article,
.profit-grid article,
.protection-grid article,
.security-grid article,
.portal-grid article,
.cms-metrics article {
  min-height: 170px;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-strong);
  color: white;
}

.profit-grid article:last-child {
  background: var(--cyan);
}

.protection-section {
  background: #f8fafc;
}

.protection-grid article,
.security-grid article {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.protection-grid span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 900;
}

.protection-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.1rem;
}

.protection-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.security-section {
  background: #f1f5f9;
}

.security-icon {
  display: inline-grid;
  min-width: 42px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}

.security-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.1rem;
}

.security-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.metric-label {
  color: #aeb7c6;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-grid strong,
.profit-grid strong,
.portal-grid strong,
.cms-metrics strong {
  display: block;
  margin: 16px 0 12px;
  font-size: 2.3rem;
}

.dashboard-grid p,
.profit-grid p,
.portal-grid p {
  color: #cfd5df;
  line-height: 1.55;
}

.cms-section {
  background: #f1f5f9;
}

.cms-tabs {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-button,
.side-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab-button {
  padding: 0 16px;
}

.tab-button.active,
.side-link.active {
  background: var(--surface-strong);
  color: white;
  border-color: var(--surface-strong);
}

.cms-panel {
  display: none;
}

.cms-panel.active {
  display: block;
}

.cms-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.cms-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
}

@media (min-width: 981px) {
  .secondary-nav {
    display: none !important;
  }
}

.side-link {
  width: 100%;
  padding: 0 12px;
  text-align: left;
}

.cms-content {
  display: grid;
  gap: 18px;
}

.cms-metrics,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.settings-form,
.table-wrap,
.creator-tools {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
}

.role-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.role-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.role-panel-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

#roleBadge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}

.role-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.crypto-panel {
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.crypto-price-list {
  display: grid;
  gap: 8px;
}

.crypto-price-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-weight: 850;
}

.luno-link {
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
}

.role-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tools button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-weight: 850;
}

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

.portal-card,
.scan-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.portal-card h3,
.scan-panel h3 {
  margin: 0;
}

.portal-card p,
.scan-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.scan-panel {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr) auto;
  align-items: end;
}

.scan-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.scan-panel input {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-code {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  word-break: break-word;
}

.settings-form h3,
.table-heading h3,
.creator-tools h3 {
  margin: 0;
  font-size: 1.1rem;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.table-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.table-heading span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

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

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.tool-list {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tool-list span {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: white;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(140px, 0.7fr) minmax(190px, 0.8fr) minmax(170px, 0.7fr);
  align-items: start;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 56px) 96px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  color: #cfd5df;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand div,
.footer-links,
.footer-contact,
.footer-social {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  color: white;
}

.footer-brand span,
.footer-links span,
.footer-contact span,
.footer-social span {
  color: #aeb7c6;
  font-size: 0.82rem;
}

.site-footer a {
  color: white;
  text-decoration: none;
}

.footer-links a,
.footer-contact a,
.developer-link {
  width: fit-content;
  color: #f8fafc;
}

.footer-links a:hover,
.footer-contact a:hover,
.developer-link:hover,
.footer-mini-links a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 6px;
}

.social-links a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

.footer-compliance {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compliance-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
}

.footer-mini-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: end;
}

.footer-mini-links a {
  color: #cbd5e1;
  font-size: 0.82rem;
  text-decoration: none;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.auth-page {
  min-height: calc(100vh - 56px);
  display: grid !important;
  place-items: start center;
  padding: clamp(14px, 4vw, 36px);
  background: radial-gradient(circle at top left, rgba(255, 204, 0, 0.16), transparent 34%), var(--bg);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.news-feed {
  display: grid;
  gap: 14px;
}

.news-card,
.news-composer {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.news-card span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h3,
.news-composer h3 {
  margin: 0;
}

.news-card p {
  color: var(--muted);
  line-height: 1.6;
}

.news-composer label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.news-composer input,
.news-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.auth-card h2 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.auth-tabs button.active {
  background: var(--blue);
  color: white;
}

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

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-toggle,
.chat-panel {
  pointer-events: auto;
}

.chat-toggle {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
}

.chat-panel {
  width: min(340px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--surface-strong);
  color: white;
}

.chat-header div {
  display: grid;
  gap: 3px;
}

.chat-header span {
  color: #aeb7c6;
  font-size: 0.82rem;
}

.chat-header button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 14px;
}

.chat-messages p {
  max-width: 86%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.9rem;
}

.bot-message {
  background: #f1f5f9;
  color: var(--text);
}

.user-message {
  justify-self: end;
  background: var(--accent);
  color: white;
}

.quick-replies {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.quick-replies button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(1, 0, 102, 0.1);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(1, 0, 102, 0.18);
  }

  .nav-links .secondary-nav {
    display: none;
  }

  .nav-links a {
    display: grid;
    min-height: 48px;
    place-items: center;
    padding: 0 4px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .hero,
  .mint-panel {
    grid-template-columns: 1fr;
  }

  .nft-grid,
  .dashboard-grid,
  .profit-grid,
  .protection-grid,
  .security-grid,
  .growth-grid,
  .role-dashboard-grid,
  .portal-workspace,
  .cms-metrics,
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-layout {
    grid-template-columns: 1fr;
  }

  .growth-feature {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .market-showcase {
    grid-template-columns: 1fr;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

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

  .authenticity-banner {
    grid-template-columns: 1fr;
  }

  .policy-tags {
    justify-content: start;
  }

  .cms-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr auto auto;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

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

  .wallet-button {
    display: none;
  }

  .account-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .menu-toggle {
    min-height: 40px;
  }

  .nav-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hero-showcase {
    display: none;
  }

  h1 {
    font-size: clamp(2.05rem, 12vw, 3.05rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .hero-text,
  .checkout-copy p,
  .mint-copy p {
    line-height: 1.62;
  }

  .hero-actions,
  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action,
  .card-bottom button {
    width: 100%;
  }

  .featured-info,
  .card-bottom,
  .checkout-row,
  .table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .price-pill {
    width: fit-content;
  }

  .section-heading,
  .discover-header,
  .discover-search,
  .market-controls,
  .form-row,
  .stats-strip,
  .payment-methods,
  .tool-list,
  .policy-tags {
    align-items: stretch;
    flex-direction: column;
  }

  .discover-tabs,
  .discover-search .select-box {
    width: 100%;
  }

  .discover-tabs button {
    flex: 1;
  }

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

  .section,
  .mint-panel {
    padding: 22px 14px;
  }

  .search-box input {
    min-width: 0;
  }

  .nft-grid,
  .dashboard-grid,
  .profit-grid,
  .protection-grid,
  .security-grid,
  .growth-grid,
  .role-dashboard-grid,
  .portal-workspace,
  .cms-metrics,
  .portal-grid {
    grid-template-columns: 1fr;
  }

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

  .scan-panel {
    grid-template-columns: 1fr;
  }

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

  th,
  td {
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    display: none;
  }

  .wallet-button {
    min-width: 82px;
    font-size: 0.86rem;
  }

  .account-button {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #walletText {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stats-strip span,
  .payment-methods span,
  .policy-tags span,
  .tool-list span {
    width: 100%;
  }

  .checkout-card,
  .mint-form,
  .settings-form,
  .table-wrap,
  .creator-tools {
    padding: 14px;
  }

  .dashboard-grid article,
  .profit-grid article,
  .protection-grid article,
  .security-grid article,
  .growth-grid article,
  .role-dashboard,
  .portal-grid article,
  .cms-metrics article {
    min-height: 150px;
  }

  .dashboard-grid strong,
  .profit-grid strong,
  .portal-grid strong,
  .cms-metrics strong {
    font-size: 1.9rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 20px 14px;
  }

  .footer-brand {
    justify-content: center;
  }

  .compliance-badges {
    justify-content: center;
  }

  .footer-compliance {
    flex-direction: column;
  }

  .footer-mini-links {
    justify-content: center;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }
}

/* Final Photora UI overrides */
.topbar {
  min-height: 76px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
}

.brand {
  font-size: 1.24rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.nav-links {
  gap: clamp(8px, 1.4vw, 22px);
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-links a.active {
  background: transparent;
  color: var(--text);
}

.account-button {
  min-width: 108px;
  border-radius: 999px;
  background: #cc2f3f;
  box-shadow: 0 10px 28px rgba(204, 47, 63, 0.18);
}

.hero.page-section.active {
  display: grid !important;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 76px));
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(7, 13, 55, 0.9) 0%, rgba(15, 23, 70, 0.78) 44%, rgba(184, 55, 45, 0.48) 100%),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=2200&q=84") center / cover;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(1, 0, 45, 0.42), transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 26px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(1, 0, 102, 0.34);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  color: white;
  font-size: clamp(2.75rem, 5.6vw, 5.75rem);
}

.hero-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.hero .secondary-action.glass-action {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: clamp(52px, 8vw, 92px);
}

.hero-dots span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots span.active {
  width: 52px;
  background: white;
}

.dashboard.page-section.active {
  display: block !important;
}

.portal-shell {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f5f7fb;
}

.portal-sidebar {
  position: sticky;
  top: 76px;
  display: grid;
  align-content: start;
  gap: 22px;
  height: calc(100vh - 76px);
  padding: 24px 16px;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}

.portal-logo,
.portal-topbar,
.portal-heading,
.portal-actions,
.breadcrumb-pills {
  display: flex;
  align-items: center;
}

.portal-logo {
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 900;
}

.sidebar-kicker {
  margin: 28px 0 0;
  color: #9ca3af;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-menu {
  display: grid;
  gap: 8px;
}

.portal-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  color: #5b6472;
  font-weight: 850;
}

.portal-menu a.active,
.portal-menu a:hover {
  background: #010066;
  color: white;
  box-shadow: 0 14px 28px rgba(1, 0, 102, 0.18);
}

.portal-account {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.portal-account small {
  color: #64748b;
  font-weight: 700;
}

.portal-main {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 20px clamp(16px, 3.5vw, 44px) 48px;
}

.portal-topbar {
  justify-content: space-between;
  gap: 18px;
}

.portal-search {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
}

.portal-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.portal-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.portal-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.portal-actions span,
.breadcrumb-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #010066;
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-heading {
  justify-content: space-between;
  gap: 18px;
}

.portal-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.portal-heading p {
  margin: 0;
  color: #64748b;
  font-size: 1.04rem;
  line-height: 1.55;
}

.breadcrumb-pills {
  gap: 10px;
}

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

.portal-shell .dashboard-grid article {
  min-height: 150px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.portal-shell .dashboard-grid p {
  color: #64748b;
}

.portal-shell .dashboard-grid strong {
  color: #010066;
}

.portal-shell .role-dashboard {
  margin-top: 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.auth-page.page-section {
  display: none !important;
}

.auth-page.page-section.active {
  display: grid !important;
}

.auth-page {
  min-height: calc(100vh - 56px);
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: #eef2f7;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 0;
  width: min(1320px, 100%);
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

.auth-visual {
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 620px;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, #010066, #4f46e5);
  background-size: 48px 48px, 48px 48px, auto;
  color: white;
}

.auth-visual .brand-mark {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-visual h2,
.auth-visual p {
  color: white;
}

.auth-visual h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.auth-info-box {
  display: grid;
  gap: 12px;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-info-box h3,
.auth-info-box p,
.auth-info-box ul {
  margin: 0;
}

.auth-info-box li {
  margin-top: 10px;
}

.auth-form-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 64px);
}

.auth-form-panel h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.account-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-type-toggle button {
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #4b5563;
  cursor: pointer;
  font-weight: 900;
}

.account-type-toggle button.active {
  background: #4f46e5;
  color: white;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.24);
}

.auth-form input {
  min-height: 58px;
  border-radius: 12px;
  font-size: 1rem;
}

.remember-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.remember-row input {
  width: 22px;
  min-height: 22px;
}

.auth-form .primary-action {
  min-height: 60px;
  border-radius: 12px;
  background: #4f46e5;
}

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

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

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

  .portal-account {
    display: none;
  }

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

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

  .auth-visual {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 84px;
  }

  .topbar {
    min-height: 62px;
  }

  .nav-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    text-transform: none;
  }

  .nav-links a:nth-child(6) {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 146px);
    padding: 52px 18px 72px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-badge {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.7rem;
  }

  .portal-main {
    padding: 16px 14px 92px;
  }

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

  .portal-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .portal-menu a {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }

  .portal-shell .dashboard-grid,
  .portal-workspace {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding: 0;
    background: white;
  }

  .auth-card {
    min-height: calc(100vh - 56px);
    border-radius: 0;
    box-shadow: none;
  }

  .auth-visual {
    padding: 24px 18px;
  }

  .auth-info-box {
    margin-top: 10px;
    padding: 16px;
  }

  .auth-form-panel {
    padding: 24px 18px 34px;
  }

  .account-type-toggle button {
    min-height: 52px;
  }
}
