:root {
  --bg-primary: #0a0b0e;
  --bg-card: rgba(22, 24, 33, 0.75);
  --bg-card-hover: rgba(30, 33, 46, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 243, 255, 0.35);
  --accent-cyan: #00f3ff;
  --accent-magenta: #ff007f;
  --accent-lime: #39ff14;
  --accent-gold: #ffd700;
  --accent-red: #ff3b30;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

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

body {
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.04) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
}

/* macOS Window Shell */
.mac-window {
  background: rgba(13, 15, 22, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  position: relative;
}

/* Title Bar */
.mac-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(18, 20, 29, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.mac-controls {
  display: flex;
  gap: 8px;
}

.mac-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.dot.close { background: #ff5f56; border: 1px solid #e0443e; }
.dot.minimize { background: #ffbd2e; border: 1px solid #dea123; }
.dot.zoom { background: #27c93f; border: 1px solid #1aab29; }
.mac-controls:hover .dot { opacity: 0.85; }

.mac-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.app-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-tag {
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  color: var(--text-muted);
}

.mac-status {
  display: flex;
  gap: 10px;
}

.status-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pill.hw-accel {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--accent-cyan);
}

.status-pill.status-ready {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--accent-lime);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Studio Layout */
.studio-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  padding: 24px;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

@media (max-width: 1100px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.studio-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(255, 0, 127, 0.2));
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.card-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Inputs & Buttons */
.input-group {
  display: flex;
  gap: 10px;
}

input[type="text"], input[type="number"], textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.15);
}

.input-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #00f3ff, #0077ff);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 243, 255, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.25s;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.05);
}

.drop-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.dropzone-content strong {
  color: var(--accent-cyan);
}

.drop-sub {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.demo-loader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.demo-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Video Info Banner */
.video-info-banner {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  align-items: center;
}

.video-info-thumb img {
  width: 90px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.video-info-details h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.info-badges {
  display: flex;
  gap: 8px;
}

.info-badges .badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Viral Moments Cards */
.viral-clips-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.empty-clips-state {
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.empty-clips-state span {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.viral-clip-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.viral-clip-card:hover {
  background: rgba(0, 243, 255, 0.05);
  border-color: rgba(0, 243, 255, 0.3);
}

.viral-clip-card.selected {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.2);
}

.clip-thumb {
  width: 80px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #000;
  flex-shrink: 0;
}

.clip-meta {
  flex: 1;
  min-width: 0;
}

.clip-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.clip-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.viral-score-badge {
  background: linear-gradient(135deg, #ff007f, #ff5f56);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.clip-hook-text {
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 3px;
}

.clip-time-tag {
  font-size: 11px;
  color: var(--text-dim);
}

/* Timeline Box */
.timeline-trim-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-subtle);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.time-range-display {
  color: var(--accent-cyan);
  font-weight: 700;
}

.timeline-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.time-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.time-field input {
  width: 90px;
  padding: 6px 8px;
}

/* Glowing Subtitles Section */
.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.glow-presets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.glow-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  transition: all 0.2s;
}

.glow-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.glow-btn.active {
  border-color: var(--c);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 0 12px var(--c);
}

.glow-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.color-pickers-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.color-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.color-item input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.typography-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.slider-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
}

.position-toggle {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
  border-radius: var(--radius-sm);
}

.btn-pos {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-pos.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
}

/* Music Library */
.music-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.switch-label input {
  display: none;
}

.toggle-slider {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  position: relative;
  transition: 0.25s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

.switch-label input:checked + .toggle-slider {
  background: var(--accent-cyan);
}

.switch-label input:checked + .toggle-slider::after {
  transform: translateX(16px);
}

.music-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .music-tracks-grid {
    grid-template-columns: 1fr;
  }
}

.music-track-item,
.music-track-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.music-track-item:hover,
.music-track-card:hover {
  border-color: rgba(0, 243, 255, 0.4);
  background: rgba(0, 243, 255, 0.05);
  transform: translateY(-1px);
}

.music-track-item.selected,
.music-track-item.active,
.music-track-card.selected,
.music-track-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.music-play-btn,
.music-track-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.music-play-btn:hover,
.music-track-play:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.music-track-item.selected .music-play-btn,
.music-track-card.active .music-track-play {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.music-play-btn.playing,
.music-track-play.playing {
  background: var(--accent-pink) !important;
  color: #fff !important;
  border-color: var(--accent-pink) !important;
  animation: pulseMusic 1.2s infinite;
}

@keyframes pulseMusic {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 0, 127, 0); }
  50% { transform: scale(1.1); box-shadow: 0 0 12px var(--accent-pink); }
}

.music-info,
.music-track-info {
  flex: 1;
  min-width: 0;
}

.music-info h5,
.music-track-info h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.music-info span,
.music-track-info span {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-badge-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(57, 255, 20, 0.3);
  margin-left: auto;
  white-space: nowrap;
}

.music-info span {
  font-size: 11px;
  color: var(--text-dim);
}

.audio-mixer-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Slow-Motion Section */
.slowmo-toggle-row {
  margin-bottom: 14px;
}

.slowmo-options {
  transition: opacity 0.25s;
}

.mode-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.pill-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.pill-btn strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 3px;
}

