@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-base: #07080c;
  --bg-surface: #0d0f17;
  --bg-card: rgba(18, 21, 32, 0.7);
  --bg-card-hover: rgba(26, 30, 46, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.4);

  --accent-violet: #8b5cf6;
  --accent-violet-glow: rgba(139, 92, 246, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 35px -5px rgba(139, 92, 246, 0.3);
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ── Container ── */
.app-container {
  width: 95%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ── Header ── */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(13, 15, 23, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-logo svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title span {
  background: linear-gradient(90deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  border-radius: var(--radius-full);
}

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

.engine-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseAnimation 2s infinite ease-in-out;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ── Navigation Tabs ── */
.nav-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(18, 21, 32, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--border-glow);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.tab-btn.active svg {
  transform: scale(1.1);
  stroke: #c4b5fd;
}

/* ── View Containers ── */
.view-panel {
  display: none;
  animation: fadeInView 0.3s ease-out forwards;
}

.view-panel.active {
  display: block;
}

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

/* ── Cards & Panels ── */
.card-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ── Drop Zone ── */
.drop-zone {
  border: 2px dashed rgba(139, 92, 246, 0.35);
  background: rgba(13, 15, 23, 0.6);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.drop-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glow);
}

.drop-icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-violet);
}

.drop-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── File Preview Strip ── */
.file-preview-strip {
  display: none;
  background: rgba(13, 15, 23, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.file-preview-strip.active {
  display: flex;
}

.file-info-group {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.file-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-type-icon svg {
  width: 22px;
  height: 22px;
  stroke: #c4b5fd;
}

.file-details {
  overflow: hidden;
}

.file-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.file-meta-tags {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #d1d5db;
}

.tag-badge.accent {
  background: rgba(6, 182, 212, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-remove-file {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-file:hover {
  color: var(--accent-rose);
  border-color: var(--accent-rose);
}

/* ── Mode Selection Grid ── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.mode-card {
  border: 1px solid var(--border-subtle);
  background: rgba(13, 15, 23, 0.7);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.mode-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(18, 21, 32, 0.85);
  transform: translateY(-2px);
}

.mode-card.selected {
  border-color: var(--accent-violet);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.08));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.mode-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.mode-badge.lossless {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mode-badge.deep {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.mode-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mode-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.mode-features {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mode-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d1d5db;
}

.mode-feat-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-emerald);
  flex-shrink: 0;
}

/* ── Settings Sub-Panel ── */
.settings-drawer {
  background: rgba(13, 15, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.select-control, .input-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #0b1120 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-main);
  padding: 10px 40px 10px 14px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.select-control:hover, .input-control:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background-color: #0e172a;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 10px rgba(99, 102, 241, 0.25);
}

.select-control:focus, .input-control:focus {
  border-color: #6366f1;
  background-color: #0e172a;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 16px rgba(99, 102, 241, 0.4);
}

.select-control option {
  background: #0b1120;
  color: #f8fafc;
  padding: 12px 14px;
  font-size: 13px;
}

/* ── Ultra-Sleek Custom Dropdowns (Rounded Glassmorphism) ── */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b1120;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  color: #f8fafc;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-select-trigger:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: #0e172a;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: #6366f1;
  background: #0e172a;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 16px rgba(99, 102, 241, 0.4);
}

.custom-select-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.custom-select-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* Dropdown Menu Popup */
.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(460px, 90vw);
  z-index: 9999;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(99, 102, 241, 0.25);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: #6366f1 rgba(11, 17, 32, 0.95);
}

.custom-select-wrapper.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select-menu::-webkit-scrollbar {
  width: 5px;
}
.custom-select-menu::-webkit-scrollbar-track {
  background: rgba(11, 17, 32, 0.9);
  border-radius: 4px;
}
.custom-select-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #38bdf8);
  border-radius: 4px;
}

/* Option Items */
.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-select-option:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #ffffff;
  transform: translateX(3px);
}

.custom-select-option.selected {
  background: rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  font-weight: 600;
}

.custom-opt-check {
  opacity: 0;
  color: #38bdf8;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.custom-select-option.selected .custom-opt-check {
  opacity: 1;
}

/* Custom Sleek Number Inputs (Removes native spinner up/down arrows) */
.studio-num-input::-webkit-outer-spin-button,
.studio-num-input::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.studio-num-input,
input[type=number].studio-num-input {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  background: #0b1120 !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--font-mono), monospace !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  text-align: center;
}

.studio-num-input:hover,
input[type=number].studio-num-input:hover {
  border-color: rgba(99, 102, 241, 0.6) !important;
  background: #0e172a !important;
}

.studio-num-input:focus,
input[type=number].studio-num-input:focus {
  border-color: #6366f1 !important;
  background: #0e172a !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 12px rgba(99, 102, 241, 0.35) !important;
}

/* ── Action Buttons ── */
.action-banner {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-violet), #6d28d9);
  border: none;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.55);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.btn-primary.whatsapp {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-primary.whatsapp:hover:not(:disabled) {
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
}

/* ════════════════════════════════════════════════
   CYBERPUNK TELEMETRY TERMINAL
   ════════════════════════════════════════════════ */
.cyber-terminal-card {
  display: none;
  background: #080a10;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(99, 102, 241, 0.15);
}

.cyber-terminal-card.active {
  display: block;
}

.cyber-term-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  padding: 10px 16px;
}

.term-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.term-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.dot-green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }

.term-title {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  gap: 8px;
}

.term-prompt {
  color: #64748b;
}

.term-cmd {
  color: #38bdf8;
  font-weight: 600;
}

.term-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.term-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.5px;
}

.term-btn-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-btn-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Real-Time Telemetry HUD Grid */
.telemetry-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 18px 12px;
  background: rgba(10, 14, 23, 0.7);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.hud-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 8px;
  padding: 10px 14px;
}

