/* ===========================================
   ZollTool 2 - Complete Styles
   Native JAVY 5 Module App
   All selectors scoped under .zt-app
   Original ZollTool CSS from v51
   =========================================== */

/* ================================================
   1. CSS VARIABLES (scoped to .zt-app)
   ================================================ */

.zt-app {
  --post-yellow: #FFCC00;
  --post-yellow-soft: #FFD84D;
  --post-yellow-glow: rgba(255, 204, 0, 0.15);
  --zt-bg-primary: #0C0C0E;
  --zt-bg-card: rgba(20, 20, 24, 0.85);
  --zt-border: rgba(255, 255, 255, 0.06);
  --zt-border-light: rgba(255, 255, 255, 0.1);
  --zt-success: #22C55E;
  --zt-error: #EF4444;
  --zt-warning: #F59E0B;
  --zt-cyan: #00d4ff;
  --zt-text: #FAFAFA;
  --zt-text-secondary: #A1A1AA;
  --zt-text-muted: #71717A;
}

/* ================================================
   2. BASE STYLES (.zt-app)
   ================================================ */

.zt-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--zt-text);
  -webkit-font-smoothing: antialiased;
  background: transparent;
  position: relative;
  height: 100%;
}

/* ================================================
   28. MODULE CONTENT CONTAINER
   ================================================ */

.zt-app .app-module-content,
.app-module-content:has(.zt-app) {
  padding: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ================================================
   3. SCENE BACKGROUND WITH LOGO GLOW
   ================================================ */

.zt-app .scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #0E0E12 0%, #0A0A0C 50%, #08080A 100%);
}

.zt-app .scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 30% 20%, rgba(255, 204, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 70% 80%, rgba(255, 204, 0, 0.04) 0%, transparent 50%);
}

.zt-app .logo-glow {
  position: absolute;
  top: 25%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 220, 50, 0.4) 0%, rgba(255, 204, 0, 0.2) 40%, rgba(255, 204, 0, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(80px);
}

.zt-app .logo-glow-2 {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 220, 50, 0.35) 0%, rgba(255, 204, 0, 0.15) 40%, rgba(255, 204, 0, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(100px);
}

/* ================================================
   4. CARD STYLES
   ================================================ */

.zt-app .card {
  background: var(--zt-bg-card);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--zt-border);
  border-radius: 16px;
  position: relative;
  transition: all 0.4s ease;
}

/* Top light edge */
.zt-app .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  border-radius: 16px 16px 0 0;
}

.zt-app .card.card-warning {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.1) 0%, rgba(20, 20, 25, 0.95) 50%);
  border-color: rgba(239, 68, 68, 0.25);
}

.zt-app .card.card-success {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.06) 0%, rgba(20, 20, 25, 0.95) 50%);
  border-color: rgba(16, 185, 129, 0.2);
}

.zt-app .card.card-cyan {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.08) 0%, rgba(20, 20, 25, 0.95) 50%);
  border-color: rgba(0, 212, 255, 0.25);
}

.zt-app .card.card-error {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08) 0%, rgba(20, 20, 25, 0.95) 50%);
  border-color: rgba(239, 68, 68, 0.25);
}

/* MASSIVE floating shadow */
.zt-app .card-float {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.35),
    0 16px 32px rgba(0, 0, 0, 0.3),
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 64px 128px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.zt-app .card-float:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.45),
    0 16px 32px rgba(0, 0, 0, 0.4),
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 48px 96px rgba(0, 0, 0, 0.3),
    0 80px 160px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(255, 204, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Header float (extra shadow) */
.zt-app .header-float {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 48px 96px rgba(0, 0, 0, 0.3),
    0 80px 160px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ================================================
   5. APP LAYOUT
   ================================================ */

.zt-app .app {
  max-width: 1700px;
  margin: 0 auto;
  padding: 12px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ================================================
   6. HEADER
   ================================================ */

.zt-app .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  flex-shrink: 0;
}

.zt-app .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zt-app .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
}

.zt-app .logo-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.zt-app .logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.zt-app .logo-text .highlight {
  color: var(--post-yellow);
  text-shadow: 0 0 40px rgba(255, 204, 0, 0.6);
}

.zt-app .logo-badge {
  background: rgba(255, 204, 0, 0.12);
  color: var(--post-yellow);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 10px;
  border: 1px solid rgba(255, 204, 0, 0.2);
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.zt-app .nav {
  display: flex;
  gap: 8px;
}

.zt-app .nav-btn {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--zt-border);
  border-radius: 10px;
  color: var(--zt-text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zt-app .nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--zt-border-light);
  color: var(--zt-text);
}

/* ================================================
   7. MAIN GRID (3-column: 1fr 1.4fr 1fr)
   ================================================ */

.zt-app .main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  min-height: 0;
  padding: 0 4px;
}

