:root {
  color-scheme: light;
  --ink: #11100d;
  --muted: #676056;
  --paper: #f7f2e8;
  --line: #d8c7a7;
  --gold: #d6ad43;
  --deep: #17140f;
  --white: #fffdfa;
  --green: #126f56;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
}

/* Motta Minimalist Premium v26.04 */
.motta-public-hero--dealer {
  min-height: min(760px, calc(100svh - 120px));
  align-items: center;
}

.motta-public-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.motta-public-hero__proof span {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  font-weight: 600;
}

.motta-public-flow {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(2,8,23,.24);
  backdrop-filter: blur(16px);
}

.motta-public-flow__step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

.motta-public-flow__step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #116dff;
  color: #fff;
  font-weight: 700;
}

.motta-public-flow__step strong,
.motta-public-flow__step small {
  display: block;
}

.motta-public-flow__step strong {
  color: #fff;
  font-size: 15px;
}

.motta-public-flow__step small {
  margin-top: 3px;
  color: rgba(255,255,255,.62);
  line-height: 1.35;
}

.motta-auth__reset {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(121,138,158,.28);
  border-radius: 12px;
  background: #fff;
  color: #116dff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.motta-auth__reset:hover,
.motta-auth__reset:focus-visible {
  border-color: rgba(17,109,255,.42);
  background: rgba(17,109,255,.06);
}

.motta-auth__reset:focus-visible {
  outline: 2px solid #116dff;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .motta-public-flow {
    padding: 12px;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100svh;
  max-width: 100%;
}

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

.motta-public {
  background:
    radial-gradient(circle at 78% 12%, rgba(214, 173, 67, .22), transparent 26rem),
    linear-gradient(135deg, #f8f4eb 0%, #ede6da 58%, #f6f1e7 100%);
}

.site-top,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-top {
  padding: 22px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #16130f;
  color: var(--gold);
  font-weight: 900;
}

.brand strong {
  font-size: 18px;
}

.site-top nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-top nav a,
.hero-actions a,
.login-panel button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid rgba(17, 16, 13, .14);
  font-weight: 800;
}

.site-top nav a {
  background: rgba(255, 253, 250, .54);
  color: var(--ink);
}

.site-top nav .login-link,
.hero-actions .primary,
.login-panel button {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 130px);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(320px, .78fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: 26px 0 52px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: #8b6b22;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 98px);
  line-height: .9;
  letter-spacing: 0;
  max-width: 860px;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.45;
  font-weight: 700;
}

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

.hero-actions a {
  min-width: 150px;
}

.hero-actions .secondary {
  background: var(--white);
}

.hero-visual {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(25, 20, 12, .22));
}

.hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(17, 16, 13, .88);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.signal {
  margin: -54px 0 50px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 253, 250, .76);
  backdrop-filter: blur(16px);
}

.signal div {
  min-height: 110px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.signal div:last-child {
  border-right: 0;
}

.signal strong,
.signal span {
  display: block;
}

.signal strong {
  font-size: 16px;
  margin-bottom: 8px;
}

.signal span {
  color: var(--muted);
  line-height: 1.42;
  font-weight: 700;
}

footer {
  padding: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.motta-login-page {
  background:
    linear-gradient(135deg, rgba(18, 111, 86, .12), transparent 34%),
    linear-gradient(135deg, #f8f4eb 0%, #ece3d4 100%);
}

.login-shell {
  width: min(1120px, calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .86fr minmax(310px, 430px);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
}

.brand.is-login {
  align-self: start;
  padding-top: 30px;
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: rgba(255, 253, 250, .88);
  box-shadow: 0 24px 70px rgba(23, 20, 15, .14);
}

.login-panel h1 {
  font-size: 34px;
  line-height: 1;
}

.login-panel p {
  margin: 14px 0 22px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.login-panel form,
.login-panel label {
  display: grid;
  gap: 10px;
}

.login-panel form {
  gap: 14px;
}

.login-panel label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.login-panel input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.login-panel button {
  width: 100%;
  height: 48px;
  cursor: pointer;
}

.login-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-message.is-error {
  color: #9d1d1d;
}

.login-message.is-ok {
  color: var(--green);
}

.motta-shell-page {
  background: #ece8dd;
  overflow: hidden;
}

.motta-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  color: var(--ink);
}

.motta-shell-rail {
  min-height: 100svh;
  padding: 16px 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  background: #12100c;
  color: #fffaf0;
  border-right: 1px solid rgba(214, 173, 67, .28);
}

.motta-shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(214, 173, 67, .22);
}

.motta-shell-brand span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 900;
}

.motta-shell-brand strong {
  font-size: 17px;
}

.motta-shell-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: auto;
  padding-right: 2px;
}

.motta-shell-nav button,
.motta-shell-exit,
.motta-shell-logout {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.motta-shell-nav button {
  display: grid;
  gap: 2px;
}

.motta-shell-nav button span {
  font-weight: 900;
  font-size: 13px;
}

.motta-shell-nav button small {
  color: rgba(255, 250, 240, .52);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.motta-shell-nav button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #11100d;
}

.motta-shell-nav button.is-active small {
  color: rgba(17, 16, 13, .62);
}

.motta-shell-session {
  display: grid;
  gap: 8px;
}

.motta-shell-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-weight: 900;
  color: rgba(255, 250, 240, .78);
}

.motta-shell-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #fffaf0;
  background: rgba(220, 38, 38, .14);
  border-color: rgba(248, 113, 113, .36);
  font-weight: 900;
}

.motta-shell-logout:hover,
.motta-shell-logout:focus-visible {
  background: rgba(220, 38, 38, .24);
  border-color: rgba(248, 113, 113, .68);
}

.motta-shell-logout[aria-busy="true"] {
  opacity: .72;
  cursor: progress;
}

.motta-shell-main {
  min-width: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: var(--shell-topbar-h, 56px) minmax(0, 1fr);
}

.motta-shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: rgba(255, 253, 247, .9);
  border-bottom: 1px solid var(--line);
}

.motta-shell-topbar span {
  display: block;
  color: #8b6b22;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.motta-shell-topbar strong {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.motta-shell-topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.motta-shell-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .58), rgba(236, 232, 221, .78)),
    #ece8dd;
}

.motta-shell-module {
  min-height: 100%;
}

.motta-shell-module.motta-platform,
.motta-shell-module.motta-layer {
  min-height: auto;
  background: transparent;
  font-family: inherit;
}

.motta-shell-module .motta-platform-header,
.motta-shell-module .motta-layer-header {
  display: none;
}

.motta-shell-module .motta-platform-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.motta-shell-module .motta-layer,
.motta-shell-module.motta-layer {
  min-height: auto;
  background: transparent;
}

.motta-shell-module .motta-layer-wizard-body,
.motta-shell-module .motta-layer-mockups-main,
.motta-shell-module .motta-layer-models-main {
  margin-top: 0;
}

@media (max-width: 880px) {
  .site-top,
  footer,
  main,
  .login-shell {
    width: min(100% - 24px, 720px);
  }

  .site-top,
  footer {
    align-items: flex-start;
  }

  .site-top nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 34px;
  }

  .hero-visual {
    width: min(100%, 390px);
  }

  .signal {
    margin: 0 0 32px;
    grid-template-columns: 1fr;
  }

  .signal div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal div:last-child {
    border-bottom: 0;
  }

  .login-shell {
    padding: 22px 0;
  }

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

  .motta-shell-rail {
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    grid-template-rows: auto auto;
    gap: 8px;
  }

  .motta-shell-brand {
    min-height: 42px;
    border-bottom: 0;
  }

  .motta-shell-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .motta-shell-nav button {
    min-width: 136px;
  }

  .motta-shell-exit {
    display: none;
  }

  .motta-shell-main {
    height: auto;
    min-height: calc(100svh - 126px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .motta-shell-topbar {
    align-items: flex-start;
    padding: 14px;
  }

  .motta-shell-stage {
    padding: 10px;
  }
}

.producer-page {
  min-height: 100svh;
  background: #f6f4ef;
}

.producer-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.producer-panel {
  width: min(100%, 680px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(22, 22, 20, .1);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 28px 70px rgba(22, 22, 20, .12);
}

.producer-panel h1,
.producer-panel p {
  margin: 0;
}

.producer-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #11100e;
  color: #d8b44a;
  font-weight: 900;
}

.producer-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  border-top: 1px solid rgba(22, 22, 20, .1);
  border-bottom: 1px solid rgba(22, 22, 20, .1);
  padding: 12px 0;
}

