/*! ============================================
   Team Performance Dashboard - Visual System
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #12182b;
  --bg-card: rgba(20, 28, 55, 0.65);
  --bg-card-hover: rgba(25, 35, 65, 0.8);
  --border-color: rgba(100, 120, 200, 0.15);
  --border-glow: rgba(80, 140, 255, 0.3);

  --text-primary: #e8ecf4;
  --text-secondary: #9aa3b8;
  --text-muted: #6b7280;
  --text-accent: #60a5fa;

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-orange: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-orange: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-green: linear-gradient(135deg, #10b981, #3b82f6);
  --gradient-card: linear-gradient(145deg, rgba(30, 40, 70, 0.8), rgba(15, 22, 45, 0.9));

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.25);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

/* ---- Layout ---- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  padding: 32px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 1.05rem;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 180, 255, 0.3), transparent);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  border-color: var(--border-glow);
}

.glass-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-card .card-title .icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }
}

/* ---- Stats Card ---- */
.stat-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
}

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

.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0;
}

.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-card .stat-change {
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

.stat-card .stat-change.up { color: var(--accent-green); }
.stat-card .stat-change.down { color: var(--accent-red); }

/* ---- Member Card (Team Page) ---- */
.member-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-purple);
  opacity: 0;
  transition: opacity 0.3s;
}

.member-card:hover::before {
  opacity: 1;
}

.member-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
  border-color: rgba(139, 92, 246, 0.3);
}

.member-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  box-shadow: var(--shadow-glow-blue);
}

.member-card .member-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.member-card .member-role {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.member-card .mini-progress {
  margin-top: 12px;
}

.member-card .mini-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ---- Progress Bar ---- */
.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-bar-fill.blue { background: var(--gradient-blue); }
.progress-bar-fill.green { background: var(--gradient-green); }
.progress-bar-fill.orange { background: var(--gradient-orange); }
.progress-bar-fill.purple { background: var(--gradient-purple); }

/* ---- Editable Fields ---- */
.editable {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  transition: all 0.2s ease;
  cursor: text;
  min-width: 60px;
  text-align: inherit;
}

.editable:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(100, 180, 255, 0.2);
}

.editable:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.editable.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* ---- Tables ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ---- Tags ---- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag.new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag.old {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag.category {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-success {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ---- Navigation ---- */
.nav-bar {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text-accent);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

/* ---- Section ---- */
.section {
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ---- Year Target Section ---- */
.year-targets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.target-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.target-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.target-card > * {
  position: relative;
  z-index: 1;
}

.target-card .target-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.target-card .target-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.target-card.target-sales .target-value {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.target-card.target-payment .target-value {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.target-card .completion-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.target-card .completion-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.target-card .completion-input {
  font-size: 1.5rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.target-card .completion-input:focus {
  border-color: var(--accent-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ---- Customer Table ---- */
.customer-table-container {
  overflow-x: auto;
}

.customer-row .editable {
  width: 100%;
}

.customer-row .progress-cell {
  min-width: 120px;
}

.customer-row .progress-cell .progress-bar-container {
  margin-bottom: 4px;
}

.customer-row .progress-cell .progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
  font-family: var(--font-mono);
}

.customer-row .tag-select {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.customer-row .tag-select:focus {
  border-color: var(--accent-blue);
  outline: none;
}

/* ---- Visit Table ---- */
.visit-table th,
.visit-table td {
  text-align: center;
  padding: 8px 6px;
}

.visit-table .month-header {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.visit-table .target-row td {
  background: rgba(59, 130, 246, 0.05);
}

.visit-table .actual-row td {
  background: rgba(16, 185, 129, 0.05);
}

.visit-table .editable {
  width: 50px;
  text-align: center;
  padding: 4px;
}

.visit-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.visit-category {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.visit-category .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cat-a-plus { background: var(--accent-green); }
.cat-a { background: var(--accent-cyan); }
.cat-b { background: var(--accent-blue); }
.cat-c { background: var(--accent-purple); }
.cat-d { background: var(--accent-orange); }
.cat-expo { background: var(--accent-pink); }

/* ---- Lead Section ---- */
.lead-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lead-card .lead-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.lead-card .lead-info {
  flex: 1;
}

.lead-card .lead-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lead-card .lead-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ---- Chart Container ---- */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* ---- VIP List ---- */
.vip-list {
  list-style: none;
}

.vip-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.vip-list li:last-child {
  border-bottom: none;
}

.vip-list .vip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.vip-list .vip-name {
  flex: 1;
  font-weight: 500;
}

.vip-list .vip-note {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ---- Events & Weekly Goals ---- */
.event-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glow);
}

.event-item .event-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.event-item .editable {
  flex: 1;
  width: 100%;
}

/* ---- Weekly Goals Table ---- */
.weekly-table th {
  text-align: center;
  font-size: 0.75rem;
}

.weekly-table td {
  text-align: center;
}

.weekly-table .editable {
  width: 100%;
  text-align: left;
}

.weekly-table .week-col {
  font-weight: 600;
  color: var(--text-accent);
  font-size: 0.8rem;
}

/* ---- Animations ---- */
.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.slide-in {
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.gap-2 { gap: 16px; }

/* ---- Tooltip ---- */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tooltip:hover::after {
  opacity: 1;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 120, 200, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 120, 200, 0.4);
}

/* ---- Add/Remove row buttons ---- */
.row-actions {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1rem;
  padding: 0;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-icon.add:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-icon.remove:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .year-targets {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }
  .container {
    padding: 0 16px;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
}

/* ---- Print ---- */
@media print {
  body {
    background: white;
    color: black;
  }
  .glass-card, .stat-card, .member-card, .target-card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .nav-bar {
    display: none;
  }
}