.pill-btn span {
  font-size: 11px;
  color: var(--text-dim);
}

.pill-btn.active {
  border-color: var(--accent-magenta);
  background: rgba(255, 0, 127, 0.1);
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.25);
}

.speed-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.speed-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.speed-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.15);
  color: #fff;
}

.climax-input-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.climax-input-row input {
  max-width: 120px;
}

/* Framing Options */
.layout-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.layout-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.layout-card input {
  position: absolute;
  opacity: 0;
}

.layout-card strong {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-top: 8px;
}

.layout-card span {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.layout-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.08);
}

.layout-preview {
  width: 44px;
  height: 64px;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.blur-demo {
  background: radial-gradient(circle, #00f3ff, #ff007f);
  filter: blur(1px);
}

.layout-fg {
  position: absolute;
  top: 18px;
  left: 2px;
  right: 2px;
  height: 28px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.layout-fg-fill {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #00f3ff, #0077ff);
}

.layout-fg-fit {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 20px;
  background: #fff;
}

/* RIGHT PREVIEW COLUMN - STICKY LIVE TRACKER */
.preview-column {
  position: -webkit-sticky;
  position: sticky;
  top: 18px;
  align-self: flex-start;
  z-index: 40;
}

.preview-sticky-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.preview-stats {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.live-badge {
  background: #ff3b30;
  color: #fff;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

/* Phone Bezel Simulator */
.phone-frame {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #000;
  border: 4px solid #2d3139;
  border-radius: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 243, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-blur-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  opacity: 0.8;
  transform: scale(1.15);
}

#studioVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Glowing Subtitles Simulator Overlay */
.overlay-hook {
  position: absolute;
  top: 48px;
  left: 12px;
  right: 12px;
  z-index: 10;
  text-align: center;
  font-family: Impact, sans-serif;
  font-size: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 
    0 0 10px var(--accent-cyan),
    0 0 20px var(--accent-cyan),
    2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  animation: hookPulse 2s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes hookPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 6px var(--accent-cyan)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 16px var(--accent-cyan)); }
}

.overlay-captions {
  position: absolute;
  bottom: 60px;
  left: 12px;
  right: 12px;
  z-index: 10;
  text-align: center;
  font-family: Impact, sans-serif;
  font-size: 18px;
  color: #fff;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 
    0 0 8px var(--accent-cyan),
    0 0 16px var(--accent-cyan),
    2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  pointer-events: none;
}

/* Custom Phone Simulator Player Controls (Never Inverted/Flipped) */
.simulator-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.5), inset 0 0 10px rgba(0, 243, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(6px);
}

.simulator-center-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px var(--accent-cyan);
}

.center-play-icon {
  font-size: 20px;
  color: #fff;
  margin-left: 3px;
  line-height: 1;
}

.simulator-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  z-index: 25;
  user-select: none;
}

.sim-ctrl-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.15s, color 0.15s;
}

.sim-ctrl-btn:hover {
  color: var(--accent-cyan);
  transform: scale(1.15);
}

.sim-timeline-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.15s;
}

.sim-timeline-track:hover {
  height: 7px;
}

.sim-timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  border-radius: 4px;
  pointer-events: none;
}

