/* FFS Surgeon Explorer — site-matched theme */

.ffs-container {
  max-width: 98vw;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

/* Loading & Auth States */
.loading-state,
.auth-message {
  text-align: center;
  padding: 80px 20px;
}

.spinner-large {
  width: 40px;
  height: 40px;
  border: 4px solid #fce4ec;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

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

/* Header */
.ffs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.ffs-header h1 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin: 0;
}

.ffs-header p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  flex-basis: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  font-size: 0.85rem;
  color: var(--text-light);
}

.btn-signout {
  background: none;
  border: 1px solid #ddd;
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}

.btn-signout:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Tracker Bar */
.tracker-bar {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--card-shadow);
}

.tracker-bar.has-unsaved {
  border-color: #f59e0b;
  background: #fffbeb;
}

.tracker-info {
  font-size: 0.85rem;
  color: var(--text-light);
}

.tracker-info strong {
  color: var(--text-dark);
}

.tracker-info .unsaved {
  color: #f59e0b;
  font-weight: 600;
}

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

.save-tracker-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(16,185,129,0.08));
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  color: #b45309;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.save-tracker-btn:hover {
  background: rgba(245,158,11,0.18);
  transform: translateY(-1px);
}

.export-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(233,30,99,0.08), rgba(236,72,153,0.06));
  border: 1px solid rgba(233,30,99,0.2);
  border-radius: 8px;
  color: var(--primary-color);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.export-btn:hover {
  background: rgba(233,30,99,0.12);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: white;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.tab {
  flex: 1;
  padding: 11px 18px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.25s;
  border: none;
  background: none;
  font-family: inherit;
}

.tab:hover {
  color: var(--text-dark);
  background: #fce4ec;
}

.tab.active {
  background: linear-gradient(135deg, rgba(233,30,99,0.1), rgba(236,72,153,0.08));
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(233,30,99,0.1);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.stat-card.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 12px rgba(233,30,99,0.15);
  background: #fce4ec;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Filters Panel */
.filters-panel {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.filters-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

.filter-group label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.08);
}

.filter-group select option {
  background: white;
}

.clear-btn {
  padding: 8px 16px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  color: #dc2626;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  align-self: end;
}

.clear-btn:hover {
  background: rgba(239,68,68,0.12);
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.chart-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-light);
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  min-width: 125px;
  font-size: 0.74rem;
  color: var(--text-light);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  flex: 1;
  height: 22px;
  background: #fce4ec;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.23,1,0.32,1);
  display: flex;
  align-items: center;
  padding-left: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  min-width: fit-content;
}