.hud-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 4px;
}

.hud-stat-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.hud-stat-val.cyan { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }
.hud-stat-val.emerald { color: #34d399; text-shadow: 0 0 10px rgba(52, 211, 153, 0.4); }
.hud-stat-val.violet { color: #c084fc; text-shadow: 0 0 10px rgba(192, 132, 252, 0.4); }
.hud-stat-val.amber { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }

.cyber-progress-wrap {
  padding: 12px 18px;
  background: rgba(13, 17, 28, 0.5);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.cyber-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-time-counter {
  font-family: var(--font-mono);
  color: #94a3b8;
}

/* Console Screen */
.cyber-console-screen {
  position: relative;
  background: #030508;
}

.terminal-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 2;
}

.console-box {
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
  height: 160px;
  max-height: 220px;
  overflow-y: auto;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: #6366f1 rgba(11, 17, 32, 0.95);
}

/* Custom Cyberpunk Terminal Scrollbar */
.console-box::-webkit-scrollbar {
  width: 6px;
}
.console-box::-webkit-scrollbar-track {
  background: rgba(11, 17, 32, 0.95);
  border-radius: 4px;
}
.console-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1 0%, #06b6d4 100%);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}
.console-box::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #818cf8 0%, #22d3ee 100%);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.9);
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 15, 29, 0.7);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #38bdf8);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #818cf8, #06b6d4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.log-line {
  margin-bottom: 4px;
}

.log-tag {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  margin-right: 6px;
  display: inline-block;
}

.log-tag.cyan { background: rgba(6, 182, 212, 0.2); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.4); }
.log-tag.emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.log-tag.purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.log-tag.amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }

.terminal-ticker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e2e8f0;
}

.ticker-pulse {
  color: #10b981;
  animation: pulseAnimation 1s infinite;
}

/* ── Result Box ── */
.result-card {
  display: none;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

.result-card.active {
  display: block;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.result-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-emerald);
}

.result-title {
  font-size: 18px;
  font-weight: 800;
  color: #34d399;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: #051b11;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-download:hover {
  background: #34d399;
  transform: translateY(-1px);
}