.producer-meta span,
.producer-files small {
  color: #6b675f;
  font-size: 12px;
  font-weight: 800;
}

.producer-files {
  display: grid;
  gap: 8px;
}

.producer-files form {
  margin: 0;
}

.producer-files button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(22, 22, 20, .12);
  border-radius: 8px;
  background: #11100e;
  color: #fffdf8;
  padding: 13px 14px;
  cursor: pointer;
  font: inherit;
}

.producer-files small {
  color: #d8b44a;
}

@media (max-width: 560px) {
  .site-top {
    display: grid;
  }

  .site-top nav {
    justify-content: start;
  }

  .site-top nav a {
    flex: 1 1 auto;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions a {
    flex: 1 1 100%;
  }
}

/* Motta Admin UI premium shell pass */
.motta-shell {
  --admin-bg: #ece8dd;
  --admin-paper: #fffdf7;
  --admin-paper-soft: #f7f1e5;
  --admin-ink: #11100d;
  --admin-muted: #6b6254;
  --admin-line: #d8c9aa;
  --admin-gold: #d8ae3f;
  grid-template-columns: 232px minmax(0, 1fr);
  font-family: var(--font-sans);
}

.motta-shell-stage {
  padding: 14px 18px 22px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .68), rgba(235, 232, 222, .9)),
    var(--admin-bg);
}

.motta-shell-module,
.motta-shell-module .motta-layer,
.motta-shell-module .motta-platform {
  color: var(--admin-ink);
  font-family: inherit !important;
}

.motta-shell-module .motta-layer,
.motta-shell-module.motta-layer {
  --bg: transparent;
  --panel: var(--admin-paper);
  --panel-2: var(--admin-paper-soft);
  --line: var(--admin-line);
  --text: var(--admin-ink);
  --muted: var(--admin-muted);
  --ink: var(--admin-ink);
  --gold: var(--admin-gold);
}

.motta-shell-module .motta-platform {
  --bg: transparent;
  --panel: var(--admin-paper);
  --line: var(--admin-line);
  --text: var(--admin-ink);
  --muted: var(--admin-muted);
  --accent: var(--admin-gold);
}

.motta-shell-module .motta-layer-main,
.motta-shell-module .motta-layer-mockups-main,
.motta-shell-module .motta-layer-models-main,
.motta-shell-module .motta-platform-main.is-embedded {
  width: min(100%, 1380px);
  max-width: none;
}

.motta-shell-module .motta-layer-workbench,
.motta-shell-module .motta-layer-panel,
.motta-shell-module .motta-layer-side-panel,
.motta-shell-module .motta-layer-mockups-filter,
.motta-shell-module .motta-layer-models-filter,
.motta-shell-module .motta-layer-mockups-shelf,
.motta-shell-module .motta-layer-models-shelf,
.motta-shell-module .motta-layer-mockups-detail,
.motta-shell-module .motta-platform-panel,
.motta-shell-module .motta-platform-card {
  border-color: rgba(119, 95, 50, .24);
  border-radius: 8px;
  background: rgba(255, 253, 247, .92);
  box-shadow: 0 18px 42px rgba(34, 28, 19, .08);
}

.motta-shell-module .motta-layer-header,
.motta-shell-module .motta-platform-header {
  display: none;
}

@media (min-width: 1500px) {
  .motta-shell-stage {
    padding-right: 28px;
    padding-left: 28px;
  }
}

/* Premium v7 single-shell stabilization */
.motta-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: #efede6;
}

.motta-shell-rail {
  background: #11100d;
  border-right-color: rgba(216, 174, 63, .18);
}

.motta-shell-topbar {
  min-height: 72px;
  background: rgba(255, 253, 247, .96);
  box-shadow: 0 1px 0 rgba(120, 96, 48, .12);
}

.motta-shell-topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.motta-shell-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.motta-shell-topbar-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(17, 16, 13, .16);
  border-radius: 999px;
  padding: 0 14px;
  background: #fffdf7;
  color: #11100d;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.motta-shell-topbar-actions a.is-active,
.motta-shell-topbar-actions a.is-primary {
  border-color: #d8ae3f;
  background: #d8ae3f;
  color: #11100d;
}

.motta-shell-stage {
  padding: 18px 22px 24px;
  background: #efede6;
}

.motta-shell-module .motta-layer-header,
.motta-shell-module .motta-platform-header {
  display: none !important;
}

.motta-shell-module .motta-layer-library-page {
  min-height: auto;
}

@media (max-width: 880px) {
  .motta-shell-topbar-end {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .motta-shell-topbar-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* Motta Platform v7 design system */
:root {
  color-scheme: light;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #07111f;
  --color-bg-soft: #eef3f8;
  --color-surface: #ffffff;
  --color-surface-soft: #f6f8fb;
  --color-primary: #116dff;
  --color-primary-soft: #e7f0ff;
  --color-text: #0c1424;
  --color-muted: #647084;
  --color-border: #d9e1ee;
  --font-size-lg: 18px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 80px rgba(7, 17, 31, .14);
  --shadow-line: 0 1px 0 rgba(12, 20, 36, .08);
  font-family: var(--font-sans);
}

html {
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-family: var(--font-sans);
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(17, 109, 255, .34);
  outline-offset: 3px;
}

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

.motta-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 800;
  text-decoration: none;
}

.motta-button--primary,
.motta-button--dark {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.motta-button--soft {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

/* ── v12.50 Button hover + focus states ─────────────────────────────────── */

.motta-button {
  transition: background .15s ease, border-color .15s ease,
              color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

.motta-button:hover {
  background: var(--color-surface-soft, #f1f5f9);
  border-color: rgba(0, 0, 0, .18);
}

.motta-button--primary:hover,
.motta-button--dark:hover {
  background: #0050db;
  border-color: #0050db;
  box-shadow: 0 6px 22px rgba(17, 109, 255, .36);
}

.motta-button--soft:hover {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(255, 255, 255, .44);
}

.motta-button:focus-visible {
  outline: 2.5px solid rgba(17, 109, 255, .80);
  outline-offset: 2px;
}

/* ── /v12.50 Button ──────────────────────────────────────────────────────── */

.motta-field {
  display: grid;
  gap: var(--space-1);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
}

.motta-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  background: var(--color-surface);
  color: var(--color-text);
}

.motta-card,
.motta-stat,
.motta-timeline {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-line);
}

.motta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}

.motta-kicker {
  margin: 0;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.motta-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: inherit;
  font-weight: 900;
}

.motta-brand span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.motta-public {
  min-height: 100svh;
  background:
    radial-gradient(circle at 78% 10%, rgba(17, 109, 255, .28), transparent 28rem),
    radial-gradient(circle at 18% 78%, rgba(216, 174, 63, .18), transparent 22rem),
    linear-gradient(135deg, #07111f 0%, #0c1728 54%, #10141d 100%);
  color: #ffffff;
}

.motta-public-header,
.motta-public-main,
.motta-public-footer {
  width: min(1184px, calc(100% - var(--space-4)));
  margin: 0 auto;
}

.motta-public-header,
.motta-public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.motta-public-header {
  padding: var(--space-3) 0 var(--space-1);
}

.motta-public-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.motta-public-nav a:not(.motta-button) {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
}

.motta-public-hero {
  min-height: calc(100svh - 138px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: clamp(var(--space-3), 6vw, 80px);
  padding: var(--space-4) 0 var(--space-5);
}

.motta-public-hero h1,
.motta-auth h1 {
  margin: var(--space-1) 0 0;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .92;
  letter-spacing: 0;
}

.motta-public-hero__lead {
  max-width: 620px;
  margin: var(--space-3) 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.48;
  font-weight: 700;
}

.motta-public-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.motta-public-preview {
  position: relative;
  margin: 0;
}

.motta-public-preview__glow {
  position: absolute;
  inset: 10% 5% 0;
  border-radius: 50%;
  background: rgba(17, 109, 255, .22);
  filter: blur(56px);
}

.motta-public-preview img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 70px rgba(0, 0, 0, .34));
}

.motta-public-preview figcaption {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, .9);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 900;
}

.motta-public-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(22px);
}

