/* ============================================================
   Phoenix Coach Dashboard - Complete Stylesheet
   Design System: Phoenix Tools (Glass Morphism / Warm Dark)
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ============================================================ */

:root {
  --bg: #151009;
  --bg-subtle: #1c140e;
  --bg-gradient: linear-gradient(to top, #3d1e08 0%, #2a1508 15%, #1e100a 35%, #1a0e12 55%, #1c0c1e 75%, #120a1a 90%, #0d0814 100%);
  --glass: rgba(255, 180, 120, 0.10);
  --glass-hover: rgba(255, 180, 120, 0.15);
  --glass-border: rgba(212, 175, 55, 0.22);
  --glass-border-hover: rgba(212, 175, 55, 0.38);
  --orange: #E8480C;
  --purple: #8B5CF6;
  --gradient: linear-gradient(135deg, #E8480C, #FF6B35);
  --gradient-subtle: linear-gradient(135deg, rgba(232, 72, 12, 0.15), rgba(255, 107, 53, 0.15));
  --text: #ffffff;
  --text-body: #B8AFA8;
  --text-muted: #7A7068;
  --text-accent: #E8480C;
  --status-pending: #9CA3AF;
  --status-active: #22C55E;
  --status-expiring: #F59E0B;
  --status-expired: #EF4444;
  --status-deactivated: #991B1B;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(40, 20, 8, 0.45);
  --shadow-lg: 0 8px 40px rgba(40, 20, 8, 0.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-width: 260px;
  --header-height: 64px;
}


/* ============================================================
   2. BASE / RESET
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background glow effects */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: warmPulse 8s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: warmPulse 10s ease-in-out infinite alternate-reverse;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ff8c5a;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 180, 120, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 180, 120, 0.25);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 180, 120, 0.15) transparent;
}


/* ============================================================
   3. CANVAS (Particle Effects)
   ============================================================ */

#fx-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   4. LOGIN PAGE
   ============================================================ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  z-index: 2;
  position: relative;
}

.login-card {
  background: rgba(255, 200, 150, 0.07);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(255, 107, 53, 0.05),
    inset 0 1px 0 rgba(255, 200, 150, 0.08);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo .logo-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
  display: block;
}

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.login-logo .login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-card .form-group {
  margin-bottom: 20px;
}

.login-card .form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.login-card .form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
}

.login-card .form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.login-card .form-input.input-error {
  border-color: var(--status-expired);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.login-error {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--status-expired);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.login-error.visible {
  display: block;
}

.login-success {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--status-active);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.login-success.visible {
  display: block;
}

.login-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-toggle a {
  color: var(--orange);
  font-weight: 500;
}

.login-toggle a:hover {
  text-decoration: underline;
}


/* ============================================================
   5. SIDEBAR LAYOUT
   ============================================================ */

.dashboard {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(45, 22, 28, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid var(--glass-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .brand-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 6px rgba(255, 107, 53, 0.3));
  flex-shrink: 0;
}

.sidebar-brand .brand-info {
  display: flex;
  flex-direction: column;
}

.sidebar-brand .brand-title {
  font-size: 1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.sidebar-brand .brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  gap: 10px;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
}

.nav-item:hover {
  background: var(--glass-hover);
  color: var(--text);
  text-decoration: none;
}

.nav-item.nav-active {
  background: var(--gradient-subtle);
  color: var(--text-accent);
  font-weight: 600;
  border-color: rgba(255, 107, 53, 0.1);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 16px 6px;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--glass-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.8rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.logout-btn:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  color: var(--text);
}

.logout-btn svg {
  width: 16px;
  height: 16px;
}


/* ============================================================
   6. CLIENT SELECTOR (Sidebar)
   ============================================================ */

.client-selector-wrapper {
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.client-selector-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

#client-selector {
  width: 100%;
  padding: 10px 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%237A7068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

#client-selector:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

#client-selector option {
  background: #1a120e;
  color: var(--text);
  padding: 8px;
}

.client-selector {
  width: 100%;
  padding: 10px 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%237A7068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.client-selector:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.client-selector option {
  background: #1a120e;
  color: var(--text);
  padding: 8px;
}


/* ============================================================
   7. MAIN CONTENT AREA
   ============================================================ */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  background: rgba(21, 16, 9, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 50;
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

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

.header-right .text-muted {
  color: var(--text-muted);
}

.header-right .text-sm {
  font-size: 0.8rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-body);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.menu-toggle:hover {
  background: var(--glass);
  color: var(--text);
}

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

/* Page Content */
.page-content {
  display: none;
  padding: 28px 32px;
  flex: 1;
}

.page-content.page-visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.overlay-visible {
  display: block;
}


/* ============================================================
   8. GLASS MORPHISM
   ============================================================ */

.glass {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  border-radius: 20px;
  transition: all var(--transition);
}

.glass:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

.glass-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 24px;
  border-radius: 20px;
  box-shadow: none;
  transition: all var(--transition);
}

.glass-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}


/* ============================================================
   9. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  min-height: 44px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Primary */
.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.35);
  color: #ffffff;
  text-decoration: none;
}

