/* ═══════════════════════════════════════════════════
   Photocard System — Professional UI
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@100..900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --pc-bg:          #0a0f1e;
  --pc-surface:     #111827;
  --pc-surface-2:   #1a2235;
  --pc-border:      rgba(255, 255, 255, 0.07);
  --pc-border-hover:rgba(255, 255, 255, 0.15);
  --pc-accent:      #3b82f6;
  --pc-accent-glow: rgba(59, 130, 246, 0.35);
  --pc-gold:        #f59e0b;
  --pc-gold-glow:   rgba(245, 158, 11, 0.35);
  --pc-success:     #10b981;
  --pc-danger:      #ef4444;
  --pc-text-1:      #f1f5f9;
  --pc-text-2:      #94a3b8;
  --pc-text-3:      #64748b;
  --pc-radius-sm:   10px;
  --pc-radius-md:   16px;
  --pc-radius-lg:   24px;
  --pc-transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h:       60px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--pc-bg);
  color: var(--pc-text-1);
  font-family: 'Inter', 'Noto Serif Bengali', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Background Pattern ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════
   Navbar
   ═══════════════════════════════════════════════════ */
.pc-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pc-border);
  z-index: 100;
}

.pc-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 12px;
  width: 100%;
}

.pc-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pc-surface-2);
  border: 1px solid var(--pc-border);
  color: var(--pc-text-2);
  text-decoration: none;
  transition: var(--pc-transition);
  flex-shrink: 0;
}

.pc-back-btn:hover {
  background: var(--pc-surface);
  border-color: var(--pc-border-hover);
  color: var(--pc-text-1);
  transform: translateX(-2px);
}

.pc-navbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.pc-navbar-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--pc-text-1);
  letter-spacing: -0.01em;
}

.pc-navbar-version {
  font-size: 10px;
  font-weight: 600;
  color: var(--pc-accent);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  padding: 1px 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pc-navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pc-surface-2);
  border: 1px solid var(--pc-border);
  color: var(--pc-text-2);
  cursor: pointer;
  transition: var(--pc-transition);
}

.pc-icon-btn:hover {
  background: var(--pc-accent);
  border-color: var(--pc-accent);
  color: #fff;
  box-shadow: 0 0 16px var(--pc-accent-glow);
}

/* ═══════════════════════════════════════════════════
   Main Wrapper
   ═══════════════════════════════════════════════════ */
.pc-wrapper {
  padding-top: var(--navbar-h);
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   Photocard Studio Workspace
   ═══════════════════════════════════════════════════ */
.pc-preview-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 20px;
}

.pc-studio-toolbar {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pc-studio-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-studio-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--pc-text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pc-border);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pc-studio-pill.pc-pill-gold {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.pc-studio-hint {
  font-size: 11px;
  color: #10b981;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  padding: 3px 12px;
  border-radius: 20px;
}

.pc-canvas-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pc-canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pc-canvas-frame {
  position: relative;
  width: 360px;
  max-width: 100%;
}

.pc-canvas-tip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 1px solid var(--pc-border);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.82);
  color: var(--pc-text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pc-canvas-tip:hover,
.pc-canvas-tip:focus {
  color: var(--pc-text-1);
  border-color: var(--pc-border-hover);
  outline: none;
}

.pc-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #111827;
  border: 1px solid var(--pc-border);
  color: var(--pc-text-1);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

.pc-canvas-tip:hover .pc-tooltip,
.pc-canvas-tip:focus .pc-tooltip,
.pc-canvas-tip:focus-visible .pc-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pc-canvas-stage {
  width: 360px;
  max-width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* The actual photocard element — always 1:1 so images cannot stretch the card */
#techtarangaPhotocard {
  width: 360px;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  flex-shrink: 0;
  font-family: "Noto Serif Bengali", serif;
  position: relative;
  background-color: #0b1220;
  color: #111827;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(59, 130, 246, 0.08);
}

#techtarangaPhotocard #TechtarangaPcTitle span.highlight {
  color: #178855 !important;
}

