/**
 * LUI PDF STUDIO — Stylesheet
 * Cyber HUD & Glassmorphism Design System
 * 100% Client-Side Privacy Suite by Lui Visual (luifierey.my.id)
 */

:root {
  --bg-main: #020617;
  --bg-card: rgba(10, 15, 30, 0.85);
  --bg-card-hover: rgba(15, 23, 42, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.4);
  --neon-green: #00ff88;
  --neon-green-glow: rgba(0, 255, 136, 0.35);
  --neon-red: #f43f5e;
  --neon-purple: #a855f7;
  --text-main: #f8fafc;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-hud: 'Plus Jakarta Sans', sans-serif;
  --font-logo: 'Orbitron', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  height: 100%;
}

html, body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Cyber Ambient Grid & Floating Glowing Orbs */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.bg-orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22) 0%, rgba(244, 63, 94, 0.07) 40%, transparent 70%);
  top: -100px;
  left: -100px;
}

.bg-orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(0, 240, 255, 0.06) 40%, transparent 70%);
  bottom: 50px;
  right: -150px;
}

.bg-orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 70%);
  top: 40%;
  right: 25%;
}

@media (max-width: 768px) {
  .hud-nav, .glassmorphism, .hud-bottom-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 15, 30, 0.95) !important;
  }
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 50px, 0) scale(0.95); }
}

/* Glassmorphism Utility */
.glassmorphism {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
}

/* HUD Navigation Bar */
.hud-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.75));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.95));
}

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

.brand-title {
  font-family: var(--font-logo, 'Orbitron', sans-serif);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  display: block;
  white-space: nowrap;
  color: #ffffff;
  line-height: 1.2;
}

.text-gradient {
  color: var(--neon-cyan, #00f0ff);
  background: none;
  -webkit-text-fill-color: initial;
  font-weight: 900;
}

.brand-sub {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--neon-cyan, #00f0ff);
  display: block;
  white-space: nowrap;
  margin-top: 2px;
}

.brand-sub-author {
  color: #ffffff;
}

/* Nav Actions (Right) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tool Dropdown Menu */
.tool-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.tool-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 13, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0f4fc;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 38px;
}

.tool-dropdown-btn:hover, .tool-dropdown-wrap.open .tool-dropdown-btn {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  color: #fff;
}

.tool-dropdown-btn .dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}

.tool-dropdown-wrap.open .dropdown-arrow {
  transform: rotate(180deg);
}

.tool-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: rgba(10, 13, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
  z-index: 1000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-dropdown-wrap.open .tool-dropdown-menu {
  display: block;
}

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

.dropdown-header {
  padding: 6px 12px 8px;
  font-size: 0.65rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 800;
  color: var(--text-dim, #8e9bb8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #f0f4fc;
  transition: all 0.18s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(3px);
}

.dropdown-item.active {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #fff;
}

.dropdown-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--neon-cyan) !important;
}

.dropdown-item-title {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.dropdown-item-desc {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.68rem;
  color: var(--text-muted, #8e9bb8);
}

/* Support & Back Buttons */
.hud-btn-support, .btn-sawer-nav, .btn-support-nav {
  height: 38px;
  background: rgba(0, 240, 255, 0.08);
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  text-decoration: none;
}
.hud-btn-support i, .btn-sawer-nav i, .btn-support-nav i {
  color: var(--neon-cyan) !important;
  transition: color 0.2s ease;
}
.hud-btn-support:hover, .btn-sawer-nav:hover, .btn-support-nav:hover {
  background: var(--neon-cyan);
  color: #07090e;
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  transform: translateY(-1px);
}
.hud-btn-support:hover i, .btn-sawer-nav:hover i, .btn-support-nav:hover i {
  color: #07090e !important;
}

.btn-back-main, .btn-nav-back {
  height: 38px;
  width: 38px;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-back-main:hover, .btn-nav-back:hover {
  background: var(--neon-cyan);
  color: #07090e;
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.btn-back-main:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

/* Main Container (Flexbox Sticky Footer) */
.main-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 30px 24px 40px 24px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero-section {
  margin-bottom: 20px;
}

.text-center {
  text-align: center;
}

.hero-title {
  font-family: var(--font-hud);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sub-Tool Navigation Selector Bar */
.tool-tabs-section {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.tool-tabs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(10, 15, 30, 0.9);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #94a3b8;
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.tab-btn.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(0, 240, 255, 0.2));
  border-color: var(--border-glow);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.tab-btn i {
  font-size: 0.9rem;
}

/* Dropzone Section */
.dropzone-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px auto;
}

.dropzone-card {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 30px;
  text-align: center;
  border: 2px dashed rgba(244, 63, 94, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(10, 15, 30, 0.7);
}

.dropzone-card:hover, .dropzone-card.dragover {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.06);
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.25);
  transform: translateY(-2px);
}

.file-input-hidden {
  display: none;
}

.dropzone-icon-wrap {
  margin-bottom: 18px;
}

.dropzone-icon {
  font-size: 3.2rem;
  color: #f43f5e;
  filter: drop-shadow(0 0 14px rgba(244, 63, 94, 0.5));
}

.dropzone-title {
  font-family: var(--font-hud);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 8px;
}

.dropzone-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-select-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.45);
  transition: all 0.25s ease;
}

.btn-select-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.7);
}

