/**
 * Max Knox Members Portal Styles
 * Dark theme matching main landing page
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --accent-green: #10b981;
  --accent-green-dark: #059669;
  --accent-pink: #FE4F70;
  --accent-blue: #3b82f6;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
}

/* ========================================
   BASE STYLES
   ======================================== */
.members-page {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
}

/* ========================================
   HEADER BAR
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(26, 26, 26, 0.95) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-logo span {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

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

/* Google Sign In Button */
.google-signin-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--text-primary);
  border: none;
  border-radius: 8px;
  color: #333;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-signin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.google-signin-btn svg {
  width: 18px;
  height: 18px;
}

/* Logged In User Section */
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-green);
}

.header-user-info {
  display: flex;
  flex-direction: column;
}

.header-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.header-user-email {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.header-portal-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-portal-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  color: var(--text-primary);
}

.header-signout-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-signout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ========================================
   MEMBERS LAYOUT
   ======================================== */
.members-container {
  display: flex;
  height: 100vh;
  padding-top: 60px; /* Account for fixed header */
}

/* Alfred Panel (Left) */
.members-alfred-panel {
  flex: 0 0 400px;
  min-width: 320px;
  max-width: 500px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* Content Panel (Right) */
.members-content-panel {
  flex: 1;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.members-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.members-content-scroll::-webkit-scrollbar {
  width: 8px;
}

.members-content-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.members-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ========================================
   COVER IMAGE & PROFILE SECTION
   ======================================== */
.profile-header {
  position: relative;
  background: #2563eb; /* Solid blue default */
  min-height: 300px;
  overflow: hidden;
}

/* Cover image container - covers entire profile header */
.cover-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Default solid blue background */
.cover-image-default {
  width: 100%;
  height: 100%;
  background: #2563eb;
}

/* Uploaded cover image */
.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay gradient at bottom for text readability */
.cover-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.9) 0%, rgba(15, 15, 15, 0.5) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.cover-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.cover-edit-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--accent-green);
}

.cover-edit-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* Profile Info Bar */
.profile-info-bar {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 120px 32px 32px 32px;
  position: relative;
  z-index: 5;
}

.profile-photo-container {
  position: relative;
  flex-shrink: 0;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: var(--bg-secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-info-text {
  flex: 1;
  padding-bottom: 12px;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.profile-company {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.profile-email {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.profile-edit-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.profile-edit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
  padding: 40px 32px;
  background: var(--bg-primary);
}

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

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.new-project-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.new-project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.new-project-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Project Card */
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-green);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-type-badge.web-design {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.project-type-badge.app-development {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.project-type-badge.ai-development {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.project-status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.project-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.project-status-badge.completed {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.project-status-badge.paused {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.project-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.project-card-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mini Progress Tracker */
.mini-progress-tracker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.mini-progress-stage {
  flex: 1;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.mini-progress-stage.completed {
  background: var(--accent-green);
}

.mini-progress-stage.in-progress {
  background: linear-gradient(90deg, var(--accent-green) 50%, var(--bg-tertiary) 50%);
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Project Financial Summary (Mini) */
.project-card-financials {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.financial-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.financial-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.financial-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.financial-value.balance {
  color: var(--accent-pink);
}

/* Empty State */
.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.projects-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.projects-empty-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-green);
  fill: none;
}

.projects-empty-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.projects-empty-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  max-width: 400px;
}

/* ========================================
   PROJECT MODAL
   ======================================== */
.project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.project-modal {
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.project-modal-overlay.active .project-modal {
  transform: scale(1) translateY(0);
}

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

.project-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.project-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.project-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
}

.project-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ========================================
   FULL PROGRESS TRACKER
   ======================================== */
.progress-tracker {
  padding: 32px 24px;
  background: var(--bg-primary);
  border-radius: 16px;
  margin-bottom: 24px;
}

.progress-tracker-stages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Connecting Line */
.progress-tracker-stages::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--bg-tertiary);
  z-index: 0;
}

.progress-tracker-line {
  position: absolute;
  top: 20px;
  left: 40px;
  height: 3px;
  background: var(--accent-green);
  z-index: 1;
  transition: width 0.5s ease;
}

/* Stage */
.tracker-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.tracker-stage-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 3px solid var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tracker-stage.completed .tracker-stage-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.tracker-stage.completed .tracker-stage-circle svg {
  stroke: var(--text-primary);
}

.tracker-stage.in-progress .tracker-stage-circle {
  background: transparent;
  border-color: var(--accent-green);
  animation: stagePulse 2s ease-in-out infinite;
}

@keyframes stagePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

.tracker-stage-circle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
}

.tracker-stage-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.tracker-stage.completed .tracker-stage-label,
.tracker-stage.in-progress .tracker-stage-label {
  color: var(--text-primary);
}

/* ========================================
   PROJECT DETAILS GRID
   ======================================== */
.project-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-detail-section {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
}

.project-detail-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.detail-value.highlight {
  color: var(--accent-green);
}

.detail-value.warning {
  color: var(--accent-pink);
}

/* ========================================
   CONVERSATION HISTORY
   ======================================== */
.conversation-history {
  margin-top: 24px;
}

.conversation-session {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

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

.conversation-session-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.conversation-session-date {
  font-size: 12px;
  color: var(--text-muted);
}

.conversation-message {
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.5;
}

.conversation-message .sender {
  font-weight: 500;
  color: var(--accent-green);
}

.conversation-message .sender.user {
  color: var(--accent-blue);
}

.conversation-message .text {
  color: var(--text-secondary);
}

/* ========================================
   NEW PROJECT MODAL
   ======================================== */
.new-project-form {
  padding: 24px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
}

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

.form-select {
  cursor: pointer;
}

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

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-cancel {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-submit {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ========================================
   EDIT PROFILE MODAL
   ======================================== */
.edit-profile-photo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.edit-profile-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-green);
}

.edit-profile-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upload:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-hover);
}

/* ========================================
   LOADING STATE
   ======================================== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .site-header {
    padding: 0 16px;
  }

  .header-user-info {
    display: none;
  }

  .members-container {
    flex-direction: column;
  }

  .members-alfred-panel {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 100%;
    width: 100%;
    height: auto;
    min-height: 50vh;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    order: 2;
  }

  .members-content-panel {
    order: 1;
    height: auto;
  }

  .profile-header {
    min-height: 260px;
  }

  .profile-info-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px 24px 20px;
  }

  .profile-photo,
  .profile-photo-placeholder {
    width: 90px;
    height: 90px;
    font-size: 32px;
  }

  .cover-edit-btn {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .profile-info-text {
    padding-bottom: 0;
  }

  .projects-section {
    padding: 24px 20px;
  }

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

  .project-details-grid {
    grid-template-columns: 1fr;
  }

  .progress-tracker-stages {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .progress-tracker-stages::before {
    display: none;
  }

  .progress-tracker-line {
    display: none;
  }

  .tracker-stage {
    flex: 0 0 calc(33% - 16px);
  }
}

@media (max-width: 576px) {
  .site-header {
    height: 56px;
  }

  .members-container {
    padding-top: 56px;
  }

  .header-logo span {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .new-project-btn {
    width: 100%;
    justify-content: center;
  }

  .project-modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .tracker-stage {
    flex: 0 0 calc(50% - 8px);
  }
}