#techtarangaPhotocard #TechtarangaPcTitle span {
  color: inherit;
}

#techtarangaPhotocard.tt-studio-card {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
}
.tt-studio-card:has(.ttsc-breaking) { background: #b91c1c; }
.tt-studio-card:has(.ttsc-wire) { background: #020617; }
.tt-studio-card:has(.ttsc-sky) { background: #ffffff; }
.tt-studio-card:has(.ttsc-prime) { background: #0c1a2e; }
.tt-studio-card:has(.ttsc-pulse) { background: #0f766e; }
.tt-studio-card:has(.ttsc-night) { background: #0b1220; }

/* ═══════════════════════════════════════════════════
   Built-in Studio Card Templates — photo-first news
   ═══════════════════════════════════════════════════ */
.tt-studio-card .ttsc,
#techtarangaPhotocard .ttsc {
  width: 360px;
  height: 360px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Noto Serif Bengali", serif;
}

.tt-studio-card .ttsc-photo-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #1e293b;
}

.tt-studio-card .ttsc-photo-fill {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
}

.tt-studio-card .ttsc-photo-wrap > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

.tt-studio-card .ttsc-onphoto {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  z-index: 2;
}

.tt-studio-card .ttsc-logo {
  height: 28px !important;
  width: auto !important;
  max-width: 150px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block;
  background: rgba(255,255,255,.94);
  border-radius: 4px;
  padding: 3px 6px;
  position: relative;
  z-index: 3;
}

.tt-studio-card .ttsc-onphoto span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: #dc2626;
  padding: 4px 8px;
  border-radius: 4px;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-studio-card .ttsc-body {
  flex: 0 0 auto;
  min-height: 110px;
  padding: 12px 14px 10px;
}

.tt-studio-card .ttsc-body h2,
.tt-studio-card .ttsc-grad h2,
.tt-studio-card #TechtarangaPcTitle {
  margin: 0;
  font-size: 21px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.tt-studio-card .ttsc-cta {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.tt-studio-card .ttsc-grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.88) 20%, rgba(0,0,0,.35) 70%, transparent);
  z-index: 2;
}

/* Breaking — photo + red headline (ps-14 inspired) */
.tt-studio-card .ttsc-breaking {
  background: #b91c1c;
}
.tt-studio-card .ttsc-breaking .ttsc-photo-wrap {
  flex: 1.35 1 0;
}
.tt-studio-card .ttsc-breaking .ttsc-body {
  background: #b91c1c;
}
.tt-studio-card .ttsc-breaking #TechtarangaPcTitle,
.tt-studio-card .ttsc-breaking #TechtarangaPcTitle span {
  color: #ffffff;
}
.tt-studio-card .ttsc-breaking .ttsc-cta {
  color: #fecaca;
}

/* Wire — full-bleed Reuters / AP */
.tt-studio-card .ttsc-wire {
  background: #020617;
}
.tt-studio-card .ttsc-wire #TechtarangaPcTitle,
.tt-studio-card .ttsc-wire #TechtarangaPcTitle span {
  color: #ffffff;
}
.tt-studio-card .ttsc-wire .ttsc-cta {
  color: #fca5a5;
}
.tt-studio-card .ttsc-wire .ttsc-onphoto span {
  background: #ef4444;
}