.motta-public-signals article {
  min-height: 112px;
  display: grid;
  align-content: end;
  gap: var(--space-1);
  padding: var(--space-3);
  background: rgba(255, 255, 255, .06);
}

.motta-public-signals span,
.motta-public-footer {
  color: rgba(255, 255, 255, .68);
}

.motta-public-pricing {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(4, 14, 28, .54);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .24);
  backdrop-filter: blur(22px);
}

.motta-public-pricing__head {
  display: grid;
  gap: var(--space-1);
  max-width: 720px;
}

.motta-public-pricing__head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.motta-public-pricing__head span {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  line-height: 1.6;
}

.motta-public-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.motta-public-plan {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .92);
  color: var(--color-text);
  box-shadow: var(--shadow-line);
}

.motta-public-plan.is-recommended {
  border-color: rgba(17, 109, 255, .46);
  box-shadow: 0 24px 72px rgba(17, 109, 255, .2);
}

.motta-public-plan.is-corporate {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  border-color: rgba(7, 17, 31, .18);
}

.motta-public-plan__head {
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-1);
}

.motta-public-plan__head p {
  margin: 0 0 var(--space-1);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.motta-public-plan__head h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.motta-public-plan__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
}

.motta-public-plan__prices {
  display: grid;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.motta-public-plan__prices div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}

.motta-public-plan__prices div + div {
  border-top: 1px solid var(--color-border);
}

.motta-public-plan__prices span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.motta-public-plan__prices strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.motta-public-plan__features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.motta-public-plan__features li {
  position: relative;
  padding-left: 20px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.motta-public-plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
}

.motta-public-footer {
  padding: var(--space-3) 0;
  font-size: 13px;
  font-weight: 800;
}

.motta-auth-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 80% 8%, rgba(47, 129, 255, .32), transparent 28rem),
    radial-gradient(circle at 18% 82%, rgba(23, 93, 201, .24), transparent 24rem),
    linear-gradient(135deg, #030b17 0%, #081528 48%, #0c1322 100%);
}

.motta-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 72%);
}

.motta-auth {
  position: relative;
  width: min(1184px, calc(100% - var(--space-4)));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 448px);
  align-items: center;
  gap: clamp(var(--space-4), 8vw, 112px);
  padding: var(--space-4) 0;
}

.motta-auth__intro {
  display: grid;
  gap: clamp(var(--space-4), 8vw, 88px);
  color: #ffffff;
}

.motta-auth__brand span {
  border-color: rgba(47, 129, 255, .54);
  background: rgba(17, 109, 255, .16);
  box-shadow: 0 0 0 6px rgba(17, 109, 255, .08);
}

.motta-auth__headline {
  display: grid;
  gap: var(--space-2);
  max-width: 680px;
}

.motta-auth__headline h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .9;
  letter-spacing: 0;
}

.motta-auth__headline p:not(.motta-kicker) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.52;
  font-weight: 500;
}

.motta-auth__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-1);
  max-width: 560px;
  margin: 0;
}

.motta-auth__signals div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .075);
  padding: 14px;
  backdrop-filter: blur(18px);
}

.motta-auth__signals dt {
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.motta-auth__signals dd {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.motta-auth__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 28px;
  padding: var(--space-4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 249, 253, .96)),
    #ffffff;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

.motta-auth__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #116dff, #64a3ff, #d7e6ff);
}

.motta-auth__panel-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-3);
}

.motta-auth__panel-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #061223;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(6, 18, 35, .18);
}

.motta-auth__panel-head h2,
.motta-auth__panel-head p,
.motta-auth__panel-head small {
  margin: 0;
}

.motta-auth__panel-head h2 {
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.1;
}

.motta-auth__panel-head small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.4;
}

.motta-auth__form {
  display: grid;
  gap: var(--space-2);
}

.motta-auth .motta-field {
  gap: 8px;
  color: var(--color-muted);
  font-weight: 700;
}

.motta-auth .motta-field input {
  min-height: 52px;
  border-color: rgba(121, 138, 158, .34);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px 0 rgba(12, 20, 36, .03);
}

.motta-auth .motta-field input:hover {
  border-color: rgba(17, 109, 255, .34);
}

.motta-auth .motta-field input:focus {
  border-color: rgba(17, 109, 255, .72);
}

.motta-auth__submit {
  min-height: 54px;
  margin-top: 2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #116dff, #075bd8);
  box-shadow: 0 18px 34px rgba(17, 109, 255, .28);
  font-weight: 700;
}

.motta-auth__message {
  min-height: 22px;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.motta-auth__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
  border-top: 1px solid rgba(121, 138, 158, .22);
  padding-top: var(--space-2);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.motta-auth__foot strong {
  color: #087443;
  font-weight: 700;
}

.login-message.is-error {
  color: #b42318;
}

.login-message.is-ok {
  color: #087443;
}

.motta-producer-page {
  min-height: 100svh;
  background: var(--color-bg-soft);
}

.motta-producer {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-3);
}

.motta-producer__panel {
  width: min(100%, 680px);
  display: grid;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.motta-producer__panel h1,
.motta-producer__panel p {
  margin: 0;
}

.motta-producer__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: #ffffff;
  font-weight: 900;
}

.motta-producer__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
  margin: 0;
}

.motta-producer__meta div {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: var(--color-surface-soft);
}

.motta-producer__meta dt,
.motta-producer__file small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.motta-producer__meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.motta-producer__files {
  display: grid;
  gap: var(--space-1);
}

.motta-producer__files form {
  margin: 0;
}

.motta-producer__file {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: var(--color-bg);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

/* ── v12.50 Producer spec form ───────────────────────────────────────────── */

.motta-producer__spec {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface-soft, #fbfcfe);
  display: grid;
  gap: 0;
}

.motta-producer__spec-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.motta-producer__spec-lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

.motta-producer__spec-locked {
  padding: 10px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 600;
}

.motta-producer__spec-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.motta-producer__spec-field label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.motta-producer__spec-field input,
.motta-producer__spec-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.motta-producer__spec-field input:focus,
.motta-producer__spec-field textarea:focus {
  outline: none;
  border-color: rgba(17, 109, 255, .5);
  box-shadow: 0 0 0 3px rgba(17, 109, 255, .12);
}

.motta-producer__spec-field input:disabled,
.motta-producer__spec-field textarea:disabled {
  background: var(--color-surface-soft, #f8fafc);
  color: var(--color-muted);
  cursor: not-allowed;
}

.motta-producer__spec-field textarea {
  resize: vertical;
  min-height: 72px;
}

.motta-producer__spec-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.motta-producer__spec-actions button {
  flex: 1;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}

.motta-producer__spec-actions button:hover:not(:disabled) {
  border-color: rgba(17, 109, 255, .3);
  background: var(--color-surface-soft, #f8fafc);
}

.motta-producer__spec-actions button.is-primary {
  border-color: transparent;
  background: #151719;
  color: #fffdf7;
}

.motta-producer__spec-actions button.is-primary:hover:not(:disabled) {
  background: #1e2124;
}

/* ── /v12.50 Producer spec ───────────────────────────────────────────────── */

/* v3102 BL-D: Premium producer link UX — expired page, audit-trail meta, urgent expire badge */
.motta-producer__expired-icon {
  font-size: 56px;
  line-height: 1;
  margin: 12px 0 6px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.10));
}
.motta-producer__expired-note {
  color: var(--color-muted);
  font-size: 13px;
  margin-top: 8px;
}
.motta-producer__meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.motta-producer__meta dd.is-urgent {
  color: #c2410c;
}
.motta-producer__meta dd.is-urgent small {
  font-size: 11px;
  font-weight: 800;
  color: #c2410c;
  margin-left: 4px;
}
.motta-producer__file:focus-visible {
  outline: 2px solid rgba(15,98,254,.55);
  outline-offset: 2px;
}
.motta-producer__file:hover {
  border-color: rgba(15,98,254,.40);
  transform: translateY(-1px);
  transition: transform .15s ease, border-color .15s ease;
}
.motta-producer__panel .motta-public-header,
.motta-producer-page .motta-public-header {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-2) 0;
}
@media (max-width: 560px) {
  .motta-producer__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .motta-producer__meta div:last-child {
    grid-column: span 2;
  }
}
/* iOS safe-area for fixed download CTAs */
@supports (padding: max(0px)) {
  .motta-producer {
    padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  }
}
/* /v3102 BL-D */

