/* Studio Pembeli / Kreator — product-first merchandise atelier (anti-Canva) */
.studio-body {
  --studio-accent: var(--blue);
  --studio-accent-lt: var(--blue-lt);
  --studio-glow: rgba(55, 100, 216, 0.18);
  --studio-soft: #f4fcff;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(222, 246, 255, 0.9), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(244, 252, 255, 0.85), transparent 50%),
    linear-gradient(180deg, #fff 0%, #f8fbff 42%, #fff 100%);
}

.studio-body[data-role="kreator"] {
  --studio-accent: var(--orange);
  --studio-accent-lt: #ff8a50;
  --studio-glow: rgba(230, 81, 0, 0.2);
  --studio-soft: #fff8f3;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 236, 220, 0.85), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 8%, rgba(255, 248, 243, 0.9), transparent 50%),
    linear-gradient(180deg, #fff 0%, #fffaf7 42%, #fff 100%);
}

.studio-nav {
  display: flex;
  justify-content: space-between;
}

.studio-welcome {
  width: min(1200px, calc(100% - 40px));
  margin: 32px auto 0;
  display: grid;
  gap: 10px;
}
.studio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--studio-accent);
}
.studio-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--studio-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--studio-accent) 18%, transparent);
}
.studio-welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.studio-welcome-copy h1 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.studio-welcome-copy h1 .brand-em {
  color: var(--studio-accent);
}
.studio-welcome-copy p {
  color: var(--slate);
  font-size: 15px;
  margin-top: 6px;
  max-width: 520px;
}
.studio-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.studio-role-pill.pembeli {
  color: var(--buyer);
  background: rgba(29, 78, 137, 0.1);
}
.studio-role-pill.kreator {
  color: var(--orange);
  background: rgba(230, 81, 0, 0.1);
}
.studio-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hub-email-chip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}

/* Compose: mockup + AI — merchandise atelier, bukan search Canva */
.studio-compose {
  width: min(1200px, calc(100% - 40px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: stretch;
  animation: studio-rise 0.7s ease both;
}
@keyframes studio-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.compose-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(155deg, var(--studio-accent) 0%, var(--studio-accent-lt) 40%, var(--studio-soft) 100%);
  box-shadow: 0 18px 44px var(--studio-glow);
}
.compose-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(28, 35, 61, 0.12), transparent 48%);
  pointer-events: none;
}
.compose-stage-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(28, 35, 61, 0.1);
}
.compose-mockup {
  position: absolute;
  inset: 48px 44px 64px;
  display: grid;
  place-items: center;
}
.compose-shirt {
  position: relative;
  width: min(300px, 72%);
  aspect-ratio: 1;
  background: #f0f2f5;
  border-radius: 22px;
  box-shadow: 0 22px 52px rgba(28, 35, 61, 0.28);
  overflow: hidden;
  animation: mockup-float 5.5s ease-in-out infinite;
}
@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.compose-shirt img.base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.compose-print {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 40%;
  translate: -50% -50%;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.4s ease, transform 0.4s ease;
  object-fit: cover;
  pointer-events: none;
}
.compose-print.is-on {
  opacity: 1;
  transform: scale(1);
}

.compose-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--studio-accent) 14%, #e2e8f0);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(28, 35, 61, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compose-panel h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.compose-panel > p {
  color: var(--slate);
  font-size: 14px;
  margin-top: -4px;
  line-height: 1.5;
}
.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-pill {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  transition: 0.2s ease;
}
.product-pill.is-active {
  background: color-mix(in srgb, var(--studio-accent) 12%, #fff);
  border-color: var(--studio-accent);
  color: var(--studio-accent);
}
.compose-input {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  min-height: 108px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.compose-input:focus {
  border-color: var(--studio-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--studio-accent) 12%, transparent);
}
.compose-hint {
  font-size: 12px;
  color: var(--slate);
}
.compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.compose-tools {
  display: flex;
  gap: 8px;
}
.tool-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gray-30, #f1f5f9);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 18px;
}
.tool-btn:hover {
  background: var(--studio-soft);
  color: var(--studio-accent);
}
.btn-compose {
  background: linear-gradient(135deg, var(--studio-accent), var(--studio-accent-lt));
  color: #fff;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 600;
  gap: 8px;
  box-shadow: 0 8px 18px var(--studio-glow);
}
.btn-compose:hover { translate: 0 -1px; }
.btn-compose:disabled { opacity: 0.7; cursor: wait; translate: none; }
.btn-compose img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Journey strip — one purpose: alur */
.studio-journey {
  width: min(1200px, calc(100% - 40px));
  margin: 8px auto 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.journey-card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e8edf5;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: studio-rise 0.65s ease both;
}
.journey-card:nth-child(2) { animation-delay: 0.08s; }
.journey-card:nth-child(3) { animation-delay: 0.16s; }
.journey-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28, 35, 61, 0.07);
}
.journey-num {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--studio-accent), var(--studio-accent-lt));
  flex-shrink: 0;
}
.journey-card h3 { font-size: 15px; margin-bottom: 4px; }
.journey-card p { font-size: 13px; color: var(--slate); line-height: 1.45; }