/* Secondary */
.btn-secondary {
  background: var(--glass);
  color: var(--text-body);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  color: var(--text);
  text-decoration: none;
}

/* Danger */
.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-expired);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
  text-decoration: none;
}

/* Full Width */
.btn-full {
  width: 100%;
}

/* Small */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  min-height: 34px;
}

/* Icon Button */
.btn-icon {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.btn-icon:hover {
  background: var(--glass);
  color: var(--text);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
}

/* Disabled */
.btn:disabled,
.btn.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* ============================================================
   10. FORM ELEMENTS
   ============================================================ */

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-input.input-error {
  border-color: var(--status-expired);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Select */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  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='%237A7068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.form-input option {
  background: #1a120e;
  color: var(--text);
  padding: 8px;
}

/* Textarea */
textarea.form-input {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

/* Form Group */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-group .form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-group .form-error-text {
  font-size: 0.75rem;
  color: var(--status-expired);
  margin-top: 6px;
}

/* Form Row (side by side) */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-body);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}


/* ============================================================
   11. STATUS BADGES
   ============================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-pending {
  background: rgba(156, 163, 175, 0.12);
  color: var(--status-pending);
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.status-active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-expiring {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-expiring);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-expired {
  background: rgba(239, 68, 68, 0.12);
  color: var(--status-expired);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-deactivated {
  background: rgba(153, 27, 27, 0.12);
  color: var(--status-deactivated);
  border: 1px solid rgba(153, 27, 27, 0.2);
}

.status-new {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-read {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.status-responded {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-completed {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-pending_review {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-expiring);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-scheduled {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-cancelled {
  background: rgba(156, 163, 175, 0.12);
  color: var(--status-pending);
  border: 1px solid rgba(156, 163, 175, 0.2);
}


/* ============================================================
   12. MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.modal-visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #1f1612;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.modal-visible .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text);
}

.modal-body {
  padding: 20px 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  justify-content: flex-end;
}

/* Wide modal variant */
.modal-wide {
  max-width: 680px;
}

/* Full height modal */
.modal-tall {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-tall .modal-body {
  flex: 1;
  overflow-y: auto;
}


/* ============================================================
   13. TOAST NOTIFICATIONS
   ============================================================ */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 18, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);
  pointer-events: auto;
  font-size: 0.88rem;
  color: var(--text-body);
}

.toast.toast-show {
  transform: translateX(0);
}

.toast-success {
  border-left: 3px solid var(--status-active);
}

.toast-error {
  border-left: 3px solid var(--status-expired);
}

.toast-warning {
  border-left: 3px solid var(--status-expiring);
}

.toast-info {
  border-left: 3px solid #3B82F6;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--transition);
  flex-shrink: 0;
}

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

.toast-hide {
  transform: translateX(120%);
  opacity: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}


/* ============================================================
   14. PAGE HEADER
   ============================================================ */

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

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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


/* ============================================================
   15. STATS GRID
   ============================================================ */

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

.stat-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 20px;
  border-radius: 20px;
  box-shadow: none;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.stat-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================================
   16. TASK CARDS
   ============================================================ */

.task-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 20px;
  border-radius: 20px;
  box-shadow: none;
  margin-bottom: 16px;
  transition: all var(--transition);
  cursor: pointer;
}

.task-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

.task-card-summary {
  cursor: pointer;
}

.task-expand-icon {
  transition: transform 0.2s ease;
  opacity: 0.5;
  flex-shrink: 0;
}

.task-expanded .task-expand-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.task-card-details {
  display: none;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(218, 165, 32, 0.2);
}