/* Night — editorial gold */
.tt-studio-card .ttsc-night {
  background: #0b1220;
}
.tt-studio-card:has(.ttsc-night) {
  background: #0b1220;
}
.tt-studio-card .ttsc-night .ttsc-onphoto span {
  background: transparent;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .5);
}
.tt-studio-card .ttsc-night #TechtarangaPcTitle,
.tt-studio-card .ttsc-night #TechtarangaPcTitle span {
  color: #f8fafc;
}
.tt-studio-card .ttsc-night .ttsc-cta {
  color: #fbbf24;
}
.tt-studio-card .ttsc-night .ttsc-grad {
  background: linear-gradient(to top, #0b1220 18%, rgba(11,18,32,.55) 70%, transparent);
}

/* Sky — BBC-style photo + white panel */
.tt-studio-card .ttsc-sky {
  background: #ffffff;
}
.tt-studio-card:has(.ttsc-sky) {
  background: #ffffff;
}
.tt-studio-card .ttsc-sky .ttsc-photo-wrap {
  flex: 1.45 1 0;
}
.tt-studio-card .ttsc-sky .ttsc-body {
  background: #ffffff;
  border-top: 4px solid #dc2626;
}
.tt-studio-card .ttsc-sky #TechtarangaPcTitle,
.tt-studio-card .ttsc-sky #TechtarangaPcTitle span {
  color: #0f172a !important;
}
.tt-studio-card .ttsc-sky .ttsc-cta {
  color: #64748b;
  letter-spacing: .12em;
}

/* Prime — navy + gold */
.tt-studio-card .ttsc-prime {
  background: #0c1a2e;
}
.tt-studio-card:has(.ttsc-prime) {
  background: #0c1a2e;
}
.tt-studio-card .ttsc-prime .ttsc-photo-wrap {
  flex: 1.4 1 0;
}
.tt-studio-card .ttsc-prime .ttsc-body {
  background: #0c1a2e;
  border-left: 4px solid #c9a227;
}
.tt-studio-card .ttsc-prime .ttsc-onphoto span {
  background: #c9a227;
  color: #0c1a2e;
}
.tt-studio-card .ttsc-prime #TechtarangaPcTitle,
.tt-studio-card .ttsc-prime #TechtarangaPcTitle span {
  color: #f8fafc;
}
.tt-studio-card .ttsc-prime .ttsc-cta {
  color: #c9a227;
  letter-spacing: .12em;
}

/* Pulse — teal news band */
.tt-studio-card .ttsc-pulse {
  background: #0f766e;
}
.tt-studio-card:has(.ttsc-pulse) {
  background: #0f766e;
}
.tt-studio-card .ttsc-pulse .ttsc-photo-wrap {
  flex: 1.35 1 0;
}
.tt-studio-card .ttsc-pulse .ttsc-body {
  background: #0f766e;
}
.tt-studio-card .ttsc-pulse .ttsc-onphoto span {
  background: #14b8a6;
  color: #042f2e;
}
.tt-studio-card .ttsc-pulse #TechtarangaPcTitle,
.tt-studio-card .ttsc-pulse #TechtarangaPcTitle span {
  color: #ffffff;
}
.tt-studio-card .ttsc-pulse .ttsc-cta {
  color: #99f6e4;
}

/* ═══════════════════════════════════════════════════
   Studio Inspector Panel
   ═══════════════════════════════════════════════════ */
.pc-controls-panel {
  margin: 0 12px 24px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pc-inspector-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pc-border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pc-inspector-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-text-1);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.pc-inspector-title i {
  color: var(--pc-accent);
  font-size: 15px;
}

.pc-inspector-sub {
  font-size: 11px;
  color: var(--pc-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ── Section ── */
.pc-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--pc-border);
}

.pc-section:last-child {
  border-bottom: none;
}

.pc-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-text-3);
  margin-bottom: 14px;
}

.pc-section-label i {
  font-size: 13px;
  color: var(--pc-accent);
}

.pc-badge-subtle {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--pc-text-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: normal;
  text-transform: none;
}

/* ── Template Switcher with SVG Miniatures ── */
.pc-template-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0 4px;
}

.pc-template-thumb {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.pc-thumb-card-box {
  width: 100%;
  height: 72px;
  border-radius: var(--pc-radius-sm);
  border: 2px solid var(--pc-border);
  overflow: hidden;
  position: relative;
  background: var(--pc-surface-2);
  transition: var(--pc-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pc-thumb-card-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--pc-transition);
  opacity: 0.85;
}

.pc-thumb-svg-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-thumb-svg-wrap[hidden] {
  display: none !important;
}

.pc-svg-thumb {
  width: 100%;
  height: 100%;
  display: block;
}

.pc-template-name-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--pc-text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--pc-transition);
}

