/* ==========================================================================
   SECURITY SHIELD - ANTI-INSPECTION & ANTI-TAMPER STYLES
   ========================================================================== */
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

:root {
  --bg-main: #06080f;
  --bg-surface: #0a0e1a;
  --bg-card: rgba(13, 18, 32, 0.78);
  --bg-card-hover: rgba(18, 25, 46, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-accent: rgba(99, 102, 241, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --grad-cyan-blue: linear-gradient(135deg, #00f2fe 0%, #2563eb 100%);
  --grad-neon: linear-gradient(135deg, #00f2fe 0%, #8b5cf6 100%);
  --grad-purple-pink: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --grad-emerald-teal: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 242, 254, 0.03);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-button: 0 6px 25px rgba(0, 242, 254, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 242, 254, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(10, 14, 26, 0.9) 0%, transparent 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.hidden {
  display: none !important;
}

/* ==================== TOP NAVIGATION BAR ==================== */
.top-nav-bar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.top-bar-inner {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-pulse {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-cyan-blue);
  color: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.45);
  flex-shrink: 0;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 242, 254, 0.3); }
  100% { transform: scale(1.04); box-shadow: 0 0 25px rgba(0, 242, 254, 0.6); }
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title .brand-accent {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-engine-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
}

.engine-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.08);
  color: #00f2fe;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
}

.mode-badge:hover {
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.mode-badge.live {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.mode-toggle-hint {
  font-size: 0.68rem;
  opacity: 0.75;
  text-decoration: underline;
  margin-left: 2px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 600;
}

.user-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.btn-top-admin {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
  letter-spacing: 0.02em;
}

.btn-top-admin:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(56, 189, 248, 0.32) 100%);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.admin-crown-icon {
  font-size: 0.95rem;
}

.admin-ext-icon {
  stroke: currentColor;
  opacity: 0.8;
}

.btn-lock-studio {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  letter-spacing: 0.02em;
}

.btn-lock-studio:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
  transform: translateY(-1px);
}

.btn-settings-header {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-settings-header:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

/* ==================== STUDIO MAIN LAYOUT ==================== */
.studio-main-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 58px 80px 58px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==================== DUAL-COLUMN WORKSPACE GRID ==================== */
.studio-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

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

.studio-col-left, .studio-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==================== STUDIO CARDS ==================== */
.studio-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.studio-card:focus-within {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.08);
}

.studio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.studio-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.studio-scene-estimate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.22);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00f2fe;
  font-family: 'JetBrains Mono', monospace;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* Prompt Presets Quick Bar */
.presets-quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.presets-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-preset-pill:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  transform: translateY(-1px);
}

.prompt-input-area textarea {
  width: 100%;
  background: rgba(6, 9, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f8fafc;
  resize: vertical;
  min-height: 120px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.prompt-input-area textarea:focus {
  border-color: rgba(0, 242, 254, 0.5);
  background: rgba(8, 12, 22, 0.98);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
}

.prompt-input-area textarea::placeholder {
  color: #475569;
  font-size: 0.88rem;
}

.studio-controls-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aspect-picker, .duration-picker {
  display: flex;
  background: rgba(6, 9, 16, 0.85);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 3px;
}

.aspect-btn, .duration-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.aspect-btn:hover, .duration-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.aspect-btn.active, .duration-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.btn-generate-main {
  background: var(--grad-cyan-blue);
  color: #050811;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 12px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-button);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  font-family: inherit;
}

.btn-generate-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(0, 242, 254, 0.55);
  filter: brightness(1.1);
}

.btn-generate-main:active {
  transform: translateY(0);
}

.btn-generate-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #050811;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* Inline Rendering Progress */
.render-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.progress-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-step-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  font-family: 'JetBrains Mono', monospace;
}