.task-card-details.task-details-visible {
  display: block;
}

.task-expanded .task-description-preview {
  display: none;
}

.task-detail-field {
  margin-bottom: 16px;
}

.task-detail-field:last-child {
  margin-bottom: 0;
}

.task-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.task-detail-date {
  font-size: 0.85rem;
  color: var(--text-body);
}

.task-detail-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(218, 165, 32, 0.15);
}

.task-card.task-focus {
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow), 0 0 16px rgba(255, 107, 53, 0.1);
}

.task-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.task-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.task-description-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.task-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-meta-item svg {
  width: 14px;
  height: 14px;
}

.task-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.task-description {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-top: 8px;
  line-height: 1.5;
}

/* Checklist Progress Bar */
.checklist-progress {
  height: 4px;
  background: var(--glass);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.checklist-progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Task Detail (expanded) */
.task-detail {
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  margin-top: 16px;
}

.task-detail-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.task-detail-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 100px;
}

.task-detail-value {
  color: var(--text-body);
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Checklist Items */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-body);
}

.checklist-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item.checklist-checked {
  text-decoration: line-through;
  opacity: 0.6;
}


/* ============================================================
   17. PHASE HEADERS
   ============================================================ */

.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phase-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.phase-count {
  font-size: 0.75rem;
  font-weight: 400;
  -webkit-text-fill-color: var(--text-muted);
  color: var(--text-muted);
}


/* ============================================================
   18. FILTER BUTTONS
   ============================================================ */

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-body);
  font-size: 0.8rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--glass-hover);
  color: var(--text);
}

.filter-btn.filter-active {
  background: var(--gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

.filter-count {
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.7;
}


/* ============================================================
   19. JOURNAL
   ============================================================ */

.journal-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 16px;
  border-radius: 20px;
  box-shadow: none;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.journal-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

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

.journal-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.journal-mood {
  font-size: 1.2rem;
}

.journal-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.journal-status-dot.dot-new {
  background: #3B82F6;
}

.journal-status-dot.dot-read {
  background: var(--orange);
}

.journal-status-dot.dot-responded {
  background: var(--status-active);
}

.journal-preview {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.journal-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--gradient-subtle);
  border-radius: 12px;
  color: var(--text-accent);
}

/* Journal Detail (full entry view) */
.journal-detail {
  padding: 24px;
}

.journal-detail-header {
  margin-bottom: 20px;
}

.journal-detail-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.journal-detail-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.journal-detail-body {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  white-space: pre-wrap;
}

.coach-response-block {
  background: transparent;
  border-left: 3px solid var(--orange);
  padding: 16px;
  margin-top: 16px;
  border-radius: var(--radius-sm);
}

.coach-response-block h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.coach-response-block p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.coach-response-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}


/* ============================================================
   20. SESSION GRID
   ============================================================ */

.session-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.session-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 12px 16px;
  border-radius: 20px;
  box-shadow: none;
  text-align: center;
  transition: all var(--transition);
}

.session-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

.session-card.session-completed {
  border-bottom: 3px solid var(--status-active);
}

.session-card.session-scheduled {
  border-bottom: 3px solid var(--orange);
}

.session-card.session-empty {
  border-style: dashed;
  opacity: 0.6;
}

.session-card.session-empty:hover {
  opacity: 0.8;
}

.session-empty-compact {
  padding: 8px 16px;
}

.session-empty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-empty-row .session-number {
  margin-bottom: 0;
  font-size: 1rem;
}

.session-number {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.session-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.session-date {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 4px;
}

.session-status {
  margin-top: 8px;
}

.session-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}


/* ============================================================
   21. MILESTONE CARDS
   ============================================================ */

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.milestone-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 24px;
  border-radius: 20px;
  box-shadow: none;
  text-align: center;
  transition: all var(--transition);
}

.milestone-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

.milestone-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(255, 170, 50, 0.2));
  display: block;
}

.milestone-card.milestone-achieved {
  border: 1.5px solid rgba(218, 165, 32, 0.55);
  box-shadow: none;
}

.milestone-card.milestone-achieved .milestone-icon {
  animation: celebrate 0.6s ease;
}

