/* Account Application Theme (v2) */

/* Layout Utilities */
.features-container {
  width: min(1100px, 100% - 2 * var(--container-padding));
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cursor-hero,
.auth-hero,
.change-password-hero,
.edit-profile-hero,
.notifications-hero {
  position: relative;
  padding: clamp(2rem, 4vw, 4rem) 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 17, 25, 0.95) 0%, rgba(19, 24, 34, 0.97) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.cursor-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(148, 163, 184, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 78% 22%, rgba(99, 102, 241, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content.compact {
  max-width: 600px;
}


.hero-badge,
.hero-stats,
.trust-indicators {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  padding: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(18px);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.title-primary {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f8fafc 0%, rgba(226, 232, 240, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-secondary {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Auth Shell */
.auth-shell {
  min-height: calc(100vh - 120px);
  padding: clamp(2rem, 4vw, 3rem) 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
}

.auth-shell__inner {
  width: min(960px, 100% - 2 * var(--container-padding));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.auth-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(39, 39, 42, 0.5);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  background-color: #060606;
}

.auth-panel__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.auth-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-panel__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.auth-panel__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-semibold);
  color: #f8fafc;
  letter-spacing: -0.015em;
}

.auth-panel__subtitle {
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.auth-field label {
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.85);
  font-weight: var(--font-medium);
}

.auth-input {
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(39, 39, 42, 0.6);
  background: rgba(9, 9, 11, 0.5);
  padding: 0 var(--space-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.auth-input:focus-within {
  border-color: rgba(63, 63, 70, 0.8);
  box-shadow: 0 0 0 2px rgba(63, 63, 70, 0.2);
  background: rgba(24, 24, 27, 0.6);
}

.auth-input i {
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.95rem;
}

.auth-input input {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--space-sm) 0;
  color: #f8fafc;
  font-size: var(--text-sm);
}

.auth-input input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  transition: background-color 5000s ease-in-out 0s;
  -webkit-box-shadow: 0 0 0 1000px rgba(9, 9, 11, 0.5) inset;
  caret-color: #f8fafc;
  padding-left: calc(var(--space-sm) + 4px);
}

.auth-input input:-moz-autofill {
  box-shadow: 0 0 0 1000px rgba(9, 9, 11, 0.5) inset;
  -moz-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
  padding-left: calc(var(--space-sm) + 4px);
}

.auth-panel__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.auth-link {
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.7);
}

.auth-link a {
  color: rgba(148, 163, 184, 0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-link a:hover {
  color: #f8fafc;
}

.auth-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  color: rgba(226, 232, 240, 0.78);
}

.auth-side__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.auth-side__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: var(--font-semibold);
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.auth-side__subtitle {
  color: rgba(148, 163, 184, 0.75);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.auth-side__list {
  display: grid;
  gap: var(--space-md);
}

.auth-side__item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  color: rgba(226, 232, 240, 0.78);
}

.auth-side__item i {
  color: rgba(99, 102, 241, 0.6);
  margin-top: 2px;
}

.auth-side__item span {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.auth-side__meta {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.auth-side__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.auth-side__meta-label {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.auth-side__meta-value {
  font-size: var(--text-base);
  color: #f8fafc;
  font-weight: var(--font-medium);
}

.auth-panel .btn.outline {
  justify-content: center;
  border-color: rgba(39, 39, 42, 0.6);
  background: rgba(9, 9, 11, 0.4);
  color: rgba(250, 250, 250, 0.9);
}

.auth-panel .btn.outline:hover {
  border-color: rgba(63, 63, 70, 0.7);
  background: rgba(24, 24, 27, 0.5);
  color: #ffffff;
}

.hero-description {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0 auto var(--space-xl);
  max-width: 640px;
}

.hero-features,
.trust-indicators {
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item,
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  min-width: 90px;
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-stats .stat-value {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.hero-stats .stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Card Surfaces */
.auth-form-card,
.auth-link-card,
.change-password-card,
.edit-profile-card,
.notification-item,
.subscription-card,
.history-card,
.post-form-card,
.post-card,
.managing-card,
.owning-card,
.summary-card,
.plan-option,
.available-plans .plan-option,
.timeline-card,
.profile-stats,
.transaction-item,
.notifications-list .empty-state,
.subscription-section .empty-state {
  
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(18px);
  position: relative;
}

.auth-form-card::before,
.change-password-card::before,
.edit-profile-card::before,
.subscription-card::before,
.post-card::before,
.managing-card::before,
.owning-card::before,
.history-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 22px);
  pointer-events: none;
}

/* Form Layout */
.auth-form-section,
.change-password-form-section,
.edit-profile-form-section,
.notifications-content,
.subscription-section,
.profile-content {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.profile-shell .profile-content {
  padding-top: 0;
}

.auth-container,
.change-password-container,
.edit-profile-container {
  display: flex;
  justify-content: center;
}

.auth-form-wrapper,
.change-password-wrapper,
.edit-profile-wrapper {
  width: min(520px, 100%);
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-header h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.form-header p {
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 420px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-child {
  margin-bottom: var(--space-xl);
}

.form-group label,
.field-help,
.form-help {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.input-wrapper,
.textarea-wrapper,
.range-wrapper,
.captcha-wrapper,
.image-upload-wrapper,
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  position: relative;
}

.input-wrapper i,
.textarea-wrapper i,
.range-wrapper i {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper .form-control,
.textarea-wrapper textarea,
.captcha-wrapper input,
.range-input input[type="text"],
.range-input input[type="number"],
.checkbox-wrapper input[type="checkbox"],
.checkbox-wrapper input[type="radio"] {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
  padding: var(--space-xs) 0;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.textarea-wrapper textarea:focus,
.captcha-wrapper input:focus {
  outline: none;
}

.input-wrapper select,
.range-input select {
  appearance: none;
  padding-right: 2rem;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper textarea {
  min-height: 140px;
  resize: vertical;
}

.range-wrapper {
  align-items: stretch;
  padding: var(--space-md);
}

.range-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.range-input input[type="range"] {
  width: 100%;
  accent-color: var(--status-info);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.checkbox-wrapper {
  justify-content: flex-start;
}

.checkbox-wrapper input {
  width: auto;
  accent-color: var(--status-info);
}

.checkbox-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.captcha-wrapper {
  flex-wrap: wrap;
}

.file-input {
  display: none;
}

.upload-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.upload-btn,
.remove-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.upload-btn:hover,
.remove-btn:hover {
  background: rgba(147, 197, 253, 0.12);
  border-color: rgba(147, 197, 253, 0.25);
  color: var(--text-primary);
}

.remove-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
}

/* Avatar Display */
.current-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.current-profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Password Strength */
.password-strength {
  margin-top: var(--space-sm);
}

.strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.8), rgba(34, 197, 94, 0.9));
  transition: width var(--transition-normal);
}

.strength-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Messages */
.auth-messages,
.password-messages {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.message-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.message-item.error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: rgba(248, 113, 113, 0.85);
}

.message-item.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgba(134, 239, 172, 0.95);
}

/* Buttons */
.auth-btn,
.form-btn,
.action-btn,
.tab-btn,
.follow-btn,
.btn-new-post,
.notification-action,
.upload-btn,
.remove-btn,
.profile-actions-inline a {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.auth-btn,
.form-btn,
.action-btn,
.follow-btn,
.btn-new-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-radius: var(--radius-lg);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid transparent;
}

.auth-btn.primary,
.form-btn.primary,
.action-btn.primary,
.btn-new-post,
.follow-btn.following {
  background: rgba(250, 250, 250, 0.95);
  border-color: transparent;
  color: #09090b;
  font-weight: 500;
}

.auth-btn.primary:hover,
.form-btn.primary:hover,
.action-btn.primary:hover,
.btn-new-post:hover,
.follow-btn.following:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 1);
}

.auth-btn.secondary,
.form-btn.secondary,
.action-btn.secondary,
.follow-btn,
.profile-actions-inline a,
.tab-btn {
  background: rgba(39, 39, 42, 0.5);
  border-color: rgba(63, 63, 70, 0.4);
  color: rgba(250, 250, 250, 0.9);
}

.auth-btn.secondary:hover,
.form-btn.secondary:hover,
.action-btn.secondary:hover,
.follow-btn:hover,
.profile-actions-inline a:hover,
.tab-btn:hover {
  background: rgba(63, 63, 70, 0.6);
  border-color: rgba(82, 82, 91, 0.5);
  color: #ffffff;
}

.follow-btn.following {
  background: rgba(63, 63, 70, 0.6);
  border-color: rgba(82, 82, 91, 0.5);
  color: #ffffff;
}

.tab-btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  
  color: var(--text-secondary);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(67, 56, 202, 0.25));
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.35);
}

.tab-navigation {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.inline-form {
  display: inline;
}

.form-actions,
.subscription-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: var(--space-xl);
}

.form-actions .form-btn:first-child {
  margin-right: auto;
}

/* Auth Links */
.auth-link-card {
  text-align: center;
}

.auth-link-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

/* Auth Divider */
.auth-divider {
  position: relative;
  margin: var(--space-md) 0;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  background: rgba(9, 9, 11, 0.9);
  padding: 0 var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
}

.pagination {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.page-link {
  color: var(--status-info);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
}

.page-link:hover {
  color: var(--text-primary);
}

.page-current {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
  background: rgba(17, 24, 39, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 2.5rem;
  color: rgba(147, 197, 253, 0.85);
}

/* ... truncated for brevity ... */

/* Profile */
.profile-shell {
  min-height: calc(100vh - 120px);
  padding: clamp(2.25rem, 6vw, 3.5rem) 0;
  display: flex;
  align-items: flex-start;
  background: transparent;
}

.profile-shell__inner {
  width: min(1120px, 100% - 2 * var(--container-padding));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

/* Modern AI canvas */
.profile-shell {
}

.profile-canvas {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(2.3rem, 6vw, 3.2rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 34px 90px rgba(6, 9, 24, 0.55);
  overflow: hidden;
}



.profile-canvas .profile-hero {
  margin: 0;
  position: relative;
  z-index: 1;
}

.profile-canvas .profile-hero__inner {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.1rem);
}

@media (min-width: 960px) {
  .profile-canvas .profile-hero__inner {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .profile-canvas .profile-overview__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.profile-canvas .profile-overview {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  backdrop-filter: blur(18px);
}

.profile-canvas .profile-overview__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(0.8rem, 2.2vw, 1.2rem);
  padding: clamp(0.9rem, 2.4vw, 1.3rem)
}

.profile-canvas .profile-content {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.profile-canvas .profile-content__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.9rem, 4.5vw, 3.2rem);
}


.profile-canvas .content-nav {
  position: sticky;
  top: clamp(1rem, 3vw, 1.6rem);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: clamp(0.9rem, 2.8vw, 1.4rem);
  border-radius: clamp(1rem, 2.4vw, 1.6rem);
  backdrop-filter: blur(18px);
}

@media (max-width: 768px) {
  .profile-canvas {
    padding: clamp(1.4rem, 5vw, 2rem);
  }

  .profile-canvas .content-nav {
    position: static;
  }
}

.profile-canvas .nav-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.82);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.profile-canvas .nav-btn:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.28);
  transform: translateY(-1px);
  color: #f8fafc;
}

.profile-canvas .nav-btn.active {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(99, 102, 241, 0.38);
  color: #f8fafc;
  box-shadow: 0 16px 36px rgba(11, 14, 34, 0.55);
}

.profile-canvas .content-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.profile-canvas .content-section {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: clamp(1rem, 2.5vw, 1.6rem);
}

.profile-canvas .follow-btn {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.12);
}

.profile-canvas .follow-btn:hover,
.profile-canvas .follow-btn.following {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.35);
  color: #f8fafc;
}

.profile-hero {
  margin: 0;
}

.profile-hero__inner {
  width: 100%;
}

.profile-overview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2.2vw, 1.2rem);
  padding: clamp(0.9rem, 2.5vw, 1.3rem);
  border-radius: var(--radius-xl, 1rem);
  background-color: rgba(10, 10, 14, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
}


.profile-overview__main {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  align-items: center;
  min-width: 0;
}

.profile-canvas .profile-overview__main {
  align-items: flex-start;
  gap: clamp(1rem, 2.6vw, 1.6rem);
}

.profile-canvas .profile-avatar,
.profile-canvas .profile-avatar-placeholder {
  width: clamp(3.2rem, 5vw, 4rem);
  height: clamp(3.2rem, 5vw, 4rem);
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
}

.profile-canvas .profile-avatar-placeholder {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.profile-avatar-section {
  flex-shrink: 0;
}

.profile-avatar,
.profile-avatar-placeholder {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.82);
}

.profile-avatar {
  object-fit: cover;
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.75);
  font-size: 1.4rem;
}


.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.profile-header-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.username-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
}