.zt-app .column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.zt-app .column-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.zt-app .column-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* ================================================
   8. SECTION STYLES
   ================================================ */

.zt-app .queue-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.zt-app .section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .section-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.zt-app .section-indicator.warning {
  background: var(--zt-error);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.zt-app .section-indicator.success {
  background: var(--zt-success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.zt-app .section-indicator.cyan {
  background: var(--zt-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.zt-app .section-indicator.yellow {
  background: var(--post-yellow);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
}

.zt-app .section-info {
  flex: 1;
}

.zt-app .section-title {
  font-size: 13px;
  font-weight: 600;
}

.zt-app .section-subtitle {
  font-size: 10px;
  color: var(--zt-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zt-app .section-progress {
  flex: 1;
  max-width: 80px;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-left: auto;
  margin-right: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.zt-app .section-progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px currentColor;
}

.zt-app .section-progress-bar.success {
  background: linear-gradient(90deg, var(--zt-success), #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.zt-app .section-progress-bar.warning {
  background: linear-gradient(90deg, var(--zt-warning), #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.zt-app .section-count {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}

.zt-app .section-count.warning {
  color: var(--zt-error);
  background: rgba(239, 68, 68, 0.1);
}

.zt-app .section-count.success {
  color: var(--zt-success);
  background: rgba(34, 197, 94, 0.1);
}

.zt-app .section-count.cyan {
  color: var(--zt-cyan);
  background: rgba(0, 212, 255, 0.1);
}

.zt-app .section-footer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================================================
   9. FEHLGESCHLAGENE SECTION
   ================================================ */

.zt-app .fehler-section {
  flex-shrink: 0;
}

.zt-app .fehler-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .fehler-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zt-error);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.zt-app .fehler-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.zt-app .fehler-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--zt-error);
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

.zt-app .fehler-clear {
  padding: 6px 10px;
  font-size: 10px;
  background: transparent;
  border: 1px solid var(--zt-border);
  border-radius: 6px;
  color: var(--zt-text-muted);
  cursor: pointer;
}

.zt-app .fehler-clear:hover {
  border-color: var(--zt-error);
  color: var(--zt-error);
}

.zt-app .fehler-list {
  padding: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.zt-app .fehler-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.05);
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}

.zt-app .fehler-item:hover {
  background: rgba(239, 68, 68, 0.12);
}

.zt-app .fehler-item-icon {
  color: var(--zt-error);
}

.zt-app .fehler-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zt-app .fehler-empty {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--zt-text-muted);
}

.zt-app .fehler-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(239, 68, 68, 0.7);
  padding: 0 4px;
}

.zt-app .fehler-section-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.6);
}

.zt-app .fehler-section-small {
  min-height: 80px;
}

.zt-app .fehler-section-small .fehler-header {
  padding: 10px 14px;
}

.zt-app .fehler-section-small .fehler-list {
  padding: 8px 14px;
  max-height: 100px;
  overflow-y: auto;
}

.zt-app .fehler-section-small .fehler-title {
  font-size: 12px;
}

.zt-app .fehler-section-small .fehler-clear {
  padding: 4px 8px;
  font-size: 11px;
}

/* ================================================
   10. QUEUE LIST
   ================================================ */

.zt-app .queue {
  padding: 8px;
  flex: 1;
  overflow-y: auto;
}

.zt-app .queue-empty {
  text-align: center;
  color: var(--zt-text-muted);
  padding: 20px;
  font-size: 11px;
}

.zt-app .queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 4px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.zt-app .queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.zt-app .queue-item.selected {
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.25);
}

.zt-app .queue-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--zt-text-secondary);
  flex-shrink: 0;
}

.zt-app .queue-content {
  flex: 1;
  min-width: 0;
}

.zt-app .queue-name {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zt-app .queue-meta {
  font-size: 10px;
  color: var(--zt-text-muted);
  margin-top: 1px;
}

.zt-app .queue-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--zt-error);
}

.zt-app .queue-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zt-success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

/* ================================================
   11. DRAG & DROP
   ================================================ */

.zt-app .queue-drag-handle {
  cursor: grab;
  color: var(--zt-text-muted);
  font-size: 14px;
  padding: 0 4px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.zt-app .queue-drag-handle:hover {
  opacity: 1;
}

.zt-app .queue-item.dragging,
.zt-app .dragging {
  opacity: 0.4;
}

.zt-app .queue.drag-over,
.zt-app .drag-over {
  background: rgba(255, 204, 0, 0.05);
  border: 1px dashed rgba(255, 204, 0, 0.3);
  border-radius: 10px;
}

/* ================================================
   12. BUTTONS
   ================================================ */

.zt-app .btn {
  flex: 1;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.zt-app .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

.zt-app .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.zt-app .btn-primary {
  background: linear-gradient(180deg, var(--post-yellow) 0%, #E6B800 100%);
  color: #000;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.35);
}

.zt-app .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.45);
}

.zt-app .btn-success {
  background: linear-gradient(180deg, var(--zt-success) 0%, #1CA04E 100%);
  color: #000;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.zt-app .btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45);
}

.zt-app .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--zt-text-secondary);
  border: 1px solid var(--zt-border);
}