.milestone-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.milestone-description {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.milestone-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.milestone-card.milestone-locked {
  opacity: 0.5;
}

.milestone-card.milestone-locked .milestone-icon {
  filter: grayscale(1);
}

@keyframes celebrate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.2) rotate(-5deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  75% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}


/* ============================================================
   22. RICH TEXT EDITOR
   ============================================================ */

.rich-editor {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.rich-editor:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(255, 180, 120, 0.06);
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.rich-toolbar button {
  padding: 6px 8px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-body);
  cursor: pointer;
  font-size: 0.85rem;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.rich-toolbar button:hover {
  background: var(--glass-hover);
  color: var(--text);
}

.rich-toolbar button.active {
  background: var(--gradient-subtle);
  color: var(--text-accent);
}

.rich-toolbar button svg {
  width: 16px;
  height: 16px;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
  margin: 0 4px;
  flex-shrink: 0;
}

.rich-content {
  padding: 12px 16px;
  min-height: 120px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  line-height: 1.6;
  outline: none;
  background: transparent;
}

.rich-content:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.rich-content p {
  margin-bottom: 8px;
}

.rich-content ul,
.rich-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.rich-content ul {
  list-style: disc;
}

.rich-content ol {
  list-style: decimal;
}

.rich-content li {
  margin-bottom: 4px;
}

.rich-content strong {
  font-weight: 700;
}

.rich-content em {
  font-style: italic;
}


/* ============================================================
   23. RESOURCE CARDS
   ============================================================ */

.resource-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 16px;
  border-radius: 20px;
  box-shadow: none;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.resource-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

.resource-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.resource-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.resource-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.resource-type-badge.type-link {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.resource-type-badge.type-document {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.resource-type-badge.type-video {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.resource-type-badge.type-audio {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-active);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.resource-type-badge.type-image {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-expiring);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.resource-description {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.5;
}

.resource-url {
  color: var(--text-accent);
  font-size: 0.8rem;
  word-break: break-all;
}

.resource-url:hover {
  text-decoration: underline;
}

.resource-meta {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 8px;
}

.resource-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}


/* ============================================================
   24. DISCOUNT CARDS
   ============================================================ */

.discount-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 16px;
  border-radius: 20px;
  box-shadow: none;
  transition: all var(--transition);
}

.discount-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

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

.discount-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.discount-value {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.discount-code {
  font-family: 'Courier New', monospace;
  background: var(--glass);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
}

.discount-code .copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.discount-code .copy-btn:hover {
  color: var(--orange);
}

.discount-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.discount-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.discount-uses {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}


/* ============================================================
   25. FEEDBACK / STAR RATING
   ============================================================ */

.star-rating {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star-filled {
  color: #F59E0B;
}

.star-empty {
  color: var(--text-muted);
}

.star-rating svg {
  width: 18px;
  height: 18px;
}

.star-rating.star-rating-lg svg {
  width: 24px;
  height: 24px;
}

.star-rating-input {
  display: flex;
  gap: 4px;
}

.star-rating-input .star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-muted);
  transition: color var(--transition);
  font-size: 1.5rem;
}

.star-rating-input .star-btn:hover,
.star-rating-input .star-btn.star-selected {
  color: #F59E0B;
}

.feedback-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-top: 8px;
}

.feedback-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================================
   26. EMPTY STATE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.2));
  display: block;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}

.empty-state .btn {
  margin-top: 20px;
}


/* ============================================================
   27. OVERVIEW STATS (Dashboard Home)
   ============================================================ */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.overview-stat {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  padding: 16px;
  border-radius: 20px;
  box-shadow: none;
  cursor: pointer;
  transition: all var(--transition);
}

.overview-stat:hover {
  border-color: rgba(218, 165, 32, 0.55);
}

.overview-stat.stat-alert {
  border-left: 3px solid var(--orange);
}

.overview-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.overview-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.overview-stat-detail {
  font-size: 0.78rem;
  color: var(--text-body);
  margin-top: 6px;
}

/* Progress Track / Bar */
.progress-track {
  height: 8px;
  border-radius: 4px;
  background: var(--glass);
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}


/* ============================================================
   28. ACTIVITY FEED
   ============================================================ */

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

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.dot-orange {
  background: var(--orange);
}

.activity-dot.dot-purple {
  background: var(--purple);
}

.activity-dot.dot-green {
  background: var(--status-active);
}

.activity-dot.dot-blue {
  background: #3B82F6;
}

