:root {
  --bg: #f4f1ea;
  --bg-soft: #ebe5dc;
  --surface: #ffffff;
  --panel: #ffffff;
  --surface-alt: #f8f6f1;
  --surface-dark: #162028;
  --surface-dark-2: #1d2932;
  --text: #13212b;
  --muted: #63717a;
  --line: #ddd5ca;
  --line-strong: #c8beb1;
  --accent: #0f766e;
  --accent-deep: #0b5c56;
  --accent-soft: #dff4ef;
  --highlight: #b86e3b;
  --danger: #c54b55;
  --success: #1f8f68;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 10px 24px rgba(19, 33, 43, 0.06);
  --shadow-md: 0 18px 44px rgba(19, 33, 43, 0.08);
  --shadow-lg: 0 30px 90px rgba(19, 33, 43, 0.14);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --container: 1550px;
  --header-bg: rgba(248, 246, 241, 0.92);
  --header-line: rgba(200, 190, 177, 0.7);
  --body-glow: rgba(15, 118, 110, 0.08);
  --body-grad-start: #f7f4ee;
  --body-grad-end: #f1ece4;
  --glass-surface: rgba(255, 255, 255, 0.72);
  --section-band: rgba(255, 255, 255, 0.45);
  --section-band-line: rgba(200, 190, 177, 0.55);
  --readonly-bg: #f1ece4;
  --modal-overlay: rgba(0, 0, 0, 0.85);
  --footer-bg: #19232b;
  --footer-text: #edf3f7;
  --owner-list-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1117;
  --bg-soft: #111923;
  --surface: #121c26;
  --panel: #16212c;
  --surface-alt: #1a2531;
  --surface-dark: #05080d;
  --surface-dark-2: #0d141c;
  --text: #edf4fb;
  --muted: #91a1b1;
  --line: #253241;
  --line-strong: #334557;
  --accent: #36c4b2;
  --accent-deep: #1fa898;
  --accent-soft: rgba(54, 196, 178, 0.14);
  --highlight: #ff9a62;
  --danger: #ff7f93;
  --success: #57d39b;
  --shadow-sm: 0 14px 28px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 24px 54px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 34px 92px rgba(0, 0, 0, 0.42);
  --header-bg: rgba(9, 14, 20, 0.9);
  --header-line: rgba(51, 69, 87, 0.82);
  --body-glow: rgba(54, 196, 178, 0.12);
  --body-grad-start: #0f1720;
  --body-grad-end: #091017;
  --glass-surface: rgba(18, 28, 38, 0.82);
  --section-band: rgba(15, 22, 31, 0.72);
  --section-band-line: rgba(51, 69, 87, 0.6);
  --readonly-bg: #0f1720;
  --modal-overlay: rgba(2, 6, 10, 0.92);
  --footer-bg: #060b11;
  --footer-text: #dce8f4;
  --owner-list-bg: linear-gradient(180deg, rgba(20, 30, 40, 0.98), rgba(13, 20, 28, 0.96));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--body-glow), transparent 25%),
    linear-gradient(180deg, var(--body-grad-start) 0%, var(--body-grad-end) 100%);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  transition: background 0.35s ease, color 0.35s ease;
}

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

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

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden;
}

body.dashboard-page .dashboard-section .container {
  width: min(calc(100% - 3rem), 1700px);
}

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

.section {
  padding: 4.5rem 0;
}

.section-top {
  padding-top: 3.5rem;
}

.section-offset {
  padding-top: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.9rem;
  line-height: 1.05;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(18px);
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: visible;
}

.site-header .container {
  width: min(calc(100% - 2rem), var(--container));
}

.nav-wrap,
.main-nav,
.hero-actions,
.badge-row,
.product-meta,
.product-footer,
.thumb-strip,
.stats-grid,
.form-grid,
.inline-heading,
.nav-pill,
.dashboard-nav,
.detail-stack div,
.proof-list,
.resource-links,
.footer-grid,
.hero-metrics,
.store-card-bottom,
.store-card-meta,
.catalog-summary,
.catalog-results-strip,
.commerce-meta,
.commerce-tags,
.commerce-bottom {
  display: flex;
  gap: 1rem;
}

.nav-wrap {
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  overflow: visible;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 0.98rem;
}

.brand-mark small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.brand-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff, rgba(255, 255, 255, 0.5) 18%, transparent 19%),
    linear-gradient(135deg, #0f766e, #123544 72%);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.main-nav {
  align-items: center;
  overflow: visible;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-pill,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.22s ease;
  white-space: nowrap;
}

.nav-pill {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.account-menu {
  position: relative;
  z-index: 160;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 46px;
  padding: 0.42rem 0.55rem 0.42rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  cursor: pointer;
  min-width: 0;
}

.account-pill-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.account-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-pill-copy {
  display: grid;
  gap: 0.02rem;
  text-align: left;
  min-width: 0;
}

.account-pill-copy strong,
.account-pill-copy small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-pill-copy strong {
  font-size: 0.9rem;
  max-width: 112px;
}

.account-pill-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.account-pill-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 0.25rem;
  opacity: 0.72;
  flex-shrink: 0;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 190px;
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) translateZ(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 130;
}

.account-menu.is-open .account-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) translateZ(0);
}

/* Prevent header dropdown from expanding/layout-shifting other UI */
.account-menu,
.account-dropdown {
  pointer-events: auto;
}

/* If dropdown is open, ensure nav dropdown remains isolated */
.account-dropdown {
  overflow: hidden;
}

.account-menu.is-open .account-pill-caret {
  transform: rotate(-135deg);
  margin-top: 0.3rem;
}

.account-dropdown a {
  display: block;
  padding: 0.82rem 0.9rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
}

.account-dropdown a:hover {
  background: var(--surface-alt);
}

.btn {
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.nav-pill:hover {
  border-color: var(--line-strong);
  transform: none;
}

.btn:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
  z-index: 65;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
}

