:root {
  --bg: #080d1c;
  --surface: #111a2b;
  --surface2: #17233a;
  --line: #263650;
  --ink: #eef5ff;
  --muted: #9aabc5;
  --brand: #2dd4bf;
  --brand2: #22d3ee;
  --ok: #45d483;
  --warn: #f5c15c;
  --bad: #fb7185;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --r: 8px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font: 700 11px var(--mono);
  letter-spacing: 0.12em;
  color: var(--brand2);
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}
.loginCard {
  width: min(420px, 100%);
  background: rgba(17, 26, 43, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: 0 20px 70px #0007;
}
.mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #07131d;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 22px;
}
.mark span {
  color: #125466;
}
.mark.small {
  width: 34px;
  height: 34px;
  margin: 0;
  font-size: 15px;
  border-radius: 9px;
}
.login h1 {
  font-size: 28px;
  margin: 8px 0;
}
.login label,
.settings label {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c1425;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 8px;
  outline: 0;
}
.input:focus {
  border-color: var(--brand2);
  box-shadow: 0 0 0 3px #22d3ee22;
}
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
  color: #06151a;
  background: var(--brand);
  white-space: nowrap;
}
.btn.primary {
  background: var(--brand);
}
.btn.danger {
  color: #ffe4e6;
  background: #7f1d2d;
  border-color: #be4054;
}
.btn.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn.small {
  padding: 6px 9px;
  min-height: 32px;
}
.login .btn {
  width: 100%;
  margin-top: 18px;
}
.login .btn:disabled {
  cursor: wait;
  opacity: 0.65;
}
.telegramLoginStep {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #2dd4bf66;
  border-radius: var(--r);
  background: #0c1c2a;
}
.telegramLoginStep strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.login .telegramBtn {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
  background: var(--brand2);
}
.loginDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--muted);
  font: 600 11px var(--mono);
}
.loginDivider::before,
.loginDivider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.error {
  color: var(--bad);
  min-height: 20px;
  font-size: 13px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px max(18px, calc((100vw - 1240px) / 2));
  background: #080d1cee;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.brand strong {
  display: block;
  font-size: 14px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.topbar nav {
  display: flex;
  gap: 3px;
  background: #111a2b;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}
.tab.active,
.tab:hover {
  background: var(--surface2);
  color: var(--brand2);
}
.actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.pill {
  font: 700 10px var(--mono);
  padding: 6px 8px;
  border: 1px solid #2dd4bf55;
  border-radius: 999px;
  color: var(--brand);
}
.iconBtn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 26px 18px 70px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
  animation: rise 0.18s ease;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}
.head h1 {
  font-size: clamp(25px, 4vw, 40px);
  margin: 7px 0;
}
.head p {
  margin: 0;
}
.headActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 901px) {
  #stats,
  #stockStats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.stat,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.stat {
  padding: 16px;
}
.stat .label {
  color: var(--muted);
  font: 700 10px var(--mono);
  text-transform: uppercase;
}
.stat .value {
  font: 700 27px var(--mono);
  margin-top: 9px;
  color: var(--brand2);
}
.grid2,
.masterGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.masterGrid {
  grid-template-columns: 1fr 1fr;
}
.grid2 > *,
.masterGrid > * {
  min-width: 0;
}
.wide {
  grid-column: span 2;
}
.cardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 15px;
  margin: 0;
}
.tableWrap {
  overflow: auto;
}
.stockSection {
  margin-top: 14px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 560px;
}
.tbl th {
  text-align: left;
  color: var(--muted);
  font: 700 10px var(--mono);
  text-transform: uppercase;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 11px 13px;
  border-bottom: 1px solid #26365088;
  vertical-align: top;
}
.tbl tr:last-child td {
  border: 0;
}
.tbl tr:hover td {
  background: #17233a55;
}
.list {
  padding: 6px 0;
}
.listItem {
  padding: 12px 17px;
  border-bottom: 1px solid #26365088;
  font-size: 12px;
}
.listItem:last-child {
  border: 0;
}
.listItem strong {
  display: block;
  margin-bottom: 3px;
}
.tag {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f5c15c22;
  color: var(--warn);
  font: 700 10px var(--mono);
}
.tag.visitOn {
  color: #86efac;
  background: #15803d33;
}
.tag.visitOff {
  color: #93c5fd;
  background: #2563eb33;
}
.productThumb {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0c1425;
}
.productThumb.empty {
  color: var(--muted);
}
.settings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.settings label {
  margin: 0;
}
.brandingLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 18px;
  padding-right: 16px;
}
.brandingLayout .settings {
  padding-right: 0;
}
.receiptPreview {
  padding: 16px 0;
}
.receiptPaper {
  width: min(100%, 340px);
  min-height: 520px;
  padding: 22px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: 0 16px 40px 8px #02051042;
  font-size: 11px;
}
.receiptBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.receiptReferenceLogo {
  width: 70px;
  height: 76px;
  margin: -22px auto 8px;
  display: grid;
  place-items: center;
  background: var(--receipt-brand);
  border-radius: 0 0 36px 36px;
}
.receiptReferenceLogo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.receiptReferenceLogo span {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.receiptReferenceName,
.receiptReferenceTagline,
.receiptReferenceLogo + small,
.receiptContact {
  display: block;
  text-align: center;
}
.receiptReferenceName {
  color: var(--receipt-brand);
  font: 500 25px Georgia, serif;
  letter-spacing: 1px;
}
.receiptReferenceTagline {
  color: var(--receipt-gold, #b77e31);
  margin-top: 2px;
  font: 500 13px Georgia, serif;
  letter-spacing: 2px;
}
.receiptReferenceLogo + .receiptReferenceName + .receiptReferenceTagline + small {
  color: var(--receipt-gold, #b77e31);
  margin: 10px 0 6px;
  font: 700 8px var(--mono);
}
.receiptContact {
  margin-top: 10px;
  color: #fff;
  font-size: 8px;
}
.receiptBrand img,
.receiptBrand > span {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: contain;
  display: grid;
  place-items: center;
  background: var(--receipt-brand);
  color: #fff;
  font-weight: 800;
}
.receiptBrand strong,
.receiptBrand small {
  display: block;
}
.receiptBrand strong {
  color: #111827;
  font-size: 16px;
}
.receiptBrand small {
  margin-top: 3px;
  color: var(--receipt-brand);
  font: 700 9px var(--mono);
}
.receiptRule {
  height: 3px;
  margin: 18px 0 20px;
  border-radius: 2px;
  background: var(--receipt-brand);
}
.receiptPaper h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
}
.receiptDocumentMeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font: 500 9px var(--mono);
}
.receiptPaper dl {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
}
.receiptPaper dt {
  color: #64748b;
  font: 700 9px var(--mono);
}
.receiptPaper dd {
  margin: 0;
  font-weight: 700;
}
.receiptItems {
  border-bottom: 1px solid #e2e8f0;
}
.receiptItemsHead,
.receiptItemRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 58px 72px;
  align-items: start;
  gap: 8px;
}
.receiptItemsHead {
  padding: 8px 9px;
  border-radius: 5px;
  color: #64748b;
  background: #eef2f7;
  font: 700 9px var(--mono);
}
.receiptItemsHead span:not(:first-child),
.receiptItemRow > span,
.receiptItemRow > strong {
  text-align: right;
}
.receiptItemRow {
  padding: 13px 9px;
}
.receiptItemRow div strong,
.receiptItemRow div small {
  display: block;
}
.receiptItemRow div small {
  margin-top: 4px;
  color: var(--receipt-brand);
  font: 700 9px var(--mono);
}
.receiptSummary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  width: 88%;
  margin: 14px 0 0 auto;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 11px;
}
.receiptSummary strong {
  color: #111827;
  text-align: right;
}
.visitPreview {
  width: max-content;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #15803d;
  background: #dcfce7;
  font-weight: 800;
}
.receiptPaper footer {
  margin-top: 24px;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
}
.imagePreviewRow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.productImagePreview {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #0c1425;
  font-size: 11px;
}
.productImagePreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activationResult {
  display: block;
  padding: 0 16px 16px;
  color: var(--brand);
  min-height: 24px;
  overflow-wrap: anywhere;
}
.activationResult strong {
  color: #d9f9f6;
}
.activationCodeCell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
}
.activationCodeCell strong {
  color: #d9f9f6;
  white-space: nowrap;
}
.aiResult {
  margin: 0 16px 16px;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
  color: #d9f9f6;
  background: #0c1425;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 24px;
}
.dbToolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.dbToolbar .input {
  max-width: 300px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #0e2f2b;
  color: #d9fffa;
  border: 1px solid #2dd4bf66;
  padding: 12px 15px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s;
  pointer-events: none;
  font-size: 13px;
  z-index: 30;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #020510bb;
  z-index: 20;
  place-items: center;
  padding: 18px;
}
.modal.open {
  display: grid;
}
.modalCard {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.modalWide .modalCard {
  width: min(980px, 100%);
}
.modalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modalTop h2 {
  font-size: 19px;
}
.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.formGrid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.searchSelect {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.searchSelect[hidden] {
  display: none;
}
.searchSelectControl {
  position: relative;
  min-width: 0;
}
.searchSelectMenu {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 5px) 0 auto;
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  background: #0c1425;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px #02051088;
}
.searchSelectOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.searchSelectOption:hover,
.searchSelectOption.active {
  background: var(--surface2);
}
.searchSelectOption strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.searchSelectOption span {
  flex: none;
  color: var(--brand2);
  font: 600 11px var(--mono);
}
.searchSelectEmpty {
  padding: 12px 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
.formGrid .full {
  grid-column: 1/-1;
}
.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.loginActions .btn {
  width: auto;
  margin-top: 0;
  flex: 1;
}
.lineToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.txLines {
  display: grid;
  gap: 8px;
}
.txLine {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) minmax(90px, 1fr) 90px 120px 38px;
  gap: 8px;
  align-items: center;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    overflow: auto;
  }
  .tab {
    flex: 1;
    white-space: nowrap;
  }
  .actions {
    margin-left: auto;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2,
  .masterGrid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .head {
    align-items: flex-start;
    flex-direction: column;
  }
  .brandingLayout {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .receiptPreview {
    display: grid;
    place-items: center;
    padding: 0 16px 16px;
  }
}
@media (max-width: 450px) {
  .shell {
    padding: 20px 12px 55px;
  }
  .topbar {
    padding: 10px 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 12px;
  }
  .stat .value {
    font-size: 21px;
  }
  .formGrid,
  .settings {
    grid-template-columns: 1fr;
  }
  .formGrid .full {
    grid-column: auto;
  }
  .searchSelect input[type="search"] {
    font-size: 16px;
  }
  .txLine {
    grid-template-columns: 1fr 1fr;
  }
  .txLine .txProduct {
    grid-column: 1 / -1;
  }
}
.login[hidden],
#app[hidden] {
  display: none !important;
}
.dbSearch {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.analyticsControls {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.analyticsControls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.analyticsControls .input {
  min-width: 140px;
}
.analyticsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.analyticsGrid .wide {
  grid-column: span 3;
}
.chartCard {
  min-height: 300px;
  overflow: hidden;
}
.chart {
  padding: 14px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chartWide {
  display: block;
}
.chartEmpty {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 60px 12px;
}
.donutWrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.donutWrap svg {
  width: 180px;
  height: 180px;
}
.donutValue {
  fill: var(--ink);
  font: 700 20px var(--mono);
}
.donutLabel {
  fill: var(--muted);
  font: 700 10px var(--font);
}
.chartLegendList {
  display: grid;
  gap: 9px;
}
.chartLegend {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}
.chartLegend i,
.lineLegend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}
.chartLegend strong {
  font-family: var(--mono);
  font-size: 11px;
}
.barSvg,
.lineSvg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.barLabel,
.barValue,
.axisLabel {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 11px;
}
.barValue,
.axisLabel {
  font-family: var(--mono);
  font-size: 10px;
}
.lineLegend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font: 700 10px var(--mono);
  padding: 2px 10px 0 38px;
}
.lineLegend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.analyticsBottom {
  margin-bottom: 14px;
}
.analyticsBottom .listItem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.analyticsBottom .listItem strong {
  margin: 0;
  font-family: var(--mono);
}
.salesFilterCard .dbToolbar {
  align-items: end;
}
.salesFilterLabel {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.commissionAvailable {
  color: #86efac;
  background: #15803d33;
}
.commissionClaimed {
  color: #cbd5e1;
  background: #64748b33;
}
.claimPreview {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #b77e3144;
  border-radius: 8px;
  background: #17233a;
}
.claimPreview strong {
  color: var(--ink);
  font-size: 18px;
}
.claimPreview span,
.claimPreview small {
  color: var(--muted);
}
.claimPreview b {
  color: #f5c15c;
  font: 700 26px var(--mono);
}
@media (max-width: 980px) {
  .analyticsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analyticsGrid .wide {
    grid-column: span 2;
  }
}
@media (max-width: 620px) {
  .analyticsGrid {
    grid-template-columns: 1fr;
  }
  .analyticsGrid .wide {
    grid-column: auto;
  }
  .analyticsControls {
    width: 100%;
    align-items: stretch;
  }
  .analyticsControls label {
    flex: 1;
  }
  .analyticsControls .btn {
    align-self: end;
  }
  .donutWrap {
    grid-template-columns: 160px 1fr;
  }
  .donutWrap svg {
    width: 160px;
    height: 160px;
  }
  .salesFilterLabel {
    min-width: 100%;
  }
}

/* ============================================================
   STUDIO DESAIN STRUK (Sertifier Style)
   ============================================================ */
.studioHeadActions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.studioSyncStatus {
  font-size: 12px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.studioLayout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .studioLayout {
    grid-template-columns: 1fr;
  }
}
.studioControls {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
}
.studioSettingsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.studioSettingsGrid label.full {
  grid-column: 1 / -1;
}
.studioMockupColumn {
  background: #0f172a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}
.mockupHeader {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}
.deviceSwitcher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.switcherLabel {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  margin-right: 4px;
}
.deviceBtn {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.deviceBtn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.deviceBtn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}
.mockupIndicator {
  font-size: 11px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.mockupStage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 30px 0;
  overflow-x: auto;
}
/* Device Frames */
.deviceFrame {
  background: #1e293b;
  border: 10px solid #334155;
  border-radius: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.deviceFrame.device-mobile {
  width: 390px;
  min-height: 720px;
  padding: 14px 10px;
}
.deviceFrame.device-tablet {
  width: 680px;
  min-height: 780px;
  padding: 18px 14px;
}
.deviceFrame.device-desktop {
  width: 100%;
  max-width: 820px;
  border-radius: 12px;
  border: 2px solid #334155;
  padding: 0;
}
.deviceSpeaker {
  width: 60px;
  height: 4px;
  background: #475569;
  border-radius: 2px;
  margin-bottom: 12px;
}
.device-desktop .deviceSpeaker,
.device-desktop .deviceHomeBar {
  display: none;
}
.deviceScreen {
  width: 100%;
  background: #ede8df;
  border-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 30px 8px;
}
.device-desktop .deviceScreen {
  border-radius: 8px;
  max-height: 800px;
}
.deviceHomeBar {
  width: 120px;
  height: 4px;
  background: #64748b;
  border-radius: 2px;
  margin-top: 14px;
}
.receiptStudioPreview {
  width: 100%;
  display: flex;
  justify-content: center;
}
