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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

[x-cloak] {
  display: none !important;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 220px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 60px;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-header {
  visibility: hidden;
  height: 60px;
  min-height: 60px;
}

.sidebar.collapsed .sidebar-logo {
  justify-content: center;
}

.sidebar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-logo-icon svg {
  color: white;
}

.sidebar-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease, width 0.3s ease;
}

.sidebar.collapsed .sidebar-logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  gap: 0.25rem;
  min-height: 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-footer {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Footer row - deadline + toggle in one line */
.sidebar-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.deadline-widget-inline {
  flex: 1;
  min-width: 0;
}

.sidebar-toggle-inline {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle-inline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Collapsed footer layout */
.sidebar-footer-collapsed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

/* Deadline badge for collapsed state */
.deadline-badge {
  width: 36px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deadline-badge:hover {
  background: rgba(255, 255, 255, 0.12);
}

.deadline-badge-text {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
}

.deadline-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

.deadline-badge.success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
}

.deadline-badge.success .deadline-badge-text {
  color: #34d399;
}

.deadline-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
}

.deadline-badge.warning .deadline-badge-text {
  color: #fbbf24;
}

.deadline-badge.urgent {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.deadline-badge.urgent .deadline-badge-text {
  color: #f87171;
}

/* Inline deadline edit */
.deadline-edit-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.deadline-input-small {
  flex: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.75rem;
  min-width: 0;
}

.deadline-btn-save-small,
.deadline-btn-cancel-small {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.deadline-btn-save-small {
  background: #10b981;
  color: white;
}

.deadline-btn-cancel-small {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.sidebar-footer-separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.125rem;
}

.deadline-widget-wrapper-expanded {
  width: 100%;
}

.deadline-compact-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
  height: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

.deadline-label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.deadline-days {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.deadline-set {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.deadline-compact-display.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.deadline-compact-display.success .deadline-days {
  color: #34d399;
}

.deadline-compact-display.success .deadline-icon {
  color: #34d399;
}

.deadline-compact-display.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.deadline-compact-display.warning .deadline-days {
  color: #fbbf24;
}

.deadline-compact-display.urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.deadline-compact-display.urgent .deadline-days {
  color: #f87171;
}

.deadline-compact-display:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.deadline-compact-display.urgent:hover {
  background: rgba(239, 68, 68, 0.2);
}

.deadline-compact-display.warning:hover {
  background: rgba(245, 158, 11, 0.2);
}

.deadline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.deadline-compact-display.urgent .deadline-icon {
  color: #f87171;
}

.deadline-compact-display.warning .deadline-icon {
  color: #fbbf24;
}

.deadline-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Deadline text always visible when widget is shown */

.deadline-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deadline-edit .deadline-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.75rem;
  min-width: 0;
}

.deadline-edit .deadline-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.deadline-edit .deadline-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
}

.deadline-edit .deadline-btn-save,
.deadline-edit .deadline-btn-cancel {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.deadline-edit .deadline-btn-save {
  background: #10b981;
  color: white;
}

.deadline-edit .deadline-btn-cancel {
  background: #ef4444;
  color: white;
}

.sidebar-toggle-small {
  width: 100%;
  height: 32px;
  padding: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-toggle-small:hover {
  background: rgba(255,255,255,0.15);
}

.sidebar-toggle-small:active {
  transform: scale(0.95);
}

.sidebar-toggle svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.sidebar-item {
  padding: 0.75rem 0.875rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 4px 4px 0;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-item:hover::before {
  transform: scaleY(1);
}

.sidebar-item.active {
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.sidebar-item.active::before {
  transform: scaleY(1);
}

.sidebar-item.active:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
}

.sidebar-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.25s ease;
}

.sidebar-item-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.sidebar-item:hover .sidebar-item-icon {
  transform: scale(1.1);
}

.sidebar-item.active .sidebar-item-icon {
  transform: scale(1.1);
}

.sidebar-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Admin sections - more muted/gray appearance */
.sidebar-item-admin {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 0.75;
  position: relative;
}

/* Add divider before first admin item */
.sidebar-item-admin-first {
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.sidebar-item-admin-first::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0.875rem;
  right: 0.875rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.sidebar-item-admin .sidebar-item-icon {
  opacity: 0.7;
}

.sidebar-item-admin:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.sidebar-item-admin:hover .sidebar-item-icon {
  opacity: 0.85;
}

.sidebar-item-admin.active {
  color: rgba(255, 255, 255, 0.85) !important;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
  opacity: 0.9;
}

.sidebar-item-admin.active .sidebar-item-icon {
  opacity: 0.9;
}

.sidebar-item-admin.active:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.18) 0%, rgba(118, 75, 162, 0.18) 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-item-admin::before {
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
}

/* Sidebar item disabled when no case (only Settings stays active) */
.sidebar-item-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.4) !important;
}
.sidebar-item-disabled:hover {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.4) !important;
}
.sidebar-item-disabled:hover::before {
  transform: scaleY(0);
}
.sidebar-item-disabled .sidebar-item-icon {
  opacity: 0.6;
}
.sidebar-item-disabled.active {
  background: transparent !important;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Get started block (when no cases) */
.sidebar-get-started {
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}
.sidebar-get-started-expanded {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-get-started-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  margin: 0;
}
.sidebar-get-started-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}
.sidebar-get-started-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}
.sidebar-get-started-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
.sidebar-get-started-collapsed {
  display: flex;
  justify-content: center;
}
.sidebar-get-started-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}
.sidebar-get-started-btn-icon:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}
.sidebar-get-started-btn-icon:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
.sidebar-get-started-btn-icon svg {
  flex-shrink: 0;
}
.sidebar.collapsed .sidebar-get-started {
  padding-left: 0;
  padding-right: 0;
}

/* Collapsed sidebar styles */
.sidebar.collapsed .sidebar-nav {
  padding: 0.75rem 0.375rem;
}

.sidebar.collapsed .sidebar-item {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar.collapsed .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar.collapsed .sidebar-item-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
}

.sidebar.collapsed .sidebar-item-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
}

.sidebar.collapsed .sidebar-item:hover .sidebar-item-icon {
  transform: scale(1.08);
}