.profile-username {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: var(--font-semibold);
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.profile-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.profile-action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.82);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.profile-action-link:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
}

.profile-action-link--ghost {
  background: transparent;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.profile-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.45rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-description {
  color: rgba(226, 232, 240, 0.7);
  font-size: var(--text-xs, 0.78rem);
  line-height: 1.45;
  margin: 0;
}

.profile-bio {
  margin: 0;
}

.profile-social {
  display: flex;
  gap: var(--space-xs);
}

.profile-social__link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.82);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.profile-social__link:hover {
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.22);
}

.profile-overview__metrics {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.8rem);
  margin-top: var(--space-2xs);
}

.profile-overview__stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

.profile-subscription {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 1.8rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(39, 39, 42, 0.55);
  background: rgba(9, 9, 11, 0.62);
  box-shadow: 0 24px 48px rgba(8, 8, 20, 0.45);
  backdrop-filter: blur(18px);
}

.profile-subscription__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.profile-subscription__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.profile-subscription__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.profile-subscription__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: var(--font-semibold);
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.profile-subscription__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.profile-subscription__status--active {
  color: rgba(134, 239, 172, 0.9);
  border-color: rgba(34, 197, 94, 0.22);
}

.profile-subscription__status--pending {
  color: rgba(253, 224, 71, 0.9);
  border-color: rgba(234, 179, 8, 0.25);
}