.zt-app .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--zt-text);
}

.zt-app .btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--zt-error);
  flex: 0;
}

.zt-app .btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
}

.zt-app .btn-cyan {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--zt-cyan);
}

.zt-app .btn-icon {
  width: 38px;
  padding: 0;
  flex: 0 0 38px;
}

.zt-app .btn-watch {
  width: 38px;
  padding: 0;
  flex: 0 0 38px;
  font-size: 16px;
}

.zt-app .btn-watch.active {
  background: rgba(255, 204, 0, 0.2);
  border-color: var(--post-yellow);
  color: var(--post-yellow);
}

/* Small button variant */
.zt-app .btn-sm {
  padding: 6px 12px;
  font-size: 11px;
}

/* ================================================
   13. DROP ZONE
   ================================================ */

.zt-app .drop-zone-wrapper {
  padding: 14px;
}

.zt-app .drop-zone {
  border: 2px dashed rgba(255, 204, 0, 0.5);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 204, 0, 0.03);
}

.zt-app .drop-zone:hover,
.zt-app .drop-zone.dragover {
  border-color: #FFCC00;
  border-style: solid;
  background: rgba(255, 204, 0, 0.15);
  box-shadow:
    0 0 30px rgba(255, 204, 0, 0.4),
    inset 0 0 30px rgba(255, 204, 0, 0.1);
}

.zt-app .drop-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.zt-app .drop-zone:hover .drop-icon {
  background: #FFCC00;
  border-color: #FFCC00;
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 8px 24px rgba(255, 204, 0, 0.5),
    0 0 40px rgba(255, 204, 0, 0.3);
}

.zt-app .drop-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--zt-text);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.zt-app .drop-zone:hover .drop-title {
  color: #FFCC00;
  text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.zt-app .drop-subtitle {
  font-size: 11px;
  color: var(--zt-text-muted);
  transition: all 0.3s ease;
}

.zt-app .drop-zone:hover .drop-subtitle {
  color: var(--zt-text-secondary);
}

/* ================================================
   14. SCREENSHOTS SLIDER
   ================================================ */

.zt-app .screenshots-section {
  display: flex;
  flex-direction: column;
}

.zt-app .screenshots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .screenshots-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.zt-app .screenshots-count {
  font-size: 11px;
  color: var(--zt-text-muted);
}

.zt-app .screenshots-carousel {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
}

.zt-app .screenshots-track {
  display: flex;
  gap: 10px;
  padding: 0 14px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.zt-app .screenshot-card {
  flex: 0 0 90px;
  height: 65px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.zt-app .screenshot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  z-index: 2;
}

.zt-app .screenshot-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 204, 0, 0.3);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 204, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.zt-app .screenshot-card.active {
  border-color: rgba(255, 204, 0, 0.5);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 204, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.zt-app .screenshot-card.new {
  animation: screenshotPulse 1s ease-in-out 3;
}

.zt-app .screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.zt-app .screenshot-card:hover img {
  transform: scale(1.05);
}

.zt-app .screenshot-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--zt-text-muted);
  transition: all 0.3s ease;
}

.zt-app .screenshot-card:hover .screenshot-card-inner {
  color: var(--post-yellow);
}

/* Screenshot Navigation */
.zt-app .screenshots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .screenshots-nav-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--zt-text-muted);
  font-size: 14px;
}

.zt-app .screenshots-nav-btn:hover {
  background: rgba(255, 204, 0, 0.15);
  border-color: rgba(255, 204, 0, 0.3);
  color: var(--post-yellow);
  transform: scale(1.1);
}

.zt-app .screenshots-dots {
  display: flex;
  gap: 6px;
}

.zt-app .screenshots-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zt-app .screenshots-dot:hover {
  background: rgba(0, 212, 255, 0.5);
  transform: scale(1.3);
}

.zt-app .screenshots-dot.active {
  background: var(--zt-cyan);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ================================================
   15. MODALS
   ================================================ */

.zt-app .modal-overlay {
  position: fixed;
  inset: 0;
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal, 300);
}

.zt-app .modal-overlay.hidden {
  display: none;
}

.zt-app .modal {
  width: 95%;
  max-width: 1000px;
  max-height: 75vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.zt-app .modal.card-float {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.45),
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 64px 128px rgba(0, 0, 0, 0.35),
    0 0 120px rgba(255, 204, 0, 0.08);
}

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

.zt-app .modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.zt-app .modal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--zt-text-secondary);
}

.zt-app .modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.zt-app .modal-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
}

/* ================================================
   16. EDIT FORM
   ================================================ */