.sim-time-text {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* Render Action Button */
.render-action-card {
  width: 100%;
}

.btn-render {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #00f3ff, #ff007f);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 243, 255, 0.4), 0 0 20px rgba(255, 0, 127, 0.3);
  transition: all 0.25s;
}

.btn-render:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 243, 255, 0.6), 0 0 30px rgba(255, 0, 127, 0.5);
}

.btn-render .btn-icon {
  font-size: 26px;
  background: rgba(0, 0, 0, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-text-col {
  text-align: left;
}

.btn-text-col strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-text-col span {
  font-size: 11px;
  opacity: 0.85;
}

/* Progress Box */
.progress-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-cyan);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f3ff, #ff007f);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-tip {
  font-size: 11px;
  color: var(--text-dim);
}

/* Gallery Card */
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gallery-header h4 {
  font-size: 13px;
  font-weight: 700;
}

.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
}

.empty-gallery {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
}

.gallery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.gallery-item-thumb {
  width: 44px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
  flex-shrink: 0;
}

.gallery-item-info {
  flex: 1;
  min-width: 0;
}

.gallery-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.gallery-actions {
  display: flex;
  gap: 6px;
}

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

/* ==========================================================================
   SSEMBLE PRO UPGRADE STYLES (Split-Game, Autopilot, Metadata, Scheduler)
   ========================================================================== */

/* Top Navigation Switcher */
.top-nav-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.nav-switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-switch-btn.active {
  background: rgba(0, 243, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 243, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.15);
}

/* Split-Game Layout Demo */
.split-game-demo {
  background: #000;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 243, 255, 0.3);
}

.split-top {
  flex: 1.1;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 700;
}

.split-bar {
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 4px var(--accent-cyan);
}

.split-bot {
  flex: 0.9;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--accent-lime);
  font-weight: 600;
}

/* Gameplay selector chips */
.gameplay-selector-box {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.gameplay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gameplay-header label {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
}

.gameplay-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
}

.chip-btn:hover {
  border-color: rgba(0, 243, 255, 0.4);
  background: rgba(0, 243, 255, 0.05);
}

.chip-btn.active {
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.chip-badge {
  font-size: 9px;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 800;
}

/* Phone Screen Simulator with Split Screen */
.screen-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: #000;
}

.screen-gameplay-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  overflow: hidden;
  z-index: 9;
  background: #000;
}

.screen-gameplay-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-split-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  z-index: 12;
}

/* AI Metadata Card */
.metadata-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
  backdrop-filter: blur(20px);
}

.metadata-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metadata-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.metadata-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--accent-cyan);
  color: #000;
}

.meta-field input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 10px;
  font-size: 12px;
  font-family: var(--font-sans);
}

.title-variants-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.title-variant-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.title-variant-chip:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.3);
  color: #fff;
  transform: translateX(2px);
}

.title-variant-chip.active {
  background: rgba(255, 0, 127, 0.12);
  border-color: var(--accent-pink);
  color: #fff;
  font-weight: 600;
}

.title-variant-chip .tag-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.meta-actions-row {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

/* 24/7 Autopilot View */
.view-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 70vh;
}

.autopilot-banner, .scheduler-banner {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(255, 0, 127, 0.1) 100%);
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-text h2, .scheduler-banner h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.banner-text p, .scheduler-banner p {
  color: var(--text-muted);
  font-size: 13px;
}

.autopilot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.channel-info strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.channel-info span {
  font-size: 11px;
  color: var(--accent-cyan);
}

/* Scheduler Queue */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.queue-item-info strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}

.queue-item-tags {
  font-size: 11px;
  color: var(--accent-cyan);
}

.queue-platforms-badge {
  display: flex;
  gap: 6px;
}

.platform-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Featured Emoji Picker Grid */
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.emoji-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 4px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.emoji-chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.emoji-chip.active {
  border-color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Anti-Copyright Shield Card */
.anti-copyright-card {
  border: 1px solid rgba(57, 255, 20, 0.35);
  background: radial-gradient(circle at 10% 10%, rgba(57, 255, 20, 0.05), rgba(22, 24, 33, 0.85));
}

.shield-step {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(0, 243, 255, 0.2));
  border-color: rgba(57, 255, 20, 0.4);
}