.profile-subscription__status--cancelled,
.profile-subscription__status--expired,
.profile-subscription__status--suspended {
  color: rgba(252, 165, 165, 0.9);
  border-color: rgba(248, 113, 113, 0.25);
}

.profile-subscription__status--empty {
  color: rgba(148, 163, 184, 0.75);
  border-color: rgba(148, 163, 184, 0.2);
}

.profile-subscription__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.85rem;
  background: rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.88);
}

.profile-subscription__tag--accent {
  background: rgba(99, 102, 241, 0.18);
  color: rgba(196, 203, 255, 0.95);
}

.profile-subscription__summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.profile-subscription__meta {
  display: grid;
  gap: clamp(0.65rem, 1.6vw, 1rem);
}

.profile-subscription__meta-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) 1fr;
  gap: var(--space-sm);
  align-items: center;
}

.profile-subscription__meta dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.62);
}

.profile-subscription__meta dd {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.88);
}

.profile-subscription__meta-note {
  display: inline-flex;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.62);
  margin-left: var(--space-2xs);
}

.profile-subscription__note,
.profile-subscription__empty {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.78);
}

.profile-subscription__actions {
  display: flex;
  justify-content: flex-end;
}

.profile-subscription__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(196, 203, 255, 0.9);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.14);
  transition: all var(--transition-fast, 0.2s ease);
}