.zt-app .edit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.zt-app .edit-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--post-yellow);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zt-app .edit-field {
  margin-bottom: 12px;
}

.zt-app .edit-field.full-width {
  grid-column: 1 / -1;
}

.zt-app .edit-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--zt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.zt-app .edit-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--zt-border);
  border-radius: 8px;
  color: var(--zt-text);
  font-size: 12px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.zt-app .edit-input:focus {
  outline: none;
  border-color: var(--post-yellow);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.zt-app .edit-input.error {
  border-color: var(--zt-warning);
}

.zt-app .edit-input.input-valid {
  border-color: var(--zt-success) !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.zt-app .edit-input.input-invalid {
  border-color: var(--zt-error) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.zt-app .edit-input.input-ok {
  border-color: var(--zt-success);
}

.zt-app .edit-input.input-error {
  border-color: var(--zt-error) !important;
  background: rgba(239, 68, 68, 0.1);
}

.zt-app .edit-input-hint {
  font-size: 10px;
  color: var(--zt-warning);
}

.zt-app .edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.zt-app .char-count {
  font-size: 9px;
}

.zt-app .char-count.ok {
  color: var(--zt-success);
}

.zt-app .char-count.error {
  color: var(--zt-error);
}

/* Edit Card (inline center panel) */
.zt-app .edit-card {
  flex: 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.zt-app .edit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .edit-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.zt-app .edit-card-actions {
  display: flex;
  gap: 8px;
}

.zt-app .edit-card-body {
  flex: 1;
  padding: 14px;
  overflow: hidden;
}

.zt-app .edit-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 14px;
}

.zt-app .edit-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zt-app .edit-col-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--zt-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.zt-app .edit-card-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Edit Overlay (modal-style) */
.zt-app .edit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: var(--z-modal, 300);
  align-items: center;
  justify-content: center;
}

.zt-app .edit-overlay.active {
  display: flex;
}

.zt-app .edit-panel {
  width: 420px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.zt-app .edit-panel.card-float {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.45),
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 64px 128px rgba(0, 0, 0, 0.35),
    0 0 120px rgba(255, 204, 0, 0.08);
}

.zt-app .edit-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.zt-app .edit-title {
  font-size: 15px;
  font-weight: 600;
}

.zt-app .edit-close {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--zt-border);
  border-radius: 8px;
  color: var(--zt-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.zt-app .edit-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--zt-text);
}

.zt-app .edit-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.zt-app .edit-section {
  margin-bottom: 24px;
}

.zt-app .edit-section:last-child {
  margin-bottom: 0;
}

.zt-app .edit-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.zt-app .edit-footer .btn {
  flex: 1;
}

/* Field components */
.zt-app .field {
  margin-bottom: 12px;
}

.zt-app .field:last-child {
  margin-bottom: 0;
}

.zt-app .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.zt-app .field-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.zt-app .field-name {
  font-size: 11px;
  color: var(--zt-text-secondary);
}

.zt-app .field-counter {
  font-size: 10px;
  font-family: monospace;
  color: var(--zt-text-muted);
}

.zt-app .field-counter.error {
  color: var(--zt-error);
}

.zt-app .input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--zt-border);
  border-radius: 8px;
  color: var(--zt-text);
  font-family: inherit;
  font-size: 12px;
  transition: all 0.2s ease;
}

.zt-app .input:focus {
  outline: none;
  border-color: var(--post-yellow);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.1);
}

.zt-app .input.error {
  border-color: var(--zt-error);
}

/* ================================================
   17. ARTIKEL
   ================================================ */

.zt-app .artikel-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

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

.zt-app .artikel-label {
  font-size: 10px;
  color: var(--post-yellow);
  font-weight: 600;
}

.zt-app .artikel-row {
  display: grid;
  grid-template-columns: 1fr 45px 55px 70px 28px;
  gap: 8px;
  align-items: center;
}

.zt-app .artikel-del {
  width: 28px;
  height: 32px;
  padding: 0;
  font-size: 11px;
  flex: 0;
}

.zt-app .artikel-menge {
  text-align: center;
}

.zt-app .article {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--zt-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.zt-app .article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.zt-app .article-num {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--post-yellow);
}

.zt-app .article-del {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid var(--zt-border);
  border-radius: 6px;
  color: var(--zt-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.zt-app .article-del:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--zt-error);
  color: var(--zt-error);
}

.zt-app .article-fields {
  display: grid;
  grid-template-columns: 1fr 55px 65px;
  gap: 8px;
}

.zt-app .article-fields .input {
  padding: 8px 10px;
  font-size: 11px;
}

.zt-app .add-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px dashed rgba(255, 204, 0, 0.2);
  border-radius: 8px;
  color: var(--zt-text-muted);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zt-app .add-btn:hover {
  border-color: var(--post-yellow);
  color: var(--post-yellow);
}

