/* CSS Variables for Dashboard */
:root {
  --primary-blue: #2563eb;
  --light-blue: #3b82f6;
  --dark-blue: #1e40af;
  --success-blue: #60a5fa;
  --active-day: #3b82f6;
  --inactive-day: #e0e0e0;
  --progress-bg: #dbeafe;
  --card-bg: #ffffff;
  --card-shadow: rgba(37, 99, 235, 0.1);
  --card-hover-shadow: rgba(37, 99, 235, 0.2);
}

/* User Profile Section with Gradient Background */
.user-profile-section {
  width: 100%;
  margin-top: 15px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Circular Avatar/Logo Container */
.user-avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.user-avatar-container:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar.default-logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  padding: 5px;
}

/* User Details (Name and Phone) */
.user-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.user-details .user-name {
  font-size: 1.1em;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.user-details .user-phone {
  font-size: 0.9em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Section Toggle Buttons */
.section-toggle {
  display: flex;
  gap: 12px;
  margin: 12px 0 12px 0;
  padding: 6px;
  background: var(--progress-bg);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-toggle .btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 28px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.section-toggle .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: -1;
}

.section-toggle .btn:hover {
  transform: translateY(-1px);
}

.section-toggle .btn:hover::before {
  opacity: 0.05;
}

.section-toggle .btn.active {
  background: white;
  color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(61, 131, 97, 0.15), 0 2px 4px rgba(61, 131, 97, 0.1);
}

.section-toggle .btn.active::before {
  opacity: 0;
}

.section-toggle .btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 131, 97, 0.2), 0 3px 6px rgba(61, 131, 97, 0.15);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .user-avatar-container {
    width: 70px;
    height: 70px;
  }

  .user-details .user-name {
    font-size: 1em;
  }

  .user-details .user-phone {
    font-size: 0.85em;
  }

  .section-toggle {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .section-toggle .btn {
    min-width: 120px;
    padding: 12px 20px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .section-toggle {
    padding: 5px;
    gap: 8px;
  }

  .section-toggle .btn {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 0.9em;
  }
}

/* Section Content Containers */
.section-content {
  width: 100%;
  min-height: 50vh;
}

.plans-section {
  /* Plans section uses existing styles below */
  display: block;
}

/* Journey Section Styles */
.journey-section {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.progress-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

/* Base Progress Card Styles */
.progress-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease;
}

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

.progress-card:hover {
  box-shadow: 0 4px 16px var(--card-hover-shadow);
  transform: translateY(-4px);
}

.progress-card .card-icon {
  font-size: 2.5em;
  line-height: 1;
}

.progress-card .card-title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--primary-blue);
}

.progress-card .card-value {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1;
}

.progress-card .card-subtitle {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

/* Weight Progress Chart Card - Full Width */
.weight-chart-card {
  grid-column: 1 / -1;
  padding: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid var(--primary-blue-light);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

/* Active Days Card */
.active-days-card .card-value {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Weekly Activity Chart */
.weekly-chart {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 0;
}

.day-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.day-indicator {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--inactive-day);
  transition: all 0.3s ease;
}

.day-indicator.active {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--success-blue) 100%);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.day-label {
  font-size: 0.75em;
  color: #666;
  font-weight: 500;
}

/* Total Workouts Card */
.total-workouts-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

/* Monthly Progress Ring */
.progress-ring-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-fill {
  transition: stroke-dashoffset 0.5s ease;
  stroke-linecap: round;
}

.progress-percentage {
  position: absolute;
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-blue);
}

/* Motivational Quote Card */
.quote-card {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
}

@media (min-width: 769px) {
  .quote-card {
    grid-column: span 2;
  }
}

.quote-text {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  font-style: italic;
  padding: 16px 0;
}

