/* ============================================================
   SupportIT — Design System (basado en tokens de Vanvien)
   Fuente: Poppins | Colores: Verde Vanvien #1d833a
   ============================================================ */

:root {
  --primary:       #1d833a;
  --primary-dark:  #155f2a;
  --primary-light: #2ab852;
  --primary-50:    #f0faf3;
  --primary-100:   #dcf5e4;

  --status-pending:     #f59e0b;
  --status-pending-bg:  #fffbeb;
  --status-progress:    #3b82f6;
  --status-progress-bg: #eff6ff;
  --status-done:        #1d833a;
  --status-done-bg:     #f0faf3;

  --bg:           #f4f6f9;
  --white:        #ffffff;
  --text:         #1c1e1f;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --border-light: #f0f1f3;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.06);

  --sidebar-width: 240px;
  --header-height: 60px;
  --font: 'Poppins', sans-serif;

  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIDEBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-logo {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-text {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 2px 8px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav a:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.sidebar-nav a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--text-xs);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-user-avatar img { width: 34px; height: 34px; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MAIN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
}
.header-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.header-badge {
  background: var(--primary-50);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.content {
  padding: 28px 32px;
  flex: 1;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  border-radius: var(--radius);
}
.burger:hover { background: var(--border-light); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
}
.card-body { padding: 20px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORMS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .required { color: #ef4444; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,131,58,0.12);
}
.form-control:disabled {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 13px; font-size: var(--text-xs); }
.btn-lg { padding: 12px 28px; font-size: var(--text-md); }
.btn-full { width: 100%; }
.btn-icon { padding: 7px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-microsoft {
  background: #ffffff;
  color: #1c1e1f;
  border: 1.5px solid var(--border);
  font-size: var(--text-sm);
  padding: 11px 20px;
  gap: 12px;
}
.btn-microsoft:hover { background: #f8f9fa; border-color: #ccc; }
.btn-microsoft img { width: 20px; height: 20px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STATUS BADGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-pending  { background: var(--status-pending-bg);  color: var(--status-pending); }
.badge-progress { background: var(--status-progress-bg); color: var(--status-progress); }
.badge-done     { background: var(--status-done-bg);     color: var(--status-done); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DROPZONE / FILE UPLOAD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-50);
}
.dropzone-icon { color: var(--text-muted); margin: 0 auto 10px; }
.dropzone-icon.pulse { animation: pulse 2s infinite; }
.dropzone-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 3px;
}
.dropzone-text strong { color: var(--primary); }
.dropzone-hint { font-size: var(--text-xs); color: var(--text-muted); }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-xs);
}
.file-item-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.file-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.file-item-size { color: var(--text-muted); flex-shrink: 0; }
.file-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 3px;
  display: flex; align-items: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.file-item-remove:hover { color: #ef4444; background: #fef2f2; }

.paste-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 8px;
  transition: color 0.2s;
}
.paste-hint kbd {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-family: monospace;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TICKET LIST (historial)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s ease;
  color: inherit;
}
.ticket-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.ticket-item-number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.ticket-item-info { flex: 1; min-width: 0; }
.ticket-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-item-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONVERSATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.conversation { display: flex; flex-direction: column; gap: 20px; }

.comment { display: flex; gap: 12px; }
.comment.comment-it { flex-direction: row-reverse; }

.comment-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--text-xs);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-it .comment-avatar { background: #e0e7ff; color: #4f46e5; }

.comment-body { flex: 1; max-width: 72%; }
.comment-it .comment-body { display: flex; flex-direction: column; align-items: flex-end; }

.comment-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-it .comment-bubble {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  border-radius: 12px 12px 2px 12px;
}

.comment-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
  display: flex; gap: 5px;
}
.comment-it .comment-meta { justify-content: flex-end; }

.comment-attachments {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comment-attachment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: rgba(0,0,0,0.06);
  border-radius: 6px;
  font-size: var(--text-xs);
  cursor: pointer;
  color: inherit;
  transition: background 0.15s;
}
.comment-attachment:hover { background: rgba(0,0,0,0.1); }
.comment-it .comment-attachment { background: rgba(29,131,58,0.1); color: var(--primary-dark); }
.comment-it .comment-attachment:hover { background: rgba(29,131,58,0.18); }

/* ── Reply Box ── */
.reply-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.reply-box textarea {
  border: none;
  outline: none;
  font-size: var(--text-sm);
  color: var(--text);
  resize: none;
  min-height: 72px;
  width: 100%;
  line-height: 1.6;
  background: transparent;
}
.reply-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,131,58,0.08);
}
.reply-box-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ADMIN TABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
thead th {
  padding: 9px 14px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border-light); transition: background 0.1s; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 11px 14px; vertical-align: middle; }

/* ── Filters ── */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filters .form-control { width: auto; min-width: 130px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DASHBOARD STATS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  border-top: 3px solid var(--border);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.stat-value { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 5px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: opacity 0.3s;
}
.alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: var(--primary-50); color: var(--primary-dark); border: 1px solid var(--primary-100); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOGIN PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0faf3 0%, #dcf5e4 50%, #e8f5ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(29,131,58,0.12), 0 2px 8px rgba(0,0,0,0.08);
  padding: 36px 32px;
}
.login-logo { text-align: center; margin-bottom: 20px; }
.login-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.login-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TICKET DETAIL HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ticket-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 0;
}
.ticket-number-large {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
  padding: 3px 9px;
  border-radius: 6px;
}
.ticket-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE OVERLAY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   UTILITIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 14px; color: var(--border); }
.empty-state h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: 6px; }
.empty-state p  { font-size: var(--text-sm); margin-bottom: 18px; }

.divider-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.divider-section::before, .divider-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.fade-in { animation: fadeIn 0.2s ease; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .admin-detail-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; }
  .burger { display: flex; }
  .content { padding: 18px 16px; }
  .header { padding: 0 16px; }
  .comment-body { max-width: 86%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .form-control { width: 100%; min-width: unset; }
  .login-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .ticket-item { flex-wrap: wrap; }
  .comment-body { max-width: 90%; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIGHTBOX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}
#lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
  font-family: var(--font);
}
#lightbox-close:hover { background: rgba(255,255,255,0.28); }
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  object-fit: contain;
}
#lightbox-pdf {
  width: 88vw;
  height: 90vh;
  border: none;
  border-radius: 8px;
}