/* Edit Articles (inline center panel) */
.zt-app .edit-articles-count {
  font-size: 10px;
  color: var(--zt-text-muted);
}

.zt-app .edit-article-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.zt-app .edit-article-row {
  display: grid;
  grid-template-columns: 1fr 40px 60px 24px;
  gap: 6px;
  align-items: center;
}

.zt-app .edit-article-qty,
.zt-app .edit-article-price {
  text-align: center;
  padding: 10px 6px !important;
}

.zt-app .edit-article-delete {
  width: 24px;
  height: 34px;
  border: none;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--zt-error);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zt-app .edit-article-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

.zt-app .edit-article-add {
  width: 100%;
  padding: 8px;
  border: 1px dashed rgba(255, 204, 0, 0.3);
  border-radius: 6px;
  background: transparent;
  color: var(--zt-text-muted);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zt-app .edit-article-add:hover {
  border-color: var(--post-yellow);
  color: var(--post-yellow);
  background: rgba(255, 204, 0, 0.05);
}

/* ================================================
   18. PROBLEME BOX
   ================================================ */

.zt-app .probleme-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.zt-app .probleme-box.hidden {
  display: none;
}

.zt-app .probleme-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--zt-error);
  margin-bottom: 8px;
}

.zt-app .probleme-item {
  font-size: 11px;
  color: var(--zt-text-secondary);
  padding: 3px 0;
}

.zt-app .schweiz-warn {
  background: rgba(239, 68, 68, 0.2);
  color: var(--zt-error);
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.zt-app .schweiz-warn.hidden {
  display: none;
}

/* ================================================
   19. PROGRESS INLINE (in Bereit-Sections)
   ================================================ */

.zt-app .progress-inline {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .progress-inline.hidden {
  display: none;
}

.zt-app .progress-inline-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.zt-app .progress-inline-msg {
  font-size: 11px;
  font-weight: 500;
  color: var(--zt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zt-app .progress-inline-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--zt-text-muted);
}

.zt-app .progress-inline-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.zt-app .progress-inline-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.zt-app .progress-inline-log {
  max-height: 60px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-family: monospace;
  font-size: 9px;
}

.zt-app .progress-inline-log:empty {
  display: none;
}

/* Section running state */
.zt-app .queue-section.running .section-indicator {
  animation: zt-pulse 1.5s ease-in-out infinite;
}

/* ================================================
   20. MANUELL MODAL
   ================================================ */

.zt-app .manuell-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.zt-app .manuell-col {
  display: flex;
  flex-direction: column;
}

/* ================================================
   21. SCROLLBAR
   ================================================ */

.zt-app ::-webkit-scrollbar {
  width: 4px;
}

.zt-app ::-webkit-scrollbar-track {
  background: transparent;
}

.zt-app ::-webkit-scrollbar-thumb {
  background: rgba(255, 204, 0, 0.15);
  border-radius: 2px;
}

.zt-app ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 204, 0, 0.3);
}

/* ================================================
   22. CONTEXT MENU
   ================================================ */

.zt-app .context-menu {
  position: fixed;
  background: var(--zt-bg-card);
  border: 1px solid var(--zt-border);
  border-radius: 10px;
  padding: 6px;
  z-index: 3000;
  min-width: 140px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.zt-app .context-menu.hidden {
  display: none;
}

.zt-app .context-menu-item {
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zt-app .context-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.zt-app .context-menu-divider {
  height: 1px;
  background: var(--zt-border);
  margin: 6px 0;
}

/* ================================================
   23. TOAST
   ================================================ */

.zt-app .toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
}

.zt-app .toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--zt-bg-card);
  border: 1px solid var(--zt-border);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  margin-top: 8px;
  animation: zt-slideIn 0.3s;
  font-size: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.zt-app .toast.success {
  border-color: var(--zt-success);
}

.zt-app .toast.error {
  border-color: var(--zt-error);
}

/* ================================================
   24. TEMPLATE EDITOR
   ================================================ */

.zt-app .template-editor-modal {
  max-width: 1100px;
  max-height: 75vh;
  width: 95vw;
}

.zt-app .template-editor-body {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 12px;
  height: 65vh;
}

.zt-app .template-pdf-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zt-app .template-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.zt-app .template-pdf-container {
  flex: 1;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
}

.zt-app .template-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--zt-text-muted);
  flex-direction: column;
  gap: 12px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.zt-app .template-pdf-wrapper {
  position: relative;
  display: none;
}

.zt-app .template-pdf-image {
  display: block;
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.zt-app .template-controls {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.zt-app .template-hint {
  font-size: 10px;
  color: var(--zt-text-muted);
  margin: 0 0 12px 0;
}

.zt-app .template-field-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zt-app .field-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  cursor: pointer;
}

.zt-app .field-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.zt-app .field-toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.zt-app .toggle-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.zt-app .toggle-label {
  flex: 1;
  font-size: 11px;
}

.zt-app .template-list {
  flex: 1;
  overflow-y: auto;
  max-height: 200px;
  margin-top: 8px;
  min-height: 80px;
}

.zt-app .template-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
}