.activity-dot.dot-amber {
  background: var(--status-expiring);
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.4;
}

.activity-text strong {
  color: var(--text);
  font-weight: 600;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ============================================================
   29. TABLES
   ============================================================ */

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--glass-border);
}

.data-table tbody td {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-body);
  border-bottom: 1px solid rgba(255, 190, 130, 0.08);
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: var(--glass);
}

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


/* ============================================================
   30. TABS
   ============================================================ */

.tab-group {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--text-body);
}

.tab-btn.tab-active {
  color: var(--text-accent);
  border-bottom-color: var(--orange);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.tab-panel-visible {
  display: block;
  animation: fadeIn 0.3s ease;
}


/* ============================================================
   31. TOOLTIPS
   ============================================================ */

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: #1f1612;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  color: var(--text-body);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  z-index: 100;
}

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


/* ============================================================
   32. LOADING / SPINNERS
   ============================================================ */

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

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

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  flex-direction: column;
  gap: 12px;
}

.loading-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 180, 120, 0.06) 25%,
    rgba(255, 180, 120, 0.12) 50%,
    rgba(255, 180, 120, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-title {
  height: 20px;
  width: 40%;
  margin-bottom: 12px;
}

.skeleton-card {
  height: 100px;
  margin-bottom: 12px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Loading Screen (full-page) */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  gap: 20px;
}

.loading-screen .loading-icon {
  font-size: 2.5rem;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-screen .loading-spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--orange);
  border-right-color: var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-screen .loading-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}


/* ============================================================
   33. PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.pagination-btn {
  padding: 8px 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 36px;
  text-align: center;
}

.pagination-btn:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.pagination-btn.pagination-active {
  background: var(--gradient);
  color: #ffffff;
  border-color: transparent;
}

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

.pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 8px;
}


/* ============================================================
   34. SEARCH BAR
   ============================================================ */

.search-bar {
  position: relative;
  margin-bottom: 20px;
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar .search-icon svg {
  width: 18px;
  height: 18px;
}

.search-bar .form-input {
  padding-left: 42px;
}

.search-bar .search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.search-bar .search-clear.clear-visible {
  opacity: 1;
}


/* ============================================================
   35. DATE DISPLAY
   ============================================================ */

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  color: var(--text-body);
}

.date-badge svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.date-range .date-separator {
  color: var(--text-muted);
}


/* ============================================================
   36. AVATAR GROUP
   ============================================================ */

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -8px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.avatar-group .avatar-more {
  background: var(--glass);
  color: var(--text-muted);
  font-size: 0.65rem;
}


/* ============================================================
   37. DROPDOWN MENU
   ============================================================ */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: #1f1612;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  padding: 4px;
}

.dropdown-menu.dropdown-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--text-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.dropdown-item:hover {
  background: var(--glass);
  color: var(--text);
}

.dropdown-item.dropdown-danger {
  color: var(--status-expired);
}

.dropdown-item.dropdown-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 4px 0;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ============================================================
   38. ALERTS / NOTICES
   ============================================================ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 1px;
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.alert-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}


/* ============================================================
   39. NOTES / COACH NOTES
   ============================================================ */

.note-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}

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

.note-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 8px;
}

.note-type.note-private {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
}

.note-type.note-shared {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
}

.note-content {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

.note-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}


/* ============================================================
   40. TIMELINE
   ============================================================ */

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  border: 2px solid var(--bg);
}

.timeline-item.timeline-completed .timeline-dot {
  background: var(--status-active);
}

.timeline-item.timeline-pending .timeline-dot {
  background: var(--status-pending);
}

.timeline-content {
  font-size: 0.88rem;
  color: var(--text-body);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ============================================================
   41. SECTION DIVIDERS
   ============================================================ */

.section-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 24px 0;
}

.section-divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-divider-text::before,
.section-divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}