.shield-toggle-row {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.shield-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shield-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.shield-check-item:hover {
  border-color: rgba(57, 255, 20, 0.3);
}

.shield-check-item input[type="checkbox"] {
  accent-color: var(--accent-lime);
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

.shield-check-item strong {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 2px;
}

.shield-check-item span {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

/* Phone Simulator Overlays */
.overlay-emoji {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  animation: emojiBounce 1.8s infinite alternate ease-in-out;
}

.overlay-emoji img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes emojiBounce {
  0% { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) scale(1.15) rotate(4deg); }
}

.overlay-fairuse {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 15;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Subtitle Style Picker */
.sub-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.sub-style-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.sub-style-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.sub-style-btn.active {
  border-color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.12);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
  color: #fff;
}

.sub-style-btn strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.sub-style-btn span {
  font-size: 11px;
  color: var(--text-dim);
}

/* Modernized bottom caption simulator styling */
.overlay-captions {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 12;
  pointer-events: none;
  line-height: 1.15;
  transition: all 0.15s ease-out;
}

.overlay-captions.pill-style {
  background: rgba(0, 0, 0, 0.85);
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  backdrop-filter: blur(8px);
}

.overlay-captions .active-word {
  display: inline-block;
  transform: scale(1.08);
  transition: transform 0.1s ease-out;
  margin: 0 3px;
}

.overlay-captions .resting-word {
  display: inline-block;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  margin: 0 3px;
}


/* ==========================================================================
   ALL-IN-ONE SUITE: INVIDEO + HEYGEN + SSEMBL + WAYIN.AI ADDITIONS
   ========================================================================== */

/* 1. Wayin.ai Creator Presets Toolbar */
.creator-presets-container {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.95), rgba(15, 15, 23, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.presets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.presets-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sparkle-badge {
  font-size: 20px;
  background: rgba(255, 215, 0, 0.15);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.presets-title-left strong {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.suite-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
}

.presets-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.preset-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.creator-preset-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
}

.creator-preset-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.creator-preset-card.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 107, 0, 0.12));
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

.preset-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.preset-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.preset-text span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
}

/* 2. InVideo Aspect Ratio Switcher */
.aspect-ratio-selector-bar {
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.aspect-lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.aspect-btns-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.aspect-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s ease-out;
}

.aspect-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00ffff;
}

.aspect-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.15));
  border-color: #00ffff;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.aspect-btn strong {
  font-size: 13px;
  font-weight: 700;
}

.aspect-btn small {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 3. InVideo Virality Breakdown in Clip Cards */
.virality-breakdown-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 8px;
}

.virality-meter span {
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 3px;
}

.v-meter-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.v-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #39ff14, #00ffff);
  border-radius: 2px;
}

.why-viral-badge {
  font-size: 11px;
  color: #ffde59;
  background: rgba(255, 222, 89, 0.1);
  border: 1px solid rgba(255, 222, 89, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  margin: 6px 0;
  line-height: 1.35;
}

/* 4. HeyGen Silence Cutter Card */
.heygen-silence-card {
  border-color: rgba(121, 40, 202, 0.35);
}

.silence-toggle-wrap {
  margin: 8px 0;
}

.silence-benefit-pills {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.benefit-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(121, 40, 202, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(121, 40, 202, 0.4);
  padding: 3px 9px;
  border-radius: 20px;
}

/* 5. Ssemble Sound FX Library Grid */
.sfx-library-card {
  border-color: rgba(255, 0, 128, 0.35);
}

.sfx-toggle-wrap, .ducking-toggle-wrap {
  margin: 10px 0;
}

.sfx-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.sfx-chip-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease-out;
  position: relative;
}

.sfx-chip-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ff0080;
}

.sfx-chip-item.active {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(255, 120, 180, 0.1));
  border-color: #ff0080;
  box-shadow: 0 0 16px rgba(255, 0, 128, 0.35);
}

.sfx-chip-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.sfx-chip-info strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.sfx-chip-info small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sfx-audition-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease;
}

.sfx-audition-btn:hover {
  background: #ff0080;
  border-color: #ff0080;
}

/* 6. Batch Render Button */
.btn-batch-render {
  background: linear-gradient(135deg, #7928ca, #ff0080);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 24px rgba(121, 40, 202, 0.45);
  border-radius: 14px;
  padding: 14px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.btn-batch-render:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 0, 128, 0.6);
  filter: brightness(1.1);
}