.zt-app .template-item:hover {
  background: rgba(255, 204, 0, 0.15);
}

.zt-app .template-item-name {
  flex: 1;
  font-size: 11px;
}

.zt-app .template-item-delete {
  opacity: 0.5;
  cursor: pointer;
}

.zt-app .template-item-delete:hover {
  opacity: 1;
  color: var(--zt-error);
}

.zt-app .template-help-box {
  font-size: 9px;
  color: var(--zt-text-muted);
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  margin-top: 8px;
}

/* Drag Boxes */
.zt-app .drag-box {
  position: absolute;
  border: 3px solid;
  border-radius: 4px;
  cursor: move;
  display: none;
  min-width: 60px;
  min-height: 30px;
  z-index: 10;
}

.zt-app .drag-box.visible {
  display: block;
}

.zt-app .drag-box:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.zt-app .drag-box.dragging {
  opacity: 0.8;
  z-index: 100;
}

.zt-app .drag-box-header {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.zt-app .drag-box-resize {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  cursor: se-resize;
  border: 2px solid;
}

/* Box Color Variants */
.zt-app .box-green {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
}
.zt-app .box-green .drag-box-header {
  background: #22c55e;
  color: #000;
}
.zt-app .box-green .drag-box-resize {
  border-color: #22c55e;
}

.zt-app .box-blue {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
}
.zt-app .box-blue .drag-box-header {
  background: #3b82f6;
  color: #fff;
}
.zt-app .box-blue .drag-box-resize {
  border-color: #3b82f6;
}

.zt-app .box-purple {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
}
.zt-app .box-purple .drag-box-header {
  background: #a855f7;
  color: #fff;
}
.zt-app .box-purple .drag-box-resize {
  border-color: #a855f7;
}

.zt-app .box-orange {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.2);
}
.zt-app .box-orange .drag-box-header {
  background: #f97316;
  color: #000;
}
.zt-app .box-orange .drag-box-resize {
  border-color: #f97316;
}

.zt-app .box-pink {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.2);
}
.zt-app .box-pink .drag-box-header {
  background: #ec4899;
  color: #fff;
}
.zt-app .box-pink .drag-box-resize {
  border-color: #ec4899;
}

.zt-app .box-red {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.25);
  border-style: dashed;
}
.zt-app .box-red .drag-box-header {
  background: #ef4444;
  color: #fff;
}
.zt-app .box-red .drag-box-resize {
  border-color: #ef4444;
}

/* ================================================
   25. LOGIN OVERLAY
   ================================================ */

.zt-app .login-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0E0E12 0%, #0A0A0C 50%, #08080A 100%);
  z-index: 200;
}

.zt-app .login-box {
  background: var(--zt-bg-card);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--zt-border);
  border-radius: 16px;
  padding: 40px 32px;
  width: 340px;
  text-align: center;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.45),
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 120px rgba(255, 204, 0, 0.08);
  position: relative;
}

.zt-app .login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  border-radius: 16px 16px 0 0;
}

.zt-app .login-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--post-yellow) 0%, #E6B800 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #000;
  margin: 0 auto 20px;
  box-shadow:
    0 6px 20px rgba(255, 204, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-family: 'Arial Black', sans-serif;
}

.zt-app .login-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.zt-app .login-subtitle {
  font-size: 12px;
  color: var(--zt-text-muted);
  margin-bottom: 28px;
}

.zt-app .login-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--zt-border);
  border-radius: 10px;
  color: var(--zt-text);
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  text-align: center;
}

.zt-app .login-input:focus {
  outline: none;
  border-color: var(--post-yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.zt-app .login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, var(--post-yellow) 0%, #E6B800 100%);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.35);
}

.zt-app .login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.45);
}

.zt-app .login-error {
  font-size: 11px;
  color: var(--zt-error);
  margin-top: 12px;
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

/* Also support the zt- prefixed login classes from JAVY 5 integration */
.zt-app .zt-login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}

.zt-app .zt-login-card {
  background: var(--zt-bg-card);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--zt-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.45),
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 120px rgba(255, 204, 0, 0.08);
  position: relative;
}

.zt-app .zt-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  border-radius: 16px 16px 0 0;
}

.zt-app .zt-login-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.zt-app .zt-login-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--zt-text);
  margin: 0 0 4px;
}

.zt-app .zt-login-subtitle {
  font-size: 12px;
  color: var(--zt-text-muted);
  margin: 0 0 24px;
}

.zt-app .zt-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.zt-app .zt-login-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--zt-border);
  border-radius: 10px;
  color: var(--zt-text);
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
}

