:root {
  /* Tech Blue Theme (Light Studio Mode) */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #93c5fd;
  --primary-border-strong: #2563eb;
  
  --secondary: #4b5563;
  
  /* Backgrounds */
  --bg-page: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f9fafb;
  --bg-input: #ffffff;
  
  /* Text */
  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  
  /* Borders */
  --border-light: #e5e7eb;
  --border-strong: #d1d5db;

  /* Wishlist reach/match/safety color sets */
  --reach-bg: #ffebee;
  --reach-text: #c62828;
  --reach-border: #ffcdd2;
  
  --match-bg: #e3f2fd;
  --match-text: #1565c0;
  --match-border: #bbdefb;
  
  --safety-bg: #e8f5e9;
  --safety-text: #2e7d32;
  --safety-border: #c8e6c9;

  --warning-bg: #fff8e1;
  --warning-text: #b78103;
  --warning-border: #ffe082;
  
  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --transition: 0.22s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.dark-theme {
  /* Dark Studio Mode */
  --primary: #4589ff;
  --primary-hover: #78a9ff;
  --primary-light: rgba(69, 137, 255, 0.15);
  --primary-border: #355b9a;
  --primary-border-strong: #4589ff;
  
  --secondary: #9ca3af;
  
  /* Backgrounds */
  --bg-page: #090d16;
  --bg-surface: #121b2d;
  --bg-surface-hover: #1b2945;
  --bg-input: #070a12;
  
  /* Text */
  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #090d16;
  
  /* Borders */
  --border-light: #1f2e4d;
  --border-strong: #2c426f;

  /* Wishlist reach/match/safety color sets */
  --reach-bg: rgba(239, 68, 68, 0.15);
  --reach-text: #f87171;
  --reach-border: rgba(239, 68, 68, 0.4);
  
  --match-bg: rgba(59, 130, 246, 0.15);
  --match-text: #60a5fa;
  --match-border: rgba(59, 130, 246, 0.4);
  
  --safety-bg: rgba(16, 185, 129, 0.15);
  --safety-text: #34d399;
  --safety-border: rgba(16, 185, 129, 0.4);

  --warning-bg: rgba(245, 158, 11, 0.15);
  --warning-text: #fbbf24;
  --warning-border: rgba(245, 158, 11, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Elements */
.saas-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.saas-header {
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  flex-shrink: 0;
}

.saas-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

.header-tv-icon {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.saas-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Base Workstation Wrapper */
.live-workspace-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 16px 10%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* Cards & Containers */
.live-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.live-btn {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.2, 0, 0.38, 0.9);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.live-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1.5px);
}
.live-btn:active {
  transform: translateY(0);
}

/* Theme & Wishlist Buttons */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}
.theme-toggle-btn .sun-icon { display: none; color: #f59e0b; }
.theme-toggle-btn .moon-icon { display: block; color: #3b82f6; }
.dark-theme .theme-toggle-btn .sun-icon { display: block; }
.dark-theme .theme-toggle-btn .moon-icon { display: none; }

.wishlist-toggle-btn {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 10px var(--primary-light);
}

/* Quick Input Board styling */
.input-board {
  padding: 20px 24px 28px 24px;
  position: relative;
}

.full-board-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-card {
  flex: 1;
  min-width: 280px;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 90px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--transition);
}

.red-banner {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25);
}

.orange-banner {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transform: rotate(1.5deg);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
  cursor: pointer;
}

.banner-icon-wrapper {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.banner-icon-wrapper i {
  width: 22px;
  height: 22px;
  color: white;
}

.banner-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: auto;
  align-items: flex-end;
  text-align: right;
  color: white;
}
.banner-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.banner-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.banner-subtitle.yellow-text, #giftCouponCode {
  color: #fef08a;
}

