/* ============================================
   ADMIN PANEL STYLES (Bilingual + RTL-ready)
   Bold, modern UI for Story Generation System
   ============================================ */

:root {
  /* Forgot password theme palette applied globally */
  --primary: #667eea;
  --primary-strong: #764ba2;
  --accent: #764ba2;
  --surface: #ffffff;
  --card: #ffffff;
  --muted: #666666;
  --line: #dddddd;
  --success: #22c55e;
  --danger: #ef4444;
  --warn: #facc15;
  --info: #667eea;
  --bg: #ffffff;
  --elevated: rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --font-base: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
  --transition: all 0.2s ease;
  --sidebar-width: 270px;
}

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

body {
  font-family: var(--font-base);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333333;
  min-height: 100vh;
}

.app {
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-shell {
  width: min(1080px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  overflow: hidden;
}
.login-illustration {
  padding: 48px;
  background: #f7f8ff;
  border-right: 1px solid var(--line);
}
.login-illustration h1 {
  font-size: 32px;
  margin: 8px 0 12px;
}
.login-illustration .lede {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #333;
  border: 1px solid #dbeafe;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.15);
  font-size: 24px;
}

.login-card {
  padding: 44px;
  background: var(--card);
}
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.login-header h2 {
  font-size: 26px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 600;
  color: #333;
}
.form-control,
input[type='text'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #333;
  transition: var(--transition);
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}
.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.login-footer {
  margin-top: 18px;
  text-align: center;
}
.muted-link {
  color: var(--primary);
}

/* Password Reset Styles */
.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.password-strength {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.strength-indicator {
  font-weight: 600;
  margin-left: 4px;
}

.strength-indicator.strength-weak {
  color: #ef4444;
}

.strength-indicator.strength-medium {
  color: #facc15;
}

.strength-indicator.strength-strong {
  color: #22c55e;
}

/* RTL Support for Password Reset */
[dir='rtl'] .password-strength {
  text-align: right;
}

[dir='rtl'] .strength-indicator {
  margin-left: 0;
  margin-right: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: #0b1220;
  background: #e2e8f0;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(118, 75, 162, 0.25);
}
.btn-secondary {
  background: #f2f4ff;
  color: #333;
  border-color: #dbeafe;
}
.btn-link {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0;
  box-shadow: none;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}
.ghost-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #333;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
}

/* Layout */
.app-shell {
  display: block;
  min-height: 100vh;
  .sidebar {
    width: var(--sidebar-width);
    background: var(--card);
    border-right: 1px solid var(--line);
    position: fixed;
    top: 0;
    bottom: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .brand {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .nav-item {
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    border: 1px solid transparent;
  }
  .nav-item:hover {
    background: #f7f8ff;
    border-color: var(--line);
  }
  .nav-item.active {
    background: #eef2ff;
    border-color: #dbeafe;
    color: #333;
  }
  .sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f7f8ff;
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eef2ff;
    display: grid;
    place-items: center;
  }

  .main-content {
    flex: 1;
    margin-left: 0;
    padding: 28px;
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow);
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
  }

  .topbar-back-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .topbar-back-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #5268d3;
  }

  .topbar-branding {
    min-width: 0;
  }

  .topbar-left h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
  }

  .topbar-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.3;
  }

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

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

  .topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--line);
  }

  .admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f7f8ff;
    border: 1px solid var(--line);
    color: #333;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
  }

  .topbar h1 {
    font-size: 24px;
  }

  /* Panels */
  .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
  }
  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .panel h2 {
    font-size: 20px;
    color: var(--primary-strong);
  }

  /* Stats */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
  }
  .stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    border-top: 3px solid var(--primary);
  }
  .stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .stat-card h3 {
    font-size: 28px;
    margin: 8px 0;
  }
  .stat-sub {
    color: var(--muted);
    font-size: 13px;
  }
  .chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid transparent;
  }
  .chip-ink {
    background: #eef2ff;
    color: #333;
    border-color: #dbeafe;
  }
  .chip-warn {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.35);
  }
  .chip-success {
    background: rgba(34, 197, 94, 0.1);
    color: #34d399;
    border-color: rgba(34, 197, 94, 0.35);
  }
  .chip-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
  }
  .chip-info {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.35);
  }
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    background: #f2f4ff;
    color: #333;
    border: 1px solid #dbeafe;
  }
  .badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
  }
  .badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
  }
  .badge-warning {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
  }
  .badge-info {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
  }
  .badge-secondary {
    background: #eef2ff;
    color: #333;
    border-color: #dbeafe;
  }

  /* Tables */
  .table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
  }
  .data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
  }
  .data-table th,
  .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .data-table thead {
    background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.12),
      rgba(118, 75, 162, 0.12)
    );
  }
  .data-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.06);
  }
  .text-center {
    text-align: center;
  }

  /* Filters */
  .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    align-items: end;
  }
  .filter-actions {
    display: flex;
    gap: 10px;
  }

  /* Orders */
  .pagination {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    color: var(--muted);
  }
  .pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .pagination-info {
    color: var(--muted);
  }

  /* Order Info */
  .order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
  .info-item {
    padding: 12px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    border-top: 3px solid var(--primary);
  }
  .info-item label {
    color: var(--muted);
    font-size: 13px;
  }
  .info-item span {
    font-weight: 600;
  }

  /* Workflow */
  .workflow-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }
  .manual-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }

  /* Assets */
  .assets-region {
    display: grid;
    gap: 12px;
  }
  .assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
  .asset-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .asset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .asset-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    cursor: zoom-in;
  }
  .asset-meta {
    color: var(--muted);
    font-size: 13px;
  }

  /* Steps */
  .steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }
  .step-item {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .step-icon {
    font-size: 18px;
  }
  .step-status {
    color: var(--muted);
    margin-left: auto;
  }
  .step-completed {
    border-color: rgba(34, 197, 94, 0.35);
  }

  /* Notes */
  .notes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }

  /* Modal */
  .modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }
  .modal-content {
    max-width: min(90vw, 800px);
    max-height: 80vh;
    border-radius: 12px;
  }
  .modal-close {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
  }
  .modal-caption {
    color: #e2e8f0;
  }

  /* Badges + Notifications */
  .notification {
    position: fixed;
    top: 18px;
    right: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    box-shadow: var(--shadow);
  }
  .notification-info {
    background: #667eea;
  }
  .notification-error {
    background: #ef4444;
    color: #ffffff;
  }
  .notification-success {
    background: #22c55e;
  }

  /* Utility */
  .table-container,
  .table-wrapper {
    width: 100%;
  }
  .loading {
    color: var(--muted);
  }
  .btn-text,
  .btn-link {
    color: var(--primary);
    padding: 6px 8px;
  }
  .btn-link:hover {
    text-decoration: underline;
  }
  .btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
  }
  .btn-success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
  }
  .btn-warning {
    background: #fef9c3;
    color: #854d0e;
    border-color: #fde68a;
  }

  /* RTL support */
  .rtl {
    direction: rtl;
  }
  .rtl .sidebar {
    border-right: none;
    border-left: 1px solid var(--line);
  }
  .rtl .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
  }
  .rtl .nav-item {
    flex-direction: row-reverse;
  }
  .rtl .stat-top,
  .rtl .panel-header,
  .rtl .topbar,
  .rtl .manual-steps,
  .rtl .workflow-controls-grid {
    direction: rtl;
  }
  .rtl .data-table th,
  .rtl .data-table td {
    text-align: right;
  }

  /* Responsive */
  @media (max-width: 980px) {
    .topbar {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }

    .topbar-left {
      justify-content: space-between;
    }

    .topbar-right {
      justify-content: space-between;
    }

    .topbar-actions {
      flex-wrap: wrap;
    }

    .sidebar {
      position: static;
      width: 100%;
      height: auto;
      flex-direction: row;
      flex-wrap: wrap;
    }
    .main-content {
      margin: 0;
    }
    .app-shell {
      flex-direction: column;
    }
    .nav-item {
      flex: 1 1 calc(50% - 10px);
      justify-content: center;
    }
  }

  @media (max-width: 700px) {
    .topbar {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      padding: 12px 16px;
    }

    .topbar-left {
      flex-direction: column;
      gap: 8px;
    }

    .topbar-left h1 {
      font-size: 20px;
    }

    .topbar-back-link {
      align-self: flex-start;
    }

    .topbar-actions {
      width: 100%;
      flex-direction: row-reverse;
    }

    .topbar-divider {
      display: none;
    }

    .login-shell {
      grid-template-columns: 1fr;
    }
    .login-illustration {
      border-right: none;
      border-bottom: 1px solid var(--line);
    }
    .topbar {
      flex-direction: column;
      align-items: flex-start;
    }
    .filters-grid {
      grid-template-columns: 1fr;
    }
    .nav-item {
      flex: 1 1 100%;
    }
  }

  /* Filters Bar */
  .filters-bar {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
  }

  .filter-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333333;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }

    .sidebar.open {
      transform: translateX(0);
    }

    .main-content {
      margin-left: 0;
      padding: 15px;
    }

    .page-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }

    .stats-grid {
      grid-template-columns: 1fr;
    }

    .filters-bar {
      flex-direction: column;
      align-items: stretch;
    }

    .filter-group {
      width: 100%;
    }

    .workflow-controls-grid {
      flex-direction: column;
    }

    .manual-steps {
      grid-template-columns: 1fr;
    }

    .assets-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Utilities */
  code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e2e8f0;
  }

  .mt-10 {
    margin-top: 10px;
  }
  .mt-20 {
    margin-top: 20px;
  }
  .mb-10 {
    margin-bottom: 10px;
  }
  .mb-20 {
    margin-bottom: 20px;
  }
  .gap-10 {
    gap: 10px;
  }
  .gap-20 {
    gap: 20px;
  }

  /* ============================================
   ENHANCED ADMIN COMPONENTS
   Workflow Stepper, Asset Previews, PDF Viewer
   ============================================ */

  /* WORKFLOW STEPPER */
  .workflow-stepper {
    display: grid;
    gap: 12px;
    max-width: 100%;
    margin: 24px 0;
  }

  .step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    border: 2px solid var(--line);
    background: var(--surface);
    transition: var(--transition);
  }

  .step:hover {
    border-color: var(--primary);
    background: #f9fafb;
  }

  .step.step-completed {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
  }

  .step.step-active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  }

  .step.step-failed {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
  }

  .step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    background: var(--elevated);
    color: var(--muted);
    flex-shrink: 0;
  }

  .step.step-completed .step-indicator {
    background: var(--success);
    color: white;
  }

  .step.step-active .step-indicator {
    background: var(--primary);
    color: white;
    animation: pulse 2s infinite;
  }

  .step.step-failed .step-indicator {
    background: var(--danger);
    color: white;
  }

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

  .step-content {
    min-width: 0;
  }

  .step-label {
    font-weight: 600;
    color: #0b1220;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .step-status {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .connector {
    width: 2px;
    height: 20px;
    background: var(--line);
    margin: -8px 0 -8px 20px;
  }

  .connector.connector-completed {
    background: var(--success);
  }

  /* ASSET PREVIEW CARDS */
  .asset-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
  }

  .asset-section-divider {
    grid-column: 1 / -1;
    margin-top: 16px;
    margin-bottom: 8px;
    padding-top: 16px;
    border-top: 2px solid var(--line);
  }

  .asset-section-divider h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
  }

  .asset-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
  }

  .asset-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  }

  .asset-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
  }

  .asset-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
  }

  .asset-preview {
    padding: 16px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    flex: 1;
  }

  .asset-thumbnail {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
  }

  .asset-thumbnail:hover {
    transform: scale(1.03);
  }

  .asset-loading,
  .asset-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    color: var(--muted);
  }

  .asset-loading p,
  .asset-error p {
    margin-top: 12px;
    font-size: 14px;
  }

  .spinner {
    border: 3px solid var(--elevated);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }

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

  .asset-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .asset-actions .btn {
    flex: 1;
    min-width: 80px;
  }

  /* WORKFLOW CONTROL PANEL */
  .workflow-controls {
    display: grid;
    gap: 20px;
    margin: 24px 0;
  }

  .control-section {
    padding: 16px;
    background: #f9fafb;
    border-radius: var(--radius);
    border: 1px solid var(--line);
  }

  .control-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 12px 0;
  }

  .manual-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  /* PDF CONTROL PANEL */
  .pdf-control-panel {
    display: grid;
    gap: 20px;
    margin: 24px 0;
  }

  .pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: var(--radius);
    border: 1px solid var(--line);
  }

  .pdf-header h3 {
    font-size: 16px;
    margin: 0;
  }

  .pdf-embed-container {
    position: relative;
    width: 100%;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .pdf-embed {
    width: 100%;
    height: 600px;
    border: none;
  }

  .pdf-embed-fallback {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
  }

  .pdf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* STATUS INDICATOR */
  .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
  }

  .status-indicator.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
  }

  .status-indicator.warning {
    background: rgba(250, 204, 21, 0.1);
    color: #d97706;
  }

  .status-indicator.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
  }

  .status-indicator.info {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
  }

  .indicator-spin {
    animation: spin 1s linear infinite;
  }

  /* ORDER INFO GRID */
  .info-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }

  .info-item {
    padding: 14px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
  }

  .info-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .info-item span {
    display: block;
    font-size: 14px;
    color: #0b1220;
    word-break: break-all;
  }

  .info-item code {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
  }

  .meta {
    font-size: 12px;
    color: var(--muted);
  }

  /* INFO BOXES */
  .info-box {
    padding: 16px;
    border-radius: var(--radius);
    border-left: 4px solid var(--info);
    background: rgba(102, 126, 234, 0.05);
    margin: 16px 0;
  }

  .info-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
  }

  .info-box p:last-child {
    margin-bottom: 0;
  }

  .info-box.info-success {
    border-left-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
  }

  .info-box.info-warning {
    border-left-color: var(--warn);
    background: rgba(250, 204, 21, 0.05);
  }

  .info-box.info-danger {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
  }

  /* EMPTY STATE */
  .empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
  }

  .empty-state p {
    margin: 0;
    font-size: 14px;
  }

  /* PAGINATION CONTROLS */
  .pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .pagination-info {
    font-size: 13px;
    color: var(--muted);
  }

  .pagination-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .pagination-text {
    font-size: 13px;
    color: var(--muted);
    min-width: 80px;
    text-align: center;
  }

  /* MODAL FOR ASSET PREVIEW */
  .modal.modal-asset {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
  }

  .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
  }

  .modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-header h3 {
    margin: 0;
    font-size: 16px;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
  }

  .modal-close:hover {
    background: var(--elevated);
    color: #0b1220;
  }

  .modal-body {
    padding: 20px;
    overflow: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
  }

  .modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
  }

  /* FILTER GROUPS */
  .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .filters-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .filter-group-full {
    grid-column: 1 / -1;
  }

  .filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
  }

  /* ERROR MESSAGE */
  .error-message {
    padding: 16px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    color: #dc2626;
    font-size: 14px;
    text-align: center;
  }

  /* BUTTON SIZES */
  .btn-block {
    width: 100%;
  }

  .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* SORTABLE TABLE HEADERS */
  th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }

  th.sortable:hover {
    background: var(--elevated);
  }

  /* Dashboard additions */
  .stats-grid-lg {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }

  .status-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .status-card:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
  }

  .status-body h3 {
    margin: 0;
  }

  .status-arrow {
    font-weight: 700;
    color: var(--muted);
  }

  /* Timeline */
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
  }

  .timeline-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f2f4ff;
    border: 1px solid #dbeafe;
  }

  .timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .timeline-label {
    font-weight: 600;
  }

  .timeline-body .meta {
    margin: 4px 0;
  }

  .timeline-pending {
    border-left: 4px solid var(--warn);
  }
  .timeline-completed {
    border-left: 4px solid var(--success);
  }
  .timeline-failed {
    border-left: 4px solid var(--danger);
  }

  /* Assets */
  .asset-section {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .asset-section summary {
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
  }

  .asset-section summary::-webkit-details-marker {
    display: none;
  }

  .asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 12px 14px;
  }

  .asset-thumb {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f7f8ff;
  }

  .asset-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

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

  .asset-error {
    padding: 12px;
    border-radius: 10px;
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
  }

  .list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .list-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .pdf-panel {
    padding: 12px;
    display: grid;
    gap: 12px;
  }

  .pdf-embed {
    width: 100%;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  /* Delivery */
  .delivery-grid {
    display: grid;
    gap: 12px;
  }

  .delivery-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .delivery-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
  }

  .error-text {
    color: #b91c1c;
    font-size: 13px;
  }

  /* Danger zone */
  .danger-panel {
    border: 1px solid #fecdd3;
    background: #fff1f2;
  }

  .danger-content {
    display: grid;
    gap: 10px;
  }

  .danger-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn-danger {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
  }

  /* TABLE RESPONSIVENESS */
  @media (max-width: 768px) {
    .asset-preview-grid {
      grid-template-columns: 1fr;
    }

    .manual-steps-grid {
      grid-template-columns: 1fr;
    }

    .pagination-controls {
      flex-direction: column;
      align-items: stretch;
    }

    .pagination-buttons {
      width: 100%;
      justify-content: space-between;
    }

    .info-grid-2col {
      grid-template-columns: 1fr;
    }
  }

  /* ============================================
     NEW ASSET DISPLAY STYLES
     ============================================ */

  .asset-type-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .asset-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .asset-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .asset-preview img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .asset-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f7f8ff;
    border-radius: 12px;
    border: 2px dashed var(--line);
  }

  .asset-retry-form {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    background: #f9fafb;
  }

  .form-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
  }

  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 34px;
  }

  .toggle-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
  }

  .toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
  }

  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
  }

  .retry-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideDown 0.3s ease;
  }

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

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

  .form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-base);
    font-size: 14px;
  }

  .form-group textarea {
    resize: vertical;
    min-height: 60px;
  }

  .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }

  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--muted);
  }

  .empty-state img {
    margin-bottom: 12px;
    opacity: 0.6;
  }

  /* Modal styles for image preview */
  .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
  }

  .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s;
  }

  @keyframes zoom {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
  }

  .modal-close:hover,
  .modal-close:focus {
    color: #bbb;
  }

  .modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
  }

  /* Asset step layout refinements */
  .asset-step-body {
    display: grid;
    gap: 14px;
    padding: 12px 14px 16px;
  }

  .asset-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(340px, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  .asset-preview-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f9fafb;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 260px;
  }

  .asset-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .asset-visual img {
    max-height: 320px;
    object-fit: contain;
  }

  .asset-text-preview {
    width: 100%;
    max-height: 320px;
    overflow: auto;
    background: #0b1220;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
  }

  .asset-control-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .control-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .control-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .control-actions .btn {
    min-width: 120px;
  }

  .asset-step-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 4px;
  }

  .asset-step-list {
    display: grid;
    gap: 12px;
  }

  .asset-unit {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .asset-unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .is-disabled {
    opacity: 0.6;
  }

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

  /* Workflow Tracker Styles */
  .workflow-tracker {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid var(--line);
  }

  .tracker-horizontal {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: space-between;
    overflow-x: auto;
    padding: 20px 0;
  }

  .tracker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 100px;
    position: relative;
  }

  .tracker-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 10;
  }

  .tracker-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    background: #ffffff;
    border: 3px solid var(--line);
    color: var(--muted);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .tracker-item.completed .tracker-badge {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
  }

  .tracker-item.processing .tracker-badge {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    animation: pulse 2s infinite;
  }

  .tracker-item.pending .tracker-badge {
    background: #ffffff;
    border-color: #e5e7eb;
    color: var(--muted);
  }

  .tracker-label {
    font-size: 13px;
    font-weight: 600;
    color: #0b1220;
    margin-top: 6px;
    max-width: 90px;
    line-height: 1.3;
    word-break: break-word;
  }

  .tracker-status {
    margin-top: 4px;
  }

  .status-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
  }

  .status-completed {
    color: var(--success);
  }

  .status-processing {
    color: var(--primary);
  }

  .status-pending {
    color: var(--muted);
  }

  .tracker-connector {
    position: absolute;
    top: 28px;
    left: 50%;
    right: -50%;
    height: 3px;
    background: #e5e7eb;
    transition: var(--transition);
  }

  .tracker-item.completed ~ .tracker-item .tracker-connector,
  .tracker-item.completed .tracker-connector {
    background: var(--success);
  }

  .tracker-item.processing .tracker-connector {
    background: var(--primary);
  }

  .spinner-mini {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @media (max-width: 768px) {
    .tracker-horizontal {
      flex-wrap: wrap;
      gap: 20px;
    }

    .tracker-item {
      flex: 0 1 calc(50% - 10px);
    }

    .tracker-connector {
      display: none;
    }

    .tracker-badge {
      width: 48px;
      height: 48px;
      font-size: 24px;
    }

    .tracker-label {
      font-size: 12px;
    }
  }
  /* ============================================
     ORDER INFORMATION - NEW LAYOUT
     ============================================ */

  .status-banner {
    width: calc(100% + 32px);
    margin: -16px -16px 16px -16px;
    padding: 0;
    border-radius: 0;
  }

  .status-banner-content {
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .status-banner-content.banner-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  }

  .status-banner-content.banner-processing {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  }

  .status-banner-content.banner-completed {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  }

  .status-banner-content.banner-failed {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  }

  .status-banner-content.banner-paused {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  }

  .status-banner-text {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .order-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .order-info-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }

  .child-info-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
  }

  .photo-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .photo-thumbnail {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--line);
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .photo-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .photo-placeholder {
    width: 160px;
    height: 200px;
    background: var(--card);
    border: 2px dashed var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
  }

  .child-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .child-name-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
  }

  .order-meta-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }

  .meta-item strong {
    color: var(--muted);
    min-width: 140px;
    font-weight: 600;
  }

  .email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    word-break: break-all;
  }

  .email-link:hover {
    color: #5568d3;
    text-decoration: underline;
  }

  .shopify-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .shopify-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5568d3;
  }

  .external-icon {
    font-size: 12px;
    opacity: 0.7;
  }

  .whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25d366;
    text-decoration: none;
    font-weight: 500;
    background: rgba(37, 211, 102, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
  }

  .whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.2);
    color: #1fa952;
    transform: translateY(-2px);
  }

  .whatsapp-icon {
    font-size: 16px;
  }

  /* ============================================
     PHOTO MODAL
     ============================================ */

  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
  }

  .modal.active {
    display: flex;
  }

  .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
  }

  .modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
  }

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

  .modal-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: contain;
  }

  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
  }

  .modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .order-info-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .child-info-section {
      flex-direction: column;
      align-items: center;
    }

    .child-details {
      align-items: center;
    }

    .child-name-large {
      font-size: 24px;
    }

    .meta-item {
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .meta-item strong {
      min-width: auto;
    }

    .photo-thumbnail,
    .photo-placeholder {
      width: 140px;
      height: 180px;
    }

    .modal-content {
      max-width: 95vw;
      max-height: 95vh;
    }
  }
}