.zt-app .zt-login-input:focus {
  outline: none;
  border-color: var(--post-yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.zt-app .zt-login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, var(--post-yellow) 0%, #E6B800 100%);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.35);
}

.zt-app .zt-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.45);
}

.zt-app .zt-login-error {
  font-size: 11px;
  color: var(--zt-error);
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

/* ================================================
   26. MOBILE RESPONSIVE
   ================================================ */

@media (max-width: 900px) {
  .zt-app {
    height: auto;
  }

  .zt-app .app {
    height: auto;
  }

  .zt-app .main {
    grid-template-columns: 1fr 1fr;
    flex: none;
  }

  .zt-app .column-center,
  .zt-app .column-split:nth-child(2) {
    grid-column: 1 / -1;
    order: -1;
  }

  .zt-app .edit-columns {
    grid-template-columns: 1fr;
  }

  .zt-app .manuell-columns {
    grid-template-columns: 1fr;
  }

  .zt-app .template-editor-body {
    flex-direction: column;
    height: auto;
  }

  .zt-app .template-controls {
    flex: none;
    max-height: 300px;
  }

  /* JAVY 5 dashboard layout */
  .zt-app .zt-dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .zt-app .zt-col-center {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 639px) {
  .zt-app {
    height: auto;
  }

  .zt-app .app {
    height: auto;
    padding: 8px;
    gap: 8px;
  }

  .zt-app .main {
    grid-template-columns: 1fr;
    gap: 8px;
    flex: none;
  }

  .zt-app .header {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .zt-app .nav {
    width: 100%;
    overflow-x: auto;
  }

  .zt-app .nav-btn {
    font-size: 11px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .zt-app .edit-columns {
    grid-template-columns: 1fr;
  }

  .zt-app .manuell-columns {
    grid-template-columns: 1fr;
  }

  .zt-app .edit-row {
    grid-template-columns: 1fr;
  }

  .zt-app .field-row {
    grid-template-columns: 1fr;
  }

  .zt-app .artikel-row {
    grid-template-columns: 1fr 45px 55px 70px 28px;
  }

  .zt-app .modal {
    width: 100%;
    max-height: 75vh;
    border-radius: 0;
  }

  .zt-app .template-editor-body {
    flex-direction: column;
    height: auto;
  }

  .zt-app .template-controls {
    flex: none;
    max-height: 200px;
  }

  /* JAVY 5 dashboard layout */
  .zt-app .zt-dashboard {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .zt-app .zt-col-center {
    order: -1;
  }

  .zt-app .zt-korrektur-modal {
    max-width: 100% !important;
    margin: 8px;
  }

  .zt-app .zt-korrektur-grid {
    grid-template-columns: 1fr;
  }

  .zt-app .zt-artikel-row {
    flex-wrap: wrap;
  }

  .zt-app .zt-artikel-small {
    flex: 1 1 60px !important;
  }
}

/* ================================================
   27. LIVE VIEW PANEL
   ================================================ */

.zt-app .live-view {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  background: var(--zt-bg-card);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border-left: 1px solid var(--zt-border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.zt-app .live-view.open {
  transform: translateX(0);
}

.zt-app .live-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .live-view-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.zt-app .live-view-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--zt-success);
}

.zt-app .live-view-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zt-success);
  animation: zt-livePulse 2s ease-in-out infinite;
}

.zt-app .live-view-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.zt-app .live-view-screenshot {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zt-app .live-view-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.zt-app .live-view-log {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--zt-text-secondary);
  line-height: 1.6;
}

.zt-app .live-view-log-line {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.zt-app .live-view-log-time {
  color: var(--zt-text-muted);
  white-space: nowrap;
}

/* ================================================
   28. COMMAND PANEL
   ================================================ */

.zt-app .command-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.zt-app .command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zt-app .command-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.zt-app .command-body {
  flex: 1;
  padding: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--zt-text-secondary);
  background: rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  line-height: 1.6;
}

.zt-app .command-line {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.zt-app .command-prompt {
  color: var(--zt-success);
  font-weight: 600;
}

.zt-app .command-text {
  color: var(--zt-text-muted);
}

.zt-app .command-success {
  color: var(--zt-success);
}

.zt-app .command-warning {
  color: var(--zt-warning);
}

.zt-app .command-info {
  color: var(--post-yellow);
}

/* ================================================
   JAVY 5 INTEGRATION - zt-prefixed classes
   (Queue cards, Korrektur, Drop zone, etc.)
   ================================================ */

.zt-app .zt-dashboard {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  padding: 16px;
  min-height: 100%;
  align-content: start;
}

.zt-app .zt-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zt-app .zt-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--zt-text);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--zt-border);
}

.zt-app .zt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zt-app .zt-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--zt-text-secondary);
  margin: 0 0 8px;
}

/* Queue Cards (zt-prefixed) */
.zt-app .zt-queue-card {
  background: var(--zt-bg-card);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--zt-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.zt-app .zt-queue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: 0;
}