/* ============================================================
   42. RESPONSIVE - TABLET
   ============================================================ */

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

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

  .page-content {
    padding: 24px;
  }

  .header {
    padding: 0 24px;
  }

  .overview-two-col {
    grid-template-columns: 1fr;
  }
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   43. RESPONSIVE - MOBILE (768px)
   ============================================================ */

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    z-index: 100;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .header {
    padding: 0 16px;
  }

  .page-content {
    padding: 20px 16px;
  }

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

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

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

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

  .modal {
    margin: 16px;
    max-width: calc(100% - 32px);
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .filter-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .task-header {
    flex-direction: column;
    gap: 8px;
  }

  .login-card {
    padding: 36px 28px;
  }

  .tab-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  #toast-container {
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  .resource-header {
    flex-direction: column;
    gap: 8px;
  }

  .overview-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-client-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .overview-week-progress {
    width: 100%;
    max-width: none;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   44. RESPONSIVE - SMALL MOBILE (480px)
   ============================================================ */

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

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

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

  .login-card {
    padding: 32px 24px;
  }

  .page-content {
    padding: 16px 12px;
  }

  .header {
    padding: 0 12px;
  }

  .modal {
    margin: 8px;
    max-width: calc(100% - 16px);
    border-radius: var(--radius);
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding: 16px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .glass-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .empty-state {
    padding: 40px 16px;
  }

  .overview-stats-grid {
    grid-template-columns: 1fr;
  }
  .overview-client-name {
    font-size: 1.2rem;
  }
}


/* ============================================================
   45. UTILITY CLASSES
   ============================================================ */

/* Text */
.text-muted {
  color: var(--text-muted);
}

.text-body {
  color: var(--text-body);
}

.text-accent {
  color: var(--text-accent);
}

.text-warning {
  color: var(--status-expiring);
}

.text-success {
  color: var(--status-active);
}

.text-danger {
  color: var(--status-expired);
}

.text-white {
  color: var(--text);
}

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

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

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

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

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

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

.font-medium {
  font-weight: 500;
}

.font-mono {
  font-family: 'Courier New', monospace;
}

/* Layout */
.flex {
  display: flex;
}

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-1 {
  flex: 1;
}

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

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

.justify-end {
  justify-content: flex-end;
}

/* Gaps */
.gap-4 {
  gap: 4px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

/* Margins */
.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

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

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

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

.ml-auto {
  margin-left: auto;
}

.mr-8 {
  margin-right: 8px;
}

/* Padding */
.p-0 {
  padding: 0;
}

.p-8 {
  padding: 8px;
}

.p-16 {
  padding: 16px;
}

.p-24 {
  padding: 24px;
}

/* Width */
.w-full {
  width: 100%;
}

/* Border */
.border-bottom {
  border-bottom: 1px solid var(--glass-border);
}

.border-top {
  border-top: 1px solid var(--glass-border);
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Z-index */
.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Visibility */
.opacity-50 {
  opacity: 0.5;
}

.opacity-70 {
  opacity: 0.7;
}

/* Interaction */
.pointer-events-none {
  pointer-events: none;
}

.select-none {
  user-select: none;
}

/* Transition */
.transition-all {
  transition: all var(--transition);
}


/* ============================================================
   OVERVIEW PAGE — Client Header, Stats & Activity
   ============================================================ */

.overview-header-section {
  margin-bottom: 28px;
}

.overview-client-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.overview-client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.overview-client-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

.overview-client-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overview-client-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.overview-client-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.overview-phase-label {
  font-size: 0.78rem;
  color: var(--text-body);
  font-weight: 500;
}

.overview-days {
  font-size: 0.78rem;
  font-weight: 600;
}

.overview-days.days-active { color: var(--status-active); }
.overview-days.days-expiring { color: var(--status-expiring); }
.overview-days.days-expired { color: var(--status-expired); }
.overview-days.days-future { color: var(--purple); }

.overview-week-progress {
  min-width: 200px;
  max-width: 280px;
}

.overview-week-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.progress-bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--glass);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient);
  transition: width 0.5s ease;
}

/* Stats Grid */
.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card-clickable {
  cursor: pointer;
}

.stat-card-clickable:hover {
  transform: translateY(-2px);
}

.stat-card-alert {
  border-left: 3px solid var(--orange);
}

.stat-icon {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Two-column layout */
.overview-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.overview-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Preview cards */
.overview-preview-card {
  /* inherits glass-card */
}

.overview-preview-empty {
  opacity: 0.7;
  border-style: dashed;
}

.overview-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.overview-preview-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.overview-preview-text {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Activity card */
.overview-activity-card {
  /* inherits glass-card */
}

.overview-no-activity {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 20px 0;
}

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

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--glass);
}

.activity-icon-task { color: var(--orange); }
.activity-icon-journal { color: var(--purple); }
.activity-icon-session { color: #3B82F6; }

.activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.activity-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-action {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.activity-item-clickable {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.activity-item-clickable:hover {
  background: rgba(218, 165, 32, 0.08);
  box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.35);
}

.activity-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Highlight animation for navigated-to cards */
@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.8); }
  50% { box-shadow: 0 0 12px 4px rgba(218, 165, 32, 0.4); }
  100% { box-shadow: 0 0 0 2px rgba(218, 165, 32, 0); }
}