.btn-batch-render:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* ==========================================================================
   LAYOUT PREVIEW ICONS & LIVE SIMULATOR ANIMATIONS
   ========================================================================== */
.track-demo {
  background: linear-gradient(160deg, #0d1b2a, #1b263b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-box {
  width: 24px;
  height: 28px;
  border: 2px solid #00f3ff;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
  position: relative;
}

.face-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #00f3ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sports-demo {
  background: linear-gradient(160deg, #0a2e1a, #104528);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ball-motion {
  width: 12px;
  height: 12px;
  background: #ffdd00;
  border-radius: 50%;
  box-shadow: -8px 0 0 rgba(255, 221, 0, 0.35), 8px 0 0 rgba(255, 221, 0, 0.35), 0 0 8px #ffdd00;
}

.podcast-demo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.podcast-demo .split-top,
.podcast-demo .split-bot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

#previewBlurVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@keyframes smartPanSlow {
  0% { object-position: 32% 50%; }
  50% { object-position: 68% 50%; }
  100% { object-position: 32% 50%; }
}

@keyframes sportsPanFast {
  0% { object-position: 20% 50%; }
  50% { object-position: 80% 50%; }
  100% { object-position: 20% 50%; }
}

#studioVideoPlayer.pan-smart {
  animation: smartPanSlow 10s ease-in-out infinite;
}

#studioVideoPlayer.pan-sports {
  animation: sportsPanFast 5s ease-in-out infinite;
}


/* ==========================================================================
   SAAS AUTH, SUBSCRIPTIONS & ADMIN PANEL STYLES
   ========================================================================== */

.saas-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-btn {
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
  color: #ffd700 !important;
}