.pc-template-thumb:hover .pc-thumb-card-box {
  border-color: var(--pc-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.pc-template-thumb:hover .pc-thumb-card-box img {
  opacity: 1;
}

.pc-template-thumb.pc-template-active .pc-thumb-card-box {
  border-color: var(--pc-gold);
  box-shadow: 0 0 20px var(--pc-gold-glow);
  transform: translateY(-2px);
}

.pc-template-thumb.pc-template-active .pc-thumb-card-box img {
  opacity: 1;
}

.pc-template-thumb.pc-template-active .pc-template-name-tag {
  color: var(--pc-gold);
}

.pc-thumb-active-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--pc-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 2;
}

/* ── Live Headline & Form Sublabels ── */
.pc-sublabel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--pc-text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pc-textarea {
  min-height: 64px;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

.pc-input-tip {
  font-size: 11px;
  color: #10b981;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Language Switcher for Date ── */
.pc-lang-toggle {
  display: inline-flex;
  background: var(--pc-surface-2);
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  padding: 2px;
}

.pc-lang-btn {
  border: none;
  background: transparent;
  color: var(--pc-text-3);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--pc-transition);
}

.pc-lang-btn.active {
  background: var(--pc-accent);
  color: #fff;
}

/* ── Typo Presets ── */
.pc-quick-presets {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.pc-preset-chip {
  flex: 1;
  border: 1px solid var(--pc-border);
  background: var(--pc-surface-2);
  color: var(--pc-text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--pc-transition);
  text-align: center;
}

.pc-preset-chip:hover {
  border-color: var(--pc-border-hover);
  color: var(--pc-text-1);
}

.pc-preset-chip.active {
  border-color: var(--pc-accent);
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* ── Media Uploader Card ── */
.pc-media-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pc-surface-2);
  border: 1px dashed var(--pc-border-hover);
  border-radius: var(--pc-radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--pc-transition);
}

.pc-media-uploader:hover {
  border-color: var(--pc-accent);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.pc-upload-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pc-upload-text {
  display: flex;
  flex-direction: column;
}

.pc-upload-text strong {
  font-size: 12px;
  color: var(--pc-text-1);
}

.pc-upload-text span {
  font-size: 11px;
  color: var(--pc-text-3);
}

.pc-dot {
  margin: 0 4px;
  opacity: 0.4;
}

/* ── Sliders ── */
.pc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pc-slider-row {}

.pc-slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--pc-text-2);
}

.pc-slider-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-accent);
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  padding: 2px 8px;
  min-width: 40px;
  text-align: center;
}

.pc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--pc-surface-2);
  outline: none;
  cursor: pointer;
}

.pc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pc-accent);
  border: 3px solid var(--pc-surface);
  box-shadow: 0 0 12px var(--pc-accent-glow);
  cursor: pointer;
  transition: var(--pc-transition);
}

.pc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--pc-accent-glow);
}

.pc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pc-accent);
  border: 3px solid var(--pc-surface);
  cursor: pointer;
}

/* ── Ad Strip ── */
.pc-ad-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--pc-border-hover) transparent;
  align-items: center;
}

.pc-ad-strip::-webkit-scrollbar { height: 4px; }
.pc-ad-strip::-webkit-scrollbar-track { background: transparent; }
.pc-ad-strip::-webkit-scrollbar-thumb { background: var(--pc-surface-2); border-radius: 4px; }

.pc-ad-item {
  flex: 0 0 80px;
  width: 80px;
  height: 56px;
  border-radius: var(--pc-radius-sm);
  border: 2px solid var(--pc-border);
  overflow: hidden;
  cursor: pointer;
  background: var(--pc-surface-2);
  transition: var(--pc-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.pc-ad-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: var(--pc-transition);
}

.pc-ad-item:hover {
  border-color: var(--pc-border-hover);
  transform: translateY(-2px);
}

.pc-ad-item:hover img { opacity: 1; }

.pc-ad-item.pc-ad-active {
  border-color: var(--pc-accent);
  box-shadow: 0 0 16px var(--pc-accent-glow);
}

.pc-ad-item.pc-ad-active img { opacity: 1; }

.pc-ad-hide {
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--pc-danger);
  border-style: dashed;
}

