/* Account Page Styles - Clean & Minimal */

.account-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.account-section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.account-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -10px hsl(0 0% 0% / 0.15);
  border-color: hsl(var(--foreground) / 0.3);
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Account Overview Grid */
.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Overview Cards */
.overview-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px hsl(0 0% 0% / 0.2);
  border-color: hsl(var(--foreground) / 0.3);
}

/* Card Header */
.card-header {
  margin-bottom: 1.5rem;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Plan Card */
.current-plan {
  position: relative;
}

.plan-name {
  font-size: 2rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.plan-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* Plan Features */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: hsl(var(--secondary));
  border-radius: 0.875rem;
  border: 1px solid hsl(var(--border));
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}

.feature-item:hover {
  transform: translateX(4px);
}

.feature-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: hsl(var(--foreground));
}

/* Account Details */
.account-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: hsl(var(--secondary));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.2s ease;
}

.detail-row:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--foreground) / 0.3);
  transform: translateX(2px);
}

.detail-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.detail-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  font-family: 'Montserrat', sans-serif;
}

/* User ID Styling - Tooltip Removed */
.user-id-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: hsl(var(--card));
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  transition: all 0.2s ease;
}

.user-id-wrapper:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--foreground) / 0.3);
  transform: scale(1.02);
}

/* Support Card */
.support-card {
  background: hsl(var(--secondary)/0.5);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
}

.support-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.support-info {
  flex: 1;
  min-width: 300px;
}

.support-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.support-description {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.support-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.support-feature:hover {
  color: hsl(var(--foreground));
  transform: translateX(2px);
}

.support-feature svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: hsl(var(--foreground));
}

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

/* Subscription Actions */
.subscription-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px hsl(var(--foreground) / 0.3);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background: hsl(var(--foreground) / 0.05);
  border-color: hsl(var(--foreground) / 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.08);
}

/* Icon Fade Animation */
.icon-fade {
  transition: all 0.2s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Force account content to fit viewport */
  .account-content {
    padding: 1rem 0;
    width: 100% !important;
    max-width: calc(100vw - 3rem) !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  .account-section,
  .overview-card {
    padding: 1.25rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .account-overview-grid {
    grid-template-columns: 1fr;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Fix detail rows - stack vertically on mobile */
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }

  .detail-label {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
  }

  .detail-value {
    font-size: 0.875rem;
    word-break: break-all;
    max-width: 100%;
  }

  .support-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .support-info {
    min-width: unset;
  }

  .support-description br {
    display: none;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
    font-size: 1.25rem;
  }

  .subscription-actions {
    width: 100%;
    flex-direction: column;
  }

  .subscription-actions .btn-secondary {
    width: 100%;
  }

  .plan-name {
    font-size: 1.75rem;
  }

  /* Plan features */
  .plan-features {
    padding: 1rem;
  }

  .feature-item {
    font-size: 0.85rem;
    gap: 0.75rem;
  }

  .feature-item svg {
    width: 18px;
    height: 18px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    width: 100%;
  }
}

/* Loading States */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Skeleton Loading Styles */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  display: inline-block;
  background: linear-gradient(
    90deg,
    hsl(var(--muted)) 25%,
    hsl(var(--muted-foreground) / 0.15) 50%,
    hsl(var(--muted)) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.375rem;
}

.skeleton-text {
  height: 1rem;
  min-width: 60px;
}

.skeleton-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.skeleton-feature {
  opacity: 0.7;
}

/* Danger Zone Section */
.danger-zone-section {
  border-color: hsl(0 84% 60% / 0.3);
  background: hsl(var(--card));
}

.danger-zone-section:hover {
  border-color: hsl(0 84% 60% / 0.5);
}

.danger-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(0 84% 60%);
}

.danger-title svg {
  color: hsl(0 84% 60%);
}

.danger-card {
  background: hsl(0 84% 60% / 0.05);
  border: 1px solid hsl(0 84% 60% / 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

.danger-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.danger-info {
  flex: 1;
  min-width: 280px;
}

.danger-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.danger-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid hsl(0 84% 60%);
  background: transparent;
  color: hsl(0 84% 60%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: hsl(0 84% 60%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(0 84% 60% / 0.3);
}

/* Delete Confirmation Modal */
.delete-modal-overlay {
  position: fixed;
  inset: 0;
  background: hsl(0 0% 0% / 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.delete-modal {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  max-width: 480px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px hsl(0 0% 0% / 0.5);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.delete-modal-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
}

.delete-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(0 84% 60% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: hsl(0 84% 60%);
}

.delete-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.delete-modal-header p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.delete-modal-body {
  padding: 1.5rem 2rem;
}

.delete-warning-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delete-warning-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  padding: 0.75rem;
  background: hsl(0 84% 60% / 0.05);
  border-radius: 0.5rem;
  border: 1px solid hsl(0 84% 60% / 0.1);
}

.delete-warning-item svg {
  color: hsl(0 84% 60%);
  flex-shrink: 0;
}

.delete-modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.3);
}

.delete-modal-footer .btn-secondary {
  flex: 1;
}

.btn-danger-confirm {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  background: hsl(0 84% 60%);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.btn-danger-confirm:not(:disabled):hover {
  background: hsl(0 74% 50%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(0 84% 60% / 0.4);
}

@media (max-width: 768px) {
  .danger-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .danger-actions {
    width: 100%;
  }
  
  .btn-danger {
    width: 100%;
  }
  
  .delete-modal-footer {
    flex-direction: column;
  }
}