/* ── Media Inspector View ── */
.inspector-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: rgba(13, 15, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric-card-lbl {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-card-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-card-val.good { color: var(--accent-emerald); }
.metric-card-val.warning { color: var(--accent-amber); }
.metric-card-val.bad { color: var(--accent-rose); }

.diag-boxes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.diag-box {
  background: rgba(13, 15, 23, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 20px;
}

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

.diag-title {
  font-size: 16px;
  font-weight: 700;
}

.diag-score {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.diag-score.good { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.diag-score.warning { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.diag-score.bad { background: rgba(244, 63, 94, 0.18); color: #fb7185; }

.diag-issue-list, .diag-rec-list {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}

.diag-issue-list li {
  color: #fb7185;
  margin-left: 18px;
}

.diag-rec-list li {
  color: #38bdf8;
  margin-left: 18px;
}

/* ── Interactive Comparison Slider ── */
.compare-stage {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  user-select: none;
  aspect-ratio: 9 / 16;
  max-height: 600px;
}

.compare-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.compare-layer.before {
  filter: blur(2px);
  background: #1e1e24;
}

.compare-layer.after {
  clip-path: polygon(0 0, var(--split-pos, 50%) 0, var(--split-pos, 50%) 100%, 0 100%);
  background: #12141c;
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos, 50%);
  width: 2px;
  background: #ffffff;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--split-pos, 50%);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.compare-tag {
  position: absolute;
  bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.compare-tag.before-tag {
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fb7185;
}

.compare-tag.after-tag {
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #34d399;
}

/* ── Secret Guides Cards ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.guide-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-violet);
  margin-bottom: 8px;
}

.guide-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-step-item {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #d1d5db;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-navbar {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .header-actions {
    justify-content: space-between;
  }
  .diag-boxes-row {
    grid-template-columns: 1fr;
  }
  .action-banner {
    flex-direction: column;
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ── TikTok Link Analytics & Bot Embed Card ── */
.url-input-container {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.url-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 15, 23, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.url-input-wrap:focus-within {
  border-color: var(--accent-violet);
  box-shadow: 0 0 15px var(--accent-violet-glow);
}

.url-input-wrap svg {
  stroke: var(--accent-violet);
  flex-shrink: 0;
}

.url-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  padding: 8px 0;
}

.url-input-field::placeholder {
  color: var(--text-dim);
}

.btn-paste {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-paste:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.quick-chip {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent-violet);
}

.analytics-loading {
  text-align: center;
  padding: 36px 20px;
}

.pulse-ring {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 3px solid rgba(6, 182, 212, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.analytics-error {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-md);
  color: #fb7185;
  font-size: 13.5px;
}

/* ── Discord / Telegram Bot Embed Card ── */
.bot-embed-wrapper {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.bot-embed-card {
  width: 100%;
  max-width: 580px;
  background: #0d111a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  font-family: var(--font-main);
  animation: fadeInView 0.3s ease-out;
}

.embed-top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.embed-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.embed-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.4);
}

.embed-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.embed-author-name {
  color: #f1f5f9;
}

.embed-author-handle {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.embed-date-line {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.embed-title-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.embed-title-layout {
  display: flex;
  gap: 12px;
  align-items: center;
}

.embed-thumb-wrap {
  position: relative;
  width: 100px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: none;
}

.embed-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.embed-duration-tag {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.embed-title-content {
  flex: 1;
  min-width: 0;
}

.embed-video-title {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.embed-audio-title {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.embed-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.embed-section-header {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.embed-item-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #cbd5e1;
}

.embed-item b {
  color: #f8fafc;
}

.engine-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.engine-badge.standard {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.engine-badge.maid {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.5);
}

.engine-badge.rtx {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.quality-highlight {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #38bdf8;
}

.embed-categories-list {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.6;
}

.diagnostic-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 16px;
  font-size: 13px;
}

.diag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}

.diag-reasons {
  margin-left: 18px;
  color: #fde68a;
  line-height: 1.5;
}

.diag-solution {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(245, 158, 11, 0.25);
  color: #38bdf8;
  font-weight: 600;
}

.embed-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════
   INTERACTIVE 9:16 CANVAS STUDIO
   ════════════════════════════════════════════════ */
.studio-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-top: 20px;
  align-items: start;
}

.phone-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Realistic Smartphone Chassis */
.phone-chassis {
  position: relative;
  width: 280px;
  padding: 10px;
  background: linear-gradient(145deg, #2b303d 0%, #151821 50%, #202531 100%);
  border-radius: 46px;
  box-shadow: 
    0 25px 55px -12px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.6);
  user-select: none;
}

/* Hardware Side Buttons */
.phone-hw-btn {
  position: absolute;
  background: #333a4c;
  border-radius: 3px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.phone-btn-mute {
  left: -3px;
  top: 75px;
  width: 3.5px;
  height: 26px;
}

.phone-btn-vol-up {
  left: -3px;
  top: 116px;
  width: 3.5px;
  height: 44px;
}

.phone-btn-vol-down {
  left: -3px;
  top: 170px;
  width: 3.5px;
  height: 44px;
}

.phone-btn-power {
  right: -3px;
  top: 126px;
  width: 3.5px;
  height: 62px;
}

/* Phone Screen (OLED Display Area) */
.phone-screen {
  position: relative;
  width: 260px;
  height: 490px; /* Strict modern 9:17 aspect ratio with 9:16 core viewport */
  background: #000;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.phone-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Dynamic Island / Camera Notch */
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.phone-notch-speaker {
  width: 30px;
  height: 3px;
  background: #1e2433;
  border-radius: 2px;
}

.phone-notch-lens {
  width: 8px;
  height: 8px;
  background: #070a12;
  border-radius: 50%;
  border: 1.5px solid #1c2538;
  box-shadow: inset 0 0 2px #06b6d4;
}

/* Subtle Screen Glare Sheen */
.phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 35%, transparent 60%);
  z-index: 5;
  pointer-events: none;
}

/* Home Indicator Bar */
.phone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
}

/* Background Layer (Blurred Video) */
.mockup-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.65);
  transform: scale(1.15); /* prevents white blur edges */
  z-index: 1;
}

/* Foreground Layer (Positioned & Scaled Video) */
.mockup-fg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.04s ease-out;
}

.mockup-fg-video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Rotate 3D Intro Video Layer */
.mockup-intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.mockup-intro-video.visible {
  opacity: 1;
  display: block;
}

/* Intro Transition FX Overlay */
.mockup-transition-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-transition-overlay.flash-white {
  background: #ffffff;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.95);
}

.mockup-transition-overlay.dip-black {
  background: #000000;
}

.phone-intro-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.phone-intro-badge.playing-intro {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  animation: pulse-intro-badge 1s infinite alternate;
}

@keyframes pulse-intro-badge {
  from { opacity: 0.85; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.04); }
}

/* Studio Controls */
.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-controls .control-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.control-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.btn-text-action {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-text-action:hover {
  color: #a5b4fc;
}

.studio-range {
  accent-color: #6366f1;
  cursor: pointer;
}

.preset-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.6);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #fff;
  border-color: #6366f1;
}

.pill-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-color: #6366f1;
}

.pill-btn.mode-pill {
  padding: 8px 14px;
  font-size: 12px;
}

/* ════════════════════════════════════════════════
   PHONE PLAYBACK TOOLBAR
   ════════════════════════════════════════════════ */
.phone-playback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 290px;
  padding: 8px 16px;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 0 16px rgba(99, 102, 241, 0.2);
  margin-top: 8px;
}

.phone-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.7), inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.phone-playback-time {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.phone-playback-time #ttPlayCurrentTime {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.phone-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.phone-tool-btn {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.phone-tool-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.phone-tool-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.badge-subtle {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  color: #a5b4fc;
}

/* ════════════════════════════════════════════════
   TIKTOK-STYLE VISUAL TIMELINE TRIMMER
   ════════════════════════════════════════════════ */
.timeline-visual-wrap {
  margin-top: 8px;
  user-select: none;
}

.timeline-visual-track {
  position: relative;
  width: 100%;
  height: 54px;
  background: #090d16;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.timeline-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.12) 0px,
    rgba(99, 102, 241, 0.12) 12px,
    rgba(6, 182, 212, 0.05) 12px,
    rgba(6, 182, 212, 0.05) 24px
  );
  opacity: 0.6;
}