.hero {
  padding: 4.2rem 0 3.5rem;
}

.hero-grid,
.service-grid,
.proof-grid,
.contact-layout,
.product-layout,
.dashboard-shell,
.hero-stage,
.storefront-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

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

.hero-copy h1 {
  max-width: 36ch;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.04rem;
  max-width: 58ch;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-metrics {
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-metrics div {
  min-width: 132px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

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

.badge-row {
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.badge-row a,
.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-stage {
  grid-template-columns: 1fr;
}

.hero-product-card,
.store-card,
.dashboard-panel,
.auth-card,
.stat-card,
.service-grid article,
.contact-layout .panel-form,
.contact-copy,
.product-summary,
.product-main-image,
.dashboard-sidebar,
.catalog-filter-card,
.catalog-side-block,
.commerce-card,
.product-links {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
}

.hero-product-media {
  min-height: 100%;
  background: var(--surface-dark);
}

.hero-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-product-content {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
}

.hero-product-topline,
.store-card-meta,
.product-meta,
.commerce-meta,
.commerce-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-product-topline span,
.store-card-meta span,
.product-meta span,
.commerce-meta span,
.commerce-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.store-card-bottom,
.product-footer,
.commerce-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  margin-top: auto !important;
}

.hero-product-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
}

.hero-product-bottom > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.hero-product-bottom .btn {
  width: auto;
  min-width: 140px;
  flex-shrink: 0;
  flex-grow: 1;
}

.store-card-body,
.commerce-body,
.store-card-meta,
.commerce-meta,
.commerce-tags {
  min-width: 0;
}

.hero-product-bottom strong,
.store-card-bottom strong,
.product-footer strong,
.commerce-price strong,
.price-tag {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.hero-product-bottom strong,
.price-tag {
  font-size: 1.55rem;
}

.hero-product-bottom small,
.commerce-price small {
  color: var(--muted);
}

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

.inline-heading {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.inline-heading .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.inline-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .inline-heading {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .inline-heading .owner-panel-cta {
    width: 100%;
    justify-content: center;
  }
}

.text-link {
  color: var(--accent);
}

.shop-feature-section {
  background: var(--section-band);
  border-top: 1px solid var(--section-band-line);
  border-bottom: 1px solid var(--section-band-line);
}

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

.store-card,
.commerce-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.store-card,
.commerce-card {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.store-card-media,
.product-thumb,
.commerce-thumb {
  display: block;
  aspect-ratio: 1 / 0.78;
  background: var(--surface-dark);
  overflow: hidden;
}

.store-card-media img,
.product-thumb img,
.commerce-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-body,
.product-body,
.commerce-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  flex-grow: 1;
}

.store-card-body h3,
.product-body h3,
.commerce-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.store-card-body p,
.product-body p,
.commerce-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.2em;
  font-size: 0.93rem;
  line-height: 1.45;
}

.store-card-bottom a,
.product-footer a,
.commerce-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-weight: 600;
}

.store-card-bottom strong,
.commerce-price strong {
  overflow-wrap: anywhere;
}

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

.service-grid article,
.contact-copy,
.contact-layout .panel-form,
.product-summary,
.dashboard-sidebar,
.dashboard-panel,
.auth-card {
  padding: 1.4rem;
}

.proof-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.proof-list {
  flex-direction: column;
  gap: 0;
}

.proof-list > div {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-layout,
.dashboard-shell,
.footer-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.panel-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.22s var(--ease-out-expo), box-shadow 0.22s var(--ease-out-expo), background-color 0.22s var(--ease-out-expo);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(15, 118, 110, 0.16);
  background: var(--surface);
}

input[readonly] {
  background: var(--readonly-bg);
  color: var(--muted);
}

.form-grid {
  align-items: start;
}

.form-grid > * {
  flex: 1;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.flash {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.flash-success {
  color: var(--success);
  background: rgba(31, 143, 104, 0.08);
  border-color: rgba(31, 143, 104, 0.18);
}

.flash-error {
  color: var(--danger);
  background: rgba(197, 75, 85, 0.08);
  border-color: rgba(197, 75, 85, 0.18);
}

.btn-danger {
  background: #fff1f2;
  color: #a11d2f;
  border-color: #f2c9d0;
  box-shadow: none;
}

.btn-danger:hover {
  background: #ffe3e7;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 210px);
}

.auth-card {
  width: min(100%, 560px);
}

body.theme-auth .auth-card,
body.theme-auth .auth-card:hover,
body.theme-auth .auth-card.animate-on-scroll,
body.theme-auth .auth-card.animate-on-scroll.is-visible {
  transform: none !important;
}

body.theme-auth .auth-card {
  transition: box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.auth-footnote {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
}

.auth-social-section {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0;
}

.social-login-grid {
  display: grid;
  gap: 0.75rem;
}

.btn-social {
  width: 100%;
  justify-content: flex-start;
  gap: 0.85rem;
  border-radius: 18px;
  min-height: 60px;
  padding: 0.82rem 0.95rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.btn-social.is-loading {
  pointer-events: none;
}

.btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #2a8cff 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(24, 119, 242, 0.22);
}

.btn-facebook:hover {
  background: linear-gradient(135deg, #1167d8 0%, #1877f2 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-google {
  background: linear-gradient(135deg, #ffffff 0%, #f3f6fb 100%);
  border-color: rgba(148, 163, 184, 0.34);
  color: #111827;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.btn-google:hover {
  background: linear-gradient(135deg, #ffffff 0%, #eaf0f8 100%);
  border-color: rgba(148, 163, 184, 0.46);
}

.btn-discord {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #5865f2 0%, #4c58d9 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(88, 101, 242, 0.24);
}

.btn-discord:hover {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 36%),
    linear-gradient(135deg, #4f5bdd 0%, #434ec0 100%);
  border-color: rgba(255, 255, 255, 0.16);
}

.social-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.social-login-icon-discord {
  padding: 0.55rem;
}

.social-login-icon-discord svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-login-icon-google {
  padding: 0.42rem;
  background: #ffffff;
}

.social-login-icon-google svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-login-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.social-login-copy strong,
.social-login-copy small {
  display: block;
}

.social-login-copy strong {
  font-size: 0.96rem;
  line-height: 1.15;
}

.social-login-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  line-height: 1.3;
}

.btn-google .social-login-copy small {
  color: rgba(17, 24, 39, 0.64);
}

.auth-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.8rem;
  background: var(--surface);
}

@media (max-width: 780px) {
  .btn-social {
    min-height: 58px;
    padding: 0.78rem 0.85rem;
    gap: 0.75rem;
    border-radius: 16px;
  }

  .social-login-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .social-login-copy strong {
    font-size: 0.92rem;
  }

  .social-login-copy small {
    font-size: 0.74rem;
  }
}

@media (max-width: 540px) {
  .btn-social {
    min-height: 58px;
    padding: 0.78rem 0.82rem;
  }

  .social-login-copy small {
    display: none;
  }

  .social-login-copy strong {
    font-size: 0.9rem;
  }
}

.dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.dashboard-nav {
  flex-direction: column;
}

.dashboard-nav a {
  display: block;
  padding: 0.88rem 0.95rem;
  border-radius: 12px;
  color: var(--muted);
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.dashboard-main {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
}

.dashboard-sidebar,
.dashboard-panel,
.dashboard-brand,
.footer-grid > div {
  min-width: 0;
}

@media (min-width: 1180px) {
  .dashboard-shell {
    display: block;
    position: relative;
  }

  .dashboard-main {
    margin-left: calc(320px + 2.5rem);
    min-height: calc(100vh - 12rem);
  }

  .dashboard-sidebar {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    width: 320px;
    transform: translateY(-50%);
    align-self: start;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    scrollbar-width: thin;
    z-index: 35;
  }

  .catalog-layout {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 2.5rem !important;
    align-items: start !important;
    position: relative !important;
  }

  .catalog-main {
    margin-left: 0 !important;
  }

  .catalog-sidebar {
    position: sticky !important;
    left: auto !important;
    top: 7.5rem !important;
    width: 320px !important;
    transform: none !important;
    align-self: start !important;
    max-height: none !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
    z-index: 99 !important; /* Raised index below the header navbar dropdowns */
    display: grid !important;
    gap: 1rem !important;
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important; /* Stronger border for high definition definition */
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important; /* Elevated "naka angat" look with depth shadow */
    padding: 1.5rem !important;
    visibility: visible !important;
    right: auto !important;
    height: auto !important;
    backdrop-filter: blur(12px) !important; /* Clean modern glassmorphism */
  }

  .catalog-sidebar-close {
    display: none !important;
  }

  .catalog-sidebar-overlay {
    display: none !important;
  }
}

.owner-toolbar {
  display: grid;
  gap: 1.25rem;
}

.owner-toolbar-copy p {
  max-width: 60ch;
}

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

.owner-management-shell {
  width: 100%;
}

.owner-products-panel {
  width: 100%;
  max-width: 1400px;
}

.owner-stat-box {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.owner-stat-box span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.owner-stat-box strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.owner-products-panel {
  padding: 1.3rem;
}

.owner-form-panel {
  padding: 1.3rem;
}

.owner-product-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.owner-product-card:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.owner-product-media {
  aspect-ratio: 1 / 0.78;
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
}

.owner-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out-expo);
}

.owner-product-card:hover .owner-product-media img {
  transform: none;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), #c2410c);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  z-index: 2;
}

.owner-product-body {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.owner-product-topline,
.owner-product-meta,
.owner-product-bottom,
.owner-product-actions,
.owner-table-actions {
  display: flex;
  gap: 0.6rem;
}

.owner-product-topline,
.owner-product-meta {
  flex-wrap: wrap;
}

.owner-product-topline span,
.owner-product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
}

.category-badge {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
  color: var(--accent);
  font-weight: 600;
}

.status-pill.status-published {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  font-weight: 600;
}

.status-pill.status-draft {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

.owner-product-body h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.owner-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
}

.inline-heading {
  width: 100%;
}

.inline-heading h2 {
  font-size: 2rem;
}

@media (min-width: 1200px) {
  .inline-heading {
    padding: 2rem;
  }

  .inline-heading h2 {
    font-size: 2.4rem;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  .owner-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* MOBILE */
/* MOBILE */
@media (max-width: 768px) {
  .owner-product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .owner-product-grid {
    grid-template-columns: 1fr;
  }
}

.owner-product-body p {
  font-size: 0.88rem;
  line-height: 1.45;
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.owner-product-bottom {
  align-items: center;
  justify-content: space-between;
}

.owner-product-bottom strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.owner-product-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.owner-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out-expo);
}

.owner-inline-btn:hover {
  transform: none;
}

.owner-inline-btn svg {
  flex-shrink: 0;
}

.price-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}

.owner-product-actions form,
.owner-table-actions form {
  margin: 0;
}

.owner-inline-btn {
  min-height: 38px;
  padding: 0.6rem 0.85rem;
  font-size: 0.86rem;
}

.owner-panel-cta {
  white-space: nowrap;
}

.owner-table-actions {
  align-items: center;
  flex-wrap: wrap;
}

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

.owner-list-item {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--owner-list-bg);
  box-shadow: var(--shadow-sm);
}

.owner-list-head,
.owner-list-meta,
.owner-list-actions,
.owner-list-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.owner-list-head,
.owner-list-actions {
  justify-content: space-between;
}

.owner-list-content {
  display: grid;
  gap: 0.25rem;
}

.owner-list-content strong {
  font-size: 1rem;
  line-height: 1.2;
}

.owner-list-content small,
.owner-list-description {
  color: var(--muted);
}

.owner-list-description {
  font-size: 0.9rem;
  line-height: 1.5;
}

.owner-list-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.owner-list-chip.is-live {
  color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
}

.owner-list-chip.is-warning {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.22);
}

.btn.owner-inline-btn.is-soft {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn.owner-inline-btn.is-soft:hover {
  border-color: var(--line-strong);
}

.owner-empty-state {
  padding: 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.owner-table-actions a,
.owner-table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
}

.owner-table-actions button {
  color: #a11d2f;
  background: #fff1f2;
  border-color: #f2c9d0;
}

.stats-grid {
  flex-wrap: wrap;
}

.stat-card {
  flex: 1 1 180px;
  padding: 1.15rem;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  font-family: "Space Grotesk", sans-serif;
}

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

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

th,
td {
  padding: 0.95rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
}

@media (min-width: 1400px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.45fr) !important;
    gap: 2.5rem !important;
  }
}

.product-main-image {
  overflow: hidden;
}

.product-main-image img {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  object-fit: cover;
}

.thumb-strip {
  flex-wrap: wrap;
  margin-top: 1rem;
}

.thumb-strip img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.detail-stack {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.detail-stack div {
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.detail-stack span {
  color: var(--muted);
  text-align: right;
  max-width: 56%;
}

.detail-copy h2 {
  font-size: 1.35rem;
}

.product-links {
  margin: 1.5rem 0;
  padding: 1rem;
}

.product-links h3 {
  margin-bottom: 0.8rem;
}

.resource-links {
  flex-wrap: wrap;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-weight: 600;
}

.marketplace-catalog {
  padding-top: 2.8rem;
}

.catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.catalog-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: none;
  margin-bottom: 0.55rem;
}

.catalog-subtitle {
  max-width: 62ch;
}

.catalog-summary {
  flex-wrap: wrap;
}

.catalog-summary-chip {
  min-width: 110px;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.catalog-summary-chip strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.catalog-summary-chip span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.catalog-mobile-actions {
  display: none;
  margin-bottom: 0.9rem;
}

.catalog-filter-toggle {
  width: 100%;
  justify-content: center;
}

.catalog-sidebar {
  position: sticky;
  top: 7.5rem;
  transform: none;
  align-self: start;
  display: grid;
  gap: 1rem;
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
  z-index: 35;
}

.catalog-sidebar-close {
  display: none;
}

.catalog-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.catalog-sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.catalog-sidebar-brand,
.catalog-filter-card,
.catalog-side-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.catalog-sidebar-brand {
  padding: 1.4rem;
}

.catalog-filter-card,
.catalog-side-block {
  padding: 1rem;
}

.catalog-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-filter-head h2,
.catalog-side-block h3 {
  margin: 0;
  font-size: 1rem;
}

.catalog-filter-head a {
  color: var(--accent);
  font-size: 0.88rem;
}

.catalog-label {
  display: grid;
  gap: 0.45rem;
}

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

.catalog-filter-button {
  width: 100%;
}

.catalog-side-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.catalog-side-links a {
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
}

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

.catalog-main {
  min-width: 0;
}

.catalog-results-strip {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.catalog-results-copy strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.catalog-active-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

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

.commerce-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.commerce-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.commerce-bottom.commerce-foot {
  margin-top: auto !important;
}

.commerce-thumb {
  aspect-ratio: 1 / 0.84;
}

.commerce-price strong {
  font-size: 1.15rem;
}

.commerce-view {
  min-width: 74px;
}

.login-required-panel {
  text-align: center;
}

.login-required-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.4rem 0 3rem;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer p,
.site-footer h4,
.site-footer h3 {
  color: inherit;
}

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

@media (max-width: 1180px) {
  .nav-wrap {
    min-height: 74px;
  }

  .nav-actions {
    gap: 0.55rem;
    flex-shrink: 0;
  }

  .brand-mark {
    gap: 0.6rem;
  }

  .brand-mark strong {
    font-size: 0.9rem;
  }

  .brand-mark small {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.9rem;
  }

  .account-pill {
    gap: 0.55rem;
    padding: 0.36rem 0.45rem 0.36rem 0.36rem;
  }

  .account-pill-avatar {
    width: 32px;
    height: 32px;
  }

  .account-pill-copy strong {
    max-width: 84px;
    font-size: 0.84rem;
  }

  .account-pill-copy small {
    display: none;
  }

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

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

  .owner-management-shell {
    display: block;
    width: 100%;
  }

  .owner-products-panel {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
    pointer-events: auto;
  }

  .nav-actions {
    gap: 0.65rem;
    align-items: center;
    position: static;
  }

  .theme-switch {
    --toggle-size: 7px;
  }

  .main-nav {
    position: fixed;
    top: 74px;
    right: 1rem;
    left: 1rem;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--glass-surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex !important;
  }

  .account-menu {
    width: 100%;
  }

  .account-pill {
    width: 100%;
  }

  .account-pill-copy strong {
    max-width: none;
  }

  .account-pill-copy small {
    display: block;
  }

  .account-dropdown {
    position: static;
    margin-top: 0.55rem;
    width: 100%;
    min-width: 0;
  }

  .nav-pill {
    width: 100%;
  }
}

@media (min-width: 681px) and (max-width: 920px) {
  .storefront-grid,
  .commerce-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 1180px) {
  .hero-grid,
  .proof-grid,
  .contact-layout,
  .dashboard-shell,
  .product-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.2rem 0 2.8rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 5.4vw, 4rem);
  }

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

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

  .catalog-mobile-actions {
    display: block;
  }

  .catalog-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(340px, 100%) !important;
    height: 100vh !important;
    background: var(--surface) !important;
    z-index: 1000 !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    overflow-y: auto !important;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45) !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
  }

  .catalog-sidebar.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    display: flex !important;
  }

  .catalog-sidebar-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s ease;
  }

  .catalog-sidebar-close:hover {
    background: var(--line);
  }

  .dashboard-sidebar {
    position: static;
  }

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

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

  .owner-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .section {
    padding: 3.2rem 0;
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.6vw, 2.7rem);
    line-height: 1.02;
  }

  .nav-toggle {
    display: block;
    pointer-events: auto;
  }

  .nav-actions {
    gap: 0.65rem;
    align-items: center;
    position: static;
  }

  .theme-switch {
    --toggle-size: 7px;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    right: 1rem;
    left: 1rem;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--glass-surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    width: auto;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex !important;
  }

  .account-menu {
    width: 100%;
  }

  .account-pill {
    width: 100%;
  }

  .account-pill-copy strong {
    max-width: none;
  }

  .account-dropdown {
    position: static;
    margin-top: 0.55rem;
    width: 100%;
    min-width: 0;
  }

  .nav-pill {
    width: 100%;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy {
    display: grid;
    gap: 0.85rem;
  }

  .hero-lead {
    font-size: 0.96rem;
    line-height: 1.6;
    max-width: 42ch;
  }

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

  .hero-product-media img {
    aspect-ratio: 1 / 0.72;
  }

  .hero-product-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
  }

  .catalog-header,
  .catalog-results-strip,
  .commerce-bottom {
    display: grid;
    gap: 0.85rem;
  }

  .hero-metrics {
    gap: 0.8rem;
  }

  .hero-metrics div {
    min-width: 110px;
  }

  .badge-row {
    gap: 0.55rem;
  }

  .badge-row a,
  .badge-row span {
    font-size: 0.8rem;
    min-height: 34px;
    padding: 0.5rem 0.7rem;
  }

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

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

  .product-main-image img {
    aspect-ratio: 1 / 0.95;
  }

  .detail-stack div {
    align-items: start;
    flex-direction: column;
  }

  .detail-stack span {
    max-width: none;
    text-align: left;
  }

  .catalog-header {
    margin-bottom: 1rem;
  }

  .catalog-summary {
    gap: 0.6rem;
  }

  .catalog-summary-chip {
    min-width: 92px;
    padding: 0.8rem;
  }

  .catalog-filter-card,
  .catalog-side-block {
    padding: 0.9rem;
  }

  .commerce-thumb {
    aspect-ratio: 1 / 0.82;
  }

  .commerce-body {
    padding: 0.85rem;
    gap: 0.7rem;
  }

  .commerce-body h3 {
    font-size: 0.98rem;
  }

  .store-card-media,
  .commerce-thumb {
    aspect-ratio: 1 / 0.82;
  }

  .store-card-body,
  .commerce-body {
    padding: 0.85rem;
  }

  .store-card-body h3,
  .commerce-body h3 {
    font-size: 0.98rem;
  }

  .store-card-body p,
  .commerce-body p {
    min-height: auto;
    -webkit-line-clamp: 2;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .store-card-bottom,
  .commerce-bottom {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.7rem;
  }

  .store-card-bottom a,
  .commerce-view {
    width: 100%;
    min-height: 38px;
    padding: 0.68rem 0.7rem;
    font-size: 0.9rem;
  }

  .inline-heading .btn {
    width: 100%;
  }

  .commerce-meta span,
  .commerce-tags span,
  .store-card-meta span,
  .product-meta span {
    font-size: 0.68rem;
    padding: 0.34rem 0.5rem;
  }

  .commerce-price strong,
  .store-card-bottom strong,
  .product-footer strong {
    font-size: 0.98rem;
  }
}