.pc-ad-hide i { font-size: 18px; }
.pc-ad-hide.pc-ad-active { border-color: var(--pc-danger); box-shadow: 0 0 14px rgba(239,68,68,0.3); }

.pc-ad-upload {
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--pc-text-3);
  border-style: dashed;
}

.pc-ad-upload i { font-size: 18px; }
.pc-ad-upload:hover { color: var(--pc-gold); border-color: var(--pc-gold); }
.pc-ad-upload.pc-ad-active { border-color: var(--pc-gold); box-shadow: 0 0 14px var(--pc-gold-glow); color: var(--pc-gold); }

/* ── Custom Upload Box ── */
.pc-custom-upload {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--pc-border);
  border-radius: var(--pc-radius-sm);
  display: none;
  align-items: center;
  gap: 10px;
}

.pc-upload-label {
  cursor: pointer;
  background: var(--pc-gold);
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--pc-transition);
}

.pc-upload-label:hover { background: #d97706; }

.pc-upload-preview {
  width: 70px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--pc-border);
  display: none;
}

.pc-upload-hint {
  font-size: 11px;
  color: var(--pc-text-3);
  flex: 1;
}

/* ═══════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════ */
.pc-actions {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--pc-border);
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--pc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--pc-transition);
  width: 100%;
  text-decoration: none;
}

.pc-btn-download {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.pc-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
  color: #000;
}

.pc-btn-download:active { transform: translateY(0); }

.pc-btn-facebook {
  background: linear-gradient(135deg, #1877f2, #0d5bbf);
  color: #fff;
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.3);
}

.pc-btn-facebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(24, 119, 242, 0.45);
  color: #fff;
}

.pc-btn-ghost {
  background: var(--pc-surface-2);
  border: 1px solid var(--pc-border);
  color: var(--pc-text-2);
}

.pc-btn-ghost:hover {
  background: var(--pc-surface);
  border-color: var(--pc-border-hover);
  color: var(--pc-text-1);
}

.pc-btn-apply {
  background: linear-gradient(135deg, var(--pc-accent), #2563eb);
  color: #fff;
  box-shadow: 0 4px 20px var(--pc-accent-glow);
}

.pc-btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--pc-accent-glow);
}

.pc-btn-text {
  background: none;
  border: none;
  color: var(--pc-text-3);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  font-family: 'Inter', sans-serif;
  transition: var(--pc-transition);
}
.pc-btn-text:hover { color: var(--pc-text-2); }

/* ═══════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════ */
.pc-footer {
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--pc-text-3);
  border-top: 1px solid var(--pc-border);
}

.pc-footer a {
  color: var(--pc-accent);
  text-decoration: none;
  font-weight: 500;
}

.pc-footer a:hover { color: var(--pc-text-1); }

/* ═══════════════════════════════════════════════════
   Customize Modal
   ═══════════════════════════════════════════════════ */
.pc-modal {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg) !important;
  overflow: hidden;
  color: var(--pc-text-1);
}

.pc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--pc-border);
}

.pc-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pc-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--pc-accent);
  flex-shrink: 0;
}

.pc-modal-title h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-text-1);
}

.pc-modal-title p {
  margin: 0;
  font-size: 12px;
  color: var(--pc-text-3);
}

.pc-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pc-surface-2);
  border: 1px solid var(--pc-border);
  color: var(--pc-text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--pc-transition);
}

.pc-modal-close:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--pc-danger);
  color: var(--pc-danger);
}

.pc-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 65vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--pc-border-hover) transparent;
}

.pc-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--pc-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pc-modal-footer .pc-btn {
  width: auto;
  padding: 10px 20px;
}

/* ── Form Fields ── */
.pc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pc-text-3);
}