.donut-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.donut-svg {
  width: 140px;
  height: 140px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-count {
  color: var(--text-dark);
  font-weight: 600;
}

/* Table */
.table-container {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.table-scroll {
  overflow-x: auto;
  max-height: 55vh;
  overflow-y: auto;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

thead th {
  background: #fce4ec;
  padding: 11px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 2;
  transition: color 0.2s;
}

thead th:hover {
  color: var(--primary-color);
}

thead th .sa {
  margin-left: 4px;
  font-size: 0.68rem;
}

tbody tr {
  border-bottom: 1px solid #f8bbd0;
  transition: background 0.15s;
}

tbody tr:hover {
  background: #fce4ec;
}

tbody td {
  padding: 11px 12px;
  vertical-align: top;
  line-height: 1.5;
  white-space: normal;
  min-width: 90px;
}

tbody td:first-child { min-width: 40px; }
tbody td:nth-child(2) { min-width: 120px; }

/* Cell Links */
a.surgeon-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}

a.surgeon-link:hover {
  color: #ad1457;
  text-decoration: underline;
}

.surgeon-nolink {
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

a.loc-link {
  color: #0d9488;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color 0.15s;
}

a.loc-link:hover {
  color: #115e59;
  text-decoration: underline;
}

a.web-link {
  color: #7c3aed;
  text-decoration: none;
  word-break: break-all;
  font-size: 0.76rem;
  transition: color 0.15s;
}

a.web-link:hover {
  text-decoration: underline;
  color: #5b21b6;
}

a.gallery-link {
  color: #b45309;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

a.gallery-link:hover {
  text-decoration: underline;
  color: #92400e;
}

.no-gallery {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Review Chips */
.cell-reviews {
  min-width: 280px;
  font-size: 0.79rem;
  line-height: 1.55;
}

.review-links {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rc {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 16px;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid;
}

.rc:hover {
  transform: translateY(-1px);
  filter: brightness(0.9);
}

.rc-rs { background: rgba(37,182,131,0.08); color: #15803d; border-color: rgba(37,182,131,0.2); }
.rc-go { background: rgba(66,133,244,0.08); color: #1d4ed8; border-color: rgba(66,133,244,0.2); }
.rc-hg { background: rgba(0,166,81,0.08); color: #15803d; border-color: rgba(0,166,81,0.2); }
.rc-vi { background: rgba(0,140,186,0.06); color: #0369a1; border-color: rgba(0,140,186,0.15); }
.rc-ye { background: rgba(211,35,35,0.06); color: #b91c1c; border-color: rgba(211,35,35,0.15); }
.rc-rm { background: rgba(255,152,0,0.06); color: #c2410c; border-color: rgba(255,152,0,0.15); }
.rc-th { background: rgba(124,58,237,0.06); color: #6d28d9; border-color: rgba(124,58,237,0.15); }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}

a.badge:hover {
  filter: brightness(0.9);
  text-decoration: none;
}

.b-wm { background: rgba(16,185,129,0.08); color: #047857; border: 1px solid rgba(16,185,129,0.2); }
.b-wf { background: rgba(59,130,246,0.06); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.15); }
.b-wu { background: rgba(0,0,0,0.03); color: var(--text-light); border: 1px solid #e5e7eb; }
.b-vy { display: inline-block; padding: 2px 9px; border-radius: 16px; font-size: 0.7rem; font-weight: 600; background: rgba(16,185,129,0.06); color: #047857; border: 1px solid rgba(16,185,129,0.12); }
.b-vn { display: inline-block; padding: 2px 9px; border-radius: 16px; font-size: 0.7rem; font-weight: 600; background: rgba(0,0,0,0.02); color: var(--text-light); border: 1px solid #e5e7eb; }

/* Tracker Status Dots */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Traffic Light Rating */
.rating-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #d1d5db;
  transition: all 0.2s;
  font-size: 0;
  vertical-align: middle;
  margin-right: 4px;
}

.rating-light:hover {
  transform: scale(1.15);
  border-color: var(--text-light);
}

.rating-light.rl-none { background: rgba(0,0,0,0.04); }
.rating-light.rl-green { background: #22c55e; border-color: #16a34a; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.rating-light.rl-yellow { background: #eab308; border-color: #ca8a04; box-shadow: 0 0 8px rgba(234,179,8,0.4); }
.rating-light.rl-red { background: #ef4444; border-color: #dc2626; box-shadow: 0 0 8px rgba(239,68,68,0.4); }

.rating-label { font-size: 0.72rem; color: var(--text-light); vertical-align: middle; }
.rating-label.rl-green { color: #16a34a; }
.rating-label.rl-yellow { color: #ca8a04; }
.rating-label.rl-red { color: #dc2626; }

/* Panel Rating */
.panel-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-rating .rating-light {
  width: 34px;
  height: 34px;
}

.panel-rating-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.sd-contacted { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.3); }
.sd-scheduled { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.3); }
.sd-waitlisted { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.3); }
.sd-declined { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.2); }
.sd-noreply { background: #9ca3af; }
.sd-followup { background: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,0.2); }
.sd-none { background: rgba(0,0,0,0.06); border: 1px solid #e5e7eb; }

.tracker-cell {
  white-space: nowrap;
  font-size: 0.78rem;
}

.tracker-cell .status-text {
  vertical-align: middle;
}

.log-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: white;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  margin-left: 6px;
  vertical-align: middle;
  padding: 0;
}

.log-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.note-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  font-size: 0.75rem;
  vertical-align: middle;
  cursor: default;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.note-badge:hover { opacity: 1; }

.note-badge sup {
  font-size: 0.6rem;
  margin-left: 1px;
  color: #b45309;
  font-weight: 700;
}

/* Contact Form Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.contact-modal.open {
  opacity: 1;
  pointer-events: all;
}

.contact-form {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 480px;
  max-width: 95vw;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.contact-modal.open .contact-form {
  transform: translateY(0);
}

.cf-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.cf-subtitle {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.cf-row {
  margin-bottom: 14px;
}

.cf-row label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.cf-row input,
.cf-row select,
.cf-row textarea {
  width: 100%;
  padding: 9px 12px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.cf-row textarea {
  resize: vertical;
  min-height: 60px;
}

.cf-row input:focus,
.cf-row select:focus,
.cf-row textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.08);
}

.cf-row select option {
  background: white;
}

.cf-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.cf-save {
  padding: 10px 24px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cf-save:hover {
  background: #c2185b;
  transform: translateY(-1px);
}

.cf-cancel {
  padding: 10px 20px;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.cf-cancel:hover {
  border-color: var(--text-light);
  color: var(--text-dark);
}

/* Tracker History in Detail Panel */
.tracker-history { margin-top: 8px; }

.th-entry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.82rem;
}

.th-entry:last-child { border-bottom: none; }
.th-date { color: #b45309; font-weight: 600; min-width: 82px; }
.th-method { color: #7c3aed; min-width: 65px; }
.th-result { font-weight: 500; min-width: 100px; }
.th-notes { color: var(--text-light); flex: 1; }

.th-del {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 4px;
}

.th-del:hover { color: #dc2626; }

.result-count {
  padding: 11px 16px;
  font-size: 0.83rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-count strong {
  color: var(--text-dark);
}

.region-row td {
  background: linear-gradient(90deg, rgba(233,30,99,0.06), rgba(236,72,153,0.03));
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary-color);
  padding: 9px 12px;
  letter-spacing: 0.02em;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}

.empty-state h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

/* Detail Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.panel {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 720px;
  max-width: 95vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.overlay.open .panel {
  transform: translateY(0);
}

.panel-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0 4px;
}

.panel-close:hover { color: var(--text-dark); }

.panel-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.panel-name a {
  color: var(--primary-color);
  text-decoration: none;
}

.panel-name a:hover { text-decoration: underline; }

.panel-loc {
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.panel-loc a {
  color: #0d9488;
  text-decoration: none;
}

.panel-loc a:hover { text-decoration: underline; }

.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.pl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid;
}

.pl:hover {
  transform: translateY(-1px);
  filter: brightness(0.9);
}

.pl-web { background: rgba(124,58,237,0.05); color: #6d28d9; border-color: rgba(124,58,237,0.15); }
.pl-map { background: rgba(13,148,136,0.05); color: #0d9488; border-color: rgba(13,148,136,0.15); }
.pl-rs { background: rgba(37,182,131,0.05); color: #15803d; border-color: rgba(37,182,131,0.15); }
.pl-go { background: rgba(66,133,244,0.05); color: #1d4ed8; border-color: rgba(66,133,244,0.15); }
.pl-hg { background: rgba(0,166,81,0.05); color: #15803d; border-color: rgba(0,166,81,0.15); }
.pl-ye { background: rgba(211,35,35,0.04); color: #b91c1c; border-color: rgba(211,35,35,0.1); }
.pl-wp { background: rgba(245,158,11,0.05); color: #b45309; border-color: rgba(245,158,11,0.15); }
.pl-contact { background: rgba(233,30,99,0.06); color: var(--primary-color); border-color: rgba(233,30,99,0.15); }

.sec { margin-bottom: 16px; }

.sec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 600;
}

.sec-val {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.sec-val a {
  color: #7c3aed;
  text-decoration: none;
}

.sec-val a:hover { text-decoration: underline; }

/* Scrollbar */
.table-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.table-scroll::-webkit-scrollbar-track { background: #fce4ec; border-radius: 5px; }
.table-scroll::-webkit-scrollbar-thumb { background: #f48fb1; border-radius: 5px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.hidden { display: none !important; }

/* Save Toast */
.save-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--primary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 300;
  box-shadow: 0 8px 30px rgba(233,30,99,0.25);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
  pointer-events: none;
}

.save-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Notification */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.notification.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
  .ffs-container { padding: 70px 12px 20px; }
  .ffs-header h1 { font-size: 1.4rem; }
  .charts-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 18px; }
}