.motta-error {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
}

.motta-shell,
.motta-shell--platform {
  --admin-bg: #eef2f7;
  --admin-panel: #ffffff;
  --admin-line: var(--color-border);
  --admin-text: var(--color-text);
  --admin-muted: var(--color-muted);
  --admin-primary: var(--color-primary);
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--font-sans);
}

.motta-shell__rail,
.motta-shell-rail {
  background: #07111f;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.motta-shell__topbar,
.motta-shell-topbar {
  min-height: 72px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-line);
  backdrop-filter: blur(18px);
}

.motta-shell__stage,
.motta-shell-stage {
  background: var(--admin-bg);
}

.motta-shell__module .motta-platform,
.motta-shell__module .motta-layer,
.motta-shell-module .motta-platform,
.motta-shell-module .motta-layer {
  font-family: var(--font-sans) !important;
}

.motta-shell-empty {
  display: grid;
  gap: var(--space-1);
  width: min(100%, 720px);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .88);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.motta-shell-empty strong {
  font-size: var(--font-size-lg);
}

.motta-shell-empty span {
  color: var(--color-muted);
}

@media (max-width: 880px) {
  .motta-public-header,
  .motta-public-main,
  .motta-public-footer,
  .motta-auth {
    width: min(100% - var(--space-3), 720px);
  }

  .motta-public-header,
  .motta-public-footer {
    align-items: flex-start;
  }

  .motta-public-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .motta-public-hero,
  .motta-auth {
    grid-template-columns: 1fr;
  }

  .motta-auth {
    gap: var(--space-4);
    align-content: center;
  }

  .motta-public-hero {
    min-height: auto;
  }

  .motta-public-signals {
    grid-template-columns: 1fr;
  }

  .motta-public-pricing {
    padding: var(--space-2);
  }

  .motta-public-pricing__grid {
    grid-template-columns: 1fr;
  }

  .motta-auth__intro {
    gap: var(--space-3);
  }

  .motta-auth__signals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .motta-public-header,
  .motta-public-footer {
    display: grid;
  }

  .motta-public-nav a,
  .motta-public-hero__actions a {
    flex: 1 1 auto;
  }

  .motta-auth__panel,
  .motta-producer__panel {
    padding: var(--space-3);
  }

  .motta-auth {
    width: min(100% - var(--space-2), 520px);
    padding: var(--space-2) 0;
  }

  .motta-auth__headline h1 {
    font-size: 40px;
  }

  .motta-auth__signals {
    display: none;
  }

  .motta-auth__panel-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .motta-auth__panel-head > span {
    width: 40px;
    height: 40px;
  }

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

/* Platform shell responsive hardening */
html,
html {
  max-width: 100%;
}

.motta-shell,
.motta-shell--platform {
  min-width: 0;
}

.motta-shell__main,
.motta-shell-main,
.motta-shell__stage,
.motta-shell-stage,
.motta-shell__module,
.motta-shell-module {
  min-width: 0;
}

@media (max-width: 880px) {
  .motta-shell,
  .motta-shell--platform {
    grid-template-columns: 1fr !important;
  }

  .motta-shell__rail,
  .motta-shell-rail {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: var(--space-1);
    padding: var(--space-2);
  }

  .motta-shell__brand,
  .motta-shell-brand {
    min-height: 40px;
    border-bottom: 0;
  }

  .motta-shell__nav,
  .motta-shell-nav {
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .motta-shell__nav button,
  .motta-shell-nav button {
    flex: 0 0 136px;
    min-width: 136px;
  }

  .motta-shell__exit,
  .motta-shell-exit {
    display: none;
  }

  .motta-shell__main,
  .motta-shell-main {
    height: auto;
    min-height: calc(100svh - 128px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .motta-shell__topbar,
  .motta-shell-topbar {
    min-height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: var(--space-2);
  }

  .motta-shell__topbar-end,
  .motta-shell-topbar-end {
    width: 100%;
    min-width: 0;
  }

  .motta-shell__topbar-actions,
  .motta-shell-topbar-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .motta-shell__stage,
  .motta-shell-stage {
    min-height: auto;
    overflow: visible;
    padding: var(--space-2);
  }
}

@media (max-width: 560px) {
  .motta-shell__rail,
  .motta-shell-rail {
    position: relative;
  }

  .motta-shell__brand,
  .motta-shell-brand {
    min-height: 38px;
  }

  .motta-shell__nav button,
  .motta-shell-nav button {
    flex-basis: 118px;
    min-width: 118px;
  }

  .motta-shell__topbar,
  .motta-shell-topbar {
    padding: 10px;
  }

  .motta-shell__topbar strong,
  .motta-shell-topbar strong {
    font-size: 20px;
  }

  .motta-shell__stage,
  .motta-shell-stage {
    padding: 10px;
  }
}

/* Motta Ultra Premium v7.5 shell finish */
.motta-shell {
  background: #f4f7fb;
}

.motta-shell-rail {
  background: #07111f;
  color: #fff;
}

.motta-shell-nav button,
.motta-shell-exit {
  border-color: rgba(255, 255, 255, .12);
  border-radius: 12px;
}

.motta-shell-nav button.is-active {
  background: #116dff;
  color: #fff;
}

.motta-shell-topbar {
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid #d8e2ee;
  backdrop-filter: blur(18px);
}

.motta-shell-stage {
  background: #f4f7fb;
}

.motta-shell-topbar-actions a {
  min-height: 40px;
  border-radius: 999px;
  border-color: #d8e2ee;
  background: #fff;
  color: #0b1424;
}

.motta-shell-topbar-actions a.is-active,
.motta-shell-topbar-actions a.is-primary {
  border-color: #116dff;
  background: #116dff;
  color: #fff;
}

@media (max-width: 880px) {
  .motta-shell-rail {
    background: #07111f;
  }

  .motta-shell-nav {
    scrollbar-width: thin;
  }
}

/* Motta v8 corporate shell finish */
.motta-shell,
.motta-shell--platform {
  --motta-shell-bg: #f5f8fc;
  --motta-shell-rail: #07111f;
  --motta-shell-primary: #116dff;
  --motta-shell-primary-soft: #e9f2ff;
  --motta-shell-text: #0a1324;
  --motta-shell-muted: #667085;
  --motta-shell-border: #dbe5f0;
  --motta-shell-surface: #ffffff;
  background: var(--motta-shell-bg);
  color: var(--motta-shell-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.motta-shell-rail {
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, var(--motta-shell-rail), #040a13);
}

.motta-shell-brand span {
  border-color: rgba(17, 109, 255, .72);
  color: #fff;
}

.motta-shell-brand strong,
.motta-shell-nav button span,
.motta-shell-exit {
  font-weight: 700;
}

.motta-shell-nav button {
  border-color: rgba(255, 255, 255, .09);
  border-radius: 12px;
  color: rgba(255, 255, 255, .84);
  font-weight: 600;
}

.motta-shell-nav button small {
  color: rgba(255, 255, 255, .58);
  font-weight: 500;
}

.motta-shell-nav button.is-active {
  border-color: rgba(17, 109, 255, .60);
  background: var(--motta-shell-primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(17, 109, 255, .24);
}

.motta-shell-nav button.is-active small {
  color: rgba(255, 255, 255, .78);
}

.motta-shell-topbar {
  border-bottom: 1px solid var(--motta-shell-border);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
}

.motta-shell-topbar span {
  color: var(--motta-shell-primary);
  font-weight: 700;
}

.motta-shell-topbar strong {
  color: var(--motta-shell-text);
  font-weight: 700;
}

.motta-shell-topbar p {
  color: var(--motta-shell-muted);
  font-weight: 600;
}

.motta-shell-stage {
  background:
    radial-gradient(circle at 26% 0%, rgba(17, 109, 255, .08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--motta-shell-bg) 100%);
}

.motta-shell-module,
.motta-shell-module .motta-layer,
.motta-shell-module .motta-platform {
  --admin-bg: var(--motta-shell-bg);
  --admin-paper: var(--motta-shell-surface);
  --admin-paper-soft: #f8fbff;
  --admin-ink: var(--motta-shell-text);
  --admin-muted: var(--motta-shell-muted);
  --admin-line: var(--motta-shell-border);
  --admin-gold: var(--motta-shell-primary);
}

.motta-shell-module .motta-layer-workbench,
.motta-shell-module .motta-layer-panel,
.motta-shell-module .motta-layer-side-panel,
.motta-shell-module .motta-layer-mockups-filter,
.motta-shell-module .motta-layer-models-filter,
.motta-shell-module .motta-layer-mockups-shelf,
.motta-shell-module .motta-layer-models-shelf,
.motta-shell-module .motta-layer-mockups-detail,
.motta-shell-module .motta-platform-panel,
.motta-shell-module .motta-platform-card {
  border-color: var(--motta-shell-border);
  background: var(--motta-shell-surface);
  box-shadow: 0 18px 52px rgba(15, 23, 42, .08);
}

.motta-shell-module :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(17, 109, 255, .32);
  outline-offset: 3px;
}

@media (max-width: 880px) {
  .motta-shell-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
  }
}

/* Motta Minimalist Premium Login v26.03 */
.motta-auth-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 72% 14%, rgba(17, 109, 255, .22), transparent 30rem),
    linear-gradient(135deg, #06101e 0%, #071626 48%, #0b1220 100%) !important;
}

.motta-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .42;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .86), transparent 78%);
}

.motta-auth {
  position: relative;
  width: min(1120px, calc(100% - 48px)) !important;
  min-height: 100svh;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 424px) !important;
  align-items: center;
  gap: clamp(32px, 8vw, 112px) !important;
  padding: 40px 0 !important;
}