.input-panel-banner {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  min-height: 120px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* White Segmented Control inside banner */
.segmented-control-white {
  display: flex;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.segmented-control-white input[type="radio"] { display: none; }
.segmented-control-white label {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.segmented-control-white input[type="radio"]:checked + label {
  background: white;
  color: #1e3a8a;
}

.banner-inputs-row {
  display: flex;
  gap: 12px;
}
.banner-input-box {
  flex: 1;
  background: white;
  border-radius: var(--radius-sm);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}
.banner-input-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #1e3a8a;
  font-family: inherit;
}
.banner-input-box input::placeholder {
  font-size: 18px;
  color: #94a3b8;
  font-weight: 600;
}

/* Filters Row */
.filters-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.filter-item-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-item-group.flex-1 { flex: 1; min-width: 120px; }
.filter-item-group.search-group { flex: 1.5; min-width: 160px; }

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.saas-select, .saas-input {
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-main);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  width: 100%;
  transition: all var(--transition);
}
.saas-select:focus, .saas-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-with-icon {
  position: relative;
}
.input-with-icon .search-icon {
  position: absolute;
  left: 10px;
  top: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.input-with-icon input {
  padding-left: 32px;
}

.flex-row-align {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: 38px;
}

.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.checkbox-wrapper input {
  cursor: pointer;
}

/* Fast Level Checkbox styling */
.fast-checkbox-row {
  display: flex;
  gap: 6px;
  height: 38px;
}
.level-btn {
  padding: 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-input);
  color: var(--text-secondary);
  height: 100%;
}
.level-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.segmented-control {
  display: flex;
  background: var(--bg-page);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
  height: 38px;
}
.segmented-control input[type="radio"] { display: none; }
.segmented-control label {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
}
.segmented-control input[type="radio"]:checked + label {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-action-reset {
  background: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.btn-action-toggle {
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  height: 38px;
  white-space: nowrap;
}

/* Compact mode layout styling */
.compact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
}

.compact-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
  flex-shrink: 0;
}

.compact-btn {
  height: 38px;
  font-size: 14px;
  font-weight: 700;
}

.compact-search-box {
  position: relative;
  width: 130px;
}
.compact-search-box .search-icon-sm {
  position: absolute;
  left: 8px;
  top: 11px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.compact-search-box input {
  height: 36px;
  width: 100%;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  padding-left: 28px;
  padding-right: 6px;
  outline: none;
}

.compact-group-codes {
  display: flex;
  gap: 5px;
}
.compact-code-btn {
  padding: 0 10px;
  height: 36px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}
.compact-code-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.compact-live-banner {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  border-radius: 6px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: white;
  width: 180px;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.2);
}

.compact-subject-toggle {
  height: 36px;
  border: 1.5px solid var(--primary-border-strong);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  padding: 0 10px;
}

.compact-input-wrapper {
  background: white;
  border-radius: 6px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border: 2px solid var(--primary);
  width: 75px;
}
.compact-input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #1e3a8a;
}
.compact-input-wrapper input::placeholder {
  font-size: 13px;
  color: #94a3b8;
}
.rank-input-wrapper { width: 85px; }

.compact-gift-banner {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 6px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: white;
  cursor: pointer;
}
.compact-gift-banner .yellow-text {
  color: #fef08a;
  font-size: 13px;
}

.compact-row .expand-btn {
  height: 36px;
}

/* Tabs & Stats Bar Styling */
.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}

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

.tab-nav-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.tab-nav-btn:hover {
  background: var(--bg-page);
  color: var(--text-main);
}
.tab-nav-btn.active {
  background: var(--primary-light);
  color: var(--primary);
}

.saas-badge {
  background: var(--border-strong);
  color: var(--text-main);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.saas-badge.primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.saas-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stats-container {
  display: flex;
  gap: 12px;
}
.stats-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}
.stats-tag.chong { background: var(--reach-bg); color: var(--reach-text); }
.stats-tag.wen { background: var(--match-bg); color: var(--match-text); }
.stats-tag.bao { background: var(--safety-bg); color: var(--safety-text); }

