/* ═══════════════════════════════════════════════════════════════════════════
   ELITE+ FEATURE OVERLAY STYLES
   Modal system for PRO/PREMIUM features with locked state UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   BASE OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

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

.feature-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-overlay-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  background: linear-gradient(145deg, #1a1a24 0%, #12121a 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-overlay.active .feature-overlay-panel {
  transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.feature-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-header-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.feature-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.feature-overlay-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.feature-overlay-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BODY (SCROLLABLE)
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.feature-overlay-body::-webkit-scrollbar {
  width: 6px;
}

.feature-overlay-body::-webkit-scrollbar-track {
  background: transparent;
}

.feature-overlay-body::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

.feature-overlay-body::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.btn-close-feature {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-feature:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-upgrade-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-upgrade-feature.premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-upgrade-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

.btn-upgrade-feature.premium:hover {
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
}

.btn-later {
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-later:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOCKED STATE
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-locked-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.locked-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.locked-feature-icon {
  font-size: 48px;
  filter: grayscale(0.3);
}

.lock-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  font-size: 24px;
  background: #1a1a24;
  border-radius: 50%;
  padding: 4px;
}

.locked-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.locked-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 400px;
}

.locked-benefits {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
}

.locked-benefits h4 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px 0;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.bullet-check {
  color: #22c55e;
  font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-content-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-content-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.feature-content-section h5 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREDICTION CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */

.prediction-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
}

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