.main-content {
  flex: 1;
  margin-left: 220px;
  margin-top: 60px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: calc(100vh - 60px);
  width: calc(100% - 220px);
  background: #f8f9fa;
  position: relative;
  padding: 2rem;
  padding-bottom: 400px; /* Extra space at bottom for dropdowns */
}

/* When sidebar is collapsed */
.app-layout:has(.sidebar.collapsed) .main-content,
body:has(.sidebar.collapsed) .main-content {
  margin-left: 64px;
  width: calc(100% - 64px);
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
  .app-layout.sidebar-collapsed .main-content {
    margin-left: 64px;
    width: calc(100% - 64px);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  overflow-y: visible;
}

.section {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.button-primary {
  background-color: #0070f3;
  color: white;
}

.button-primary:hover {
  background-color: #0051cc;
}

.button-primary:disabled {
  background-color: #6c757d;
  opacity: 0.6;
  cursor: not-allowed;
}

.button-danger {
  background-color: #dc3545;
  color: white;
}

.button-danger:hover {
  background-color: #c82333;
}

.button-success {
  background-color: #28a745;
  color: white;
}

.button-success:hover {
  background-color: #218838;
}

.input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
}

.textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  min-height: 200px;
  font-family: inherit;
  resize: vertical;
}

.drag-item {
  cursor: move;
  transition: opacity 0.2s;
}

.drag-item.dragging {
  opacity: 0.5;
}

.drag-item.sortable-ghost {
  opacity: 0.4;
  background: #e3e8f0;
}