/* Inspo: desain di produk (bukan flat template) */
.studio-section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 56px;
}
.studio-section .section-head {
  text-align: left;
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.studio-section .section-head h2 {
  font-size: clamp(24px, 2.6vw, 28px);
  text-align: left;
}
.studio-section .section-head p {
  margin: 6px 0 0;
  text-align: left;
  max-width: 520px;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--studio-accent);
}
.inspo-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.inspo-card {
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
}
.inspo-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(28, 35, 61, 0.06);
}
.inspo-base,
.inspo-print {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inspo-base { filter: saturate(0.95); }
.inspo-print {
  inset: auto;
  left: 50%;
  top: 40%;
  width: 38%;
  height: auto;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  object-fit: cover;
  transition: transform 0.35s ease;
}
.inspo-card:hover .inspo-print { transform: scale(1.06); }
.inspo-card.is-active .inspo-media {
  border-color: var(--studio-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-accent) 22%, transparent);
}
.inspo-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(28, 35, 61, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}
.inspo-card h3 {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink);
}
.inspo-card .meta {
  font-size: 13px;
  color: var(--slate);
  margin-top: 2px;
}

/* Product catalog */
.products-panel {
  border-radius: 28px;
  background: linear-gradient(165deg, #f4ffea 0%, #fff 55%);
  padding: 36px 28px;
  border: 1px solid rgba(71, 204, 41, 0.14);
}
.products-panel .section-head h2 {
  background: linear-gradient(#3764d8, #47cc29);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.studio-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.studio-product {
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}
.studio-product .product-media {
  aspect-ratio: 1;
  border-radius: var(--radius, 20px);
  overflow: hidden;
  border: 1px solid var(--gray-60, #e2e8f0);
  background: #fff;
  margin-bottom: 12px;
}
.studio-product .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.studio-product:hover .product-media img { transform: scale(1.04); }
.studio-product h3 { font-size: 17px; margin-bottom: 8px; }
.swatches {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Marketplace kreator */
.market-panel {
  border-radius: 28px;
  background: linear-gradient(165deg, #fff8f3 0%, #fff 55%);
  padding: 36px 28px;
  border: 1px solid rgba(230, 81, 0, 0.12);
}
.market-panel .section-head h2 {
  background: linear-gradient(#e65100, #ff8a50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.clip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.clip-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 35, 61, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  width: 100%;
}
.clip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(230, 81, 0, 0.12);
}
.clip-media {
  aspect-ratio: 1;
  background: var(--gray-30, #f1f5f9);
  overflow: hidden;
}
.clip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip-body { padding: 14px 16px 18px; }
.clip-body h3 { font-size: 15px; margin-bottom: 4px; }
.clip-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}
.clip-earn {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--vendor);
  background: rgba(15, 118, 110, 0.1);
  padding: 4px 8px;
  border-radius: 999px;
}

.studio-footer { margin-top: 24px; }
.studio-footer .text-link {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #111;
  background: none;
  padding: 0;
  font-weight: 400;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

@media (max-width: 1100px) {
  .inspo-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .studio-compose { grid-template-columns: 1fr; }
  .compose-stage { min-height: 340px; }
  .studio-journey { grid-template-columns: 1fr; }
  .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .inspo-track,
  .studio-product-grid,
  .clip-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-compose,
  .journey-card,
  .compose-shirt { animation: none; }
  .inspo-print,
  .compose-print,
  .journey-card,
  .clip-card,
  .studio-product .product-media img { transition: none; }
}

/* ============ Review Karya Kreator (kreator-review.php) ============ */
.review-wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 36px auto 64px;
}

/* Status review karya (menunggu / disetujui / ditolak) di bagian bawah
   /kreator-review/. Kartu karyanya memakai kelas .dash-* (sama dgn dashboard). */
.review-works { margin-top: 30px; }
.review-works-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.review-works-head h2 { margin: 6px 0 4px; }
.review-works-head .muted { margin: 0; }
.review-works-counts { margin-bottom: 20px; }
.stat-cell.is-ok .stat-num { color: #15803d; }
.stat-cell.is-bad .stat-num { color: #b91c1c; }
.rv-group { margin-bottom: 24px; }
.rv-group-head { margin-bottom: 10px; }
.rv-group-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; font-size: 16px; }
.rv-group-head .muted { margin: 0; font-size: 12.5px; }
.rv-empty {
  margin: 0; padding: 14px 16px;
  border: 1px dashed #e2e8f0; border-radius: 12px;
  background: #fbfcfe; color: #64748b; font-size: 13px;
}
.rv-ph { font-size: 26px; color: #94a3b8; }
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
}
.review-card {
  background: #fff;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: var(--radius, 20px);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.04);
}
.review-preview-head { margin-bottom: 18px; }
.review-preview-head .studio-role-pill { margin-bottom: 14px; }
.review-preview-head h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.review-preview-head p { color: var(--slate); font-size: 14.5px; margin-top: 6px; }
.review-mock {
  display: grid;
  place-items: center;
  min-height: 260px;
  background:
    radial-gradient(ellipse 70% 55% at 20% -10%, rgba(255, 236, 220, 0.7), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 8%, rgba(244, 252, 255, 0.8), transparent 50%),
    #fafcff;
  border-radius: 16px;
  padding: 20px;
}
.review-mock img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.14);
}
.review-stakes { margin-top: 20px; }
.review-stakes h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 12px;
}
.stakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.stake-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform .12s ease;
  font: inherit;
  color: inherit;
}
.stake-cell .stake-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: 12px;
  background: #fff;
}
.stake-cell em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}
.stake-cell:hover { transform: translateY(-2px); }
.review-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--gray-60, #e7e7e7);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
}
.review-zoom-btn:hover { border-color: var(--orange); color: var(--orange); }
.review-mock { position: relative; }
.review-mock img { cursor: zoom-in; }
/* Lightbox */
.review-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.review-lightbox[hidden] { display: none; }
.review-lb-img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.review-lb-close,
.review-lb-prev,
.review-lb-next {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.review-lb-close:hover,
.review-lb-prev:hover,
.review-lb-next:hover { background: rgba(255,255,255,.3); }
.review-lb-close {
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}
.review-lb-prev,
.review-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 24px;
}
.review-lb-prev { left: 22px; }
.review-lb-next { right: 22px; }
.review-lb-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.5);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}
body.no-scroll { overflow: hidden; }
@media (max-width: 640px) {
  .review-lb-prev { left: 8px; }
  .review-lb-next { right: 8px; }
}
.review-empty {
  color: var(--slate);
  font-size: 15px;
  text-align: center;
  padding: 48px 0;
}
.review-empty a { color: var(--orange); font-weight: 600; }