.motta-auth__intro {
  display: grid !important;
  align-content: center;
  gap: 40px !important;
  color: #ffffff;
}

.motta-auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.motta-auth__brand span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 173, 255, .46);
  border-radius: 12px;
  background: rgba(17, 109, 255, .14);
  box-shadow: 0 0 0 6px rgba(17, 109, 255, .06);
}

.motta-auth__copy {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.motta-auth__eyebrow {
  margin: 0;
  color: #79adff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.motta-auth__copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 78px) !important;
  line-height: .96 !important;
  letter-spacing: 0 !important;
  font-weight: 800;
}

.motta-auth__copy p:not(.motta-auth__eyebrow),
.motta-auth__note {
  margin: 0;
  color: rgba(255, 255, 255, .70);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}

.motta-auth__note {
  max-width: 460px;
  font-size: 14px;
  color: rgba(255, 255, 255, .58);
}

.motta-auth__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 238, .92) !important;
  border-radius: 22px !important;
  padding: 32px !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

.motta-auth__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #116dff, #79adff);
}

.motta-auth__panel-head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  margin-bottom: 24px !important;
}

.motta-auth__panel-head h2,
.motta-auth__panel-head p,
.motta-auth__panel-head small {
  margin: 0;
}

.motta-auth__panel-head h2 {
  color: var(--color-text);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 800;
}

