/* ==========================================================================
   APEXCUT — STAGE 01 INGEST & CURATION DESIGN SYSTEM
   Theme: Obsidian Hyper-Dark | Canvas: #09090b | Border: border-white/[0.08]
   Fonts: Inter & JetBrains Mono | Atmosphere: Cockpit Density
   ========================================================================== */

:root {
  --bg-obsidian: #09090b;
  --bg-card: #111114;
  --bg-surface: #18181c;
  --bg-hover: #222227;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --primary-soft: rgba(99, 102, 241, 0.12);

  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-soft: rgba(16, 185, 129, 0.12);

  --rose: #f43f5e;
  --rose-hover: #e11d48;
  --rose-glow: rgba(244, 63, 94, 0.25);
  --rose-soft: rgba(244, 63, 94, 0.12);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);

  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;

  --font-sans: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #09090b;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Minimalist Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   TOP HEADER & STAGE NAVIGATION TABS
   ========================================================================== */
.app-topbar {
  background: rgba(9, 9, 11, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  border: 1px solid transparent;
}
.stage-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.stage-pill:active {
  transform: scale(0.96);
}
.stage-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px var(--primary-glow);
}
.stage-num {
  font-size: 10px;
  font-family: var(--font-mono);
  opacity: 0.7;
}
.stage-counter {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   STAGE 01 INGEST: 2-COLUMN STUDIO LAYOUT + LEFT SIDEBAR
   ========================================================================== */
.ingest-stage-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
  position: relative;
}

/* Left Sidebar: w-60 (240px) on desktop */
.ingest-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Main Ingest Content: 2-Column Responsive Studio Layout */
.ingest-main-stage {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1200px) {
  .ingest-main-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ingest-stage-wrapper {
    flex-direction: column;
  }
  .ingest-sidebar {
    width: 100%;
  }
}

/* Card Primitives */
.card {
  background-color: #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dual Ingestion Zone Boxes */
.ingest-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(17, 17, 20, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ingest-dropzone:hover, .ingest-dropzone.dragover {
  border-color: rgba(99, 102, 241, 0.6);
  background-color: rgba(99, 102, 241, 0.04);
}

.ingest-url-box {
  background-color: #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
}

/* Tactile Action Button */
.btn-tactile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  width: 100%;
}
.btn-tactile-primary:hover {
  filter: brightness(1.08);
}
.btn-tactile-primary:active {
  transform: scale(0.98);
}
.btn-tactile-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Format Badges */
.format-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

/* Live Status Badge */
.status-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.status-badge-vod {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

/* Step Tags */
.step-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.step-tag-active {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}
.step-tag-done {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.step-tag-queued {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #71717a;
}

/* AI Telemetry & Bento Cells */
.telemetry-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.bento-cell {
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}
.bento-label {
  font-size: 11px;
  color: #a1a1aa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bento-value {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  margin-top: 4px;
}

/* Monospace Terminal Analysis Box */
.terminal-log-box {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  max-height: 250px;
  overflow-y: auto;
}
.terminal-line {
  display: flex;
  gap: 8px;
  color: #cbd5e1;
}
.terminal-ts {
  color: #64748b;
  flex-shrink: 0;
}
.terminal-tag {
  color: #818cf8;
  font-weight: 600;
}
.terminal-success {
  color: #34d399;
}

/* Mobile Bottom Dock */
.mobile-dock {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 56px;
  border-radius: 16px;
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  flex: 1;
  height: 100%;
}
.mobile-dock-btn:active {
  transform: scale(0.94);
}
.mobile-dock-btn.active {
  color: #fff;
}
.mobile-dock-btn.active svg {
  color: var(--primary);
}
.mobile-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.25s ease forwards;
}
.toast-success { background: #065f46; border: 1px solid var(--emerald); }
.toast-error { background: #881337; border: 1px solid var(--rose); }
.toast-info { background: #312e81; border: 1px solid var(--primary); }

@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  #toast-container {
    left: 14px;
    right: 14px;
    bottom: 74px;
  }
}


/* ==========================================================================
   STAGE 03 PRODUCTION: RENDER STUDIO & INSPECTOR
   ========================================================================== */

.production-stage-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
}

.production-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.production-main-stage {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1200px) {
  .production-main-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .production-stage-wrapper {
    flex-direction: column;
  }
  .production-sidebar {
    width: 100%;
  }
}

/* Tactile White Button */
.btn-tactile-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 9px;
  background: #ffffff;
  color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.btn-tactile-white:hover {
  background: #f4f4f5;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22);
}
.btn-tactile-white:active {
  transform: scale(0.98);
}
.btn-tactile-white:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Scanning Laser Effect on Active Render Video */
@keyframes scanline {
  0% { top: 0%; opacity: 0.7; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0.7; }
}

.render-scanner {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #6366f1 25%, #34d399 75%, transparent 100%);
  box-shadow: 0 0 12px #6366f1, 0 0 6px #34d399;
  animation: scanline 2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 10;
}

/* Kinetic Subtitle Preset Cards */
.preset-radio-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #18181c;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.preset-radio-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #222227;
}
.preset-radio-card.active {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

/* Custom Range Slider */
input[type="range"].silence-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #27272a;
  outline: none;
}
input[type="range"].silence-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  transition: transform 0.1s ease;
}
input[type="range"].silence-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Layout Mode Buttons */
.layout-mode-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #18181c;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.layout-mode-btn:hover {
  background: #222227;
  color: #fff;
}
.layout-mode-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* Drag to reorder grip */
.drag-handle {
  cursor: grab;
  color: #52525b;
  transition: color 0.15s ease;
}
.drag-handle:hover {
  color: #a1a1aa;
}
.drag-handle:active {
  cursor: grabbing;
}