.prediction-score {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.prediction-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.prediction-confidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.confidence-bar {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #22c55e);
  border-radius: 3px;
}

.confidence-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.prediction-trend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.trend-icon {
  font-size: 28px;
}

.trend-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.prediction-trend.trend-up .trend-label {
  color: #22c55e;
}
.prediction-trend.trend-down .trend-label {
  color: #ef4444;
}

.prediction-factors,
.prediction-tips {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.factor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.factor-icon {
  font-size: 18px;
}

.factor-label {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.factor-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.tips-list,
.insights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li,
.insights-list li {
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tips-list li:last-child,
.insights-list li:last-child {
  border-bottom: none;
}

.tips-list li.positive {
  color: #22c55e;
}
.tips-list li.negative {
  color: #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ANALYSIS
   ═══════════════════════════════════════════════════════════════════════════ */

.form-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.form-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.form-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.form-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.form-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 4px;
}

.form-stat.wins .form-stat-value {
  color: #22c55e;
}
.form-stat.draws .form-stat-value {
  color: #f59e0b;
}
.form-stat.losses .form-stat-value {
  color: #ef4444;
}

.form-string-display {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.form-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
}

.form-badge.form-w {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-badge.form-d {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.form-badge.form-l {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-insights {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OPPONENT INSIGHTS
   ═══════════════════════════════════════════════════════════════════════════ */

.opponent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opponent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.opponent-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.opponent-record {
  display: flex;
  gap: 6px;
}

.record-w,
.record-d,
.record-l {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
}

.record-w {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}
.record-d {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.record-l {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.opponent-contrib {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI TRAINING PLAN
   ═══════════════════════════════════════════════════════════════════════════ */

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
}

.suggested-focus .focus-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.suggested-focus .focus-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.plan-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-day {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

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

.day-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.day-intensity {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.day-intensity.intensity-high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.day-intensity.intensity-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.day-intensity.intensity-low {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}
.day-intensity.intensity-rest {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.day-focus {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.day-drills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drill-chip {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.day-duration {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKILL PROGRESS
   ═══════════════════════════════════════════════════════════════════════════ */

.skill-progress-header {
  margin-bottom: 16px;
}

.skill-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0 0 0;
}

.skill-bars-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

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

.skill-bar-label {
  width: 100px;
}

.skill-bar-label .skill-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: block;
}

.skill-bar-label .skill-sessions {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.skill-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.skill-minutes {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  width: 60px;
  text-align: right;
}

.skill-recommendations {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MATCH JOURNAL
   ═══════════════════════════════════════════════════════════════════════════ */

.match-journal {
  gap: 20px;
}

.journal-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.journal-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select option {
  background: #1a1a24;
}

.btn-generate-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-generate-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.journal-output {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 20px;
}

.ai-review-section {
  margin-bottom: 16px;
}

.ai-review-section:last-child {
  margin-bottom: 0;
}

.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-list li {
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.review-list.strengths li::before {
  content: "✓ ";
  color: #22c55e;
}

.review-list.improvements li::before {
  content: "↑ ";
  color: #f59e0b;
}

.drill-recommendations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drill-rec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.drill-rec-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.drill-rec-sets {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.next-match-focus {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
  padding: 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
}

.journal-history {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.entry-date {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.entry-opponent {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.entry-position {
  font-size: 11px;
  color: #8b5cf6;
  margin-bottom: 4px;
}

.entry-preview {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.empty-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 20px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI GOAL SUGGESTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.suggestions-header .suggestions-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0 0 0;
}

.suggestions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.suggestion-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.suggestion-icon {
  font-size: 24px;
}

.suggestion-content {
  flex: 1;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.suggestion-reason {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.suggestion-difficulty {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.suggestion-difficulty.difficulty-easy {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.suggestion-difficulty.difficulty-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.suggestion-difficulty.difficulty-hard {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.btn-add-goal {
  padding: 8px 14px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #8b5cf6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-goal:hover {
  background: rgba(139, 92, 246, 0.25);
}

.goals-summary-stats {
  display: flex;
  gap: 16px;
}

.goal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.goal-stat .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.goal-stat .stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WEEKLY REPORT
   ═══════════════════════════════════════════════════════════════════════════ */

.weekly-report .report-header {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.report-summary-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
}

.tile-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.tile-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.tile-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 4px;
}

.tile-change {
  font-size: 10px;
  margin-top: 6px;
}

.tile-change.positive {
  color: #22c55e;
}
.tile-change.negative {
  color: #ef4444;
}

.report-trends {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.trend-items {
  display: flex;
  gap: 20px;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trend-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.trend-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.trend-value.trend-improving {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}
.trend-value.trend-slipping {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
.trend-value.trend-stable {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

.report-next-week,
.report-changes {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.next-week-list,
.changes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.next-week-list li,
.changes-list li {
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.next-week-list li:last-child,
.changes-list li:last-child {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GOAL COACHING
   ═══════════════════════════════════════════════════════════════════════════ */

.coaching-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
}

.coach-avatar {
  font-size: 40px;
}

.coach-intro h4 {
  margin: 0;
  font-size: 16px;
}

.coach-intro p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.coaching-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coaching-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.message-icon {
  font-size: 20px;
}

.message-text {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.goals-coaching-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goal-coaching-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.goal-info .goal-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.goal-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  border-radius: 4px;
}

.goal-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRILL LIBRARY - PREMIUM POLISH
   ═══════════════════════════════════════════════════════════════════════════ */

/* Header: Search + Sort */
.drill-library-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.drill-search-wrapper {
  flex: 1;
  position: relative;
}

.drill-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.drill-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  transition: all 0.2s ease;
}

.drill-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.drill-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.drill-sort-wrapper {
  flex-shrink: 0;
}

.drill-sort-select {
  padding: 10px 32px 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s ease;
}

.drill-sort-select:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.drill-sort-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
}

.drill-sort-select option {
  background: #1a1a2e;
  color: #fff;
}

/* Filter Pills - Premium Style */
.drill-library .drill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.drill-filter-pill {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-filter-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.drill-filter-pill.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(168, 85, 247, 0.2));
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  box-shadow:
    0 0 12px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Drills Grid */
.drills-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.drills-grid::-webkit-scrollbar {
  width: 6px;
}

.drills-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.drills-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.drills-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Premium Drill Card */
.drill-card-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.drill-card-premium:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(139, 92, 246, 0.15);
}

.drill-card-premium:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card Left: Icon + Info */
.drill-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.drill-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.drill-card-premium:hover .drill-card-icon {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.drill-card-info {
  flex: 1;
  min-width: 0;
}

.drill-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drill-card-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Right: Pills + Button */
.drill-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.drill-card-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Pill Chips */
.drill-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.drill-pill svg {
  flex-shrink: 0;
}

/* Category Pill - Neutral */
.drill-pill-category {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Difficulty Pills */
.drill-pill-difficulty {
  border: 1px solid transparent;
}

.drill-pill-difficulty.difficulty-easy {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.drill-pill-difficulty.difficulty-medium {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.drill-pill-difficulty.difficulty-hard {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Time Pill */
.drill-pill-time {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: rgba(165, 180, 252, 0.9);
}

/* Start Button */
.drill-start-btn {
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-start-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(168, 85, 247, 0.3));
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
  transform: scale(1.02);
}

.drill-start-btn:active {
  transform: scale(0.98);
}

.drill-card-premium:hover .drill-start-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.25));
  border-color: rgba(139, 92, 246, 0.45);
}

/* Footer */
.drill-library-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

.drill-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.drill-count-num {
  font-weight: 600;
  color: rgba(139, 92, 246, 0.8);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .drill-library-header {
    flex-direction: column;
  }

  .drill-card-premium {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .drill-card-right {
    width: 100%;
    justify-content: space-between;
  }

  .drill-card-pills {
    flex-wrap: wrap;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   DRILL LIBRARY - ADDITIONAL VIEWS
   ───────────────────────────────────────────────────────────────────────────── */

/* Loading State */
.drill-library-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

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

/* Locked State */
.drill-library-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.drill-library-locked .locked-content {
  text-align: center;
  max-width: 340px;
  padding: 24px;
}

.drill-library-locked .locked-icon-large {
  font-size: 48px;
  margin-bottom: 16px;
}

.drill-library-locked h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.drill-library-locked .locked-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 20px;
}

.drill-library-locked .locked-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.drill-library-locked .locked-features li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
}

.btn-upgrade-drill-library {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 10px;
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upgrade-drill-library:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(168, 85, 247, 0.35));
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

/* Recently Completed Section */
.drill-recent-section {
  margin-bottom: 16px;
}

.drill-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.drill-recent-cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drill-recent-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-recent-card:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.drill-recent-icon {
  font-size: 16px;
}

.drill-recent-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.drill-recent-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DETAILS VIEW
   ───────────────────────────────────────────────────────────────────────────── */

.drill-details-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drill-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.drill-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drill-details-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drill-details-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 28px;
  flex-shrink: 0;
}

.drill-details-title-area {
  flex: 1;
}

.drill-details-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.drill-details-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drill-details-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
}

.drill-detail-section h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.drill-detail-section p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.drill-steps-list {
  margin: 0;
  padding-left: 20px;
}

.drill-steps-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 8px;
}

.drill-cues-list,
.drill-variations-list {
  margin: 0;
  padding-left: 18px;
}

.drill-cues-list li,
.drill-variations-list li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 6px;
}

.drill-log-info {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  padding: 14px;
}

.drill-log-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drill-log-pill {
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.drill-details-actions {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.drill-start-session-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 12px;
  color: #c4b5fd;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-start-session-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(168, 85, 247, 0.3));
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SESSION VIEW
   ───────────────────────────────────────────────────────────────────────────── */

.drill-session-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drill-session-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drill-session-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-session-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drill-session-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.drill-session-icon {
  font-size: 22px;
}

.drill-session-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.drill-session-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drill-session-timer {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-family: monospace;
}

.drill-session-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drill-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.drill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.drill-progress-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.drill-session-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 8px;
}

.drill-session-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.drill-session-step.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.drill-session-step.completed {
  opacity: 0.6;
}

.drill-step-marker {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.drill-session-step.active .drill-step-marker {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

.drill-session-step.completed .drill-step-marker {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.drill-step-content {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  padding-top: 4px;
}

.drill-session-step.active .drill-step-content {
  color: #fff;
}

.drill-session-cues {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  padding: 12px;
}

.drill-session-cues h4 {
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 8px;
}

.drill-session-cues ul {
  margin: 0;
  padding-left: 18px;
}

.drill-session-cues li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.drill-session-nav {
  display: flex;
  gap: 10px;
}

.drill-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drill-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.drill-nav-complete {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.drill-nav-complete:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.25)) !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.drill-session-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.drill-end-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: rgba(239, 68, 68, 0.8);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-end-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOG FORM
   ───────────────────────────────────────────────────────────────────────────── */

.drill-log-form {
  padding: 8px 0;
}

.drill-log-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.drill-log-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.drill-log-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.drill-log-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drill-log-row label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.drill-log-options {
  display: flex;
  gap: 8px;
}

.drill-log-option {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-log-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drill-log-option.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.drill-log-row input[type="number"] {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  width: 100%;
}

.drill-log-row input[type="number"]:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
}

.drill-log-notes textarea {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  resize: vertical;
  width: 100%;
}

.drill-log-notes textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
}

.drill-log-actions {
  display: flex;
  gap: 10px;
}

.drill-log-submit {
  flex: 2;
  padding: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-log-submit:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.25));
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.drill-log-skip {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-log-skip:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SUCCESS VIEW
   ───────────────────────────────────────────────────────────────────────────── */

.drill-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.drill-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.drill-success-view h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.drill-success-view p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.drill-success-actions {
  display: flex;
  gap: 10px;
}

.drill-success-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-success-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.drill-success-btn.primary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(168, 85, 247, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.drill-success-btn.primary:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(168, 85, 247, 0.3));
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Weekly Report Preview on Card */
.weekly-report-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.report-preview-item .report-icon {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLAN FACTORS & CHARTS
   ═══════════════════════════════════════════════════════════════════════════ */

.plan-factors {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.factor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.factor-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.factor-pill.positive {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.factor-pill.negative {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.form-chart-container,
.report-trend-chart {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.chart-wrapper {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
}

.error-message {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.error-message p {
  margin: 0;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GOAL COACHING V2 - Adaptive AI Coach
   ═══════════════════════════════════════════════════════════════════════════ */

.goal-coaching-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header Strip */
.coach-header-strip {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 20px;
}

.coach-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.progress-bar-mini {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-mini .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.today-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.today-summary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

.btn-start-session.primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-start-session.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.45);
}

.btn-start-session .btn-icon {
  font-size: 18px;
}

/* Coach Sections */
.coach-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.coach-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.coach-section .section-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.coach-section .toggle-icon {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.coach-section .section-body {
  padding: 16px 18px;
}

/* Check-in Section */
.checkin-section.collapsed .section-header {
  border-bottom: none;
}

.checkin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkin-field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.energy-scale {
  display: flex;
  gap: 8px;
}

.energy-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.energy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.energy-btn.selected {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  color: #a78bfa;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.soreness-options,
.time-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.soreness-btn,
.time-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soreness-btn:hover,
.time-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.soreness-btn.selected,
.time-btn.selected {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  color: #a78bfa;
}

.btn-update-plan {
  padding: 12px 20px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  color: #a78bfa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-update-plan:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: #8b5cf6;
}

/* Goals Coaching Grid */
.goals-coaching-grid {
  display: grid;
  gap: 14px;
}

.goal-coach-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goal-coach-card .goal-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.goal-deadline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.goal-progress-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-lg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-lg .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.goal-pace-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pace-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.pace-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.pace-badge.pace-on-pace {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.pace-badge.pace-okay {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.pace-badge.pace-behind {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.goal-sessions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sessions-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.session-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.session-tag {
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.btn-goal-session {
  padding: 10px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-goal-session:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
}

/* Empty Goals State */
.empty-goals-state {
  text-align: center;
  padding: 20px 0;
}

.empty-goals-state .empty-message {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.btn-add-goal-quick {
  padding: 10px 18px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-goal-quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Session Player */
.session-player-panel {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  overflow: hidden;
}

.session-player-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-back-to-coach {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-to-coach:hover {
  background: rgba(255, 255, 255, 0.12);
}

.session-player-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.session-player-body {
  padding: 18px;
  max-height: 45vh;
  overflow-y: auto;
}

.session-phase {
  margin-bottom: 20px;
}

.session-phase:last-child {
  margin-bottom: 0;
}

.session-phase h5 {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.phase-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-items li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 16px;
  position: relative;
}

.phase-items li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(139, 92, 246, 0.7);
}

.drill-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drill-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.drill-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.drill-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.session-player-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-complete-session {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-complete-session:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.btn-complete-session:disabled {
  cursor: default;
}

/* Coach Tips */
.tips-section .tips-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coach-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.coach-tip .tip-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.coach-tip .tip-text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.tips-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.empty-tips {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 10px;
}

/* Goal Coaching Fallback */
.goal-coaching-fallback {
  text-align: center;
  padding: 40px 20px;
}

.fallback-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.fallback-icon {
  font-size: 32px;
}

.fallback-message p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.btn-retry {
  padding: 10px 20px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry:hover {
  background: rgba(139, 92, 246, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .feature-overlay {
    padding: 10px;
  }

  .feature-overlay-panel {
    max-height: 90vh;
    border-radius: 16px;
  }

  .feature-overlay-header {
    padding: 16px 18px;
  }

  .feature-header-title {
    font-size: 16px;
  }

  .feature-overlay-body {
    padding: 18px;
  }

  .feature-overlay-footer {
    padding: 14px 18px;
    flex-direction: column;
  }

  .btn-upgrade-feature {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .report-summary-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .factor-grid {
    grid-template-columns: 1fr;
  }

  .prediction-hero {
    flex-direction: column;
    gap: 20px;
  }

  /* Goal Coaching V2 Responsive */
  .coach-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .coach-header-strip {
    padding: 16px;
  }

  .energy-scale {
    gap: 6px;
  }

  .energy-btn {
    padding: 8px;
    font-size: 13px;
  }

  .soreness-options,
  .time-options {
    gap: 6px;
  }

  .soreness-btn,
  .time-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .goal-coach-card {
    padding: 14px;
  }

  .session-player-body {
    max-height: 50vh;
  }

  .drill-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