/* SMALL MOBILE FIXES */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1rem);
    padding: 0 0.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-top {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(1.8rem, 12vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }

  .nav-wrap {
    min-height: 64px;
  }

  .theme-switch {
    --toggle-size: 6px;
  }

  .brand-orb {
    width: 32px;
    height: 32px;
  }

  .brand-logo {
    width: 24px;
    height: 24px;
  }

  .brand-mark strong {
    font-size: 0.85rem;
  }

  .brand-mark small {
    font-size: 0.6rem;
  }

  .main-nav {
    top: 64px;
    right: 0.5rem;
    left: 0.5rem;
    max-height: calc(100vh - 78px);
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.6rem, 10vw, 2.2rem);
  }

  .hero-lead {
    font-size: 0.9rem;
    max-width: 35ch;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .hero-metrics div {
    min-width: auto;
  }

  .hero-metrics strong {
    font-size: 1.2rem;
  }

  .hero-metrics span {
    font-size: 0.8rem;
  }

  .badge-row {
    flex-direction: column;
    width: 100%;
  }

  .badge-row a,
  .badge-row span {
    width: 100%;
    justify-content: center;
  }

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

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

  .store-card-body,
  .product-body,
  .commerce-body {
    padding: 0.72rem;
  }

  .store-card-body h3,
  .product-body h3,
  .commerce-body h3 {
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .store-card-body p,
  .product-body p,
  .commerce-body p {
    min-height: auto;
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

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

  /* catalog-sidebar position is handled via drawer layout */

  .catalog-filter-card,
  .catalog-side-block {
    padding: 0.8rem;
  }

  .catalog-summary-chip {
    min-width: auto;
    flex: 1;
  }

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

  .product-main-image img {
    aspect-ratio: 1 / 1;
  }

  .thumb-strip img {
    width: 72px;
    height: 54px;
  }

  .detail-stack div {
    padding: 0.7rem 0.8rem;
  }

  .detail-stack strong {
    font-size: 0.85rem;
  }

  .detail-stack span {
    font-size: 0.8rem;
  }

  .auth-card {
    padding: 1rem;
  }

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

  .dashboard-sidebar {
    position: static;
  }

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

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

  .owner-product-body {
    padding: 0.85rem;
  }

  .owner-product-body h3 {
    font-size: 0.95rem;
  }

  .owner-product-actions {
    flex-direction: column;
    width: 100%;
  }

  .owner-inline-btn {
    width: 100%;
    justify-content: center;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }

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

  .site-footer {
    padding: 2rem 0 2.5rem;
  }

  .commerce-body p {
    min-height: auto;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .commerce-meta span,
  .commerce-tags span,
  .store-card-meta span,
  .product-meta span {
    font-size: 0.62rem;
    padding: 0.3rem 0.42rem;
  }

  .commerce-price strong,
  .store-card-bottom strong,
  .product-footer strong {
    font-size: 0.88rem;
  }

  .commerce-view,
  .store-card-bottom a {
    width: 100%;
  }

  .store-card-bottom,
  .commerce-bottom {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.6rem;
  }

  .store-card-media,
  .commerce-thumb {
    aspect-ratio: 1 / 0.9;
  }

  .inline-heading .btn {
    width: 100%;
  }

  .contact-layout .panel-form,
  .contact-copy,
  .product-summary,
  .dashboard-sidebar,
  .dashboard-panel,
  .auth-card {
    padding: 1rem;
  }

  .dashboard-shell {
    gap: 1rem;
  }

  .owner-toolbar-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }
}

@media (max-width: 560px) {
  .section {
    padding: 2.6rem 0;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 8.4vw, 2.28rem);
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

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

  .hero-actions .btn,
  .catalog-results-strip .btn {
    width: 100%;
  }

  .hero-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .hero-metrics div {
    min-width: 0;
  }

  .hero-metrics strong {
    font-size: 1.15rem;
  }

  .hero-metrics span {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .badge-row {
    gap: 0.45rem;
  }

  .hero-product-content {
    padding: 1rem;
  }

  .hero-product-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
  }

  .hero-product-bottom .btn {
    width: 100%;
  }

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

  .storefront-grid,
  .commerce-grid {
    gap: 0.85rem;
  }

.owner-management-shell {
  display: block;
  width: 100%;
}

.owner-products-panel {
  width: 100%;
  max-width: 100%;
}

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

  .store-card-media,
  .commerce-thumb {
    aspect-ratio: 1 / 0.62;
  }

  .store-card-body,
  .commerce-body {
    padding: 0.85rem;
  }

  .store-card-body p,
  .commerce-body p {
    min-height: auto;
  }

  .store-card-bottom,
  .commerce-bottom {
    grid-template-columns: 1fr;
  }

  .store-card-bottom a,
  .commerce-view {
    width: 100%;
  }

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

  .catalog-summary-chip {
    min-width: 0;
    padding: 0.7rem;
  }

  .catalog-summary-chip strong {
    font-size: 1rem;
  }

  .catalog-active-filters {
    gap: 0.4rem;
  }

  .catalog-active-filters span {
    font-size: 0.72rem;
    padding: 0.38rem 0.55rem;
  }

  .proof-list > div {
    padding: 0.9rem 0;
  }

  .site-footer {
    padding: 2rem 0 2.4rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .section-top {
    padding-top: 2.5rem;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .main-nav {
    top: 70px;
    max-height: calc(100vh - 84px);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 1.72rem;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.55;
  }

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

  .hero-metrics strong {
    font-size: 1rem;
  }

  .hero-metrics span {
    font-size: 0.72rem;
  }

  .badge-row a,
  .badge-row span {
    font-size: 0.72rem;
    padding: 0.42rem 0.58rem;
  }

  .catalog-header h1 {
    font-size: 1.8rem;
  }

  .catalog-subtitle,
  .hero-lead {
    font-size: 0.92rem;
  }

  .thumb-strip img {
    width: 82px;
    height: 62px;
  }

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

@media (max-width: 540px) {
  .dashboard-shell {
    gap: 0.9rem;
  }

  .dashboard-sidebar,
  .dashboard-panel,
  .auth-card,
  .contact-copy,
  .contact-layout .panel-form {
    padding: 0.95rem;
    border-radius: 20px;
  }

  .dashboard-brand h2,
  .dashboard-panel h2,
  .inline-heading h2,
  .section-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.04;
  }

  .dashboard-brand p,
  .dashboard-panel p,
  .footer-grid p,
  .footer-grid h3,
  .footer-grid h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dashboard-nav a {
    padding: 0.8rem 0.85rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .stat-card {
    width: 100%;
    min-width: 0;
    padding: 1rem;
  }

  .stat-card strong {
    font-size: 1.65rem;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
  }

  table {
    min-width: 420px;
  }

  th,
  td {
    padding: 0.8rem 0.65rem;
    font-size: 0.84rem;
  }

  th {
    font-size: 0.72rem;
  }

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

  .site-footer {
    padding: 1.8rem 0 2.2rem;
  }

  .site-footer h3 {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .site-footer h4 {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .site-footer p {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    gap: 0.85rem;
  }

  .site-footer h3 {
    font-size: 1rem;
  }

  .site-footer h4 {
    font-size: 0.9rem;
  }

  .site-footer p {
    font-size: 0.84rem;
    line-height: 1.5;
  }
}

@media (max-width: 780px) {
  .login-required-panel {
    padding: 40px 24px !important;
  }

  .login-required-panel h2 {
    font-size: 1.5rem;
  }

  .login-required-icon {
    width: 70px;
    height: 70px;
  }

  .login-required-icon svg {
    width: 32px;
    height: 32px;
  }

  .login-required-panel .btn {
    min-width: 100px;
    padding: 12px 20px;
  }
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out-expo);
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.is-visible .modal-content {
  transform: scale(1) translateY(0);
}

.modal-large {
  max-width: 1100px;
  width: min(95vw, 1100px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--panel), rgba(249,115,22,0.05));
}

.theme-switch-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.theme-switch {
  --toggle-size: 8px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 0.38em;
  --container-light-bg: #5caad4;
  --container-night-bg: #1b1e36;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #f5c518;
  --moon-bg: #d8d4c0;
  --spot-color: #9b9787;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff8e1;
  --clouds-color: #f4f4f4;
  --back-clouds-color: #bacfe0;
  --transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: 0.3s cubic-bezier(0, -0.02, 0.35, 1.17);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-switch,
.theme-switch *,
.theme-switch *::before,
.theme-switch *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--container-radius);
  background-color: var(--container-light-bg);
  background-image: linear-gradient(to bottom, var(--container-light-bg) 0%, #4a92bd 100%);
  box-shadow: 0 0 0 2px #1a1a1a, 3px 4px 0 2px rgba(26, 26, 26, 0.2);
  transition: all var(--transition);
  transform: rotate(-0.7deg);
  filter: url(#sketchy);
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background-image: repeating-linear-gradient(-50deg, transparent, transparent 7px, rgba(255, 255, 255, 0.04) 7px, rgba(255, 255, 255, 0.04) 8px);
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  display: flex;
  border-radius: var(--container-radius);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: var(--circle-transition);
}

.theme-switch__circle-container::before {
  content: "";
  position: absolute;
  width: calc(var(--circle-container-diameter) + 1.5em);
  height: calc(var(--circle-container-diameter) + 1.5em);
  top: -0.75em;
  left: -0.75em;
  border-radius: 50%;
  background: conic-gradient(transparent 0deg, transparent 8deg, rgba(245, 197, 24, 0.52) 8deg, rgba(245, 197, 24, 0.52) 22deg, transparent 22deg, transparent 53deg, rgba(245, 197, 24, 0.52) 53deg, rgba(245, 197, 24, 0.52) 67deg, transparent 67deg, transparent 98deg, rgba(245, 197, 24, 0.52) 98deg, rgba(245, 197, 24, 0.52) 112deg, transparent 112deg, transparent 143deg, rgba(245, 197, 24, 0.52) 143deg, rgba(245, 197, 24, 0.52) 157deg, transparent 157deg, transparent 188deg, rgba(245, 197, 24, 0.52) 188deg, rgba(245, 197, 24, 0.52) 202deg, transparent 202deg, transparent 233deg, rgba(245, 197, 24, 0.52) 233deg, rgba(245, 197, 24, 0.52) 247deg, transparent 247deg, transparent 278deg, rgba(245, 197, 24, 0.52) 278deg, rgba(245, 197, 24, 0.52) 292deg, transparent 292deg, transparent 323deg, rgba(245, 197, 24, 0.52) 323deg, rgba(245, 197, 24, 0.52) 337deg, transparent 337deg, transparent 360deg);
  opacity: 1;
  pointer-events: none;
  transition: opacity var(--transition);
  animation: rotateSunRays 14s linear infinite;
  filter: url(#sketchy-sm);
}

.theme-switch__sun-moon-container {
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  overflow: hidden;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  box-shadow: 0.062em 0.062em 0.062em 0 rgba(254, 255, 239, 0.61) inset, 0 -0.062em 0.062em 0 #a1872a inset, 0.1em 0.13em 0 0.04em #1a1a1a;
  transition: var(--transition);
  filter: url(#sketchy-sm) drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0 0.062em 0.125em rgba(0, 0, 0, 0.25));
}

.theme-switch__moon {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
  transform: translateX(100%);
  background-color: var(--moon-bg);
  box-shadow: 0.062em 0.062em 0.062em 0 rgba(254, 255, 239, 0.61) inset, 0 -0.062em 0.062em 0 #969696 inset;
  transition: all var(--transition);
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  box-shadow: 0 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  filter: url(#sketchy-sm);
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  position: absolute;
  left: 0.312em;
  bottom: -0.625em;
  border-radius: var(--container-radius);
  background-color: var(--clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0 var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--clouds-color);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  filter: url(#sketchy-sm);
}

.theme-switch__stars-container {
  position: absolute;
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  color: var(--stars-color);
  transition: var(--transition);
}

.theme-switch__shooting-star,
.theme-switch__shooting-star-2 {
  position: absolute;
  left: -10%;
  background: white;
  opacity: 0;
}

.theme-switch__shooting-star {
  top: 20%;
  width: 2px;
  height: 2px;
}

.theme-switch__shooting-star-2 {
  top: 35%;
  width: 1px;
  height: 1px;
}

.theme-switch__meteor {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 3px;
  height: 3px;
  opacity: 0;
  border-radius: 50%;
  background: #ffd700;
  filter: blur(1px);
}

.theme-switch__stars-cluster,
.theme-switch__comets {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-switch__stars-cluster .star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 4px 1px white;
}

.theme-switch__stars-cluster .star:nth-child(1) {
  top: 20%;
  left: 20%;
  animation: twinkle 1s infinite ease-in-out;
}

.theme-switch__stars-cluster .star:nth-child(2) {
  top: 30%;
  left: 55%;
  animation: twinkle 1s infinite ease-in-out 0.3s;
}

.theme-switch__stars-cluster .star:nth-child(3) {
  top: 40%;
  left: 80%;
  animation: twinkle 1s infinite ease-in-out 0.6s;
}

.theme-switch__stars-cluster .star:nth-child(4) {
  top: 60%;
  left: 30%;
  animation: twinkle 1s infinite ease-in-out 0.9s;
}

.theme-switch__stars-cluster .star:nth-child(5) {
  top: 70%;
  left: 65%;
  animation: twinkle 1s infinite ease-in-out 1.2s;
}

.theme-switch__aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-100%);
  transition: opacity 0.3s ease;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0) 0%, rgba(0, 255, 255, 0.2) 25%, rgba(128, 0, 255, 0.2) 50%, rgba(0, 255, 255, 0.2) 75%, rgba(0, 255, 255, 0) 100%);
}

.theme-switch__comets .comet {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  filter: blur(1px);
  background: linear-gradient(90deg, white 0%, transparent 90%);
}

.theme-switch__comets .comet:nth-child(1) {
  top: 30%;
  left: -10%;
  animation: cometMove 4s linear infinite;
}

.theme-switch__comets .comet:nth-child(2) {
  top: 50%;
  left: -10%;
  animation: cometMove 6s linear infinite 2s;
}

.theme-switch__checkbox:focus-visible + .theme-switch__container {
  outline: 3px solid rgba(54, 196, 178, 0.45);
  outline-offset: 4px;
}

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
  background-image: linear-gradient(to bottom, var(--container-night-bg) 0%, #252a4a 100%);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container::before {
  opacity: 0;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  transform: translateX(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  transform: translateY(-50%);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__shooting-star {
  opacity: 1;
  animation: shootingStar 2s linear infinite;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__shooting-star-2 {
  opacity: 1;
  animation: shootingStar 3s linear infinite 1s;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__meteor {
  opacity: 1;
  animation: meteor 4s linear infinite 2s;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-cluster,
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__comets {
  opacity: 1;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__aurora {
  opacity: 1;
  animation: auroraWave 8s linear infinite;
}

html[data-theme="dark"] body {
  color-scheme: dark;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .nav-pill,
html[data-theme="dark"] .store-card-bottom a,
html[data-theme="dark"] .product-footer a,
html[data-theme="dark"] .commerce-view,
html[data-theme="dark"] .resource-link,
html[data-theme="dark"] .catalog-side-links a,
html[data-theme="dark"] .catalog-active-filters span,
html[data-theme="dark"] .catalog-summary-chip,
html[data-theme="dark"] .owner-stat-box,
html[data-theme="dark"] .owner-inline-btn.is-soft,
html[data-theme="dark"] .badge-row a,
html[data-theme="dark"] .badge-row span,
html[data-theme="dark"] .owner-empty-state,
html[data-theme="dark"] .modal-close {
  background: var(--surface-alt);
}

html[data-theme="dark"] .btn-danger,
html[data-theme="dark"] .owner-table-actions button {
  background: rgba(197, 75, 85, 0.12);
  color: #ff96a8;
  border-color: rgba(255, 127, 147, 0.28);
}

html[data-theme="dark"] .flash-success {
  background: rgba(87, 211, 155, 0.12);
  border-color: rgba(87, 211, 155, 0.25);
}

html[data-theme="dark"] .flash-error {
  background: rgba(255, 127, 147, 0.12);
  border-color: rgba(255, 127, 147, 0.25);
}

html[data-theme="dark"] .featured-badge {
  box-shadow: 0 8px 18px rgba(255, 154, 98, 0.28);
}

html[data-theme="dark"] .login-required-icon,
html[data-theme="dark"] .category-badge,
html[data-theme="dark"] .owner-list-chip.is-live {
  background: rgba(54, 196, 178, 0.14);
  border-color: rgba(54, 196, 178, 0.24);
}

html[data-theme="dark"] ::selection {
  background: rgba(54, 196, 178, 0.3);
  color: #ffffff;
}

@keyframes rotateSunRays {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shootingStar {
  0% { transform: translateX(0) translateY(0) rotate(45deg); opacity: 1; }
  100% { transform: translateX(150px) translateY(150px) rotate(45deg); opacity: 0; }
}

@keyframes meteor {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(150px) scale(0.3); opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes cometMove {
  0% { transform: translateX(0) translateY(0) rotate(-45deg) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(200px) translateY(200px) rotate(-45deg) scale(0.2); opacity: 0; }
}

@keyframes auroraWave {
  0% { transform: translateY(-100%) translateX(-50%); }
  100% { transform: translateY(-100%) translateX(50%); }
}

.modal-header .section-heading {
  margin: 0;
}

.modal-header .eyebrow {
  font-size: 0.75rem;
}

.modal-header h2 {
  font-size: 1.3rem;
  margin: 4px 0 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out-expo);
}

.modal-close:hover {
  background: var(--accent);
  color: var(--bg);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--surface);
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 780px) {
  .modal-content,
  .modal-large {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px;
  }

  .modal-footer .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .storefront-grid,
  .commerce-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }
}

@media (min-width: 481px) and (max-width: 920px) {
  .storefront-grid,
  .commerce-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.turnstile-wrap {
    width: 100%;
    margin: 0.75rem 0 0.25rem;
}

.turnstile-wrap iframe {
    max-width: 100%;
}

.auth-security-note {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 14px;
    background: rgba(129, 140, 248, 0.08);
    color: var(--text);
    font-size: 0.95rem;
}

.inline-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    min-height: auto;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

@media (max-width: 640px) {
    .inline-action-row {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll to Top with Circular Progress */
.scroll-to-top {
  position: fixed !important;
  bottom: 2.5rem !important;
  right: 2.5rem !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: var(--surface-alt) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10000 !important; /* Ensure it is never hidden behind anything */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  overflow: hidden !important;
}

.scroll-to-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.scroll-to-top:hover {
  background: var(--surface) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

.scroll-to-top .progress-circle {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: rotate(-90deg) !important;
  pointer-events: none !important;
  display: block !important;
}

.scroll-to-top .progress-circle-bar {
  transition: stroke-dashoffset 0.1s linear !important;
}

.scroll-to-top-arrow {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent) !important;
  transition: color 0.3s ease !important;
  pointer-events: none !important;
}

.scroll-to-top:hover .scroll-to-top-arrow {
  color: var(--text) !important;
  animation: arrowBounce 1s infinite alternate !important;
}

@keyframes arrowBounce {
  0% { transform: translate(-50%, -46%) !important; }
  100% { transform: translate(-50%, -54%) !important; }
}

@media (max-width: 780px) {
  .scroll-to-top {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
    right: 1.5rem !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important; /* Force flex display on mobile */
  }
}
