:root {
  --bg-dark: #090c13;
  --bg-card: #121824;
  --bg-card-hover: #182030;
  --bg-toolbar: #161e2e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #00d2ff;
  
  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.35);
  --accent-red: #ff385c;
  --accent-red-bg: rgba(255, 56, 92, 0.28);
  --accent-green: #00e676;
  --accent-green-bg: rgba(0, 230, 118, 0.15);
  --accent-amber: #ffb300;
  --accent-amber-bg: rgba(255, 179, 0, 0.2);

  --text-primary: #f0f4fc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.2);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* App Container */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==============================================================================
   Production Demo Banner & Locked Controls
   ============================================================================== */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.18) 50%, rgba(245, 158, 11, 0.06) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #fde68a;
  letter-spacing: 0.02em;
  z-index: 100;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.demo-banner.hidden {
  display: none !important;
}

.demo-banner-badge {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-banner-text {
  color: #fef3c7;
  font-size: 12px;
}

/* Demo Mode Controls Lockdown */
.demo-locked {
  opacity: 0.42 !important;
  filter: grayscale(0.85) !important;
  cursor: not-allowed !important;
  user-select: none !important;
  position: relative;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.demo-locked * {
  cursor: not-allowed !important;
}

.demo-locked:hover {
  opacity: 0.48 !important;
}

.upload-card.demo-locked {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: rgba(18, 24, 36, 0.6) !important;
}

.btn-auth.demo-locked {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #64748b !important;
  box-shadow: none !important;
}

/* Header */
.studio-header {
  background: rgba(14, 20, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Header Top Row: Brand & Global Actions */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-version-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}

.logo-icon span {
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, #3a7bd5 100%);
  border-radius: 4px;
  animation: wavePulse 1.4s ease-in-out infinite alternate;
}

.logo-icon span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.logo-icon span:nth-child(2) { height: 22px; animation-delay: 0.3s; }
.logo-icon span:nth-child(3) { height: 28px; animation-delay: 0.5s; }
.logo-icon span:nth-child(4) { height: 18px; animation-delay: 0.2s; }
.logo-icon span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.6); }
  100% { transform: scaleY(1.1); }
}

.brand-text h1 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  white-space: nowrap;
}

.brand-text h1 span {
  color: var(--primary);
}

.brand-text .tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Header Main Actions (Top Row Right) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.model-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.model-selector-wrap:hover {
  border-color: rgba(0, 210, 255, 0.4);
}

.model-select-icon {
  font-size: 0.85rem;
}

/* Language Toggle Pill */
.lang-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-toggle-pill:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: var(--bg-card-hover);
}

.lang-toggle-pill .lang-icon {
  font-size: 0.85rem;
  margin-right: 2px;
}

.lang-toggle-pill .lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
}

.lang-toggle-pill .lang-opt {
  padding: 2px 5px;
  border-radius: 3px;
  transition: all 0.15s ease;
  color: var(--text-muted);
}

.lang-toggle-pill .lang-opt:hover {
  color: var(--text-primary);
}

.lang-toggle-pill .lang-opt.active {
  background: var(--primary);
  color: #051424;
  font-weight: 800;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Header Sub-bar: Project Context & Real-time Metrics */
.header-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: rgba(9, 13, 21, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 16px;
  flex-wrap: wrap;
}

.job-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex: 1;
  min-width: 260px;
  max-width: 600px;
}

.job-label-icon {
  font-size: 0.9rem;
}

.styled-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.job-styled-select {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.styled-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.btn-danger-icon:hover {
  background: rgba(255, 56, 92, 0.18);
  border-color: var(--accent-red);
}

/* Metrics Badge */
.metrics-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 210, 255, 0.08) 100%);
  border: 1px solid rgba(0, 230, 118, 0.28);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.metric-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-right: 2px;
}