.profile-subscription__link:hover {
  color: #f8fafc;
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.24);
}

@media (max-width: 640px) {
  .profile-subscription__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-subscription__meta-row {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .profile-subscription__actions {
    justify-content: flex-start;
  }
}
.profile-stat {
  display: grid;
  gap: 0.2rem;
  text-align: left;
}

.profile-stat__value {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: var(--font-semibold);
  color: #f8fafc;
}

.profile-stat__label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.58);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  background-color: #060606;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.78);
}

.stat-value {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: var(--font-semibold);
  color: #f8fafc;
}

.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.profile-content {
  width: 100%;
}

.profile-content__inner {
  width: min(1120px, 100% - 2 * var(--container-padding));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

@media (max-width: 900px) {
  .profile-overview {
    grid-template-columns: 1fr;
  }

  .profile-overview__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-shell {
    padding: clamp(1.75rem, 7vw, 2.5rem) 0;
  }

  .profile-overview {
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .profile-overview__main {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-avatar,
  .profile-avatar-placeholder {
    width: 3.6rem;
    height: 3.6rem;
  }

  .profile-overview__stats {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .username-row {
    gap: var(--space-sm);
  }
}

.content-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.nav-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.55rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-btn:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

.nav-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.32);
  color: #f8fafc;
  box-shadow: 0 14px 30px rgba(10, 12, 20, 0.45);
}

.nav-btn .count {
  font-size: var(--text-xs);
  margin-left: var(--space-xs);
  color: rgba(148, 163, 184, 0.65);
}

.content-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.follow-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.follow-btn:hover,
.follow-btn.following {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.32);
  color: #f8fafc;
}

.content-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.content-section {
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
}

.content-section.active {
  display: flex;
}

/* Profile activity */
.profile-activity {
  width: 100%;
}

.profile-activity__grid {
  display: grid;
  gap: clamp(1rem, 2.6vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-activity__card {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2vw, 1.1rem);
  padding: clamp(1.1rem, 2.8vw, 1.5rem);
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 10, 14, 0.6);
}

.profile-activity__card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-sm);
  align-items: start;
}