.timeline-dim-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(1px);
  z-index: 2;
  pointer-events: none;
  transition: width 0.04s linear;
}

.timeline-dim-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(1px);
  z-index: 2;
  pointer-events: none;
  transition: width 0.04s linear;
}

.timeline-highlight-window {
  position: absolute;
  top: 0;
  left: 0%;
  width: 37.5%;
  height: 100%;
  border-top: 3px solid #06b6d4;
  border-bottom: 3px solid #06b6d4;
  background: rgba(6, 182, 212, 0.14);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: left 0.04s linear, width 0.04s linear;
}

.trim-handle {
  width: 18px;
  height: 100%;
  background: linear-gradient(180deg, #06b6d4, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 5;
  transition: filter 0.15s ease;
  flex-shrink: 0;
}

.trim-handle:hover {
  filter: brightness(1.25);
}

.trim-handle-left {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.trim-handle-right {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.handle-bar {
  width: 2.5px;
  height: 20px;
  background: #ffffff;
  border-radius: 2px;
}

.trim-drag-area {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: grab;
  color: #fff;
  user-select: none;
}

.trim-drag-area:active {
  cursor: grabbing;
}

.drag-grip-icon {
  font-size: 14px;
  color: #38bdf8;
  letter-spacing: 2px;
  line-height: 1;
}

.drag-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #e0f2fe;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  left: 0%;
  width: 2px;
  height: 100%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  z-index: 6;
  pointer-events: none;
  transition: left 0.05s linear;
}

.playhead-knob {
  position: absolute;
  top: -1px;
  left: -5px;
  width: 12px;
  height: 10px;
  background: #f43f5e;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.timeline-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
  padding: 0 4px;
}

/* ════════════════════════════════════════════════
   RESPONSIVE DESIGN & MOBILE OPTIMIZATION
   ════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .studio-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .studio-controls {
    width: 100%;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    width: 100%;
    padding: 12px 10px 40px;
  }
  .top-navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }
  .brand-group {
    justify-content: space-between;
    width: 100%;
  }
  .auth-nav-container {
    width: 100%;
  }
  .nav-user-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-user-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .nav-tabs {
    display: flex;
    gap: 8px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex: 0 0 auto;
    min-width: auto;
    font-size: 13px;
    padding: 9px 14px;
    white-space: nowrap;
  }
  .mode-card {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .mode-badge {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 8px;
    align-self: flex-start;
  }
  .mode-title {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.3;
    padding-right: 0 !important;
  }
  .mode-desc {
    font-size: 12px;
    line-height: 1.5;
  }
  .mode-features {
    margin-top: 10px;
    gap: 6px;
  }
  .mode-feat-item {
    font-size: 11px;
  }
  .card-panel {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .timeline-trimmer .trim-inputs-row {
    flex-direction: column;
    gap: 8px;
  }
  .phone-chassis {
    transform: scale(0.92);
    transform-origin: top center;
  }
  .phone-mockup-wrapper {
    margin-bottom: -20px;
  }
  .file-preview-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .file-info-group {
    width: 100%;
  }
  .btn-remove-file {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .phone-chassis {
    transform: scale(0.82);
    transform-origin: top center;
  }
  .phone-mockup-wrapper {
    margin-bottom: -50px;
  }
  .preset-pills-row, .preset-pills {
    flex-wrap: wrap;
  }
  .btn-icon-nav {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* ════════════════════════════════════════════════
   LIVE STREAM TELEMETRY & FRAME MATRIX MODAL
   ════════════════════════════════════════════════ */
.term-btn-stream {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.term-btn-stream:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.cyber-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.cyber-modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  background: rgba(10, 15, 29, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cyber-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.cyber-modal-title {
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.8px;
}

.cyber-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cyber-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.cyber-modal-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
}

.cyber-modal-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.cyber-modal-stats-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.modal-stat-item {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  color: #94a3b8;
}

.modal-stat-item strong {
  color: #38bdf8;
  margin-left: 4px;
}

.cyber-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: rgba(5, 9, 20, 0.95);
}

.raw-stream-console {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 260px;
  max-height: 460px;
  overflow-y: auto;
}

.raw-stream-console .raw-log-line {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.raw-stream-console .raw-log-line.frame {
  color: #38bdf8;
}

.raw-stream-console .raw-log-line.info {
  color: #94a3b8;
}

.raw-stream-console .raw-log-line.warn {
  color: #facc15;
}

.cyber-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Settings Modal Styles ── */
.settings-modal-card {
  max-width: 680px;
}

.settings-status-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.status-indicator-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.status-indicator-dot.online {
  background: #10b981;
  box-shadow: 0 0 12px #10b981, 0 0 20px rgba(16, 185, 129, 0.5);
  animation: pulse-green 2s infinite;
}

.status-indicator-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

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

.status-content {
  flex: 1;
}

.status-heading {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.status-details {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 10px;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-chip {
  font-size: 11px;
  font-family: var(--font-mono), monospace;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.badge-chip.ai-model {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.badge-chip.hw-accel {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.badge-chip.builtin {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.settings-info-box {
  background: rgba(30, 41, 59, 0.5);
  border-left: 3px solid #38bdf8;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.settings-info-box .info-icon {
  font-size: 16px;
  line-height: 1.4;
}

.settings-info-box .info-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.settings-info-box .info-text strong {
  color: #f1f5f9;
}

.settings-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

.settings-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.settings-toast.success {
  border-color: #10b981;
  color: #a7f3d0;
}

.settings-toast.warning {
  border-color: #f59e0b;
  color: #fde68a;
}

.settings-toast.error {
  border-color: #ef4444;
  color: #fecaca;
}

/* ── Auth & Tickets UI ── */
.auth-nav-container {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.btn-nav-login {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  border: none;
  cursor: pointer;
}

.btn-nav-login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.nav-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #8b5cf6;
}

.nav-user-details {
  display: flex;
  flex-direction: column;
}

.nav-user-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-vip {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
}

.badge-free {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.nav-user-credits {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.btn-icon-logout {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.btn-icon-logout:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ── Cyber Modal Foundation ── */
.cyber-modal-backdrop,
.cyber-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cyber-modal-backdrop.active,
.cyber-modal-overlay.active {
  display: flex !important;
}

.cyber-modal-card {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cyberModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.cyber-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyber-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.cyber-modal-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.cyber-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.cyber-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

/* Auth Modal Specifics */
.auth-modal-card {
  max-width: 420px;
  width: 90%;
  border-radius: 16px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.15);
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.btn-telegram {
  background: #24a1de;
  color: #fff;
  box-shadow: 0 4px 15px rgba(36, 161, 222, 0.35);
}

.btn-telegram:hover {
  background: #1b8ec7;
  transform: translateY(-1px);
}

/* ── Admin Panel Styles ── */
.badge-admin {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.adm-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
}

.adm-stat-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.adm-stat-val {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.admin-tab-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.adm-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.adm-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.adm-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}

.adm-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.adm-input, .adm-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.adm-input:focus, .adm-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.btn-adm-save {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-adm-save:hover {
  background: #10b981;
  color: #fff;
}

.btn-adm-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-adm-delete:hover {
  background: #ef4444;
  color: #fff;
}

.badge-action {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.adm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.adm-toast-success {
  border-left: 4px solid #10b981;
}

.adm-toast-error {
  border-left: 4px solid #ef4444;
}

.adm-toast-info {
  border-left: 4px solid #8b5cf6;
}