.metrics-badge .metric-orig {
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.metrics-badge .metric-arrow {
  color: var(--text-muted);
}

.metrics-badge .metric-clean {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
}

.metrics-badge .metric-saved {
  background: var(--accent-green);
  color: #000;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 114, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 114, 255, 0.45);
}

.btn-warning {
  background: rgba(255, 179, 0, 0.15);
  border-color: rgba(255, 179, 0, 0.4);
  color: var(--accent-amber);
}

.btn-warning:hover {
  background: rgba(255, 179, 0, 0.25);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  color: #051a10;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-secondary);
}

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

/* Processing Banner */
.processing-banner {
  background: linear-gradient(90deg, #101c38 0%, #1e1338 100%);
  border-bottom: 1px solid rgba(0, 210, 255, 0.3);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: slideDown 0.3s ease;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 210, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.banner-text {
  flex: 1;
}

.banner-text h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.banner-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-green) 100%);
  transition: width 0.3s ease;
}

/* Main Studio */
.studio-main {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Waveform Section */
.waveform-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

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

.track-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.track-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.track-specs {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

/* Player Toolbar */
.player-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-toolbar);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.btn-ctrl {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: all 0.15s;
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-play {
  background: var(--primary);
  color: #051424;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 14px var(--primary-glow);
}

.btn-play:hover {
  background: #33dcff;
  transform: scale(1.05);
}

.divider-v {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  margin: 0 4px;
}

/* Skip Preview Button */
.btn-skip-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 56, 92, 0.15);
  border: 1px solid rgba(255, 56, 92, 0.4);
  color: #ff6b8b;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-skip-preview.active {
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.3) 0%, rgba(255, 179, 0, 0.25) 100%);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 56, 92, 0.4);
}

.skip-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Timecode Display */
.timecode-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 140px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timecode-display #totalDuration {
  color: var(--text-muted);
}

/* Zoom & Speed */
.zoom-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.zoom-wrap input[type="range"] {
  width: 70px;
  accent-color: var(--primary);
}

.styled-select-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}

/* Waveform Canvas Card */
.waveform-card {
  background: #080b12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px 10px 12px;
  position: relative;
}

#waveformTimeline {
  margin-bottom: 4px;
}

#waveformContainer {
  width: 100%;
  min-height: 140px;
  position: relative;
}

.wave-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(8, 11, 18, 0.85);
  color: var(--text-secondary);
  font-size: 0.85rem;
  z-index: 10;
}