/* Form */
.review-form h2 { font-size: 22px; font-weight: 700; color: var(--ink); }
.review-form > p.muted { margin-top: 4px; margin-bottom: 20px; }
.review-form .dk-field { margin-bottom: 16px; }
.review-form .dk-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.review-form .dk-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.review-form .dk-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.review-form .dk-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12);
}
.review-form .dk-field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12);
}
.review-form .dk-field input::placeholder { color: #9aa4b2; }
.review-form .dk-field p.muted { color: var(--slate); font-size: 12.5px; margin-top: 6px; }
.review-notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
}
.dk-error {
  color: var(--error, #fb3748);
  background: var(--error-bg, #fff1ee);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 12px;
}
@media (max-width: 820px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* ===== Profil publik kreator (/<slug>/) ===== */
.profil-wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 36px auto 64px;
  position: relative;
}
/* Background HALAMAN (.profil-wrap) — diunggah pemilik. Lapisan putih tipis di
   atas foto menjaga judul "Karya" & kartu tetap terbaca di latar apa pun. */
.profil-wrap.has-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)), var(--dk-bg, none);
  background-size: cover;
  background-position: var(--dk-bg-pos, 50% 50%);
  background-repeat: no-repeat;
  padding: 20px;
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
}
.profil-wrap.has-bg.is-busy { opacity: 0.82; }
.profil-card { background: #fff; border: 1px solid var(--gray-60, #e7e7e7); border-radius: var(--radius, 20px); padding: 24px; box-shadow: 0 2px 10px rgba(30, 41, 59, 0.04); }
.profil-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: var(--radius, 20px);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.04);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* ===== Background hero profil kreator (diunggah PEMILIK di /k/<slug>/) ===== */
.profil-hero.has-cover {
  background-image: var(--dk-cover, none);
  background-size: cover;
  background-position: var(--dk-cover-pos, 50% 50%);
  background-repeat: no-repeat;
  min-height: 210px;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}