.profile-activity__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(99, 102, 241, 0.16);
  color: rgba(196, 203, 255, 0.9);
  font-size: 1rem;
}

.profile-activity__title {
  margin: 0;
  font-size: 1rem;
  color: #f8fafc;
}

.profile-activity__hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.65);
}

.profile-activity__action {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.75);
}

.profile-activity__action:hover {
  color: rgba(196, 203, 255, 0.95);
}

.profile-activity__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.6vw, 0.9rem);
}

.profile-activity__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.profile-activity__stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.profile-activity__label {
  font-size: 0.9rem;
  color: #f8fafc;
  font-weight: var(--font-medium);
}

.profile-activity__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(226, 232, 240, 0.75);
}

.profile-activity__value {
  font-size: 0.88rem;
}

.profile-activity__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.8);
}

.profile-activity__badge.is-positive {
  background: rgba(34, 197, 94, 0.16);
  color: rgba(134, 239, 172, 0.9);
}

.profile-activity__badge.is-negative {
  background: rgba(248, 113, 113, 0.18);
  color: rgba(252, 165, 165, 0.9);
}

.profile-activity__meta-text {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
}

.profile-activity__timestamp {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.65);
}

.profile-activity__link {
  color: #f8fafc;
  font-weight: var(--font-medium);
}

.profile-activity__link:hover {
  color: rgba(196, 203, 255, 0.95);
}

.profile-activity__empty {
  display: grid;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
}

.profile-activity__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.profile-activity__cta .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
}