.spinner-sm {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 210, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Waveform Legend */
.waveform-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.cut-box { background: rgba(255, 56, 92, 0.7); }
.marker-box { background: #ffb300; }
.keep-box { background: var(--primary); }

.legend-tip {
  margin-left: auto;
  color: var(--text-muted);
}

/* QA Audit Section */
.audit-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.audit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

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

.audit-title-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* View Switcher Tabs */
.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-toolbar);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.tab-btn.active {
  background: var(--primary);
  color: #051424;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Transcript View Styles */
.transcript-view-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transcript-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.transcript-hint {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input {
  accent-color: var(--primary);
}

.transcript-container {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  background: #080b12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.transcript-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  font-size: 0.85rem;
}

.sentence-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.sentence-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.sentence-card.active-sentence {
  background: rgba(0, 210, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.1);
}

.sentence-card.cut-sentence {
  background: rgba(255, 56, 92, 0.08);
  border-color: rgba(255, 56, 92, 0.2);
  opacity: 0.75;
}

.sentence-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.sentence-time:hover {
  color: var(--primary);
  background: rgba(0, 210, 255, 0.15);
}

.sentence-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.word-span {
  padding: 1px 3px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}

.word-span:hover {
  background: rgba(0, 210, 255, 0.2);
  color: #fff;
}

.word-span.cut-word {
  color: #ff6b8b;
  text-decoration: line-through;
  background: rgba(255, 56, 92, 0.2);
  opacity: 0.85;
}

.word-span.active-word {
  background: var(--accent-green);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 8px var(--accent-green);
  transform: scale(1.08);
}

.btn-danger-icon:hover {
  background: rgba(255, 56, 92, 0.2);
  border-color: var(--accent-red);
}

/* Audit Table */
.audit-table-wrap {
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.audit-table th {
  background: var(--bg-toolbar);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

.audit-table tr:hover {
  background: var(--bg-card-hover);
}

.empty-row {
  text-align: center;
  color: var(--text-muted);
  padding: 30px !important;
}

.timecode-chip {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.duration-chip {
  font-family: var(--font-mono);
  color: var(--accent-red);
  font-weight: 700;
  background: var(--accent-red-bg);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.anchor-word-chip {
  background: rgba(0, 210, 255, 0.12);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.audit-explanation {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
}

.table-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-preview-cut {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-preview-cut:hover {
  background: var(--primary);
  color: #000;
}

.btn-del-cut {
  background: rgba(255, 56, 92, 0.1);
  border: 1px solid rgba(255, 56, 92, 0.3);
  color: var(--accent-red);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-del-cut:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Footer */
.studio-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* WaveSurfer Custom Region Styles */
.wavesurfer-region {
  border-left: 2px solid var(--accent-red) !important;
  border-right: 2px solid var(--accent-red) !important;
  background-color: rgba(255, 56, 92, 0.3) !important;
  transition: background-color 0.15s ease;
}

.wavesurfer-region:hover {
  background-color: rgba(255, 56, 92, 0.45) !important;
}

.wavesurfer-handle {
  width: 6px !important;
  background-color: var(--accent-red) !important;
}

/* === Marker Profile Collapsible Panel (v1.4.0 Studio Drawer) === */
.profile-panel {
  background: #0a0e17;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
  position: relative;
  z-index: 20;
}

.profile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  cursor: pointer;
  user-select: none;
  background: rgba(13, 18, 29, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s;
}

.profile-panel-header:hover {
  background: rgba(20, 28, 45, 0.98);
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-panel-icon {
  font-size: 1.15rem;
}

.profile-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.profile-status-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.profile-status-pill.active {
  background: rgba(0, 200, 150, 0.15);
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

.profile-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-profile-toggle {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-profile-toggle:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--primary);
  color: #fff;
}

.profile-chevron {
  font-size: 0.65rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-panel.collapsed .profile-chevron {
  transform: rotate(-90deg);
}

/* Panel Body */
.profile-panel-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  padding: 16px 24px 20px;
  background: #080c14;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-panel.collapsed .profile-panel-body {
  display: none !important;
}

/* Profile Card */
.profile-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.profile-card-header h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.profile-card-tip {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-link-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-link-sm:hover {
  color: var(--primary);
  background: rgba(0, 210, 255, 0.08);
}

.profile-mic-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.styled-select-sm {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.75rem;
  flex: 1;
  outline: none;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.2s;
}
.styled-select-sm:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.6);
}

.profile-record-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-record {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(229, 62, 62, 0.3);
}
.btn-record:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.btn-record.recording {
  animation: pulse-record 1s infinite;
  background: #e53e3e;
}

.profile-record-timer {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #00e676;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-mini-waveform {
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
  height: 68px;
}
.profile-mini-waveform canvas {
  width: 100%;
  height: 64px;
  display: block;
}

.profile-save-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.styled-input-sm {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  flex: 1;
  outline: none;
  transition: border-color 0.2s;
}
.styled-input-sm:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.6);
}

/* Profile list */
.profile-list {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.profile-list-empty {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
  cursor: pointer;
}
.profile-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.profile-item.active {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.06);
}

.profile-item input[type="radio"] {
  accent-color: #00e676;
  cursor: pointer;
}

.profile-item-info {
  display: flex;
  align-items: baseline;
  flex: 1;
  overflow: hidden;
  gap: 8px;
}

.profile-item-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.profile-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Mode hierarchy (v1.4.2 Two-Tier System) */
.profile-mode-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-tier-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.mode-tier-card.active {
  background: rgba(0, 210, 255, 0.03);
  border-color: rgba(0, 210, 255, 0.3);
}

.mode-tier-card#tierCardCustom.active {
  background: rgba(0, 230, 118, 0.03);
  border-color: rgba(0, 230, 118, 0.3);
}

.profile-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.profile-mode-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.mode-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mode-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mode-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Level 2 Nested Sublist */
.profile-nested-sublist {
  margin-top: 10px;
  margin-left: 24px;
  padding-left: 12px;
  border-left: 2px solid rgba(0, 230, 118, 0.2);
}

.mode-tier-card:not(.active) .profile-nested-sublist {
  opacity: 0.6;
}

/* ============================================================
   Responsive Layout & Media Queries
   ============================================================ */

@media (max-width: 1100px) {
  .header-top-row {
    padding: 10px 16px;
    gap: 12px;
  }
  
  .header-subbar {
    padding: 8px 16px;
    gap: 12px;
  }
  
  .job-selector-wrap {
    min-width: 220px;
  }
}

@media (max-width: 860px) {
  .header-top-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-subbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .job-selector-wrap {
    width: 100%;
    max-width: 100%;
  }

  .metrics-badge {
    align-self: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .player-toolbar {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .audit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .audit-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 580px) {
  .header-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   CleanCut v2.3.0 User Authentication & Modal Styles (Glassmorphic)
   ========================================================================== */

.auth-zone {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.btn-outline-primary {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-primary:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.user-profile-wrap {
  position: relative;
}

.user-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 24, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill-btn:hover {
  border-color: var(--primary);
  background: rgba(24, 32, 48, 1);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.user-avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #0070f3);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.user-name-text {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-caret {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* User Dropdown Menu */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #101622;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  animation: fadeInDown 0.15s ease-out;
}

.user-menu-header {
  padding: 8px 16px;
}

.menu-user-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-user-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-menu-logout {
  color: var(--accent-red);
}

.user-menu-logout:hover {
  background: rgba(255, 56, 92, 0.12);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 14, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #101726;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 210, 255, 0.1);
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal-header {
  margin-bottom: 24px;
}

.auth-logo-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.auth-modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.magic-link-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.styled-input {
  width: 100%;
  padding: 10px 14px;
  background: #080d17;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.styled-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.magic-link-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
}

.magic-link-status.success {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #a7f3d0;
}

.magic-link-status.info {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: #bae6fd;
}

.magic-link-status.error {
  background: rgba(255, 56, 92, 0.15);
  border: 1px solid rgba(255, 56, 92, 0.3);
  color: #fecdd3;
}

.mock-link-preview {
  margin-top: 8px;
  word-break: break-all;
  display: inline-block;
  color: var(--primary);
  text-decoration: underline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* SSO Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 18px 0;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Third-Party SSO Buttons */
.sso-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #141d2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sso-btn:hover {
  background: #1a263c;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.sso-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.8);
}

.sso-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Audit Logs Modal */
.audit-logs-modal-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: #101726;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.audit-logs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.audit-logs-modal-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.audit-logs-content {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-log-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.log-meta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-provider-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.log-ua {
  font-size: 0.74rem;
  color: var(--text-muted);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.log-ip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.log-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   CleanCut v2.3.1 Gatekeeper Lockdown Overlay Styles
   ========================================================================== */

.app-locked {
  filter: blur(14px) brightness(0.6);
  pointer-events: none;
  user-select: none;
  transition: filter 0.35s ease;
}

.auth-modal-card.gatekeeper-card {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 210, 255, 0.25);
  border: 1px solid rgba(0, 210, 255, 0.35);
  animation: modalPulse 3s infinite alternate ease-in-out;
}

@keyframes modalPulse {
  0% { border-color: rgba(0, 210, 255, 0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 25px rgba(0, 210, 255, 0.15); }
  100% { border-color: rgba(0, 210, 255, 0.5); box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 45px rgba(0, 210, 255, 0.3); }
}