.pc-input {
  width: 100%;
  background: var(--pc-surface-2);
  border: 1.5px solid var(--pc-border);
  color: var(--pc-text-1);
  border-radius: var(--pc-radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', 'Noto Serif Bengali', sans-serif;
  transition: var(--pc-transition);
  outline: none;
}

.pc-input:focus {
  border-color: var(--pc-accent);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 4px var(--pc-accent-glow);
}

.pc-input::placeholder { color: var(--pc-text-3); }

/* Photo Drop Zone */
.pc-photo-drop {
  border: 2px dashed var(--pc-border);
  border-radius: var(--pc-radius-md);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: var(--pc-transition);
  background: rgba(255,255,255,0.02);
}

.pc-photo-drop:hover {
  border-color: var(--pc-gold);
  background: rgba(245, 158, 11, 0.04);
}

.pc-photo-drop i {
  font-size: 28px;
  color: var(--pc-gold);
  display: block;
  margin-bottom: 8px;
}

.pc-photo-drop span {
  display: block;
  font-size: 13px;
  color: var(--pc-text-2);
  margin-bottom: 4px;
}

.pc-photo-drop small {
  font-size: 11px;
  color: var(--pc-text-3);
}

.pc-photo-preview-img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  margin-top: 12px;
  display: none;
  object-fit: contain;
  border: 1px solid var(--pc-border);
}

/* ═══════════════════════════════════════════════════
   Status Modal (Facebook)
   ═══════════════════════════════════════════════════ */
.pc-status-modal {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg) !important;
  color: var(--pc-text-1);
}

.pc-status-modal h5 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--pc-text-1);
}

.pc-status-modal p {
  color: var(--pc-text-2);
  font-size: 13px;
  margin-bottom: 0;
}

.pc-status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.pc-status-icon.loading {
  background: rgba(59, 130, 246, 0.12);
  border: 2px solid rgba(59, 130, 246, 0.2);
  color: var(--pc-accent);
}

.pc-status-icon.success {
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid rgba(16, 185, 129, 0.2);
  color: var(--pc-success);
}

.pc-status-icon.error {
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid rgba(239, 68, 68, 0.2);
  color: var(--pc-danger);
}

/* ── Floating Animation ── */
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.floating-ani { animation: floating 2s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════
   Bootstrap Modal Override
   ═══════════════════════════════════════════════════ */
.modal-content {
  background: var(--pc-surface) !important;
  border: 1px solid var(--pc-border) !important;
  border-radius: var(--pc-radius-lg) !important;
}

.modal-header, .modal-footer { border-color: var(--pc-border) !important; }

/* ═══════════════════════════════════════════════════
   Scrollbar (Global)
   ═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pc-surface-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--pc-border-hover); }

/* ═══════════════════════════════════════════════════
   Studio Responsive Layout
   ═══════════════════════════════════════════════════ */
@media (min-width: 992px) {
  .pc-navbar-inner {
    max-width: 1240px;
    padding: 0 24px;
  }

  .pc-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 28px;
    align-items: start;
    padding: calc(var(--navbar-h) + 24px) 24px 40px;
  }

  .pc-preview-section {
    position: sticky;
    top: calc(var(--navbar-h) + 20px);
    min-height: calc(100vh - var(--navbar-h) - 60px);
    background: radial-gradient(circle at center, #151f38 0%, #0c1222 100%);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .pc-controls-panel {
    margin: 0;
  }
}

@media (max-width: 991px) {
  .pc-wrapper {
    padding-top: calc(var(--navbar-h) + 12px);
  }

  .pc-preview-section {
    padding: 20px 16px;
  }
}

@media (max-width: 420px) {
  .pc-canvas-stage {
    width: calc(100vw - 40px);
  }

  .pc-controls-panel {
    margin: 0 8px 20px;
  }

  .pc-section { padding: 14px 16px; }
  .pc-actions { padding: 14px 16px; }
  .pc-footer  { padding: 12px 16px; }
}