.highlight-card {
  animation: highlightPulse 1s ease-in-out 2;
}


/* ============================================================
   KANBAN CLIENT MANAGEMENT
   ============================================================ */

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  min-height: 400px;
}

.kanban-lane {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.kanban-lane-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.kanban-lane-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-lane-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.kanban-lane-count {
  margin-left: auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kanban-lane-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(255, 180, 120, 0.03);
  border: 1px dashed rgba(255, 190, 130, 0.08);
  min-height: 120px;
  transition: all var(--transition);
}

.kanban-lane-dragover {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.05);
}

.kanban-card {
  background: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.35);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: none;
  user-select: none;
}

.kanban-card:hover {
  border-color: rgba(218, 165, 32, 0.55);
  transform: translateY(-2px);
}

.kanban-card-dragging {
  opacity: 0.5;
  transform: rotate(2deg) !important;
}

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

.kanban-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

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

.kanban-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-email {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kanban-card-days {
  font-size: 0.72rem;
  font-weight: 600;
}

.kanban-card-days.days-warning { color: var(--status-expiring); }
.kanban-card-days.days-danger { color: var(--status-expired); }
.kanban-card-days.days-ok { color: var(--status-active); }

.kanban-empty {
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Selected Client Bar (sidebar) */
.selected-client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--gradient-subtle);
}

.selected-client-bar.hidden {
  display: none;
}

.selected-client-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.selected-client-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.selected-client-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-client-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.selected-client-clear:hover {
  background: var(--glass);
  color: var(--text);
}


/* ============================================================
   46. PRINT STYLES
   ============================================================ */

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  body::before,
  body::after {
    display: none;
  }

  .sidebar,
  .header,
  .menu-toggle,
  #fx-canvas,
  #toast-container,
  .modal-overlay,
  .btn,
  .filter-group {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  .page-content {
    display: block !important;
    padding: 0;
  }

  .glass,
  .glass-card {
    background: transparent;
    backdrop-filter: none;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .page-header h1 {
    background: none;
    -webkit-text-fill-color: #000;
    color: #000;
  }

  .stat-value,
  .session-number,
  .overview-stat-value {
    background: none;
    -webkit-text-fill-color: #000;
    color: #000;
  }
}


/* ============================================================
   TASK REVIEW SECTION
   ============================================================ */

.review-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.review-field {
  margin-bottom: 12px;
}

.review-field strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-field .rich-text-display {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255, 180, 120, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.review-modal .review-field {
  margin-bottom: 16px;
}

.review-checklist {
  margin-top: 12px;
}

.checklist-display {
  margin-top: 8px;
}

.checklist-display li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-body);
}

.checklist-display li.checked {
  text-decoration: line-through;
  opacity: 0.6;
}

.check-icon {
  font-size: 1.1rem;
}

.review-feedback-form h4 {
  margin-bottom: 12px;
}


/* ============================================================
   FEEDBACK FIELDS
   ============================================================ */

.feedback-field {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 180, 120, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.feedback-field strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-field p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

.feedback-comment {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.feedback-comment p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}


/* ============================================================
   CLIENT INSIGHTS (OVERVIEW PAGE)
   ============================================================ */

.overview-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

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

.overview-insight-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.insight-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.insight-stat {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 180, 120, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.insight-stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
}

.insight-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mood-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 4px 0;
}

.mood-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.mood-bar-wrapper {
  width: 100%;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.mood-bar-emoji {
  font-size: 0.85rem;
  margin-bottom: 2px;
  line-height: 1;
}

.mood-bar {
  width: 100%;
  max-width: 32px;
  min-height: 6px;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
  position: relative;
  cursor: default;
}

.mood-bar-score {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.mood-chart-col:hover .mood-bar-score {
  opacity: 1;
}

.mood-bar-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}

.mood-trend-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}