/* ==========================================================================
   STAGE 04 DISPATCH: MULTI-PLATFORM DISTRIBUTION & SAFE-ZONE OVERLAY
   ========================================================================== */

.dispatch-stage-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
}

.dispatch-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dispatch-main-stage {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1200px) {
  .dispatch-main-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dispatch-stage-wrapper {
    flex-direction: column;
  }
  .dispatch-sidebar {
    width: 100%;
  }
}

/* Multi-Platform Channel Toggle Buttons */
.channel-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #18181c;
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.channel-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.channel-toggle-btn.active-yt {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.15);
}
.channel-toggle-btn.active-ig {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
  color: #f472b6;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.15);
}

/* 1-Click Hashtag Pills */
.hashtag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c7d2fe;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.hashtag-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #fff;
}
.hashtag-pill.selected {
  background: var(--primary);
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* 9:16 Platform Safe-Zone Phone Mockup */
.safe-zone-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 6px solid #1c1d24;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.safe-zone-guide-box {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* Safe zone visual boundary (dotted lines) */
.safe-zone-boundary {
  position: absolute;
  top: 12%;
  bottom: 22%;
  left: 6%;
  right: 18%;
  border: 1px dashed rgba(52, 211, 153, 0.6);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

/* Rotating Audio Disc */
@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.audio-disc-spin {
  animation: spinDisc 4s linear infinite;
}

/* ==========================================================================
   STAGE 05 SYSTEM: INFRASTRUCTURE & HARDWARE TELEMETRY
   ========================================================================== */

.system-stage-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
}

.system-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.system-main-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 860px) {
  .system-stage-wrapper {
    flex-direction: column;
  }
  .system-sidebar {
    width: 100%;
  }
}

/* Segmented Storage Bar */
.storage-segmented-bar {
  display: flex;
  height: 14px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.storage-segment-vod {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
  transition: width 0.4s ease;
}

.storage-segment-rendered {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
  transition: width 0.4s ease;
}

.storage-segment-cache {
  background: linear-gradient(90deg, #52525b, #71717a);
  transition: width 0.4s ease;
}

.storage-segment-free {
  background: transparent;
  flex: 1;
}

/* Modal Backdrops & Overlays */
.system-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeInModal 0.15s ease-out forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Process Table for Mobile */
@media (max-width: 768px) {
  .process-table-desktop {
    display: none;
  }
  .process-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 769px) {
  .process-table-desktop {
    display: table;
    width: 100%;
  }
  .process-cards-mobile {
    display: none;
  }
}

/* ==========================================================================
   STAGE 06 BRAND KIT: CREATOR PROFILES & ASSET VAULT
   ========================================================================== */

.brand-stage-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
}

.brand-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-main-stage {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1200px) {
  .brand-main-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .brand-stage-wrapper {
    flex-direction: column;
  }
  .brand-sidebar {
    width: 100%;
  }
}

/* 9-Point Anchor Alignment Grid */
.grid-9-point {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 240px;
}

.grid-9-btn {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #18181c;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.grid-9-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: #202026;
}

.grid-9-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
  color: #c7d2fe;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

/* Color Swatch Pills */
.color-swatch-pill {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  outline: none;
}

.color-swatch-pill:hover {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.color-swatch-pill.active {
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  transform: scale(1.18);
}

.color-swatch-pill.active::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.5);
}

/* Background Box Swatches */
.box-swatch-pill {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.box-swatch-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.box-swatch-pill.active {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Dropzone Dashed Container */
.brand-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.brand-dropzone:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.04);
}

/* Live Simulator Canvas Mockup */
.brand-canvas-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 6px solid #1c1d24;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Watermark Simulator Positioning Helpers */
.sim-watermark {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-watermark-tl { top: 12%; left: 6%; }
.sim-watermark-tc { top: 12%; left: 50%; transform: translateX(-50%); }
.sim-watermark-tr { top: 12%; right: 6%; }
.sim-watermark-ml { top: 50%; left: 6%; transform: translateY(-50%); }
.sim-watermark-mc { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.sim-watermark-mr { top: 50%; right: 6%; transform: translateY(-50%); }
.sim-watermark-bl { bottom: 18%; left: 6%; }
.sim-watermark-bc { bottom: 18%; left: 50%; transform: translateX(-50%); }
.sim-watermark-br { bottom: 18%; right: 6%; }

/* Kinetic Caption in Simulator */
.sim-caption-box {
  position: absolute;
  bottom: 24%;
  left: 8%;
  right: 8%;
  text-align: center;
  pointer-events: none;
  z-index: 16;
}