.render-progress .progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.render-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #3b82f6, #a855f7);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  border-radius: 99px;
  transition: width 0.3s ease;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.render-progress .progress-status {
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

/* ==================== INTEGRATED RADAR STREAM ==================== */
.integrated-radar-box {
  background: rgba(4, 7, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.radar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
}

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

.radar-live-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

.radar-stream-card {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terminal-stream {
  height: 124px;
  background: rgba(3, 6, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
}

.terminal-line {
  line-height: 1.4;
  word-break: break-all;
}

.term-time {
  color: #475569;
}

.term-tag {
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.term-tag.flow { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }
.term-tag.engine { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.term-tag.queue { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.term-tag.stitch { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.term-tag.render { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.term-tag.config { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.term-tag.failover { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.term-msg {
  color: #cbd5e1;
}

/* ==================== MASTER OUTPUT CARD ==================== */
.master-output-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-download-pill {
  background: var(--grad-cyan-blue);
  color: #050811;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-download-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.55);
  filter: brightness(1.08);
}

.btn-delete-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-delete-pill:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

.master-player-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.12);
}

.master-player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #000;
}

.video-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(6, 9, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== WAITING TIMER & DROP VIEWFINDER ==================== */
.waiting-timer-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, rgba(6, 12, 24, 0.98) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 254, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  gap: 14px;
}

.waiting-timer-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, #3b82f6, transparent);
  animation: scan-line 2.5s ease-in-out infinite;
}

@keyframes scan-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Circular Countdown Dial */
.countdown-dial-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* 12 o'clock start position */
}

.countdown-bg-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}

.countdown-progress-ring {
  fill: none;
  stroke: url(#timerCyanGrad);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-in-out;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.8));
}

.countdown-dial-wrap .timer-display-box {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.timer-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 2px;
}

.blinking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 10px #00f2fe;
  animation: blink-dot 1.2s ease-in-out infinite alternate;
}

@keyframes blink-dot {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.timer-digits {
  font-size: 3.4rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(0, 242, 254, 0.9), 0 0 50px rgba(56, 189, 248, 0.5);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 2px 0;
}

.timer-sub-status {
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.btn-cancel-waiting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  z-index: 2;
}

.btn-cancel-waiting:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.btn-cancel-waiting:active {
  transform: translateY(0);
}

/* Standby Viewfinder Placeholder */
.standby-viewfinder-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(14, 25, 45, 0.6) 0%, rgba(4, 7, 14, 0.96) 100%);
  border: 1px dashed rgba(56, 189, 248, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.standby-lens-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
  animation: pulse-glow 3s infinite alternate;
}

.standby-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.standby-desc {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 420px;
  line-height: 1.55;
}

.standby-desc strong {
  color: #38bdf8;
}

/* ==================== GALLERY SECTION ==================== */
.gallery-section-card {
  width: 100%;
}

.gallery-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-count-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-family: 'JetBrains Mono', monospace;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #475569;
}

.gallery-empty .empty-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  opacity: 0.6;
}

.gallery-empty .empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.gallery-empty .empty-desc {
  font-size: 0.85rem;
  color: #475569;
}

/* Video Card in Gallery */
.video-card {
  background: rgba(11, 15, 28, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 242, 254, 0.15);
}

.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-card-thumb img,
.video-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.video-card-thumb:hover .video-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-cyan-blue);
  color: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.video-card-thumb:hover .play-circle {
  transform: scale(1);
}

.video-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.video-card-prompt {
  font-size: 0.85rem;
  color: #f1f5f9;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.account-attribution {
  color: #38bdf8;
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-card-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.btn-card-action:hover {
  background: rgba(0, 242, 254, 0.14);
  border-color: rgba(0, 242, 254, 0.35);
  color: #00f2fe;
}

.btn-card-download {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  border-color: rgba(0, 242, 254, 0.3);
  color: #38bdf8;
}

.btn-card-download:hover {
  background: var(--grad-cyan-blue);
  color: #050811;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.btn-card-enlarge {
  flex: 0 0 auto;
}

.btn-card-delete {
  flex: 0 0 auto;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.btn-card-delete:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: rgba(244, 63, 94, 0.6);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #050811;
  padding: 10px 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 0.76rem;
  border-radius: 8px;
}


/* ==================== INTERACTIVE AMBIENT CONSTELLATION CANVAS ==================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 100vw;
  height: 100vh;
}

/* ==================== CYBER SECURITY GATE (AUTH MASTER SPLIT DECK) ==================== */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, rgba(6, 12, 28, 0.9) 0%, rgba(2, 4, 10, 0.97) 100%);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.auth-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Dynamic Ambient Blurred Backdrop */
.auth-ambient-backdrop {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center 25%;
  filter: blur(75px) brightness(0.2) saturate(2);
  transform: scale(1.12);
  z-index: 1;
  pointer-events: none;
  animation: ambientBackdropBreath 12s ease-in-out infinite alternate;
}

@keyframes ambientBackdropBreath {
  0% { transform: scale(1.12); filter: blur(75px) brightness(0.2) saturate(2); }
  100% { transform: scale(1.18) translateY(-12px); filter: blur(85px) brightness(0.26) saturate(2.4); }
}

.auth-ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(244, 63, 94, 0.16) 0%, rgba(56, 189, 248, 0.09) 45%, rgba(2, 4, 10, 0.94) 80%, #020409 100%);
  z-index: 2;
  pointer-events: none;
}

/* ==================== MASTER DUAL-DECK SPLIT PORTAL ==================== */
.auth-master-split-deck {
  width: 100%;
  max-width: 880px;
  height: 500px;
  min-height: 500px;
  background: linear-gradient(145deg, rgba(10, 15, 30, 0.96) 0%, rgba(5, 8, 18, 0.98) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: 0 30px 100px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 5;
  overflow: hidden;
  box-sizing: border-box;
  animation: authDeckEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-master-split-deck::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8 20%, #818cf8 50%, #f43f5e 80%, transparent);
  z-index: 10;
}

@keyframes authDeckEntrance {
  from { opacity: 0; transform: scale(0.97) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==================== LEFT DECK: CINEMATIC ANIME SHOWCASE ==================== */
.auth-art-showcase-panel {
  flex: 0 0 400px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top-left-radius: 23px;
  border-bottom-left-radius: 23px;
  background: radial-gradient(circle at 50% 35%, #180920 0%, #060a18 65%, #020409 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-art-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Hero Character Image with Gentle Radiant Glow */
.auth-art-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  position: absolute;
  inset: 0;
  z-index: 2;
  filter: contrast(1.04) saturate(1.08);
  animation: heroBreatheFloat 7s ease-in-out infinite alternate;
}

@keyframes heroBreatheFloat {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.02) translateY(-3px); }
}

/* Radiant Cosmic Aura */
.art-cosmic-aura {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.35) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 100%);
  filter: blur(45px);
  z-index: 1;
  pointer-events: none;
  animation: cosmicAuraPulse 4.5s ease-in-out infinite alternate;
}

@keyframes cosmicAuraPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

/* Floating Stardust Embers */
.art-embers-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.art-ember {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: emberFloat 5s ease-in-out infinite;
}

@keyframes emberFloat {
  0% { transform: translateY(110%) scale(0.4); opacity: 0; }
  25% { opacity: 0.9; transform: translateY(70%) scale(1); }
  50% { transform: translateY(35%) scale(0.9); }
  75% { opacity: 0.7; transform: translateY(15%) scale(0.7); }
  90% { opacity: 0; transform: translateY(5%) scale(0.3); }
  100% { transform: translateY(0%) scale(0.2); opacity: 0; }
}

.art-ember.e1 { width: 4px; height: 4px; left: 15%; background: #f43f5e; box-shadow: 0 0 8px #f43f5e; animation-duration: 4.8s; animation-delay: 0s; }
.art-ember.e2 { width: 5px; height: 5px; left: 35%; background: #fb7185; box-shadow: 0 0 10px #fb7185; animation-duration: 5.4s; animation-delay: 1.1s; }
.art-ember.e3 { width: 4px; height: 4px; left: 55%; background: #38bdf8; box-shadow: 0 0 8px #38bdf8; animation-duration: 4.2s; animation-delay: 0.4s; }
.art-ember.e4 { width: 5px; height: 5px; left: 75%; background: #f43f5e; box-shadow: 0 0 10px #f43f5e; animation-duration: 6.0s; animation-delay: 2.2s; }
.art-ember.e5 { width: 4px; height: 4px; left: 25%; background: #facc15; box-shadow: 0 0 8px #facc15; animation-duration: 4.6s; animation-delay: 1.8s; }
.art-ember.e6 { width: 6px; height: 6px; left: 65%; background: #e11d48; box-shadow: 0 0 12px #e11d48; animation-duration: 5.8s; animation-delay: 2.9s; }

/* Subtle Edge Soft Vignette */
.auth-art-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 16, 0.4) 0%, transparent 22%, transparent 68%, rgba(4, 7, 16, 0.85) 100%),
              linear-gradient(90deg, transparent 75%, rgba(4, 7, 16, 0.95) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Top Delicate Frosted Glass Pill */
.art-director-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(8, 12, 24, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.art-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.art-director-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #f1f5f9;
  font-family: 'Outfit', sans-serif;
}

.art-director-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
}

/* Bottom Cinema Caption */
.art-cinema-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(6, 10, 22, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.caption-model-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f43f5e;
  margin-bottom: 2px;
}

.caption-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

/* ==================== RIGHT DECK: AUTH & LICENSING ENGINE ==================== */
.auth-form-panel {
  flex: 1;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 4;
  border-top-right-radius: 23px;
  border-bottom-right-radius: 23px;
  background: rgba(4, 8, 18, 0.95);
  box-sizing: border-box;
}

/* Brand Emblem */
.auth-brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0 auto 6px auto;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.auth-gate-title {
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 2px 0;
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

.brand-gradient-txt {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-gate-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-weight: 400;
  text-align: center;
}

/* Segmented Control Tabs (Sliding Glass Glider) */
.auth-tabs {
  position: relative;
  display: flex;
  background: rgba(2, 5, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 12px;
}

.auth-tab-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(37, 99, 235, 0.3) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.auth-tab-btn {
  flex: 1;
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.auth-tab-btn:hover {
  color: #cbd5e1;
}

.auth-tab-btn.active {
  color: #ffffff;
}

.auth-tab-btn.active svg {
  stroke: #38bdf8;
}

/* Forms & Fields */
.auth-gate-form {
  display: flex;
  flex-direction: column;
}

.form-field-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.field-label {
  font-size: 0.71rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.auth-input-group {
  display: flex;
  align-items: center;
  background: rgba(3, 7, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.auth-input-group:focus-within {
  border-color: #38bdf8;
  background: rgba(7, 16, 34, 0.95);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.auth-input-icon {
  color: #64748b;
  display: flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.auth-input-group:focus-within .auth-input-icon {
  color: #38bdf8;
}

.auth-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  padding: 9px 0;
  font-family: inherit;
}

.auth-input-field::placeholder {
  color: #475569;
  font-size: 0.8rem;
}

.btn-toggle-pass {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-toggle-pass:hover {
  color: #38bdf8;
}

.auth-key-field {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-paste-key {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-paste-key:hover {
  color: #38bdf8;
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 14px;
}

.auth-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.76rem;
  cursor: pointer;
  user-select: none;
}

.auth-remember-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: rgba(3, 7, 16, 0.9);
  border: 1.2px solid rgba(56, 189, 248, 0.45);
  border-radius: 4px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s ease;
  margin: 0;
}

.auth-remember-label input[type="checkbox"]::before {
  content: "";
  width: 7px;
  height: 7px;
  transform: scale(0);
  transition: 0.15s transform ease-in-out;
  background-color: #38bdf8;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.auth-remember-label input[type="checkbox"]:checked {
  background: rgba(14, 165, 233, 0.25);
  border-color: #38bdf8;
}

.auth-remember-label input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Flagship Action Button */
.btn-auth-unlock {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 40%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  font-family: inherit;
  letter-spacing: 0.03em;
}

.btn-shimmer-sweep {
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 45px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  animation: btnLaserSweep 3.5s infinite;
  pointer-events: none;
}

@keyframes btnLaserSweep {
  0% { left: -60%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

.btn-arrow-icon {
  transition: transform 0.25s ease;
}

.btn-auth-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55), 0 0 20px rgba(124, 58, 237, 0.3);
  filter: brightness(1.08);
}

.btn-auth-unlock:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.btn-auth-unlock:active {
  transform: translateY(0);
}

/* Error message banner */
.auth-error-msg {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  text-align: left;
}

/* Luxury Developer Attribution & Admin Suite */
.auth-deck-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-python-luxury-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.dev-python-luxury-badge:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.dev-py-sparkle {
  color: #38bdf8;
  font-size: 0.72rem;
}

.dev-py-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.dev-py-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #38bdf8, #818cf8, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dev-py-sep {
  color: #475569;
  font-size: 0.65rem;
}

.dev-py-engine {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.auth-footer-action-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
}

.auth-status-note {
  color: #64748b;
}

.auth-dot-sep {
  color: #334155;
}

.auth-admin-link {
  color: #fcd34d;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-admin-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.brand-dev-tag {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Mobile Responsiveness for Auth Split Card */
@media (max-width: 860px) {
  .auth-master-split-deck {
    max-width: 440px;
    height: auto;
    min-height: auto;
    flex-direction: column;
    border-radius: 20px;
  }
  .auth-art-showcase-panel {
    display: none !important;
  }
  .auth-form-panel {
    padding: 28px 24px;
    border-radius: 20px;
  }
}

/* ==================== DYNAMIC AMBIENT GLOW & CYBER GRID ==================== */
.studio-ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.14;
}

.ambient-orb.orb-cyan {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #00f2fe 0%, #2563eb 100%);
  top: -100px;
  left: -80px;
  animation: driftOrb1 16s ease-in-out infinite alternate;
}

.ambient-orb.orb-violet {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #8b5cf6 0%, #ec4899 100%);
  bottom: -120px;
  right: -80px;
  animation: driftOrb2 20s ease-in-out infinite alternate;
}

.ambient-orb.orb-crimson {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #f43f5e 0%, #8b5cf6 100%);
  top: 35%;
  left: 45%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  animation: driftOrb3 18s ease-in-out infinite alternate;
}

@keyframes driftOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 80px) scale(1.15); }
}

@keyframes driftOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, -60px) scale(1.2); }
}

@keyframes driftOrb3 {
  0% { transform: translate(-50%, -50%) scale(0.9); }
  100% { transform: translate(-45%, -40%) scale(1.25); }
}

.cyber-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

/* ==================== FULL WEBSITE DYNAMIC ANIMATIONS ==================== */

/* 1. Header Navigation Bar Dynamic Shimmer */
.top-nav-bar {
  position: relative;
}

.top-nav-bar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4) 30%, rgba(244, 63, 94, 0.4) 70%, transparent);
  animation: navLineShimmer 8s linear infinite;
}

@keyframes navLineShimmer {
  0% { filter: hue-rotate(0deg); opacity: 0.6; }
  50% { filter: hue-rotate(60deg); opacity: 1; }
  100% { filter: hue-rotate(0deg); opacity: 0.6; }
}

.brand-icon-pulse {
  position: relative;
}

.brand-icon-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  animation: brandPulseRing 2.4s ease-out infinite;
}

@keyframes brandPulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* 2. Main Generation Button Supercharged Animation */
.btn-generate-main {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00f2fe 0%, #2563eb 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  animation: btnGradientFlow 6s ease infinite;
}

@keyframes btnGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-generate-main::before {
  content: '';
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 45px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  animation: btnBeamSweep 3.2s infinite;
  pointer-events: none;
}

@keyframes btnBeamSweep {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

/* 3. Progress Bar Candy-Stripe Moving Gradient */
.progress-fill {
  background: linear-gradient(90deg, #00f2fe, #3b82f6, #8b5cf6, #00f2fe);
  background-size: 200% 100%;
  animation: laserProgressStripes 2s linear infinite;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}

@keyframes laserProgressStripes {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* 4. Terminal Stream Entries Dynamic Slide-In */
.terminal-line {
  animation: terminalLineSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background 0.15s ease;
}

.terminal-line:hover {
  background: rgba(56, 189, 248, 0.08);
}

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

/* 5. Studio Cards Dynamic Hover Bloom */
.studio-card {
  position: relative;
}

.studio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.studio-card:hover::after {
  opacity: 1;
}

/* 6. Gallery Cards 3D Elevation & Play Icon Pulse */
.gallery-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

.gallery-card-thumb img {
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-thumb img {
  transform: scale(1.06);
}

/* 7. Modal Windows Cinematic Zoom In */
.modal-overlay {
  animation: modalBackdropFadeIn 0.25s ease-out;
}

.modal-card {
  animation: modalCardZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes modalCardZoomIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


.auth-admin-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* User Session Badge in Header */
.user-session-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.user-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ==================== MODALS & OVERLAYS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000000;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-body {
  padding: 22px 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: #ffffff;
}

/* ==================== TOP NAV ADMIN BUTTON ==================== */
.btn-top-admin {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-top-admin:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

/* ==================== ADMIN PORTAL MODAL ==================== */
.modal-card-admin {
  max-width: 620px !important;
  width: 94% !important;
  background: radial-gradient(circle at 50% 0%, #172442 0%, #0c1426 65%, #050914 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.15) !important;
}

.admin-create-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 6px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.admin-section-header strong {
  font-size: 0.92rem;
  color: #ffffff;
}

.admin-subtext {
  font-size: 0.74rem;
  color: #94a3b8;
}

.admin-create-inputs {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
}

@media (max-width: 600px) {
  .admin-create-inputs {
    grid-template-columns: 1fr;
  }
}

.admin-input {
  background: #060b17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.admin-input:focus {
  border-color: #38bdf8;
  background: #091325;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.admin-search-input {
  background: #060b17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  width: 140px;
  outline: none;
  transition: all 0.2s ease;
}

.admin-search-input:focus {
  border-color: #38bdf8;
  width: 170px;
}

.admin-feedback {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  animation: fadeIn 0.2s ease;
}

.admin-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.admin-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* License List Rows */
.admin-license-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  gap: 12px;
}

.admin-license-row:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.lic-info-block {
  flex: 1;
  min-width: 0;
}

.lic-top-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-license-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  word-break: break-all;
}

.lic-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lic-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.lic-status-badge.suspended {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.admin-license-meta {
  font-size: 0.73rem;
  color: #94a3b8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-dot {
  color: #475569;
}

.lic-actions-block {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-lic-action {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-lic-action.copy {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-lic-action.copy:hover, .btn-lic-action.copy.copied {
  background: #0284c7;
  color: #ffffff;
}

.btn-lic-action.toggle {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.btn-lic-action.toggle:hover {
  background: rgba(148, 163, 184, 0.25);
  color: #ffffff;
}

.btn-lic-action.delete {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-lic-action.delete:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Master Admin Card */
.admin-user-card {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-user-avatar {
  font-size: 1.2rem;
}

.badge-role {
  font-size: 0.7rem;
  color: #34d399;
  margin-left: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

