.dashboard {
  min-height: 100vh;
  background: var(--color-bg-secondary);
}

.dashboard__header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--space-6);
}

.dashboard__header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.dashboard__user {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dashboard__email {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.dashboard__content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.dashboard__content--wide {
  max-width: 960px;
}

.dashboard__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-1);
}

.dashboard__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Info Card */
.info-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
}

.info-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.info-card__title {
  font-size: var(--text-base);
  font-weight: 700;
}

.info-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.info-card__row:last-child {
  border-bottom: none;
}

.info-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.info-card__value {
  font-size: var(--text-sm);
  font-weight: 600;
}

.support-empty {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.support-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.support-request {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.support-request__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.support-request__title {
  font-size: var(--text-base);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.support-request__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.support-request__meta dt {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  margin-bottom: var(--space-1);
}

.support-request__meta dd {
  font-size: var(--text-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.support-request__message {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Usage bar */
.usage-bar {
  margin-top: var(--space-4);
}

.usage-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.usage-bar__label {
  color: var(--color-text-secondary);
}

.usage-bar__count {
  font-weight: 600;
}

.usage-bar__track {
  height: 8px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.usage-bar__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.usage-bar__fill--warning {
  background: var(--color-warning);
}

.usage-bar__fill--full {
  background: var(--color-error);
}

/* Subscription CTA */
.sub-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: #fff;
  text-align: center;
}

.sub-cta h3 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.sub-cta p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.sub-cta .btn {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}

.sub-cta .btn:hover {
  background: var(--color-primary-50);
  transform: translateY(-1px);
}

.sub-cta .payment-method-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.sub-cta .pm-option {
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: none;
  font-size: var(--text-sm, 14px);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sub-cta .pm-option + .pm-option {
  border-left: 1px solid rgba(255,255,255,0.25);
}

.sub-cta .pm-option.active {
  background: #fff;
  color: var(--color-primary);
}

.sub-cta .pm-option:hover:not(.active) {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.subscription-consents {
  max-width: 520px;
  margin: 0 auto var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
}

.subscription-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-md, 8px);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.subscription-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #fff;
  cursor: pointer;
}

.subscription-consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.sub-cta .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .dashboard__content {
    padding: var(--space-6);
  }

  .support-request__meta {
    grid-template-columns: 1fr;
  }
}