.saas-upgrade-btn {
  background: linear-gradient(135deg, #7928ca, #ff0080);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(255, 0, 128, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.saas-upgrade-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.saas-signin-btn {
  background: rgba(0, 243, 255, 0.14);
  color: #00f3ff;
  border: 1px solid rgba(0, 243, 255, 0.4);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.saas-user-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 3px 8px 3px 5px;
  font-size: 11px;
}

.saas-plan-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.saas-plan-badge.plan-free { background: rgba(255,255,255,0.14); color: #ddd; }
.saas-plan-badge.plan-pro { background: rgba(0,243,255,0.22); color: #00f3ff; }
.saas-plan-badge.plan-agency { background: rgba(255,215,0,0.22); color: #ffd700; }
.saas-plan-badge.plan-admin { background: linear-gradient(135deg, #ffd700, #ff6b00); color: #000; }

.saas-credits-text {
  color: #39ff14;
  font-weight: 700;
  font-size: 11px;
}

.saas-user-name {
  color: #fff;
  font-weight: 600;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-logout-btn {
  background: rgba(255, 59, 48, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saas-announcement-bar {
  background: linear-gradient(90deg, #7928ca, #ff0080, #ff6b00);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Modals */
.saas-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 12, 0.82);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.saas-modal-card {
  background: linear-gradient(160deg, #131622, #0b0d14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 26px 28px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  max-height: 92vh;
  overflow-y: auto;
}

.auth-modal-card {
  width: 100%;
  max-width: 420px;
}

.pricing-modal-card {
  width: 100%;
  max-width: 920px;
}

.saas-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.saas-modal-close:hover { background: rgba(255, 59, 48, 0.3); color: #fff; }

.auth-brand-head {
  text-align: center;
  margin-bottom: 18px;
}

.auth-logo {
  font-size: 32px;
  display: inline-block;
  margin-bottom: 6px;
}

.auth-brand-head h3 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 4px;
}

.auth-brand-head p {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 9px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: rgba(0, 243, 255, 0.16);
  border-color: #00f3ff;
  color: #fff;
}

.auth-form .form-group {
  margin-bottom: 12px;
}

.auth-form label, .admin-settings-form label, .admin-plan-edit-card label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 600;
}

.auth-form input, .admin-settings-form input[type="text"], .admin-plan-edit-card input[type="text"], .admin-plan-edit-card input[type="number"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
}

.auth-error-msg {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.45);
  color: #ff8a80;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.auth-submit-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.auth-admin-hint {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.auth-admin-hint code {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  padding: 2px 6px;
  border-radius: 5px;
}

/* Pricing Modal */
.pricing-header {
  text-align: center;
  margin-bottom: 20px;
}

.pricing-header h2 {
  font-size: 22px;
  color: #fff;
  margin: 6px 0;
}

.pricing-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-notice-banner {
  grid-column: 1 / -1;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #ffd700;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular-plan {
  border-color: #00f3ff;
  background: linear-gradient(160deg, rgba(0, 243, 255, 0.09), rgba(121, 40, 202, 0.08));
  box-shadow: 0 0 28px rgba(0, 243, 255, 0.16);
}

.pricing-card.current-plan {
  border-color: #39ff14;
}

.pricing-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffd700;
  margin-bottom: 6px;
}

.pricing-card h3 {
  font-size: 17px;
  color: #fff;
}

.pricing-price {
  margin: 10px 0 4px;
}

.price-val {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.price-per {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-quota {
  font-size: 12px;
  color: #00f3ff;
  font-weight: 700;
  margin-bottom: 14px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}

.pricing-features li {
  font-size: 12px;
  color: #d8dee9;
  margin-bottom: 7px;
}

.pricing-select-btn {
  width: 100%;
  justify-content: center;
  padding: 10px;
  font-weight: 700;
}

.checkout-box {
  margin-top: 20px;
  background: rgba(0, 243, 255, 0.07);
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
}

.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #fff;
}

.checkout-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pay-method-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pay-method-pill.active {
  border-color: #00f3ff;
  background: rgba(0, 243, 255, 0.16);
}

.checkout-confirm-btn {
  width: 100%;
  justify-content: center;
}

/* Admin Panel Layout */
.admin-layout {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.admin-container {
  max-width: 1240px;
  margin: 0 auto;
}

.admin-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(121, 40, 202, 0.14));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.admin-header-banner h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
}

.admin-header-banner p {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(121, 40, 202, 0.2));
  border-color: #00f3ff;
  color: #fff;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  font-size: 26px;
  background: rgba(255, 255, 255, 0.06);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-card small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.kpi-card strong {
  font-size: 24px;
  color: #fff;
  font-weight: 800;
}

.admin-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-table-toolbar input {
  flex: 1;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
}

.admin-count-badge {
  background: rgba(0, 243, 255, 0.15);
  color: #00f3ff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  vertical-align: middle;
}

.td-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-inline-select {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
}

.quota-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
  margin-right: 4px;
}

.status-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.status-active, .status-paid { background: rgba(57, 255, 20, 0.15); color: #39ff14; }
.status-banned, .status-refunded, .status-cancelled { background: rgba(255, 59, 48, 0.18); color: #ff6b6b; }
.status-free { background: rgba(255, 255, 255, 0.1); color: #ccc; }

.btn-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  margin-right: 4px;
}

.btn-mini.btn-ban { border-color: rgba(255, 165, 0, 0.5); color: #ffbe55; }
.btn-mini.btn-unban { border-color: rgba(57, 255, 20, 0.5); color: #39ff14; }
.btn-mini.btn-del { border-color: rgba(255, 59, 48, 0.5); color: #ff6b6b; }

.admin-plans-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.admin-plan-edit-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
}

.admin-plan-edit-card h4 {
  color: #00f3ff;
  margin-bottom: 12px;
  font-size: 13px;
}

.admin-plan-edit-card .form-group, .admin-settings-form .form-group {
  margin-bottom: 10px;
}

.admin-settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.admin-keys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-logs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.admin-log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.log-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  min-width: 58px;
  text-align: center;
}

.tag-signup { background: rgba(0,243,255,0.2); color: #00f3ff; }
.tag-billing { background: rgba(57,255,20,0.2); color: #39ff14; }
.tag-admin { background: rgba(255,215,0,0.2); color: #ffd700; }
.tag-render { background: rgba(121,40,202,0.3); color: #d8b4fe; }
.tag-login, .tag-system, .tag-security { background: rgba(255,255,255,0.12); color: #ccc; }

.log-msg { flex: 1; color: #e2e8f0; }
.log-time { font-size: 10px; color: var(--text-muted); }
