/* Profile Page Styles */
.profile-main {
  padding: 100px 1.5rem 2rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.profile-container {
  max-width: 700px;
  margin: 0 auto;
}

.profile-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
}

.profile-section {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.info-value {
  font-size: 1rem;
  color: white;
  font-weight: 500;
}

/* Subscription Card */
.subscription-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscription-plan {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.plan-badge.plan-starter {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.plan-badge.plan-family {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.plan-badge.plan-legacy {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.plan-badge.plan-cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.plan-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.subscription-details {
  display: flex;
  gap: 2rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.detail-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.subscription-actions {
  display: flex;
  gap: 0.75rem;
}

/* Profile Form */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-form .form-group {
  margin-bottom: 0;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Danger Zone */
.danger-zone {
  border-color: rgba(239, 68, 68, 0.3);
}

.danger-zone .section-title {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}

.danger-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

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

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.modal-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1;
  max-width: 160px;
}

/* Navbar active state */
.nav-link.active {
  color: #a78bfa;
}

/* Responsive */
@media (max-width: 600px) {
  .profile-title {
    font-size: 1.5rem;
  }

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

  .subscription-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-actions {
    width: 100%;
  }

  .subscription-actions .btn {
    flex: 1;
  }

  .subscription-details {
    gap: 1rem;
  }
}