.quote-author {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

/* Next Workout Card */
.next-workout-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.workout-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.workout-date {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.workout-name {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--dark-blue);
}

.workout-duration {
  font-size: 0.95em;
  color: #666;
}

.workout-btn {
  margin-top: 8px;
  background: #2196f3;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.workout-btn:hover {
  background: #1976d2;
  transform: scale(1.05);
}

/* Empty State Card */
.empty-state-card {
  grid-column: span 2;
  padding: 40px 24px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.empty-icon {
  font-size: 4em;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
}

.empty-state-card .btn {
  background: var(--primary-blue);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.empty-state-card .btn:hover {
  background: var(--dark-blue);
  transform: scale(1.05);
}

/* Invite Friends Card */
.invite-friends-card {
  grid-column: span 2;
  padding: 40px 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  text-align: center;
}

.invite-friends-card .card-icon {
  font-size: 3em;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

.invite-friends-card .card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.invite-friends-card .card-subtitle {
  font-size: 1em;
  color: #1e40af;
  margin-bottom: 20px;
}

.invite-friends-card .invite-btn {
  background: var(--primary-blue);
  color: white;
  padding: 14px 36px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.invite-friends-card .invite-btn:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mobile Responsive for Progress Cards */
@media (max-width: 768px) {
  .progress-cards-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quote-card,
  .empty-state-card,
  .invite-friends-card,
  .weight-chart-card {
    grid-column: span 1;
  }

  .progress-card {
    padding: 20px;
  }

  .weekly-chart {
    gap: 6px;
  }

  .day-indicator {
    width: 28px;
    height: 28px;
  }

  .weight-chart-info {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .weight-chart-card {
    padding: 12px;
  }

  .weight-chart-card #weightChart {
    height: 300px !important;
  }
}

.btn {
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  width: 100%;
}

.content-container {
  min-height: 60vh;
  padding-bottom: 40px;
}

.plans-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.plan-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
  transition: all 0.3s ease;
}

/* Color coding based on plan state */
.plan-container.state-ready .plan {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.plan-container.state-preparing .plan {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
  border: 2px solid #ffc107;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.plan-container.state-unpaid .plan {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border: 2px solid #9e9e9e;
  box-shadow: 0 2px 8px rgba(158, 158, 158, 0.2);
}

.plan-container.state-expired .plan {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #f44336;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.plan-container.expanded .plan {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.plan {
  background: #f9f9f9;
  border: 1px solid #ededed;
  border-radius: 8px;
  padding: 16px;
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.plan-container.non-expandable .plan {
  cursor: default;
}

.plan-container.non-expandable .plan:hover {
  transform: none;
}

/* Smooth hover effect for expandable plans */
.plan-container:not(.non-expandable) .plan:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.plan-container.expanded:not(.non-expandable) .plan:hover {
  transform: translateY(0);
}

@keyframes glow {
  from {
    box-shadow: 0 2px 10px rgba(61, 131, 97, 0);
  }
  to {
    box-shadow: 0 2px 10px rgba(61, 131, 97, 0.4);
  }
}

.plan .plan-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.plan .plan-header .plan-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #000;
  margin-right: 10px;
}
.plan .plan-header .expand-icon {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan .plan-header .expand-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(134deg)
    brightness(91%) contrast(86%);
  transition: filter 0.3s ease;
}
.plan .plan-header .expand-icon.rotated {
  transform: rotate(180deg);
}

/* Change icon color on hover for expandable plans */
.plan-container:not(.non-expandable) .plan:hover .expand-icon img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(100%) saturate(1500%) hue-rotate(134deg)
    brightness(95%) contrast(90%);
}

.plan-container .action {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  max-width: 400px;
  gap: 5px;
  transition: all 0.3s ease;
}
.plan-container .action .btn {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 500;
  font-size: 0.9em;
  border-radius: 0 0 3rem 3rem;
  transition: all 0.3s ease;
}

/* Color-coded button styles */
.plan-container.state-ready .action .btn {
  background-color: #2196f3;
}
.plan-container.state-ready .action .btn:hover {
  background-color: #1976d2;
}

.plan-container.state-preparing .action .btn {
  background-color: #ffc107;
  color: #333;
}

.plan-container.state-unpaid .action .btn {
  background-color: var(--primary-blue);
}
.plan-container.state-unpaid .action .btn:hover {
  background-color: #357a55;
}

.plan-container.state-expired .action .btn.resubscribe-btn {
  background-color: #f44336;
}
.plan-container.state-expired .action .btn.resubscribe-btn:hover {
  background-color: #d32f2f;
}

.plan .actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 5px;
}
.plan .actions .btn-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.plan .actions .btn-group .btn {
  flex: 1;
}

.plan .actions.primary .btn {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 500;
  font-size: 0.9em;
}
.plan .actions.primary .btn:hover {
  background-color: #357a55;
}
.plan .actions.primary .btn:active {
  background-color: var(--primary-blue-dark);
}
.plan .actions.primary .btn:disabled {
  background-color: #a2c6b4;
  cursor: not-allowed;
}
.plan .actions.primary .btn-group .btn {
  background: transparent;
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.plan .actions.primary .message {
  font-size: 0.8em;
  color: #626262;
  text-align: center;
}

.plan .actions.secondary .btn {
  background-color: #fafafa;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  font-weight: 500;
  font-size: 0.9em;
}

.plan .instructor-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.plan .instructor-details .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.plan .instructor-details .default-avatar {
  width: 40px;
  height: 40px;
  margin: 8px;
  background-color: var(--primary-blue);
  background-image: url(/static/img/user-avatar.svg);
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 13px;
}
.plan .instructor-details .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plan .instructor-details .info .name {
  font-weight: 700;
  color: #353535;
}
.plan .instructor-details .info .description {
  font-weight: 300;
  font-size: 0.9em;
  color: #626262;
}

.plan .answers-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px;
}
.plan .answers-details span {
  font-weight: 500;
  color: var(--primary-blue);
  font-size: 0.8em;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-underline-offset: 2px;
}

.info-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
}
.info-modal .content::before {
  content: '';
  height: 4px;
  width: 100px;
  background-color: #ededed;
  margin-bottom: 16px;
}
.info-modal .content {
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.info-modal .content .title {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #353535;
}
.info-modal .content .description {
  font-weight: 300;
  font-size: 0.9em;
  color: #626262;
}

/* Shortcut Modal Specific Styles */
.shortcut-modal-content .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}
.shortcut-modal-content .modal-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.shortcut-modal-content .modal-actions .btn.primary {
  background-color: var(--primary-blue-light);
  color: white;
}
.shortcut-modal-content .modal-actions .btn.primary:hover {
  background-color: #45a049;
}
.shortcut-modal-content .modal-actions .btn.secondary {
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}
.shortcut-modal-content .modal-actions .btn.secondary:hover {
  background-color: #e0e0e0;
}

/* Payment Modal Specific Styles */
.payment-modal-content .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}
.payment-modal-content .description .plan-title {
  font-weight: 700;
  color: #353535;
}
.payment-modal-content .btn {
  flex: 1;
  padding: 12px 16px;
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.payment-modal-content .btn.discount-code {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}
.payment-modal-content .btn.discount-code:hover {
  background-color: #e0e0e0;
}
.payment-modal-content .modal-actions .btn.primary {
  background-color: var(--primary-blue-light);
  color: white;
}
.payment-modal-content .modal-actions .btn.primary:hover {
  background-color: #45a049;
}
.payment-modal-content .modal-actions .btn.secondary {
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}
.payment-modal-content .modal-actions .btn.secondary:hover {
  background-color: #e0e0e0;
}

.payment-modal-content .discount-code-container {
  width: 100%;
  margin: 0;
  padding: 0;
}
.payment-modal-content .discount-code-container div {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0;
}
.payment-modal-content .discount-code-container input {
  width: 85%;
  padding: 8px;
  border: 1px solid #cfcfcf;
  border-radius: 0 8px 8px 0;
  font-size: 0.8em;
  text-align: center;
  transition: all 0.3s ease;
}
.payment-modal-content .discount-code-container input:focus {
  outline: none;
  border-color: var(--primary-blue);
}
.payment-modal-content .discount-code-container input:read-only {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}
.payment-modal-content .discount-code-container .btn {
  padding: 8px;
  background-color: var(--primary-blue);
  border-radius: 8px 0 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.payment-modal-content .discount-code-container .btn img {
  width: 20px;
  height: 20px;
}
.payment-modal-content .discount-code-container .applied-discount {
  font-size: 0.8em;
  color: var(--primary-blue-light);
  margin-top: 10px;
}

/* PWA Install Modal Specific Styles */
.pwa-install-modal {
  z-index: 9999;
}

.pwa-install-modal-content {
  max-width: 400px;
  text-align: center;
  padding: 24px 20px;
}

.pwa-install-modal-content .pwa-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.pwa-install-modal-content .app-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(61, 131, 97, 0.2);
}

.pwa-install-modal-content .title {
  font-size: 1.4em;
  font-weight: 700;
  color: #353535;
  margin-bottom: 16px;
  display: block;
}

.pwa-install-modal-content .description {
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: right;
}

.pwa-install-modal-content .description strong {
  color: var(--primary-blue);
  font-weight: 600;
}

.pwa-install-modal-content .modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.pwa-install-modal-content .modal-actions .btn {
  flex: 1;
  padding: 14px 16px;
  font-weight: 500;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9em;
}

.pwa-install-modal-content .modal-actions .btn.primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(61, 131, 97, 0.3);
}

.pwa-install-modal-content .modal-actions .btn.primary:hover {
  background: linear-gradient(135deg, #357a55 0%, #243f3a 100%);
  box-shadow: 0 4px 12px rgba(61, 131, 97, 0.4);
  transform: translateY(-1px);
}

.pwa-install-modal-content .modal-actions .btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(61, 131, 97, 0.3);
}

.pwa-install-modal-content .modal-actions .btn.secondary {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.pwa-install-modal-content .modal-actions .btn.secondary:hover {
  background-color: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
}

.pwa-install-modal-content .btn-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.no-plans-message {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border: 1px solid #ededed;
  border-radius: 8px;
  background-color: #fafafa;
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.9em;
  width: 70%;
  max-width: 400px;
}
.no-plans-message div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.no-plans-message .btn {
  margin-top: 10px;
  background-color: var(--primary-blue);
  color: white;
  font-weight: 500;
  font-size: 0.9em;
}

/* Expired Plan Styles */
.expired-plan-message {
  padding: 20px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.expired-plan-message .expired-text {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #856404;
  margin-bottom: 8px;
}

.expired-plan-message .expired-description {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

.plan .actions.primary .resubscribe-btn {
  background-color: #ff6b35;
  border-color: #ff6b35;
}

.plan .actions.primary .resubscribe-btn:hover {
  background-color: #e55a2b;
  border-color: #e55a2b;
}

/* Progress bar section */
.plan-progress-section {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, 0.2);
  transition: all 0.3s ease;
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scaleY(0.8);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.plan-progress-section .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.plan-progress-section .progress-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #2196f3;
}

.plan-progress-section .progress-percentage {
  position: relative;
  font-size: 0.95em;
  font-weight: 700;
  color: #2196f3;
  background: rgba(33, 150, 243, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.plan-progress-section .progressbar {
  width: 100%;
  height: 10px;
  background-color: rgba(33, 150, 243, 0.15);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.plan-progress-section .progressbar .progress {
  height: 100%;
  background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%);
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.6);
  position: relative;
  overflow: hidden;
}

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

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

.plan-progress-section .progress-days {
  font-size: 0.85em;
  color: #555;
  text-align: center;
  font-weight: 500;
}