.motta-auth__panel-head small {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.motta-auth__form {
  display: grid;
  gap: 16px !important;
}

.motta-auth__field {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.motta-auth__field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(121, 138, 158, .34);
  border-radius: 14px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.motta-auth__field input:hover {
  border-color: rgba(17, 109, 255, .38);
}

.motta-auth__field input:focus-visible {
  border-color: rgba(17, 109, 255, .86);
  box-shadow: 0 0 0 4px rgba(17, 109, 255, .12);
}

.motta-auth__submit {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #116dff;
  border-radius: 14px;
  padding: 0 18px;
  background: linear-gradient(135deg, #116dff, #075bd8);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(17, 109, 255, .28);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.motta-auth__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(17, 109, 255, .34);
}

.motta-auth__submit:focus-visible {
  outline: 3px solid rgba(17, 109, 255, .28);
  outline-offset: 3px;
}

.motta-auth__submit:disabled {
  cursor: progress;
  opacity: .72;
  transform: none;
}

.motta-auth__message {
  min-height: 20px;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.motta-auth__message.is-error,
.login-message.is-error {
  color: #b42318;
}

.motta-auth__message.is-ok,
.login-message.is-ok {
  color: #087443;
}

.motta-auth__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid rgba(121, 138, 158, .22);
  padding-top: 16px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.motta-auth__foot strong {
  color: #087443;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .motta-auth__field input,
  .motta-auth__submit {
    transition: none;
  }
}

@media (max-width: 960px) {
  .motta-auth {
    width: min(100% - 32px, 560px) !important;
    grid-template-columns: 1fr !important;
    align-content: center;
    gap: 28px !important;
  }

  .motta-auth__intro {
    gap: 18px !important;
  }

  .motta-auth__copy h1 {
    font-size: clamp(36px, 10vw, 52px) !important;
  }

  .motta-auth__note {
    display: none;
  }
}

@media (max-width: 560px) {
  .motta-auth {
    width: min(100% - 24px, 520px) !important;
    padding: 24px 0 !important;
  }

  .motta-auth__panel {
    border-radius: 18px !important;
    padding: 24px !important;
  }

  .motta-auth__copy p:not(.motta-auth__eyebrow) {
    font-size: 15px;
  }
}

/* Motta public landing v26.09 - single screen premium reset */
body.motta-public {
  min-height: 100svh !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative !important;
  isolation: isolate !important;
  background:
    linear-gradient(135deg, #050916 0%, #07111f 46%, #02050b 100%) !important;
  color: #eef5ff !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.motta-public::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 78%);
  opacity: .28;
  z-index: 1;
}

body.motta-public::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #050916 0%, #07111f 46%, #02050b 100%);
}

html:has(body.motta-public) {
  background: #050916 !important;
  overflow-x: hidden;
  overflow-y: auto;
}

body.motta-public > * {
  position: relative;
  z-index: 2;
}

.motta-public-header--single,
.motta-public-main--single {
  width: min(1240px, calc(100% - 48px)) !important;
  margin-inline: auto !important;
}

.motta-public-header--single {
  height: 62px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.motta-public-header--single .motta-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #f8fbff !important;
  text-decoration: none !important;
}

.motta-public-header--single .motta-brand span {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(115, 168, 255, .42) !important;
  border-radius: 10px !important;
  background: rgba(13, 30, 56, .72) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.motta-public-header--single .motta-brand strong {
  font-size: 15px !important;
  font-weight: 700 !important;
}

.motta-public-header--single .motta-button--dark {
  min-height: 38px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(212, 224, 242, .18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .06) !important;
  color: rgba(244, 248, 255, .88) !important;
  box-shadow: none !important;
}

.motta-public-main--single {
  height: calc(100svh - 62px) !important;
  display: grid !important;
  padding: 10px 0 22px !important;
}

.motta-public-single {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "copy console"
    "plans plans" !important;
  gap: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.motta-public-single__copy {
  grid-area: copy !important;
  align-self: center !important;
  display: grid !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.motta-public-single__copy .motta-kicker {
  margin: 0 !important;
  color: #9abfff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.motta-public-single__copy h1 {
  max-width: 720px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(42px, 5.8vw, 74px) !important;
  line-height: .96 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.motta-public-single__copy p:not(.motta-kicker) {
  max-width: 570px !important;
  margin: 0 !important;
  color: rgba(226, 236, 250, .72) !important;
  font-size: clamp(15px, 1.35vw, 18px) !important;
  line-height: 1.52 !important;
}

.motta-public-single .motta-button--primary {
  width: max-content !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: #116dff !important;
  color: #ffffff !important;
  box-shadow: 0 16px 42px rgba(17, 109, 255, .26) !important;
}

.motta-public-single__proof {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  max-width: 640px !important;
}

.motta-public-single__proof span {
  border: 1px solid rgba(176, 196, 226, .18) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  background: rgba(255, 255, 255, .045) !important;
  color: rgba(233, 241, 252, .76) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.motta-public-console--single {
  grid-area: console !important;
  align-self: center !important;
  display: grid !important;
  gap: 10px !important;
  padding: 14px !important;
  border: 1px solid rgba(200, 218, 245, .14) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .28) !important;
}

.motta-public-console--single .motta-public-console__head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(200, 218, 245, .12) !important;
}

.motta-public-console--single .motta-public-console__head span {
  color: rgba(218, 230, 248, .48) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.motta-public-console--single .motta-public-console__head strong {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.motta-public-console--single ol {
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.motta-public-console--single li {
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px !important;
  border: 1px solid rgba(200, 218, 245, .12) !important;
  border-radius: 14px !important;
  background: rgba(5, 13, 27, .46) !important;
}

.motta-public-console--single li > span {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: rgba(17, 109, 255, .18) !important;
  color: #9dc2ff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.motta-public-console--single li strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.motta-public-console--single li small {
  display: block !important;
  margin-top: 2px !important;
  color: rgba(222, 233, 249, .56) !important;
  font-size: 11px !important;
}

.motta-public-plans {
  grid-area: plans !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  min-height: 0 !important;
}

.motta-public-plan--single {
  min-height: 198px !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 16px !important;
  border: 1px solid rgba(207, 222, 244, .15) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.092), rgba(255,255,255,.04)) !important;
  color: #eef5ff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.motta-public-plan--single.is-recommended {
  border-color: rgba(17, 109, 255, .56) !important;
  background: linear-gradient(180deg, rgba(17,109,255,.2), rgba(255,255,255,.055)) !important;
}

.motta-public-plan--single.is-corporate {
  border-color: rgba(226, 180, 100, .3) !important;
  background: linear-gradient(180deg, rgba(196,144,58,.14), rgba(255,255,255,.045)) !important;
}

.motta-public-plan--single header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.motta-public-plan--single header div {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.motta-public-plan--single header small,
.motta-public-plan--single .motta-public-plan__monthly span,
.motta-public-plan--single .motta-public-plan__terms span {
  color: rgba(225, 235, 250, .58) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.motta-public-plan--single header strong {
  color: #ffffff !important;
  font-size: 23px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.motta-public-plan--single header em {
  flex: 0 0 auto !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 999px !important;
  padding: 5px 8px !important;
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.motta-public-plan__monthly {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.motta-public-plan__monthly b {
  color: #ffffff !important;
  font-size: clamp(19px, 2vw, 25px) !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.motta-public-plan__terms,
.motta-public-plan__chips {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.motta-public-plan__terms span,
.motta-public-plan__chips span {
  min-width: 0 !important;
  border: 1px solid rgba(211, 225, 246, .14) !important;
  border-radius: 10px !important;
  padding: 6px 7px !important;
  background: rgba(255,255,255,.045) !important;
  overflow: hidden !important;
  color: rgba(235, 243, 255, .8) !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 1024px) {
  .motta-public-header--single,
  .motta-public-main--single {
    width: min(calc(100% - 32px), 960px) !important;
  }

  .motta-public-single {
    grid-template-columns: minmax(0, 1fr) 318px !important;
    gap: 14px !important;
  }

  .motta-public-single__copy h1 {
    font-size: clamp(40px, 5vw, 58px) !important;
  }

  .motta-public-plan--single {
    min-height: 180px !important;
    padding: 13px !important;
  }

  .motta-public-plan__chips span:nth-child(n+4) {
    display: none !important;
  }
}

@media (max-width: 700px) {
  body.motta-public {
    overflow-x: hidden !important;
  }

  .motta-public-header--single,
  .motta-public-main--single {
    width: min(calc(100% - 24px), 430px) !important;
  }

  .motta-public-header--single {
    height: 52px !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  .motta-public-header--single .motta-brand {
    min-width: 0 !important;
  }

  .motta-public-header--single .motta-brand strong {
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .motta-public-header--single .motta-button--dark {
    min-width: 0 !important;
    min-height: 32px !important;
    max-width: 92px !important;
    padding-inline: 10px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .motta-public-main--single {
    height: calc(100svh - 52px) !important;
    padding: 8px 0 10px !important;
  }

  .motta-public-single {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    grid-template-areas:
      "copy"
      "console"
      "plans" !important;
    gap: 9px !important;
  }

  .motta-public-single__copy {
    align-self: start !important;
    gap: 8px !important;
  }

  .motta-public-single__copy h1 {
    max-width: 330px !important;
    font-size: clamp(28px, 7.3vw, 32px) !important;
    overflow-wrap: normal !important;
  }

  .motta-public-single__copy p:not(.motta-kicker) {
    max-width: 380px !important;
    font-size: 12.5px !important;
    line-height: 1.38 !important;
  }

  .motta-public-single .motta-button--primary {
    min-height: 36px !important;
    padding-inline: 14px !important;
    font-size: 12px !important;
  }

  .motta-public-single__proof {
    gap: 5px !important;
  }

  .motta-public-single__proof span {
    padding: 4px 7px !important;
    font-size: 10.5px !important;
  }

  .motta-public-single__proof span:nth-child(n+4) {
    display: none !important;
  }

  .motta-public-console--single {
    align-self: stretch !important;
    padding: 9px !important;
    border-radius: 16px !important;
  }

  .motta-public-console--single .motta-public-console__head {
    display: none !important;
  }

  .motta-public-console--single ol {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .motta-public-console--single li {
    min-height: 42px !important;
    grid-template-columns: 23px minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 7px !important;
  }

  .motta-public-console--single li > span {
    width: 23px !important;
    height: 23px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
  }

  .motta-public-console--single li strong {
    font-size: 10.5px !important;
  }

  .motta-public-console--single li small {
    display: none !important;
  }

  .motta-public-plans {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .motta-public-plan--single {
    min-height: 0 !important;
    grid-template-columns: minmax(82px, .8fr) minmax(92px, .86fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 5px 7px !important;
    padding: 8px !important;
    border-radius: 15px !important;
  }

  .motta-public-plan--single header {
    display: grid !important;
    gap: 3px !important;
  }

  .motta-public-plan--single header small {
    display: none !important;
  }

  .motta-public-plan--single header strong {
    font-size: 16px !important;
  }

  .motta-public-plan--single header em {
    justify-self: start !important;
    padding: 3px 6px !important;
    font-size: 8.5px !important;
  }

  .motta-public-plan__monthly {
    display: grid !important;
    align-content: center !important;
    gap: 2px !important;
  }

  .motta-public-plan__monthly b {
    font-size: 15px !important;
  }

  .motta-public-plan__terms {
    grid-column: 3 !important;
    grid-row: 1 !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .motta-public-plan__terms span {
    padding: 4px 5px !important;
    font-size: 9px !important;
  }

  .motta-public-plan__terms span:nth-child(n+2) {
    display: none !important;
  }

  .motta-public-plan__chips {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .motta-public-plan__chips span {
    padding: 4px 5px !important;
    font-size: 9px !important;
  }

  .motta-public-plan__chips span:nth-child(n+3) {
    display: none !important;
  }
}

/* Motta v26.12 shell consolidation */
:root {
  --shell-rail-w: 232px;
  --shell-topbar-h: 56px;
  --shell-bg: #eef4fb;
  --shell-surface: #ffffff;
  --shell-border: rgba(148, 163, 184, .30);
}

.motta-shell,
.motta-shell--platform {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--shell-rail-w) minmax(0, 1fr);
  background: var(--shell-bg);
  color: #0f172a;
  overflow: hidden;
}

.motta-shell-rail,
.motta-shell__rail {
  position: relative;
  z-index: 20;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, #07111f 0%, #040a13 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.motta-shell-main,
.motta-shell__main {
  min-width: 0;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-rows: var(--shell-topbar-h) minmax(0, 1fr);
  overflow: hidden;
}

.motta-shell-topbar,
.motta-shell__topbar {
  min-height: var(--shell-topbar-h);
  height: var(--shell-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--shell-border);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.motta-shell-topbar > div:first-child span,
.motta-shell__topbar > div:first-child span {
  color: #116dff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.motta-shell-topbar > div:first-child strong,
.motta-shell__topbar > div:first-child strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.motta-shell-topbar p,
.motta-shell__topbar p,
.motta-shell-topbar .motta-shell-topbar-kicker {
  display: none;
}

.motta-shell-topbar-actions,
.motta-shell__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.motta-shell-topbar-actions a,
.motta-shell__actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.motta-shell-stage,
.motta-shell__stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 18px;
  background:
    radial-gradient(circle at 26% 0%, rgba(17, 109, 255, .08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--shell-bg) 100%);
}

.motta-shell-module,
.motta-shell__module {
  min-width: 0;
  min-height: 0;
}

@media (max-width: 960px) {
  .motta-shell,
  .motta-shell--platform {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: auto;
  }

  .motta-shell-rail,
  .motta-shell__rail {
    min-height: auto;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .motta-shell-nav,
  .motta-shell__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .motta-shell-nav button,
  .motta-shell__nav button {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .motta-shell-main,
  .motta-shell__main {
    min-height: calc(100svh - 116px);
    height: auto;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: visible;
  }

  .motta-shell-topbar,
  .motta-shell__topbar {
    height: auto;
    min-height: var(--shell-topbar-h);
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .motta-shell-stage,
  .motta-shell__stage {
    overflow: visible;
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .motta-shell-topbar-actions,
  .motta-shell__actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .motta-shell-topbar-actions a,
  .motta-shell__actions a {
    flex: 0 0 auto;
  }
}

/* v3102 BL-B: Premium 404 sayfası — branded, return CTA, a11y */
.motta-notfound-page {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(140% 90% at 50% -10%, rgba(17, 109, 255, .18), transparent 58%),
    radial-gradient(120% 80% at 90% 110%, rgba(201, 162, 77, .14), transparent 60%),
    linear-gradient(180deg, #07111f 0%, #050a16 100%);
  color: #ffffff;
  font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  display: flex;
  flex-direction: column;
}
.motta-skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: #ffffff;
  color: #07111f;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
}
.motta-skip-link:focus-visible {
  left: 12px;
  outline: 2px solid #c9a24d;
  outline-offset: 2px;
}
.motta-notfound {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 96px) 24px;
}
.motta-notfound__inner {
  width: min(680px, 100%);
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.motta-notfound__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
  margin-bottom: 16px;
}
.motta-notfound__brand span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 77, .42);
  border-radius: 12px;
  background: rgba(201, 162, 77, .10);
  color: #c9a24d;
}
.motta-notfound__brand:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 4px;
  border-radius: 12px;
}
.motta-notfound__eyebrow {
  margin: 0;
  color: #c9a24d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.motta-notfound__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: #ffffff;
}
.motta-notfound__lead {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.6;
}
.motta-notfound__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.motta-notfound__cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .005em;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.motta-notfound__cta--gold {
  background: linear-gradient(135deg, #d9b15f 0%, #c9a24d 55%, #a8842f 100%);
  color: #07111f;
  border: 1px solid rgba(201, 162, 77, .58);
  box-shadow: 0 18px 38px rgba(201, 162, 77, .26);
}
.motta-notfound__cta--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(201, 162, 77, .34);
}
.motta-notfound__cta--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .26);
}
.motta-notfound__cta--ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .42);
}
.motta-notfound__cta:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 3px;
}
.motta-notfound__foot {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .48);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.motta-notfound__foot a {
  color: rgba(255, 255, 255, .70);
  text-decoration: none;
}
.motta-notfound__foot a:hover,
.motta-notfound__foot a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}
.motta-notfound__foot a:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .motta-notfound__cta {
    transition: none;
  }
  .motta-notfound__cta--gold:hover {
    transform: none;
  }
}
@media (max-width: 480px) {
  .motta-notfound__actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .motta-notfound__cta {
    width: 100%;
  }
}

/* v3200 Faz 4 Agent D: locale switch (TR/EN/ES) — legal page + ileride public yüzeylerde */
.motta-locale-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  align-items: center;
}
.motta-locale-switch__btn {
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.5px;
  line-height: 1.4;
  transition: background 200ms, color 200ms;
}
.motta-locale-switch__btn:hover,
.motta-locale-switch__btn:focus-visible {
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}
.motta-locale-switch__btn:focus-visible {
  box-shadow: 0 0 0 2px #c9a24d33;
}
.motta-locale-switch__btn.is-active {
  background: #0f172a;
  color: #ffffff;
}
.motta-locale-switch__btn.is-active:hover,
.motta-locale-switch__btn.is-active:focus-visible {
  background: #0f172a;
  color: #ffffff;
}
@media (max-width: 480px) {
  .motta-locale-switch__btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* v3200 Faz 2 Agent B: Locale switch UI (TR/EN/ES dil seçici).
   Footer'a inject edilir; minimalist segmented control, premium UI dili. */
.motta-locale-switch__wrap {
  display: inline-flex;
  margin-top: 12px;
}
.motta-locale-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}
.motta-locale-switch__btn {
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-mute, #64748b);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 200ms, color 200ms;
  font-family: inherit;
}
.motta-locale-switch__btn:hover {
  background: var(--soft, #f8fafc);
  color: var(--ink, #0f172a);
}
.motta-locale-switch__btn.is-active {
  background: var(--ink, #0f172a);
  color: #fff;
}
.motta-locale-switch__btn:focus-visible {
  outline: 2px solid var(--accent, #c9a24d);
  outline-offset: 2px;
}

/* v3904: Admin catalog/mockup shell route chip */
.motta-shell-route-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.82));
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(37,99,235,.08);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .motta-shell-route-chip {
    display: none;
  }
}

/* ============================================================================
   v3915 ULTRA PREMIUM SHELL SIDEBAR — Mavi + Glassmorphism + Grup Separators
   ----------------------------------------------------------------------------
   4 ajan denetimi: motta-public.js'in sol sidebar'ı eski altın tema
   (#12100c koyu kahve + #d6ad43 altın). Kullanıcı admin paneli embedded
   modunda gördüğü için v3912 üst tab bar GIZLI kalıyor → sadece bu eski
   altın sol sidebar görünüyor. Çözüm: bu sidebar'ı mavi premium yap.

   Override pattern: .motta-shell--v3915-premium parent altında.
   Eski .motta-shell CSS (satır 434-545) dokunulmadan kalır, premium katman üstüne biner.
   ============================================================================ */

.motta-shell--v3915-premium {
  grid-template-columns: 260px minmax(0, 1fr);  /* 232 → 260 daha rahat */
}

/* RAIL — sidebar wrapper: koyu mavi gradient + sticky + scroll */
.motta-shell--v3915-premium .motta-shell-rail {
  /* v3917 gradient fix: 3-stop yakın renkler flat görünüyordu (#0f172a→#1e293b sadece 16 RGB fark).
     2-stop belirgin geçiş (#0f172a→#1e3a8a, 95 RGB fark) + 2 radial overlay (Stripe luxury pattern). */
  background:
    radial-gradient(circle at 20% 15%, rgba(96, 165, 250, .32) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(37, 99, 235, .22) 0%, transparent 50%),
    linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%) !important;
  border-right: 1px solid rgba(37, 99, 235, .28) !important;
  padding: 18px 14px !important;
  gap: 10px !important;
  box-shadow: 4px 0 24px -8px rgba(15, 23, 42, .42),
              inset 0 0 60px rgba(37, 99, 235, .08);
  position: relative;
  overflow: hidden;
}
.motta-shell--v3915-premium .motta-shell-rail::before {
  /* v3917: aurora glow — üst kısma daha geniş, daha parlak */
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  right: -20%;
  height: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(96, 165, 250, .28) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.motta-shell--v3915-premium .motta-shell-rail > * { position: relative; z-index: 1; }

/* BRAND — M kutu + Motta + Admin Panel alt yazısı */
.motta-shell--v3915-premium .motta-shell-brand {
  padding: 8px 6px 14px !important;
  border-bottom: 1px solid rgba(96, 165, 250, .22) !important;
  text-decoration: none;
  gap: 12px !important;
}
.motta-shell--v3915-premium .motta-shell-brand span {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(96, 165, 250, .42) !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .42), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.motta-shell--v3915-premium .motta-shell-brand strong {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 16px !important;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -.01em;
}
.motta-shell--v3915-premium .motta-shell-brand em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(96, 165, 250, .85);
}

/* NAV — gruplara ayrılmış scrollable nav */
.motta-shell--v3915-premium .motta-shell-nav {
  gap: 14px !important;
  padding-right: 4px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
}
.motta-shell--v3915-premium .motta-shell-nav::-webkit-scrollbar { width: 4px; }
.motta-shell--v3915-premium .motta-shell-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 2px;
}

/* GRUP — separator label + items */
.motta-shell--v3915-premium .motta-shell-nav-group {
  display: grid;
  gap: 3px;
}
.motta-shell--v3915-premium .motta-shell-nav-group-title {
  padding: 4px 12px 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, .68);
  border-bottom: 1px solid rgba(96, 165, 250, .08);
  margin-bottom: 4px;
}

/* NAV ITEM — ikon + label + kicker, hover/active state */
.motta-shell--v3915-premium .motta-shell-nav-item {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px !important;
  padding: 8px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: rgba(226, 232, 240, .8) !important;
  text-align: left !important;
  cursor: pointer;
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}
.motta-shell--v3915-premium .motta-shell-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 0;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-radius: 0 3px 3px 0;
  transition: width .15s ease;
  box-shadow: 0 0 12px rgba(96, 165, 250, .42);
}
.motta-shell--v3915-premium .motta-shell-nav-item:hover {
  background: rgba(255, 255, 255, .05) !important;
  color: #fff !important;
  border-color: rgba(96, 165, 250, .14) !important;
}
.motta-shell--v3915-premium .motta-shell-nav-item:hover::before {
  width: 3px;
}
.motta-shell--v3915-premium .motta-shell-nav-item.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, .24) 0%, rgba(29, 78, 216, .18) 100%) !important;
  color: #fff !important;
  border-color: rgba(96, 165, 250, .28) !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .22),
              inset 0 1px 0 rgba(255, 255, 255, .08);
}
.motta-shell--v3915-premium .motta-shell-nav-item.is-active::before {
  width: 4px;
}

/* ICON — emoji */
.motta-shell--v3915-premium .motta-shell-nav-icon {
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  width: 22px;
  height: 22px;
  filter: grayscale(.35) brightness(1.05);
  transition: all .15s ease;
}
.motta-shell--v3915-premium .motta-shell-nav-item:hover .motta-shell-nav-icon,
.motta-shell--v3915-premium .motta-shell-nav-item.is-active .motta-shell-nav-icon {
  filter: none;
  transform: scale(1.08);
}

/* TEXT — label + kicker */
.motta-shell--v3915-premium .motta-shell-nav-text {
  display: grid;
  gap: 0;
  min-width: 0;
}
.motta-shell--v3915-premium .motta-shell-nav-label {
  font-size: 12.5px !important;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.motta-shell--v3915-premium .motta-shell-nav-item.is-active .motta-shell-nav-label {
  font-weight: 800;
}
.motta-shell--v3915-premium .motta-shell-nav-kicker {
  font-size: 10px !important;
  font-weight: 600;
  color: rgba(148, 163, 184, .68);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.motta-shell--v3915-premium .motta-shell-nav-item.is-active .motta-shell-nav-kicker {
  color: rgba(191, 219, 254, .82);
}

/* SESSION (Logout + Site) — premium pill butonlar */
.motta-shell--v3915-premium .motta-shell-session {
  padding-top: 12px;
  border-top: 1px solid rgba(96, 165, 250, .14);
  gap: 6px !important;
}
.motta-shell--v3915-premium .motta-shell-logout {
  background: rgba(220, 38, 38, .12) !important;
  border: 1px solid rgba(220, 38, 38, .28) !important;
  border-radius: 9px !important;
  color: #fca5a5 !important;
  font-size: 12px !important;
  font-weight: 800;
  min-height: 38px !important;
  transition: all .15s ease;
}
.motta-shell--v3915-premium .motta-shell-logout:hover {
  background: rgba(220, 38, 38, .24) !important;
  border-color: rgba(220, 38, 38, .42) !important;
  color: #fee2e2 !important;
}
.motta-shell--v3915-premium .motta-shell-exit {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 9px !important;
  color: rgba(226, 232, 240, .85) !important;
  font-size: 11.5px !important;
  font-weight: 700;
  min-height: 34px !important;
  text-decoration: none;
  transition: all .15s ease;
}
.motta-shell--v3915-premium .motta-shell-exit:hover {
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
}

/* TOPBAR — main alanın üst başlığı premium */
.motta-shell--v3915-premium .motta-shell-topbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  padding: 14px 24px;
}
.motta-shell--v3915-premium .motta-shell-topbar > div:first-child span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
}
.motta-shell--v3915-premium .motta-shell-topbar > div:first-child strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}

/* MAIN — sayfa içeriği wrapper */
.motta-shell--v3915-premium .motta-shell-main {
  background: #f5f8ff;  /* hafif mavi tint */
}
.motta-shell--v3915-premium .motta-shell-stage {
  padding: 0;
}

/* RESPONSIVE — tablet/mobile */
@media (max-width: 960px) {
  .motta-shell--v3915-premium {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .motta-shell--v3915-premium .motta-shell-nav-kicker {
    display: none;  /* tablet'te kicker gizli, alan daralır */
  }
}
@media (max-width: 720px) {
  .motta-shell--v3915-premium {
    grid-template-columns: 64px minmax(0, 1fr);  /* mobile collapsed icon-only */
  }
  .motta-shell--v3915-premium .motta-shell-brand strong,
  .motta-shell--v3915-premium .motta-shell-nav-text,
  .motta-shell--v3915-premium .motta-shell-nav-group-title {
    display: none;
  }
  .motta-shell--v3915-premium .motta-shell-nav-item {
    grid-template-columns: 22px;
    justify-content: center;
  }
}

/* === SON: v3915 ULTRA PREMIUM SHELL SIDEBAR =============================== */

/* ========================================================================
   v3955 FINAL-P4 — Platform admin mobile hamburger (Mobile audit P0)
   motta-shell--platform için. tenant-admin'in pattern'ı paralel ama PA prefix.
   ======================================================================== */

.pa-hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.30);
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.pa-hamburger:hover {
  background: rgba(30, 58, 138, 0.95);
}

.pa-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1050;
}

@media (max-width: 720px) {
  .pa-hamburger {
    display: inline-flex;
  }
  .motta-shell--platform .motta-shell-sidebar,
  .motta-shell--platform aside.motta-shell-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 80vw);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1080;
    overflow-y: auto;
    box-shadow: 4px 0 24px -8px rgba(0, 0, 0, 0.30);
  }
  body.is-pa-nav-open .motta-shell--platform .motta-shell-sidebar,
  body.is-pa-nav-open aside.motta-shell-sidebar {
    transform: translateX(0);
  }
  body.is-pa-nav-open {
    overflow: hidden;
  }
  body.is-pa-nav-open .pa-hamburger {
    left: calc(min(280px, 80vw) + 14px);
    transition: left 0.25s ease;
    font-size: 0;
  }
  body.is-pa-nav-open .pa-hamburger::before {
    content: "×";
    font-size: 24px;
  }
  .motta-shell--platform .motta-shell-content,
  .motta-shell--platform main {
    padding-top: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motta-shell--platform .motta-shell-sidebar,
  .pa-hamburger {
    transition: none;
  }
}