.zt-app .zt-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--zt-border);
  position: relative;
  z-index: 1;
}

.zt-app .zt-queue-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--zt-text-secondary);
}

.zt-app .zt-queue-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 204, 0, 0.15);
  color: var(--post-yellow);
}

.zt-app .zt-queue-korrektur .zt-queue-count {
  background: rgba(239, 68, 68, 0.15);
  color: var(--zt-error);
}

.zt-app .zt-queue-bereit .zt-queue-count {
  background: rgba(34, 197, 94, 0.15);
  color: var(--zt-success);
}

.zt-app .zt-queue-fehler .zt-queue-count {
  background: rgba(239, 68, 68, 0.15);
  color: var(--zt-error);
}

.zt-app .zt-queue-items {
  padding: 6px;
  min-height: 40px;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease;
}

.zt-app .zt-queue-dragover {
  background: rgba(255, 204, 0, 0.08);
}

.zt-app .zt-queue-item {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.zt-app .zt-queue-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.zt-app .zt-queue-item-dragging {
  opacity: 0.4;
}

.zt-app .zt-queue-item-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--zt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zt-app .zt-queue-item-meta {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.zt-app .zt-queue-item-land,
.zt-app .zt-queue-item-weight {
  font-size: 10px;
  color: var(--zt-text-muted);
}

/* Drop Zone (zt-prefixed) */
.zt-app .zt-dropzone {
  border: 2px dashed rgba(255, 204, 0, 0.5);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 204, 0, 0.03);
}

.zt-app .zt-dropzone:hover,
.zt-app .zt-dropzone-active {
  border-color: #FFCC00;
  border-style: solid;
  background: rgba(255, 204, 0, 0.15);
  box-shadow:
    0 0 30px rgba(255, 204, 0, 0.4),
    inset 0 0 30px rgba(255, 204, 0, 0.1);
}

.zt-app .zt-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.zt-app .zt-dropzone-icon {
  font-size: 32px;
  opacity: 0.7;
}

.zt-app .zt-dropzone-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--zt-text-secondary);
}

.zt-app .zt-dropzone-hint {
  font-size: 10px;
  color: var(--zt-text-muted);
}

.zt-app .zt-dropzone-input {
  display: none;
}

.zt-app .zt-dropzone-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--zt-text-muted);
  font-size: 12px;
}

/* Progress (zt-prefixed) */
.zt-app .zt-progress-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zt-app .zt-progress-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zt-app .zt-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--zt-text-secondary);
}

.zt-app .zt-progress-status {
  font-weight: 600;
  color: var(--zt-text-muted);
}

.zt-app .zt-start-btn {
  align-self: stretch;
}

/* Screenshots (zt-prefixed) */
.zt-app .zt-screenshots-section {
  margin-top: 12px;
}

.zt-app .zt-screenshots-empty {
  font-size: 10px;
  color: var(--zt-text-muted);
  text-align: center;
  padding: 16px;
}

/* Korrektur Modal (zt-prefixed) */
.zt-app .zt-korrektur-modal {
  max-width: 600px !important;
  max-height: 75vh !important;
}

.zt-app .zt-korrektur-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zt-app .zt-korrektur-counter {
  font-size: 10px;
  color: var(--zt-text-muted);
  min-width: 48px;
  text-align: center;
}

.zt-app .zt-korrektur-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zt-app .zt-korrektur-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--zt-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zt-app .zt-korrektur-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.zt-app .zt-korrektur-field {
  position: relative;
}

.zt-app .zt-field-wrapper {
  position: relative;
}

.zt-app .zt-char-counter {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--zt-text-muted);
  pointer-events: none;
}

.zt-app .zt-char-warn {
  color: var(--zt-warning);
}

/* Land Feedback */
.zt-app .zt-land-feedback {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.zt-app .zt-land-valid {
  color: var(--zt-success);
  background: rgba(34, 197, 94, 0.1);
}

.zt-app .zt-land-invalid {
  color: var(--zt-error);
  background: rgba(239, 68, 68, 0.1);
}

/* Artikel (zt-prefixed) */
.zt-app .zt-artikel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zt-app .zt-artikel-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.zt-app .zt-artikel-input {
  flex: 1;
}

.zt-app .zt-artikel-small {
  flex: 0 0 70px !important;
  min-width: 0;
}

.zt-app .zt-artikel-remove {
  flex-shrink: 0;
  padding: 4px 8px !important;
  min-height: 24px !important;
}

/* ================================================
   29. ANIMATIONS
   ================================================ */

@keyframes zt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes screenshotPulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
  }
  50% {
    border-color: var(--zt-success);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
}

@keyframes zt-slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

@keyframes zt-livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

/* Utility: spinner */
.zt-app .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--zt-border);
  border-top-color: var(--post-yellow);
  border-radius: 50%;
  animation: zt-spin 0.8s linear infinite;
}