.section-header h2 {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.feed-filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-form {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-select {
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.clear-filter {
  color: var(--status-error);
}

.post-form-container {
  display: none;
}

.post-form-card {
  padding: var(--space-xl);
}

.image-preview {
  display: none;
  margin-top: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.post-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.post-form-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.close-form-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-form-btn:hover {
  color: var(--status-error);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.post-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: baseline;
}

.post-meta,
.post-stats {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.post-body {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.post-actions {
  display: flex;
  gap: var(--space-sm);
}

.post-actions button,
.post-actions a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.post-actions button:hover,
.post-actions a:hover {
  background: rgba(147, 197, 253, 0.12);
  color: var(--text-primary);
}

.post-share-btn--danger {
  color: rgba(248, 113, 113, 0.9);
}

.post-share-btn--danger:hover {
  color: rgba(252, 165, 165, 1);
}

.comment-thread {
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comment {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.comment-author {
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

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

/* Portfolio Sections */
.managing-section,
.owning-section,
.subscription-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.section-header h3,
.subscription-section h4,
.subscription-section h5,
.subscription-section h6 {
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
}

.section-header p,
.section-description,
.subscription-section p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

.managing-grid,
.owning-grid,
.available-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.managing-card,
.owning-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.managing-header,
.owning-header,
.portfolio-header,
.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}

.portfolio-title h4,
.plan-name .plan-title,
.subscription-card h4 {
  color: var(--text-primary);
  margin: 0;
}

.portfolio-badges,
.plan-pricing,
.subscription-status {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.portfolio-badge,
.status-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0.85rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-badge.demo,
.status-badge.inactive {
  background: rgba(251, 191, 36, 0.12);
  color: rgba(251, 191, 36, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.portfolio-badge.live,
.status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: rgba(134, 239, 172, 0.95);
  border: 1px solid rgba(134, 239, 172, 0.35);
}

.portfolio-badge.active {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(147, 197, 253, 0.95);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.portfolio-badge.inactive {
  background: rgba(148, 163, 184, 0.15);
  color: rgba(226, 232, 240, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.portfolio-badge.public {
  background: rgba(236, 72, 153, 0.12);
  color: rgba(244, 114, 182, 0.9);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.portfolio-badge.private {
  background: rgba(107, 114, 128, 0.15);
  color: rgba(209, 213, 219, 0.85);
  border: 1px solid rgba(107, 114, 128, 0.25);
}

.portfolio-stats,
.subscription-details,
.info-grid,
.summary-stats,
.available-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.info-item,
.detail-item,
.summary-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.info-label,
.detail-label,
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-value,
.detail-value,
.summary-stat .stat-value,
.metric-value {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.portfolio-description p,
.plan-desc,
.transaction-description {
  color: var(--text-secondary);
  margin: 0;
}

.performance-metrics,
.subscription-features,
.upgrade-section,
.billing-history {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.features-list,
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
}

.features-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.features-list li i,
.upgrade-benefits i,
.subscription-features i {
  color: rgba(147, 197, 253, 0.9);
}

.upgrade-benefits {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.benefit-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.history-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background-color: #060606;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.transaction-type {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.transaction-date {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.transaction-amount {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

.transaction-amount.positive {
  color: rgba(134, 239, 172, 0.95);
}

.transaction-amount.negative {
  color: rgba(248, 113, 113, 0.9);
}

.more-transactions {
  justify-content: center;
  color: var(--text-muted);
}

/* Subscription Card Variations */
.subscription-card.active {
  border-color: rgba(59, 130, 246, 0.35);
}

.subscription-card.inactive {
  border-color: rgba(148, 163, 184, 0.25);
}

.subscription-card .price-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.subscription-card .price-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.plan-option {
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.7);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.plan-price {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--text-secondary);
}

.plan-price .monthly {
  font-size: var(--text-base);
  color: var(--text-primary);
}

.plan-price .annual {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.plan-price .savings {
  font-size: var(--text-xs);
  color: rgba(34, 197, 94, 0.8);
}

/* Twitter integration */
.twitter-app-credentials,
.twitter-setup {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.credentials-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--text-primary);
  margin: 0;
}

.credentials-description {
  color: var(--text-secondary);
  margin: 0;
}

.twitter-actions,
.setup-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--status-warning);
  font-size: var(--text-sm);
}

/* Tabs */
.tab-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: var(--space-xl);
}

.tab-pane.active {
  display: flex;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--text-primary);
  margin: 0;
}

.section-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.social-form-list {
  display: grid;
  gap: var(--space-lg);
}

.social-form-list .form-group {
  margin-bottom: 0;
}

/* Alerts */
.alert {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: rgba(248, 113, 113, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.alert h4 {
  margin-top: 0;
  color: var(--text-primary);
}

.alert p {
  margin: 0;
  font-size: var(--text-sm);
}

/* Twitter Setup */
.setup-container {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(22, 22, 34, 0.95) 60%, rgba(8, 47, 73, 0.9) 100%);
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4rem);
  color: var(--text-primary);
}

.setup-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.45);
}

.setup-hero-title {
  color: var(--text-primary);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.setup-hero-title i {
  color: #1DA1F2;
}

.setup-hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0;
}

.setup-card {
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 50px rgba(7, 11, 30, 0.55);
}

.setup-card h2,
.setup-card h4 {
  color: rgba(147, 197, 253, 0.95);
}

.setup-form-title {
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.setup-step {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-left: 4px solid rgba(59, 130, 246, 0.45);
}

.step-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.9);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

.setup-card p,
.setup-card li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.setup-card a {
  color: var(--status-info);
}

.setup-form {
  margin-top: var(--space-2xl);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.setup-form .form-group:last-of-type {
  margin-bottom: var(--space-lg);
}

.setup-form input,
.setup-form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.85);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.setup-form input:focus,
.setup-form textarea:focus {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  outline: none;
}

.form-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.btn-primary-custom {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(79, 70, 229, 0.95) 100%);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-xl);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.28);
}

.warning-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: rgba(251, 191, 36, 0.95);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.setup-info-box {
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  color: rgba(134, 239, 172, 0.95);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: var(--text-sm);
}

.setup-advanced {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-xl);
}

.setup-advanced h4 {
  color: rgba(251, 191, 36, 0.95);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.setup-advanced p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.text-warning {
  color: rgba(251, 191, 36, 0.95);
}

.error-messages,
.success-messages {
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
}

.error-messages {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: rgba(248, 113, 113, 0.9);
}

.success-messages {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgba(134, 239, 172, 0.95);
}

.setup-next-steps {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-next-steps h4 {
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: var(--space-md);
}

.setup-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    padding: 0 var(--space-md);
  }

  .auth-form-card,
  .change-password-card,
  .edit-profile-card,
  .subscription-card,
  .post-card {
    padding: var(--space-lg);
  }

  .content-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-header {
    flex-direction: column;
  }

  .profile-main {
    width: 100%;
  }

  .auth-shell__inner {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    order: 1;
  }

  .auth-side {
    order: 2;
    text-align: left;
    gap: var(--space-lg);
  }

  .auth-side__meta {
    gap: var(--space-lg);
  }

}

@media (max-width: 768px) {
  .features-container,
  .hero-container,
  .profile-content__inner {
    padding: 0 var(--space-md);
  }

  .auth-form-wrapper,
  .change-password-wrapper,
  .edit-profile-wrapper {
    width: 100%;
  }

  .form-actions,
  .subscription-actions {
    justify-content: center;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-buttons {
    justify-content: center;
  }

  .content-nav {
    padding: var(--space-md);
  }

  .notification-item {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .managing-grid,
  .owning-grid,
  .available-plans {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .subscription-card {
    padding: var(--space-lg);
  }

  .auth-shell {
    padding: var(--space-2xl) var(--space-md);
  }

  .auth-side {
    text-align: left;
  }

}

@media (max-width: 480px) {
  .hero-title {
    align-items: center;
  }

  .profile-stats {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .nav-btn span {
    display: none;
  }

  .nav-btn .count {
    margin-left: 0;
  }

  .form-actions,
  .subscription-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-btn,
  .form-btn,
  .action-btn {
    width: 100%;
  }

  .auth-panel {
    padding: var(--space-lg) var(--space-md);
  }

  .auth-side__meta {
    flex-direction: column;
    gap: var(--space-md);
  }

}


/* Notifications layout */
.notifications-shell {
  min-height: calc(100vh - 120px);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  display: flex;
  align-items: flex-start;
}

.notifications-shell__inner {
  width: min(1100px, 100% - 2 * var(--container-padding));
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 4vw, 2.8rem);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .notifications-shell__inner {
    grid-template-columns: 1fr;
  }
}

.notifications-summary {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-2xl, 1.6rem);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 10, 14, 0.6);
}

.notifications-summary__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.notifications-summary__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #f8fafc;
  margin: 0;
}

.notifications-summary__title i {
  font-size: 1.2em;
  color: rgba(99, 102, 241, 0.85);
}

.notifications-summary__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.72);
}

.notifications-metrics {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
}

.notifications-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.68);
}

.notifications-metric__value {
  font-size: 1.25rem;
  color: #f8fafc;
  font-weight: var(--font-semibold);
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.notifications-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}

.notifications-panel__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.notifications-panel__title {
  margin: 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.notifications-panel__hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.7);
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2vw, 1.1rem);
}

.notification-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(9, 9, 12, 0.6);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.notification-item:hover {
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.notification-item.unread {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.14);
}

.notification-item__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background: rgba(99, 102, 241, 0.18);
  color: rgba(196, 203, 255, 0.9);
  font-size: 1.1rem;
}

.notification-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.notification-item__header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.notification-item__title {
  margin: 0;
  font-size: 0.95rem;
  color: #f8fafc;
  font-weight: var(--font-medium);
}

.notification-item__time {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.68);
}

.notification-item__message {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.82);
}

.notification-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.75);
}

.notification-item__link {
  color: rgba(196, 203, 255, 0.92);
}

.notification-item__link:hover {
  color: #f8fafc;
}

.notification-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.notification-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  color: rgba(226, 232, 240, 0.8);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.notification-action:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.22);
  color: #f8fafc;
}

.notifications-empty {
  display: grid;
  gap: var(--space-md);
  place-items: center;
  padding: clamp(2rem, 4vw, 2.8rem);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 10, 14, 0.6);
  text-align: center;
}

.notifications-empty i {
  font-size: 2rem;
  color: rgba(129, 140, 248, 0.85);
}

.notifications-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.notifications-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.72);
}