/* Lapisan gelap agar nama kreator tetap terbaca di atas foto apa pun. */
.profil-hero.has-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 18, 32, 0.88) 0%, rgba(11, 18, 32, 0.64) 52%, rgba(11, 18, 32, 0.34) 100%);
  pointer-events: none;
}
.profil-hero > * { position: relative; z-index: 1; }
.profil-hero.has-cover .profil-head h1 { color: #fff; }
.profil-hero.has-cover .profil-slug,
.profil-hero.has-cover .profil-head .muted { color: rgba(255, 255, 255, 0.82); }
.profil-hero.has-cover .profil-avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }
.profil-hero.has-cover.is-busy { opacity: 0.75; }
.profil-hero.is-drag { outline: 2px dashed #fff; outline-offset: -8px; }

/* ===== Mode edit background (hanya pemilik) ===== */
/* Kontrol disembunyikan selama mode edit TIDAK aktif; `.is-edit-ready` di-set
   JS agar tanpa JS (atau JS gagal) kontrol tetap terlihat. */
.profil-wrap.is-edit-ready:not(.is-editing) .profil-cover-tools,
.profil-wrap.is-edit-ready:not(.is-editing) .profil-edit-panel,
.profil-wrap.is-edit-ready:not(.is-editing) .profil-edit-note { display: none; }

.profil-edit-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.profil-edit-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--slate, #64748b); }
.profil-wrap.is-editing { outline: 2px dashed rgba(230, 81, 0, 0.35); outline-offset: 8px; border-radius: 26px; }

/* Area yang bisa digeser: kursor "grab" hanya saat mode edit. */
.profil-wrap.is-editing .profil-hero.has-cover { cursor: grab; touch-action: none; }
.profil-wrap.is-editing.has-bg { cursor: grab; touch-action: pan-y; }
.profil-wrap.is-editing .is-dragging { cursor: grabbing; }
.profil-wrap.is-editing .is-dragging * { user-select: none; }
.profil-wrap.is-editing .is-drop,
.profil-wrap.is-editing .profil-hero.is-drop { outline: 3px dashed #e65100; outline-offset: -6px; }

/* Panel pengaturan background HALAMAN. */
.profil-edit-panel {
  background: #fff;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: var(--radius, 20px);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.04);
}
.profil-edit-panel-head h3 { font-size: 16px; font-weight: 700; color: var(--ink, #0f172a); }
.profil-edit-panel-head p { margin: 4px 0 12px; font-size: 12.5px; }
.profil-edit-panel .profil-cover-tools { margin-left: 0; max-width: none; justify-content: flex-start; text-align: left; }

/* Toolbar pemilik: unggah / ganti / hapus background. */
.profil-cover-tools {
  margin-left: auto;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
  max-width: 320px;
}
.profil-cover-btn {
  padding: 7px 13px;
  font-size: 13px;
  line-height: 20px;
  border-radius: var(--radius-sm, 10px);
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink, #0f172a);
}
.profil-cover-btn:hover { background: rgba(15, 23, 42, 0.12); }
.profil-cover-btn[disabled] { opacity: 0.55; cursor: default; }
/* `.btn` = display:inline-flex → atribut [hidden] bawaan browser kalah, jadi
   tombol yang disembunyikan JS (Hapus/Reset posisi) harus dimatikan eksplisit. */
.profil-cover-tools .profil-cover-btn[hidden] { display: none !important; }
.profil-hero.has-cover .profil-cover-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(4px);
}
.profil-hero.has-cover .profil-cover-btn:hover { background: rgba(255, 255, 255, 0.28); }
.cover-hint,
.cover-msg {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate, #64748b);
}
.profil-hero.has-cover .cover-hint { color: rgba(255, 255, 255, 0.72); }
.cover-msg.is-busy { color: var(--slate, #64748b); }
.cover-msg.is-ok { color: #15803d; }
.cover-msg.is-bad { color: #b91c1c; }
.profil-hero.has-cover .cover-msg.is-busy { color: rgba(255, 255, 255, 0.85); }
.profil-hero.has-cover .cover-msg.is-ok { color: #bbf7d0; }
.profil-hero.has-cover .cover-msg.is-bad { color: #fecaca; }

.profil-avatar {
  width: 76px;
  height: 76px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a1a, #e65100);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
}
/* Foto profil (dk_avatar) → gambar menutupi lingkaran avatar.
   Dua cara pakai: <img> di dalam (halaman profil publik) ATAU background-image
   inline (dashboard kreator, di-set JS setAvatar) — keduanya di-support. */
.profil-avatar.has-photo {
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}
.profil-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profil-head h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--ink); line-height: 1.2; }
.profil-head .studio-role-pill { margin-bottom: 10px; }
.profil-slug { margin-top: 4px; }
.profil-section .section-head { margin-bottom: 20px; }
.profil-empty { text-align: center; padding: 56px 24px; }
.profil-empty .studio-role-pill { margin: 0 auto 14px; }
.profil-empty h1 { font-size: 24px; font-weight: 700; color: var(--ink); }
.profil-empty p { color: var(--slate); margin: 10px 0 20px; }
.profil-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.clip-copy {
  color: var(--slate);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.clip-tag {
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  background: #f3e8ff;
  border-radius: 99px;
  padding: 2px 9px;
}

/* ===== Dashboard kreator (/kreator/dashboard/) ===== */
.dash-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.stat-cell {
  background: #fff;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
}
/* Kartu statistik yang ditekankan (mis. "Siap Dicairkan" pada komisi kreator). */
.stat-cell.is-accent {
  border-color: #ffd7bd;
  background: linear-gradient(180deg, #fff7f1 0%, #fff 70%);
}
.stat-cell.is-accent .stat-num { color: var(--orange, #e65100); }

/* ===== Pencairan KOMISI kreator (/kreator/#komisi) =====
   Kartu pengajuan pencairan + riwayatnya. Dipakai bersama tabel komisi. */
.komisi-pay {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
}
.komisi-pay-head h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.komisi-pay-sub { margin: 0 0 14px; font-size: 13px; color: var(--slate); }
.komisi-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 14px;
}
.komisi-field { display: flex; flex-direction: column; gap: 5px; }
.komisi-field.is-wide { grid-column: 1 / -1; }
.komisi-field > span { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.komisi-field input,
.komisi-field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
}
.komisi-field input:focus,
.komisi-field select:focus {
  outline: none;
  border-color: var(--studio-accent, #3764d8);
  box-shadow: 0 0 0 3px var(--studio-glow, rgba(55, 100, 216, 0.18));
}
.komisi-field > em { font-size: 11.5px; font-style: normal; color: #94a3b8; }
.komisi-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.komisi-hint { font-size: 12px; color: var(--slate); }
.komisi-msg {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 12px;
}
.komisi-msg.is-bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.komisi-msg.is-ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.komisi-note {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  padding: 12px 14px;
}
.komisi-note.is-wait { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.komisi-note code { background: #fff; border: 1px solid #e6ebf3; border-radius: 6px; padding: 1px 5px; }
.komisi-note-sub { display: block; margin-top: 4px; font-size: 12px; color: #b45309; }
.komisi-table-wrap {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
}
.komisi-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.komisi-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
}
.komisi-table td { padding: 12px 16px; border-top: 1px solid #f1f2f4; vertical-align: top; }
.komisi-table td code { background: #f8fafc; border: 1px solid #e6ebf3; border-radius: 6px; padding: 1px 5px; font-size: 12px; }
.komisi-sub { display: block; font-size: 11.5px; color: #94a3b8; margin-top: 3px; }
.komisi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.komisi-badge.is-pending { background: #fef3c7; color: #92400e; }
.komisi-badge.is-done { background: #dcfce7; color: #15803d; }
.komisi-badge.is-failed { background: #fee2e2; color: #b91c1c; }
.komisi-badge.is-void { background: #f3e8ff; color: #6b21a8; }
@media (max-width: 560px) {
  .komisi-actions { flex-direction: column; align-items: stretch; }
  .komisi-actions .btn { width: 100%; }
  .komisi-hint { text-align: center; }
}

.dash-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dash-tag {
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  background: #f3e8ff;
  border-radius: 99px;
  padding: 2px 9px;
}
.dash-works { margin-top: 4px; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--gray-60, #e7e7e7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
  display: flex;
  flex-direction: column;
}
.dash-media {
  aspect-ratio: 1;
  background: #f3f5f8;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.dash-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.dash-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-title-row h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.dash-status {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.dash-status.st-pending { background: #fef3c7; color: #92400e; }
.dash-status.st-approved { background: #dcfce7; color: #166534; }
.dash-status.st-rejected { background: #fee2e2; color: #991b1b; }
.dash-meta { font-size: 12px; margin: 0; }
.dash-copy {
  color: var(--slate);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-links { display: flex; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.dash-card-link {
  color: var(--orange);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.dash-card-link:hover { text-decoration: underline; }
.dash-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--slate);
}
.dash-empty p { margin: 0 0 16px; }
@media (max-width: 820px) {
  .dash-actions { margin-left: 0; width: 100%; }
  .profil-hero { flex-wrap: wrap; }
  .profil-cover-tools { margin-left: 0; max-width: none; width: 100%; justify-content: flex-start; text-align: left; }
}

/* ===== Kreator: sidebar menu ala /beranda ===== */
.studio-shell{display:flex;align-items:flex-start;gap:22px;max-width:1560px;margin:0 auto;padding:24px 20px 0}
.studio-rail{width:232px;flex:0 0 232px;position:sticky;top:20px;height:calc(100vh - 40px);background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px 12px;display:flex;flex-direction:column;gap:10px;box-shadow:0 12px 34px rgba(15,23,42,.06);overflow:auto}
.studio-rail .brand{display:flex;align-items:center;gap:10px;padding:2px 8px 12px;text-decoration:none;border-bottom:1px solid #f0f0f1}
.studio-rail .brand-mark{width:30px;height:30px;border-radius:9px;overflow:hidden;flex:0 0 auto}
.studio-rail .brand-mark img{width:100%;height:100%;object-fit:cover}
.studio-rail .brand-name{font-size:15px;font-weight:700;color:#1d2327}
.studio-rail .brand-name strong{color:#7c3aed}
.studio-rail-nav{display:flex;flex-direction:column;gap:3px;flex:1}
.studio-rail .rail-btn{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:#3c434a;font-size:13.5px;font-weight:600;text-decoration:none;transition:background .15s,color .15s}
.studio-rail .rail-btn svg{width:19px;height:19px;flex:0 0 auto}
.studio-rail .rail-btn span{white-space:nowrap}
.studio-rail .rail-btn:hover{background:#f5f3ff;text-decoration:none;color:#5b21b6}
.studio-rail .rail-btn.accent{color:#7c3aed;background:#f5f3ff}
.studio-rail .rail-btn.is-on{background:#ede9fe;color:#5b21b6}
.studio-rail-user{margin-top:auto;border-top:1px solid #f0f0f1;padding-top:10px;display:flex;flex-direction:column;gap:8px}
.studio-rail-user .rail-profile{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;text-decoration:none}
.studio-rail-user .rail-profile:hover{background:#f1f5f9}
.studio-rail-user .avatar-dot{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;flex:0 0 auto}
/* Foto profil user (dk_avatar — sumber sama dengan DK_API.avatar) di rail kreator.
   background-image ditulis inline oleh dk_avatar_dot() sehingga menang atas gradien. */
.studio-rail-user .avatar-dot.has-photo{background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent}
.studio-rail-user .rail-user-meta{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.studio-rail-user .rail-user-meta strong{font-size:13px;color:#1d2327;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-rail-user .rail-user-meta em{font-size:11px;color:#64748b;font-style:normal}
.studio-rail-user .rail-logout{background:none;border:1px solid #e2e8f0;border-radius:9px;padding:8px;color:#64748b;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit}
.studio-rail-user .rail-logout:hover{color:#b91c1c;border-color:#fecaca;background:#fef2f2}
.studio-main{flex:1;min-width:0}
/* Halaman kreator yang memakai rail bersama (dashboard & review): konten
   memakai PENUH lebar kolom utama — jangan di-center ulang dengan lebar
   sendiri, supaya tidak ada ruang kosong di samping rail. */
.studio-shell .profil-wrap,
.studio-shell .review-wrap { width: 100%; margin: 0 0 48px; }
@media(max-width:980px){
  .studio-shell{display:block;padding:16px 12px 0}
  .studio-rail{position:static;width:100%;height:auto;flex:none;flex-direction:column;border-radius:14px;margin-bottom:16px}
  .studio-rail-nav{flex-direction:row;flex-wrap:wrap;gap:4px}
  .studio-rail .rail-btn{padding:8px 10px;font-size:12.5px}
  .studio-rail-user{flex-direction:row;align-items:center}
  .studio-rail-user .rail-logout{margin-left:auto}
}