.dropzone-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
}

.text-cyan { color: var(--neon-cyan) !important; }
.text-yellow { color: #f59e0b !important; }
.text-green { color: var(--neon-green) !important; }

.clipboard-hint {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #64748b;
}

.clipboard-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #e2e8f0;
}

/* Editor Workspace */
.editor-workspace {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

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

/* Stage Panel (Left) */
.stage-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage-card {
  padding: 16px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 30, 0.85);
}

/* Workspace Header */
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.info-title {
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.info-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

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

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.action-btn.btn-danger {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
}

.action-btn.btn-danger:hover {
  background: rgba(244, 63, 94, 0.15);
}

/* Page Cards Grid */
.pages-scroll-area {
  flex: 1;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 6px;
}

.pages-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.pages-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Individual Page Card */
.page-card {
  position: relative;
  background: #0f1322;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.22s ease;
  user-select: none;
}

.page-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.page-card.dragging {
  opacity: 0.4;
  border-color: var(--neon-cyan);
}

.page-card.drag-over {
  border-color: #f43f5e;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.page-thumbnail-wrap {
  width: 100%;
  background: #050811;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-thumbnail-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.page-thumbnail-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.page-num-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.page-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.page-btn.btn-delete:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
}

.workspace-footer-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #64748b;
  padding-top: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Sidebar Panel (Right) */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.sidebar-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.sidebar-title {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.mode-options-block {
  display: none;
}

.mode-options-block.active {
  display: block;
}

.panel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.mt-2 { margin-top: 8px; }

.option-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.stat-row strong {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

/* Split Mode Radios */
.split-mode-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-label:hover, .radio-label.active {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.4);
}

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-content strong {
  font-size: 0.8rem;
  color: #fff;
}

.radio-content span {
  font-size: 0.7rem;
  color: #64748b;
}

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

.input-sub-label {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cyber-text-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.cyber-text-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.input-hint {
  font-size: 0.68rem;
  color: #64748b;
}

/* Setting Items & Chips */
.setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.chips-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #cbd5e1;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.chip-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* Compression Pills */
.compress-pills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compress-level-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compress-level-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.compress-level-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.level-title {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.level-desc {
  font-size: 0.68rem;
  color: #64748b;
}

/* Primary Execution Button */
.primary-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.btn-execute-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f43f5e, #00f0ff);
  border: none;
  border-radius: 12px;
  color: #020617;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
  transition: all 0.25s ease;
}

.btn-execute-primary:hover {
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.sub-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-sub {
  padding: 9px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #cbd5e1;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

/* Unified Bottom Bar */
.hud-bottom-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  width: 100%;
  border-radius: 20px 20px 0 0;
  border-bottom: none;
  border-left: none;
  border-right: none;
  margin-top: auto;
}

.bottom-bar-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bottom-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.brand-name {
  color: #cbd5e1;
}

.brand-divider {
  color: #475569;
}

.brand-suite {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.3);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Full Page Preview Lightbox Modal */
.page-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.preview-modal-container {
  position: relative;
  z-index: 1;
  width: 94vw;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 30, 0.96);
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
}

.preview-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hud);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.preview-filename-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.modal-tool-btn, .modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.modal-tool-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  color: #fff;
}

.modal-tool-btn.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: var(--neon-red);
  color: #fff;
}

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

.preview-modal-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 60px;
  min-height: 380px;
  max-height: 72vh;
  overflow: hidden;
  background: #030712;
}

.preview-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 70vh;
}

#previewModalImg {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s ease;
}

.preview-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.preview-nav-btn:hover:not(:disabled) {
  background: var(--neon-cyan);
  color: #020617;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  transform: translateY(-50%) scale(1.08);
}

.preview-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.preview-nav-btn.prev-btn { left: 14px; }
.preview-nav-btn.next-btn { right: 14px; }

.preview-modal-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  text-align: center;
}

.preview-nav-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.preview-nav-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #cbd5e1;
}

/* Page Card Hover Preview Hint */
.page-thumbnail-wrap {
  cursor: zoom-in;
}

.page-thumbnail-wrap::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.page-card:hover .page-thumbnail-wrap::after {
  opacity: 1;
}