.tabs-container {
  width: 100%;
  overflow: visible;
  padding: 0;
  margin-top: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group .help-text {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Top Bar Styles */
.top-bar {
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  height: 60px;
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar.sidebar-collapsed {
  left: 64px;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
  height: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  white-space: nowrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.top-bar-actions .button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-bar-actions .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.top-bar-actions .button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.top-bar-actions .button-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Exhibit item styles */
.exhibit-item {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exhibit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 1.5rem;
}

.exhibit-number-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.exhibit-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exhibit-header span {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.exhibit-header input[type="number"] {
  width: 45px;
  padding: 0.15rem 0.3rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  height: 1.5rem;
}

.exhibit-description-input {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  min-height: 1.5rem;
  max-height: 6rem;
  resize: none;
  overflow: hidden;
  min-width: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.exhibit-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
}

.exhibit-files {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.25rem;
}

.exhibit-file {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.exhibit-file a {
  font-size: 0.75rem;
  color: #0070f3;
  text-decoration: underline;
  padding: 0.25rem 0;
  cursor: pointer;
}

/* Criterion badge */
.criterion-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
  border: none;
  background: #0070f3;
  font-family: inherit;
  line-height: 1.4;
}

.criterion-badge:hover {
  opacity: 0.9;
}

.criterion-badge.empty {
  background-color: rgba(128, 128, 128, 0.3);
  color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Criterion dropdown */
.criterion-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  min-width: 150px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  animation: dropdownFadeIn 0.2s ease-out;
}

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

/* Scrollbar styling for dropdown */
.criterion-dropdown::-webkit-scrollbar {
  width: 6px;
}

.criterion-dropdown::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.criterion-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.criterion-dropdown::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Show dropdown above - now handled dynamically via JavaScript for fixed positioning */

.criterion-dropdown-item {
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.7rem;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.criterion-dropdown-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.criterion-dropdown-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.criterion-dropdown-item:hover {
  background-color: #f0f0f0;
}

.criterion-dropdown-item:last-child {
  border-bottom: none;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0070f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Status message */
.status-message {
  font-size: 0.7rem;
  color: #0c5460;
  padding: 0.25rem 0.5rem;
  background: #e8f4f8;
  border-radius: 3px;
  border: 1px solid #bee5eb;
  margin-top: 0.25rem;
}

/* Settings page specific styles */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.settings-box {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.settings-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Criteria list */
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.criterion-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: grab;
}

.criterion-item:active {
  cursor: grabbing;
}

.criterion-drag-handle {
  font-size: 1.2rem;
  color: #999;
  -webkit-user-select: none;
  user-select: none;
}

.criterion-color-preview {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  min-width: 80px;
  text-align: center;
}

.criterion-name-input {
  flex: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
}

.criterion-color-input {
  width: 40px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

/* Deadline Widget Styles */
.deadline-widget-container {
  margin-right: 1rem;
}

.deadline-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.1);
}

.deadline-compact:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}

.deadline-compact.urgent {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.deadline-compact.warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.deadline-compact.collapsed {
  justify-content: center;
  padding: 0.5rem;
}

.deadline-compact.collapsed .deadline-text {
  display: none;
}

.deadline-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.deadline-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deadline-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deadline-input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
}

.deadline-btn-save,
.deadline-btn-cancel {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.deadline-btn-save {
  background: #10b981;
  color: white;
}

.deadline-btn-cancel {
  background: #ef4444;
  color: white;
}

/* Dashboard Styles */
.dashboard-container {
  display: flex;
  gap: 2rem;
}

.dashboard-menu {
  min-width: 250px;
}

.dashboard-menu-item.active {
  background: #667eea;
  color: white;
}

.dashboard-panel {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.deadline-card {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.deadline-card.urgent {
  background: #fee2e2;
  border: 1px solid #ef4444;
}

.deadline-card.warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
}

.deadline-card.normal {
  background: #dbeafe;
  border: 1px solid #3b82f6;
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .dashboard-menu {
    min-width: 100%;
  }
}

/* Common utility classes */
.text-muted {
  color: #666;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.mt-05 {
  margin-top: 0.5rem;
}

.mt-15 {
  margin-top: 1.5rem;
}

.mt-2 {
  margin-top: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

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

.items-start {
  align-items: flex-start;
}

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

.gap-05 {
  gap: 0.5rem;
}

.gap-1 {
  gap: 1rem;
}

.gap-15 {
  gap: 1.5rem;
}

.gap-2 {
  gap: 2rem;
}

.grid {
  display: grid;
}

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

.grid-span-2 {
  grid-column: span 2;
}

.flex-1 {
  flex: 1;
}

.min-w-200 {
  min-width: 200px;
}

.min-w-250 {
  min-width: 250px;
}

.min-w-140 {
  min-width: 140px;
}

.max-w-140 {
  max-width: 140px;
}

.flex-0 {
  flex: 0 0 auto;
}

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

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

.font-mono {
  font-family: monospace;
}

.font-serif {
  font-family: 'Times New Roman', serif;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 2rem;
}

.text-25xl {
  font-size: 2.5rem;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

/* Dashboard specific styles */
.dashboard-container {
  margin-top: 1.5rem;
}

.dashboard-menu {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
}

.dashboard-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-menu-item {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.dashboard-menu-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

.dashboard-menu-item.active {
  background: #667eea;
  color: white;
}

.dashboard-menu-item-content {
  display: flex;
  flex-direction: column;
}

.dashboard-menu-item-label {
  font-weight: 500;
}

.dashboard-menu-item-desc {
  font-size: 0.75rem;
  opacity: 0.8;
}

.dashboard-content {
  flex: 1;
}

.dashboard-panel h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.dashboard-panel h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.progress-circle-container {
  text-align: center;
  margin-bottom: 2rem;
}

.progress-circle-wrapper {
  position: relative;
  display: inline-block;
  width: 150px;
  height: 150px;
}

.progress-circle-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-circle-value {
  font-size: 2rem;
  font-weight: 700;
}

.progress-circle-label {
  font-size: 0.875rem;
  opacity: 0.7;
}

.progress-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-bar-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.progress-bar-label {
  text-transform: capitalize;
}

.progress-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #667eea;
  transition: width 0.3s;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
}

.stat-value-primary {
  color: #667eea;
}

.stat-value-success {
  color: #10b981;
}

.stat-value-purple {
  color: #8b5cf6;
}

.stat-value-warning {
  color: #f59e0b;
}

.exhibits-by-criteria {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exhibits-by-criteria-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.timeline-milestones {
  margin-top: 2rem;
}

.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.milestone-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-checkbox.completed {
  border-color: #10b981;
}

.milestone-checkbox-icon {
  color: #10b981;
}

.checklist-section {
  margin-bottom: 1.5rem;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.checklist-header-label {
  font-weight: 600;
  text-transform: capitalize;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist-item-checked {
  color: #10b981;
}

.checklist-item-unchecked {
  color: #ddd;
}

.cost-card {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.cost-card-label {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.cost-card-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cost-breakdown-item {
  display: flex;
  justify-content: space-between;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.activity-content {
  flex: 1;
}

.activity-action {
  font-weight: 500;
}

.activity-time {
  font-size: 0.875rem;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #999;
}

.empty-state-text {
  font-size: 0.875rem;
}

/* Section description */
.section-description {
  margin-bottom: 1rem;
  color: #666;
}

/* Form layouts */
.form-layout-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Exhibit form styles */
.exhibit-form {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.exhibit-form-field {
  flex: 1;
  min-width: 200px;
}

.exhibit-form-field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.exhibit-form-field-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.exhibit-form-field-input {
  flex: 1;
}

.exhibit-form-upload {
  flex: 0 0 auto;
}

.exhibit-form-filter {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 140px;
}

.exhibit-form-filter-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.exhibits-empty {
  color: #999;
  font-style: italic;
}

.exhibit-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.exhibit-header-title {
  margin-bottom: 0;
}

.exhibit-header-description {
  margin-bottom: 0;
  color: #666;
  margin-top: 0.5rem;
}

.exhibit-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.exhibit-number-input {
  width: 45px;
  padding: 0.15rem 0.3rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  height: 1.5rem;
}

.exhibit-desc-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 4px;
  position: relative;
}

.exhibit-desc-btn.active {
  background: #0070f3;
  color: white;
}

.exhibit-desc-btn.inactive {
  background: #6c757d;
  color: white;
}

.exhibit-desc-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  border: 2px solid white;
}

.exhibit-add-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.exhibit-remove-btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.875rem;
  min-width: 24px;
  height: 24px;
}

.exhibit-file-parse-btn {
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  background: #ced4da;
  color: #495057;
  border: none;
  border-radius: 3px;
}

.exhibit-file-remove-btn {
  padding: 0;
  font-size: 0.875rem;
  background: none;
  color: #666;
  border: none;
  cursor: pointer;
}

.exhibit-detailed-desc {
  margin-top: 0.5rem;
}

.exhibit-detailed-desc-textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
}

/* Support letter styles */
.support-letter-settings {
  margin-bottom: 1.5rem;
}

.support-letter-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.support-letter-actions {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.support-letter-generate-btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.support-letter-format-btn {
  background: #17a2b8;
  color: white;
  border: none;
}

.support-letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.support-letter-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.support-letter-meta-item {
  font-size: 0.75rem;
  color: #666;
}

.support-letter-meta-cost {
  font-size: 0.75rem;
  color: #28a745;
}

.support-letter-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.support-letter-toggle-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.support-letter-textarea {
  min-height: 400px;
  font-family: 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
}

.support-letter-preview {
  min-height: 400px;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-family: 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.6;
}

.support-letter-exhibits {
  margin-top: 1.5rem;
}

.support-letter-exhibits-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.support-letter-exhibits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-letter-exhibit-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #e9ecef;
  color: #495057;
  border: 1px solid #ced4da;
}

/* Settings specific */
.settings-data-section {
  margin-top: 2rem;
  background: #f0f0f0;
}

.settings-data-description {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.settings-data-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-data-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-export-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.settings-export-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #666;
}

.settings-export-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-export-btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  background: #17a2b8;
  color: white;
  border: none;
}

.settings-import-btn {
  background: #6c757d;
  color: white;
}

.hidden {
  display: none;
}

.textarea-min-h-80 {
  min-height: 80px;
}

.textarea-min-h-100 {
  min-height: 100px;
}

.textarea-min-h-400 {
  min-height: 400px;
}

.select-w-200 {
  width: 200px;
}

/* Cover letter styles */
.cover-letter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.cover-letter-form-field {
  flex: 1;
  margin-bottom: 0;
}

.cover-letter-form-field-small {
  width: 150px;
  margin-bottom: 0;
}

.cover-letter-empty {
  color: #999;
  font-style: italic;
}

.cover-letter-doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.cover-letter-doc-drag {
  font-size: 1.2rem;
  color: #999;
  cursor: grab;
}

.cover-letter-doc-number {
  font-weight: 600;
  min-width: 30px;
}

.cover-letter-doc-name {
  flex: 1;
}

.cover-letter-doc-type {
  width: 130px;
}

.cover-letter-doc-remove {
  padding: 0.25rem 0.5rem;
}

/* Officer review styles */
.officer-review-actions {
  margin-bottom: 1.5rem;
}

.officer-review-btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.officer-review-warning {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.officer-versions {
  margin-top: 2rem;
}

.officer-version-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
}

.officer-version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.officer-version-info {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.officer-version-time {
  color: #666;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.officer-version-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.officer-score-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.officer-score-high {
  background: #d4edda;
  color: #155724;
}

.officer-score-medium {
  background: #fff3cd;
  color: #856404;
}

.officer-score-low {
  background: #f8d7da;
  color: #721c24;
}

.officer-status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.officer-status-reviewed {
  background: #d4edda;
  color: #155724;
}

.officer-status-pending {
  background: #e9ecef;
  color: #6c757d;
}

.officer-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.officer-review-card {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.officer-review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.officer-review-card-title {
  text-transform: capitalize;
}

.officer-review-card-score {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.officer-review-card-text {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

.officer-view-btn {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #e9ecef;
  color: #495057;
  border: 1px solid #ced4da;
}

/* Exhibits list styles */
.exhibits-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0.875rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px 4px 0 0;
  flex-wrap: wrap;
}

.exhibits-list-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
}

.exhibits-list-header-icon {
  color: #888;
}

.exhibits-list-header-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #333;
}

.exhibits-list-header-count {
  color: #888;
  font-size: 0.8125rem;
}

.exhibits-list-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exhibits-list-details-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  color: #555;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.exhibits-list-details-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.exhibits-list-details-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.exhibits-list-details-btn.active:hover {
  background: #5a6fd6;
  border-color: #5a6fd6;
}

.exhibits-list-details-btn svg {
  flex-shrink: 0;
}

.exhibits-list-sort-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 0.8125rem;
  cursor: pointer;
}

.exhibits-list-table {
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: white;
}

.exhibits-list-empty {
  color: #999;
  font-style: italic;
  padding: 1.5rem 1rem;
  text-align: center;
}

.exhibits-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid #eee;
}

.exhibits-list-row:last-child {
  border-bottom: none;
}

.exhibits-list-row:hover {
  background: #fafafa;
}

.exhibits-list-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #e8ecf4;
  color: #4a5568;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 68px;
  text-align: center;
  border: 1px solid #d1d8e4;
}

.exhibits-list-desc {
  flex: 1;
  color: #333;
  font-size: 0.875rem;
  min-width: 0;
}

.exhibits-list-file-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}

.exhibits-list-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b9dc3;
}

.exhibits-list-file-dash {
  color: #ccc;
  font-size: 0.875rem;
}

.exhibits-list-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.25rem;
}

.exhibits-list-link:hover {
  text-decoration: underline;
}

.exhibits-list-detail {
  width: 100%;
  margin-top: 0.375rem;
  margin-left: 76px;
  padding: 0.4rem 0.625rem;
  background: #f5f5f5;
  border-left: 2px solid #667eea;
  font-size: 0.8125rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .exhibits-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .exhibits-list-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .exhibits-list-detail {
    margin-left: 0;
  }
}

/* Help Button */
.help-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 1rem;
}

.help-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.help-button:active {
  transform: translateY(0);
}

.help-button svg {
  flex-shrink: 0;
}

/* Help Modal - Modern Onboarding Style */
.help-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.help-modal {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

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

.help-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.help-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.help-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.help-modal-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0;
  color: #f1f5f9;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.help-modal-title::before {
  content: '📋';
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  -webkit-text-fill-color: #f1f5f9;
}

.help-modal-close {
  background: #f1f5f9;
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
  flex-shrink: 0;
}

.help-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg) scale(1.1);
}

.help-modal-content {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.help-modal-content::-webkit-scrollbar {
  width: 8px;
}

.help-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.help-modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.help-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

/* Remove connecting lines for card layout */
.help-step:not(:last-child)::after {
  display: none;
}

.help-step-skip:not(:last-child)::after {
  background: linear-gradient(180deg, #94a3b8 0%, rgba(148, 163, 184, 0.3) 100%);
}

.help-step-success:not(:last-child)::after {
  background: linear-gradient(180deg, #10b981 0%, rgba(16, 185, 129, 0.3) 100%);
}

.help-step-final:not(:last-child)::after {
  background: linear-gradient(180deg, #f59e0b 0%, rgba(245, 158, 11, 0.3) 100%);
}

.help-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.help-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.help-step:hover::before {
  opacity: 1;
}

.help-step-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.help-step:hover {
  background: #f1f3f5;
  transform: translateX(4px);
}

.help-step-skip {
  border-left-color: #94a3b8;
  opacity: 0.8;
}

.help-step-success {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.help-step-final {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.help-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-step:hover .help-step-number {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.help-step-icon,
.help-step-infographic {
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-radius: 16px;
  color: #667eea;
  padding: 0.5rem;
  transition: all 0.3s;
  border: 2px solid rgba(102, 126, 234, 0.15);
  position: relative;
  overflow: hidden;
}

.help-step-infographic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.help-step:hover .help-step-infographic::before {
  opacity: 1;
}

.help-step:hover .help-step-icon,
.help-step:hover .help-step-infographic {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.help-step-icon svg,
.help-step-infographic svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.15));
  position: relative;
  z-index: 1;
}

.help-step-skip .help-step-number {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.help-step-skip .help-step-icon,
.help-step-skip .help-step-infographic {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.08) 0%, rgba(100, 116, 139, 0.08) 100%);
  border-color: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.help-step-skip:hover .help-step-icon,
.help-step-skip:hover .help-step-infographic {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(100, 116, 139, 0.12) 100%);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
}

.help-step-success .help-step-number {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.help-step-success .help-step-icon,
.help-step-success .help-step-infographic {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #d1fae5;
  color: #10b981;
}

.help-step-success:hover .help-step-icon,
.help-step-success:hover .help-step-infographic {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #86efac;
}

.help-step-final .help-step-icon,
.help-step-final .help-step-infographic {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  color: #f59e0b;
}

.help-step-final:hover .help-step-icon,
.help-step-final:hover .help-step-infographic {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fcd34d;
}

.help-step-skip .help-step-icon,
.help-step-skip .help-step-infographic {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #e2e8f0;
  color: #94a3b8;
}

.help-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.help-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.help-step-description {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.95rem;
}

.help-step-description {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.help-step-action {
  margin-top: 0.5rem;
}

.help-step-button {
  padding: 0.625rem 1.25rem;
  background: white;
  border: 2px solid #667eea;
  border-radius: 8px;
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.help-step-button:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.help-step-button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
}

.help-step-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.help-modal-footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.help-modal-close-button {
  padding: 0.75rem 2rem;
  background: #0f172a;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.help-modal-close-button:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.help-modal-close-button:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .form-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .support-letter-settings-grid {
    grid-template-columns: 1fr;
  }
  
  .exhibit-form {
    flex-direction: column;
  }
  
  .exhibit-form-field,
  .exhibit-form-filter {
    min-width: 100%;
    max-width: 100%;
  }
  
  .officer-reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .help-modal {
    max-width: 100%;
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .help-modal-header {
    padding: 1rem 1.5rem;
  }
  
  .help-modal-title {
    font-size: 1.25rem;
  }
  
  .help-modal-content {
    padding: 1.5rem;
  }
  
  .help-step {
    flex-direction: column;
    gap: 1rem;
  }
  
  .help-step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .help-button span {
    display: none;
  }
}

/* ================================
   Legal Links in Sidebar
   ================================ */
.sidebar-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-legal-link {
  color: rgba(148, 163, 184, 0.6);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.sidebar-legal-link:hover {
  color: rgba(148, 163, 184, 0.9);
}

.sidebar-legal-dot {
  color: rgba(100, 116, 139, 0.4);
  font-size: 0.625rem;
}

/* ================================
   Checkout Modal Styles
   ================================ */
.checkout-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checkout-modal {
  background: white;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.checkout-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.checkout-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.checkout-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.checkout-modal-close:hover {
  color: #475569;
}

.checkout-modal-content {
  padding: 1.5rem;
}

.checkout-disclaimer-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-disclaimer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 0.875rem;
}

.checkout-disclaimer-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.checkout-disclaimer-list li {
  color: #78350f;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
  line-height: 1.5;
  text-align: left;
}

.checkout-disclaimer-list li strong {
  color: #92400e;
}

.checkout-plan-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-plan-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  margin-bottom: 0;
}

.checkout-plan-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

.checkout-plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.checkout-agreement {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0;
}

.checkout-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.6;
}

.checkout-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #667eea;
  cursor: pointer;
}

.checkout-checkbox-label a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.checkout-checkbox-label a:hover {
  text-decoration: underline;
}

.checkout-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  background: #f8fafc;
}

.checkout-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.checkout-btn-cancel {
  background: #f1f5f9;
  color: #475569;
}

.checkout-btn-cancel:hover {
  background: #e2e8f0;
}

.checkout-btn-proceed {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.checkout-btn-proceed:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.checkout-btn-proceed:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ================================
   Modern Pricing Section Styles
   ================================ */

.pricing-section {
  max-width: 1400px;
  margin: 0 auto;
}

/* Current Plan Card */
.current-plan-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  color: white;
  box-shadow: 0 20px 60px -12px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.current-plan-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

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

.current-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.current-plan-info {
  flex: 1;
  min-width: 250px;
}

.current-plan-label {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.current-plan-name {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.5px;
}

.current-plan-desc {
  opacity: 0.95;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.current-plan-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.current-plan-stat-card {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  min-width: 140px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.current-plan-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.current-plan-stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.current-plan-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.current-plan-stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

.current-plan-stat-sublabel {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Pricing Plans Header */
.pricing-plans-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.pricing-plans-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.pricing-plans-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
}

/* Pricing Plans Grid */
.pricing-plans-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  margin: 0 -0.75rem 2rem;
  gap: 1rem;
}

.pricing-plans-grid > * {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.pricing-plan-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pricing-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  border-color: #cbd5e1;
}

.pricing-plan-card-popular {
  border-color: #667eea;
  box-shadow: 0 10px 30px -10px rgba(102, 126, 234, 0.3);
}

.pricing-plan-card-popular:hover {
  box-shadow: 0 20px 50px -12px rgba(102, 126, 234, 0.4);
}

.pricing-plan-card-current {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.pricing-plan-badge {
  position: absolute;
  top: -12px;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pricing-plan-badge-popular {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.pricing-plan-badge-current {
  right: 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.pricing-plan-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
}

.pricing-plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.pricing-plan-description {
  color: #64748b;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.pricing-plan-price-section {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #f1f5f9;
}

.pricing-plan-price {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.pricing-plan-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.25rem;
}

.pricing-plan-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -2px;
}

.pricing-plan-period {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 0.25rem;
  align-self: flex-end;
  padding-bottom: 0.25rem;
}

.pricing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-plan-feature {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
}

.pricing-plan-feature > * + * {
  margin-left: 0.875rem;
}

.pricing-plan-feature-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-plan-button {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-plan-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.pricing-plan-button:hover::before {
  width: 300px;
  height: 300px;
}

.pricing-plan-button-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.pricing-plan-button-current {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

.pricing-plan-button-current:hover {
  transform: none;
}

.pricing-plan-button-agency {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.pricing-plan-button-agency:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
}

.pricing-plan-button-personal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.pricing-plan-button-personal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.pricing-plan-button-free {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(26, 26, 46, 0.3);
}

.pricing-plan-button-free:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.4);
}

.pricing-plan-button-popular {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  position: relative;
}

.pricing-plan-button-popular::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  -webkit-background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  -webkit-transition: left 0.5s;
  transition: left 0.5s;
}

.pricing-plan-button-popular:hover::after {
  left: 100%;
}

/* Modern Checkout Modal Styles */
.checkout-modal-backdrop {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.75);
}

.checkout-modal {
  -webkit-border-radius: 28px;
  border-radius: 28px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
  -webkit-animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@-webkit-keyframes modalSlideIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-30px) scale(0.96);
    transform: translateY(-30px) scale(0.96);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-30px) scale(0.96);
    transform: translateY(-30px) scale(0.96);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}

.checkout-modal-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  -webkit-background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 28px 28px 0 0;
  -webkit-border-radius: 28px 28px 0 0;
}

.checkout-modal-header > * + * {
  margin-left: 1rem;
}

.checkout-modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.checkout-modal-header-content {
  flex: 1;
}

.checkout-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.5px;
}

.checkout-modal-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.checkout-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkout-modal-close:hover {
  background: #e2e8f0;
  color: #475569;
  transform: rotate(90deg);
}

.checkout-modal-content-scrollable {
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.checkout-modal-content-scrollable::-webkit-scrollbar {
  width: 8px;
}

.checkout-modal-content-scrollable::-webkit-scrollbar-track {
  background: #f1f5f9;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.checkout-modal-content-scrollable::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.checkout-modal-content-scrollable::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.checkout-modal-content {
  padding: 2rem;
}

.checkout-plan-summary-modern {
  -webkit-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-border-radius: 20px;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  -webkit-box-shadow: 0 10px 30px -10px rgba(102, 126, 234, 0.4);
  box-shadow: 0 10px 30px -10px rgba(102, 126, 234, 0.4);
}

.checkout-plan-summary-content {
  margin-bottom: 1.5rem;
}

.checkout-plan-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-plan-price-modern {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.checkout-plan-price-modern > * + * {
  margin-left: 0.25rem;
}

.checkout-price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
}

.checkout-price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}

.checkout-price-period {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.checkout-plan-description {
  font-size: 0.9375rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.6;
}

.checkout-plan-features-full {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  -webkit-border-radius: 16px;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-plan-features-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem 0;
  letter-spacing: -0.25px;
}

.checkout-plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.checkout-plan-feature-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
}

.checkout-plan-feature-item:last-child {
  margin-bottom: 0;
}

.checkout-plan-feature-item > * + * {
  margin-left: 0.75rem;
}

.checkout-plan-feature-item svg {
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  color: #10b981;
  margin-top: 0.125rem;
}

.checkout-disclaimer-box-modern {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  -webkit-background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  -webkit-border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.checkout-disclaimer-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 1rem;
}

.checkout-disclaimer-header > * + * {
  margin-left: 0;
}

.checkout-disclaimer-icon {
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #f59e0b;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: white;
  margin-right: 1.25rem;
}

.checkout-disclaimer-title-modern {
  font-weight: 700;
  color: #92400e;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.checkout-disclaimer-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.checkout-disclaimer-list-modern li {
  color: #78350f;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding-left: 0;
  margin-bottom: 0.5rem;
  display: block;
}

.checkout-disclaimer-list-modern li:last-child {
  margin-bottom: 0;
}

.checkout-disclaimer-list-modern li::before {
  content: '•';
  color: #f59e0b;
  font-weight: 800;
  margin-right: 0.5rem;
  font-size: 1rem;
  display: inline-block;
}

.checkout-disclaimer-list-modern li strong {
  color: #92400e;
  font-weight: 700;
}

.checkout-agreement-modern {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  -webkit-border-radius: 14px;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.checkout-checkbox-label-modern {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.7;
}

.checkout-checkbox-modern {
  display: none;
}

.checkout-checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s;
}

.checkout-checkbox-modern:checked + .checkout-checkbox-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

.checkout-checkbox-modern:checked + .checkout-checkbox-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
}

.checkout-checkbox-text {
  flex: 1;
}

.checkout-checkbox-label-modern a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.checkout-checkbox-label-modern a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.checkout-modal-footer-modern {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  background: #f8fafc;
  -webkit-border-radius: 0 0 28px 28px;
  border-radius: 0 0 28px 28px;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.checkout-modal-footer-modern > * + * {
  margin-left: 1rem;
}

.checkout-btn-modern {
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.checkout-btn-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.checkout-btn-content > * + * {
  margin-left: 0.5rem;
}

.checkout-btn-cancel-modern {
  background: #f1f5f9;
  color: #475569;
}

.checkout-btn-cancel-modern:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.checkout-btn-proceed-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.checkout-btn-proceed-modern:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

.checkout-btn-proceed-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.checkout-btn-spinner {
  animation: spin 1s linear infinite;
}

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

/* Responsive styles for pricing section */
@media (max-width: 1024px) {
  .pricing-plans-grid {
    flex-wrap: wrap;
  }
  
  .pricing-plans-grid > * {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .pricing-plans-grid {
    flex-direction: column;
  }
  
  .pricing-plans-grid > * {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .current-plan-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .current-plan-stats {
    width: 100%;
    justify-content: space-between;
  }
  
  .current-plan-stat-card {
    flex: 1;
    min-width: 0;
  }
}

/* ================================
   Mobile Responsive Styles
   ================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  transform: scale(1.05);
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 1024px) {
  .main-content {
    padding: 1.5rem;
  }
  
  .container {
    padding: 1.5rem;
  }
  
  .section {
    padding: 1.5rem;
  }
  
  .top-bar-content {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  /* Hide sidebar by default on mobile */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .sidebar.collapsed {
    width: 280px;
    transform: translateX(-100%);
  }
  
  .sidebar.collapsed.mobile-open {
    transform: translateX(0);
  }
  
  /* Adjust main content for mobile */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    padding: 1rem;
    padding-top: 70px;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* Container adjustments */
  .container {
    padding: 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .tabs-container {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Top bar adjustments */
  .top-bar {
    left: 0 !important;
    padding-left: 60px;
  }
  
  .top-bar-content {
    padding: 0 0.75rem 0 0.5rem;
    gap: 0.5rem;
  }
  
  .top-bar-title {
    font-size: 0.9rem;
    display: none;
  }
  
  .top-bar-left {
    display: none !important;
  }
  
  .top-bar-actions {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .top-bar-actions .button {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  
  /* Credits display in topbar - compact */
  .top-bar-actions > button[style*="display: flex"] {
    padding: 0.35rem 0.6rem !important;
    gap: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
  
  .top-bar-actions > button > div[style*="padding: 0.25rem"] {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.6rem !important;
  }
  
  .top-bar-actions span[style*="font-size: 0.875rem"] {
    font-size: 0.75rem !important;
  }
  
  .top-bar-actions span[style*="font-size: 0.75rem"] {
    display: none !important;
  }
  
  /* User info compact */
  .top-bar-actions > div[style*="border-left"] {
    padding-left: 0.5rem !important;
    margin-left: 0.5rem !important;
  }
  
  .top-bar-actions > div[style*="border-left"] > div > span[style*="font-weight: 600"] {
    display: none !important;
  }
  
  /* Help button adjustments */
  .help-button {
    padding: 0.35rem 0.6rem;
    margin-right: 0.5rem;
  }
  
  .help-button span {
    display: none;
  }
  
  /* Section adjustments */
  .section {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow-x: hidden;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  /* Form adjustments */
  .form-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .grid-span-2 {
    grid-column: span 1;
  }
  
  /* Exhibit form adjustments */
  .exhibit-form {
    flex-direction: column;
  }
  
  .exhibit-form-field,
  .exhibit-form-filter {
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
  .exhibit-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .exhibit-description-input {
    min-width: 100% !important;
    width: 100% !important;
  }
  
  .exhibit-actions {
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
  
  .exhibit-item {
    padding: 0.75rem;
  }
  
  .exhibit-number-container {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Dashboard adjustments - CRITICAL */
  .dashboard-container {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .dashboard-menu {
    min-width: 100% !important;
    width: 100% !important;
    padding: 1rem;
    order: -1;
  }
  
  .dashboard-menu-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .dashboard-menu-item {
    padding: 0.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
  
  .dashboard-menu-item svg {
    margin: 0 auto;
  }
  
  .dashboard-menu-item-content {
    width: 100%;
  }
  
  .dashboard-menu-item-label {
    font-size: 0.75rem;
  }
  
  .dashboard-menu-item-desc {
    display: none;
  }
  
  .dashboard-content {
    width: 100%;
    min-width: 0;
  }
  
  .dashboard-panel {
    padding: 1rem;
  }
  
  .dashboard-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .dashboard-panel h4 {
    font-size: 0.95rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* Progress circle adjustments */
  .progress-circle-container {
    margin-bottom: 1.5rem;
  }
  
  .progress-circle-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .progress-circle-value {
    font-size: 1.5rem;
  }
  
  .progress-bars {
    gap: 0.75rem;
  }
  
  /* Officer reviews grid */
  .officer-reviews-grid {
    grid-template-columns: 1fr;
  }
  
  /* Support letter settings */
  .support-letter-settings-grid {
    grid-template-columns: 1fr;
  }
  
  .support-letter-textarea,
  .support-letter-preview {
    min-height: 300px;
  }
  
  /* Cover letter form */
  .cover-letter-form {
    flex-direction: column;
  }
  
  .cover-letter-form-field,
  .cover-letter-form-field-small {
    width: 100%;
  }
  
  .cover-letter-doc-item {
    flex-wrap: wrap;
  }
  
  .cover-letter-doc-type {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Settings grid */
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .settings-box {
    padding: 0.875rem;
  }
  
  /* Exhibits list */
  .exhibits-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .exhibits-list-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .exhibits-list-detail {
    margin-left: 0;
  }
  
  .exhibits-list-row {
    padding: 0.75rem;
  }
  
  .exhibits-list-tag {
    min-width: 50px;
    font-size: 0.65rem;
  }
  
  .exhibits-list-desc {
    font-size: 0.8rem;
  }
  
  /* Sidebar close button on mobile */
  .sidebar-mobile-close {
    display: flex !important;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
  }
  
  .sidebar-mobile-close:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  
  /* Ensure sidebar header has padding for close button */
  .sidebar .sidebar-header {
    padding-right: 50px;
  }
  
  /* Current plan card mobile */
  .current-plan-card {
    padding: 1.25rem;
    border-radius: 16px;
  }
  
  .current-plan-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .current-plan-name {
    font-size: 1.5rem;
  }
  
  .current-plan-stats {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .current-plan-stat-card {
    padding: 0.75rem;
    min-width: calc(50% - 0.25rem);
    flex: 1;
  }
  
  .current-plan-stat-value {
    font-size: 1.25rem;
  }
  
  .current-plan-stat-label {
    font-size: 0.75rem;
  }
  
  /* Pricing section mobile */
  .pricing-plans-grid {
    flex-direction: column !important;
    gap: 1rem;
  }
  
  .pricing-plans-grid > * {
    flex: none !important;
    width: 100% !important;
  }
  
  .pricing-plan-card {
    padding: 1.25rem;
  }
  
  .pricing-plan-amount {
    font-size: 2rem;
  }
  
  /* Help modal mobile */
  .help-modal {
    max-width: 100%;
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
    border-radius: 16px;
  }
  
  .help-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .help-modal-title {
    font-size: 1.25rem;
  }
  
  .help-modal-content {
    padding: 1.25rem;
  }
  
  .help-step {
    padding: 1.25rem;
  }
  
  .help-step-number {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .help-step-title {
    font-size: 1.25rem;
  }
  
  .help-step-icon,
  .help-step-infographic {
    width: 80px;
    height: 70px;
  }
  
  /* Checkout modal mobile */
  .checkout-modal {
    max-width: 100%;
    margin: 0.5rem;
    border-radius: 16px;
  }
  
  .checkout-modal-header {
    padding: 1.25rem;
    border-radius: 16px 16px 0 0;
  }
  
  .checkout-modal-content {
    padding: 1.25rem;
  }
  
  .checkout-plan-summary-modern {
    padding: 1.25rem;
    border-radius: 14px;
  }
  
  .checkout-price-amount {
    font-size: 2.5rem;
  }
  
  .checkout-modal-footer-modern {
    padding: 1rem 1.25rem;
    border-radius: 0 0 16px 16px;
    flex-direction: column;
  }
  
  .checkout-modal-footer-modern > * + * {
    margin-left: 0;
    margin-top: 0.75rem;
  }
  
  .checkout-btn-modern {
    width: 100%;
    justify-content: center;
  }
  
  /* Textarea and inputs */
  .textarea {
    min-height: 150px;
  }
  
  .input, .textarea, select {
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  /* Flex utilities on mobile */
  .flex {
    flex-wrap: wrap;
  }
  
  .gap-2 {
    gap: 1rem;
  }
  
  /* Criterion dropdown */
  .criterion-dropdown {
    min-width: 120px;
    max-width: calc(100vw - 2rem);
  }
  
  /* Deadline card */
  .deadline-card {
    padding: 1rem;
  }
  
  /* Cost card */
  .cost-card {
    padding: 1rem;
  }
  
  .cost-card-value {
    font-size: 1.75rem;
  }
  
  /* Activity items */
  .activity-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .activity-icon {
    width: 28px;
    height: 28px;
  }
  
  .activity-action {
    font-size: 0.875rem;
  }
  
  .activity-time {
    font-size: 0.75rem;
  }
  
  /* Milestone items */
  .milestone-item {
    font-size: 0.875rem;
  }
  
  /* Checklist */
  .checklist-section {
    margin-bottom: 1rem;
  }
  
  .checklist-item {
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }
  
  /* Criteria list */
  .criteria-list {
    gap: 0.5rem;
  }
  
  .criterion-item {
    padding: 0.5rem;
    flex-wrap: wrap;
  }
  
  .criterion-name-input {
    min-width: 100px;
  }
  
  /* Empty dashboard */
  .empty-dashboard {
    padding: 1rem;
    min-height: 50vh;
  }
  
  .empty-dashboard-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .empty-dashboard-title {
    font-size: 1.25rem;
  }
  
  .empty-dashboard-text {
    font-size: 0.9rem;
  }
  
  /* Officer version items */
  .officer-version-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .officer-version-badges {
    flex-wrap: wrap;
  }
  
  /* Export section */
  .settings-export-section {
    padding: 0.75rem;
  }
  
  .settings-export-buttons {
    flex-direction: column;
  }
  
  .settings-export-buttons .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Extra small screen adjustments */
  .main-content {
    padding: 0.5rem;
    padding-top: 60px;
  }
  
  .section {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
  }
  
  .section-title {
    font-size: 1rem;
    padding-bottom: 0.375rem;
    margin-bottom: 1rem;
  }
  
  .top-bar {
    height: 52px;
  }
  
  .top-bar-content {
    padding: 0 0.5rem 0 0.25rem;
  }
  
  .mobile-menu-toggle {
    top: 6px;
    left: 6px;
    width: 38px;
    height: 38px;
  }
  
  .button {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .input, .textarea, select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.5rem;
  }
  
  /* Stats grid single column */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .stat-card {
    padding: 0.5rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  /* Progress circle smaller */
  .progress-circle-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .progress-circle-value {
    font-size: 1.25rem;
  }
  
  /* Dashboard menu grid - 3 columns on very small */
  .dashboard-menu-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
  }
  
  .dashboard-menu-item {
    padding: 0.375rem;
  }
  
  .dashboard-menu-item svg {
    width: 16px;
    height: 16px;
  }
  
  .dashboard-menu-item-label {
    font-size: 0.65rem;
  }
  
  .dashboard-panel {
    padding: 0.75rem;
  }
  
  .dashboard-panel h3 {
    font-size: 1rem;
  }
  
  /* Pricing card mobile */
  .pricing-plan-card {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .pricing-plan-name {
    font-size: 1.25rem;
  }
  
  .pricing-plan-amount {
    font-size: 1.75rem;
  }
  
  .pricing-plan-button {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
  
  .pricing-plan-features {
    margin-bottom: 1.5rem;
  }
  
  .pricing-plan-feature {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  /* Cost card */
  .cost-card {
    padding: 0.75rem;
  }
  
  .cost-card-value {
    font-size: 1.5rem;
  }
  
  /* Activity items */
  .activity-item {
    padding: 0.375rem;
  }
  
  .activity-icon {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .activity-action {
    font-size: 0.8rem;
  }
  
  .activity-time {
    font-size: 0.7rem;
  }
  
  /* Current plan */
  .current-plan-card {
    padding: 1rem;
  }
  
  .current-plan-name {
    font-size: 1.25rem;
  }
  
  .current-plan-desc {
    font-size: 0.8rem;
  }
  
  .current-plan-stat-card {
    padding: 0.5rem;
  }
  
  .current-plan-stat-icon {
    font-size: 1.25rem;
  }
  
  .current-plan-stat-value {
    font-size: 1rem;
  }
  
  .current-plan-stat-label {
    font-size: 0.65rem;
  }
  
  /* Help button */
  .help-button {
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
  }
  
  .help-button svg {
    width: 18px;
    height: 18px;
  }
  
  /* Exhibit items */
  .exhibit-item {
    padding: 0.5rem;
  }
  
  .exhibit-header span {
    font-size: 0.8rem;
  }
  
  .exhibit-header input[type="number"] {
    width: 40px;
    font-size: 0.8rem;
  }
  
  .exhibit-description-input {
    font-size: 0.8rem;
    padding: 0.25rem 0.375rem;
  }
  
  .criterion-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.375rem;
  }
  
  /* Empty dashboard */
  .empty-dashboard-icon svg {
    width: 50px;
    height: 50px;
  }
  
  .empty-dashboard-title {
    font-size: 1.1rem;
  }
  
  .empty-dashboard-text {
    font-size: 0.85rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Modals */
  .help-modal,
  .checkout-modal {
    margin: 0.25rem;
    max-height: calc(100vh - 0.5rem);
    border-radius: 12px;
  }
  
  .help-modal-header,
  .checkout-modal-header {
    padding: 1rem;
  }
  
  .help-modal-title,
  .checkout-modal-title {
    font-size: 1.1rem;
  }
  
  .help-modal-content,
  .checkout-modal-content {
    padding: 1rem;
  }
  
  .help-step {
    padding: 1rem;
  }
  
  .help-step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .help-step-title {
    font-size: 1.1rem;
  }
  
  .help-step-description {
    font-size: 0.85rem;
  }
  
  /* Footer links */
  .sidebar-legal {
    padding: 0.5rem;
  }
  
  .sidebar-legal-link {
    font-size: 0.6rem;
  }
}

/* Landscape mode adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    overflow-y: auto;
  }
  
  .sidebar-nav {
    max-height: calc(100vh - 140px);
  }
  
  .help-modal {
    max-height: 95vh;
  }
  
  .checkout-modal {
    max-height: 95vh;
  }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
  .sidebar-item {
    min-height: 48px;
  }
  
  .button {
    min-height: 44px;
  }
  
  .exhibit-add-btn,
  .exhibit-remove-btn,
  .exhibit-desc-btn {
    min-height: 36px;
    min-width: 36px;
  }
  
  .criterion-badge {
    min-height: 32px;
    padding: 0.25rem 0.6rem;
  }
  
  .criterion-dropdown-item {
    min-height: 44px;
  }
}