/* Table area styling (gk_2605 Live style) */
.table-section {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.table-responsive {
  flex: 1;
  overflow-y: auto;
}
.live-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.live-table th {
  background: var(--bg-surface-hover);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 5;
}

.live-table tr {
  border-bottom: 1px solid var(--border-light);
}

/* College Row (Parent) style */
.parent-row {
  background: var(--bg-surface);
  cursor: pointer;
  transition: background var(--transition);
}
.parent-row:hover {
  background: var(--bg-surface-hover);
}
.parent-row.expanded {
  background: var(--primary-light);
}

.parent-row td {
  padding: 16px 18px;
  vertical-align: middle;
}

.college-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.college-name-cell .chevron-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.parent-row.expanded .chevron-icon {
  transform: rotate(90deg);
  color: var(--primary);
}

.college-title-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.college-tags-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Major Child Row Style */
.child-row {
  background: rgba(15, 98, 254, 0.03);
}
.child-row td {
  padding: 14px 18px;
  vertical-align: middle;
}

.child-row-major {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
}
.major-code {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.major-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}
.major-remark {
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.03);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--border-strong);
  margin-top: 2px;
}

.plans-specs-col {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-score-cell {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.history-score-cell.score-value {
  color: var(--primary);
}
.history-score-cell .rank-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}

.action-buttons-cell {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-fill-gradient {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-fill-gradient.chong {
  background: var(--reach-bg);
  color: var(--reach-text);
  border-color: var(--reach-border);
}
.btn-fill-gradient.chong.active {
  background: #ef4444;
  color: white;
}
.btn-fill-gradient.wen {
  background: var(--match-bg);
  color: var(--match-text);
  border-color: var(--match-border);
}
.btn-fill-gradient.wen.active {
  background: #3b82f6;
  color: white;
}
.btn-fill-gradient.bao {
  background: var(--safety-bg);
  color: var(--safety-text);
  border-color: var(--safety-border);
}
.btn-fill-gradient.bao.active {
  background: #10b981;
  color: white;
}

.empty-table {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px auto;
  opacity: 0.4;
  display: block;
}

/* Slide-out Drawer Wishlist */
.volunteer-modal.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  z-index: 100;
  border-radius: 0;
  border-left: 2px solid var(--border-light);
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  transition: right 0.3s cubic-bezier(0.2, 0, 0.38, 1);
}
.volunteer-modal.drawer.show {
  right: 0;
}

.volunteer-modal-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.volunteer-modal-header h2 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.volunteer-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishlist-section-header {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}
.wishlist-section-header.chong-section { background: var(--reach-bg); color: var(--reach-text); }
.wishlist-section-header.wen-section { background: var(--match-bg); color: var(--match-text); }
.wishlist-section-header.bao-section { background: var(--safety-bg); color: var(--safety-text); }

.wishlist-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 20px;
}

/* Wishlist Card item */
.wish-card {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wish-card-index {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
}
.wish-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  padding-right: 28px;
}
.wish-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.wish-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: 6px;
}
.wish-action-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.wish-action-btn.delete {
  color: #ef4444;
}

.volunteer-modal-footer {
  padding: 16px 20px;
  border-top: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-surface-hover);
}

.volunteer-modal-footer .btn-export {
  width: 100%;
  height: 40px;
  font-weight: 700;
}
.volunteer-modal-footer .btn-group {
  display: flex;
  gap: 10px;
}
.volunteer-modal-footer .btn-clear,
.volunteer-modal-footer .btn-save {
  flex: 1;
  height: 38px;
  font-weight: 600;
}

/* Trend Chart Center Modal */
.trend-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
}
.trend-modal.show {
  display: flex;
}
.trend-modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  width: 600px;
  max-width: 90%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.trend-modal-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.trend-modal-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.trend-close-btn {
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
}
.trend-close-btn:hover {
  color: var(--text-main);
}
.trend-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trend-chart-container {
  height: 280px;
  position: relative;
}
.trend-info-panel {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-page);
  padding: 12px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* Animation utilities */
@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2); }
  50% { transform: scale(1.02); box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45); }
  100% { transform: scale(1); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2); }
}

.pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}
