/* --- Profile Page Styles (Redesign) --- */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 24px;
  padding: 40px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 3px 0 rgb(0 0 0 / 0.1),
    0 1px 2px -1px rgb(0 0 0 / 0.06);
  border: 1px solid var(--color-border);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg-body);
  box-shadow: 0 0 0 1px var(--color-border);
}

.profile-info h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: var(--color-text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-info p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.profile-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  justify-content: flex-end;
}

/* Fix for profile-actions when used in header (like for subscription badge) */
.profile-header .profile-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Shared Info Timeline Style */
.shared-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 12px;
}

/* Vertical line for timeline */
.shared-info-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 19px; /* Align with icon center */
  width: 2px;
  background-color: var(--color-border);
  z-index: 0;
}

.shared-info-item {
  position: relative;
  padding: 0 0 32px 48px;
  z-index: 1;
}

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

.shared-info-icon-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-bg-card);
  border: 2px solid var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  z-index: 2;
}

.shared-info-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.shared-info-content-card {
  background-color: var(--color-bg-body);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shared-info-content-card:hover {
  background-color: white;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.info-text {
  font-size: 15px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.shared-info-list .info-text.clamped {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.btn-toggle-info {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-toggle-info:hover {
  text-decoration: underline;
}

.info-date {
  font-size: 13px;
  color: var(--color-text-tertiary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Premium Usage & Costs Styles --- */
.usage-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
}

.usage-section.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .usage-section.glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.usage-section.glass:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary-light);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.usage-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.usage-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.image-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.audio-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.usage-section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.usage-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.usage-row .label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

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

.usage-row .value.highlight {
  color: var(--color-primary);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  background: rgba(var(--color-primary-rgb), 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.usage-cost-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.usage-cost-total .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.usage-footer-premium {
  padding: 16px 24px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(to bottom, transparent, rgba(var(--color-primary-rgb), 0.02));
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.total-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(var(--color-primary-rgb), 0.1);
}

.usage-meta {
  font-size: 12px;
  color: var(--color-text-tertiary);
}
