/* pages.css - Styles for new pages */

/* === HERO SECTION === */
.hero {
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 500px;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--gradA), var(--gradB));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.hero__description {
  font-size: 16px;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__gradient {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, #5B8CFF 0%, #22D3EE 50%, #A78BFA 100%);
  box-shadow:
    0 20px 60px rgba(91,140,255,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
  animation: gradientShift 8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero__gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === FEATURES GRID === */
.features-grid {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  text-align: center;
  transition: all .3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  border-color: var(--ring);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0;
}

/* === COMMUNITY PAGE === */

/* Search Wrapper */
.community-search-wrapper {
  position: relative;
  padding: 0 16px 16px 16px;
  border-bottom: 1px solid var(--line);
}

.community-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.community-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}

.community-search-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(91,140,255,.1);
  background: var(--panel);
}

.community-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Controls */
.community-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.community-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-btn svg {
  opacity: 0.7;
}

.filter-btn:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--ring);
  transform: translateY(-1px);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--gradA), var(--gradB));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(91,140,255,.3);
}

.filter-btn.is-active svg {
  opacity: 1;
}

.community-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sort-select {
  appearance: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 32px 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239FB2C8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sort-select:hover {
  border-color: var(--ring);
  background-color: var(--panel);
}

.sort-select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(91,140,255,.1);
}

/* Grid Container */
.community-grid-container {
  padding: 16px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Community Item Card */
.community-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all .25s ease;
  backdrop-filter: blur(var(--blur));
}

.community-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  border-color: rgba(91,140,255,.4);
}

/* Palette Preview */
.community-palette-preview {
  display: flex;
  height: 140px;
  position: relative;
  overflow: hidden;
}

.community-color {
  flex: 1;
  position: relative;
  transition: all .25s ease;
  cursor: pointer;
}

.community-color:hover {
  flex: 1.3;
  filter: brightness(1.05);
}

.community-color::after {
  content: attr(data-hex);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.8);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'SF Mono', Monaco, monospace;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.community-color:hover::after {
  opacity: 1;
}

/* Card Info */
.community-info {
  padding: 16px;
}

.community-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.community-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.community-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.community-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.community-author svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.community-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.community-divider {
  opacity: 0.3;
}

.community-colors-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(91,140,255,.15);
  color: var(--ring);
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
}

/* Actions */
.community-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.community-action-buttons {
  display: flex;
  gap: 6px;
}

.btn-icon {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  position: relative;
}

.btn-icon:hover {
  background: var(--panel-2);
  border-color: var(--ring);
  transform: translateY(-1px);
}

.btn-icon.liked {
  color: #ff6b6b;
  border-color: rgba(255,107,107,.5);
  background: rgba(255,107,107,.12);
}

.btn-icon svg {
  width: 15px;
  height: 15px;
}

.community-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.community-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.community-stat svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

/* Empty & Loading States */
.community-empty,
.community-loading {
  padding: 80px 20px;
  text-align: center;
}

.community-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--ring);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.community-loading p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* === PROFILE PAGE === */
.user-profile-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Header Card */
.profile-header-card {
  overflow: hidden;
  border-radius: 16px;
}

.profile-banner {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.profile-banner-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5B8CFF 0%, #22D3EE 50%, #A78BFA 100%);
  opacity: 0.8;
}

.profile-main {
  padding: 0 32px 32px 32px;
  position: relative;
  margin-top: -50px;
}

.profile-avatar-wrapper {
  display: inline-block;
  margin-bottom: 20px;
}

.profile-avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #5B8CFF, #A78BFA);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Supporter Avatar Border - Animated Rainbow Gradient */
.profile-avatar-ring.supporter-ring {
  padding: 5px;
  background: linear-gradient(45deg,
    #FF6B6B, #F06595, #CC5DE8, #845EF7,
    #5C7CFA, #339AF0, #22B8CF, #20C997,
    #51CF66, #94D82D, #FCC419, #FF922B,
    #FF6B6B
  );
  background-size: 300% 300%;
  animation: rainbowGradient 3s linear infinite;
  box-shadow:
    0 8px 32px rgba(255, 107, 107, 0.4),
    0 0 60px rgba(167, 139, 250, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes rainbowGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pro Avatar Border - Blue Gradient */
.profile-avatar-ring.pro-ring {
  padding: 5px;
  background: linear-gradient(135deg, #5B8CFF, #22D3EE);
  background-size: 200% 200%;
  animation: proGradient 2s ease infinite;
  box-shadow:
    0 8px 32px rgba(91, 140, 255, 0.5),
    0 0 60px rgba(34, 211, 238, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes proGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Lifetime Avatar Border - Gold Gradient */
.profile-avatar-ring.lifetime-ring {
  padding: 5px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  background-size: 200% 200%;
  animation: lifetimeGradient 2s ease infinite;
  box-shadow:
    0 8px 32px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 165, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes lifetimeGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--panel);
  display: block;
}

.profile-info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.profile-identity {
  flex: 1;
}

.profile-name {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-email {
  font-size: 14px;
  color: var(--text);
  opacity: 0.6;
  margin: 0;
}

.profile-bio {
  font-size: 15px;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

/* === BADGES === */

/* Supporter Badge - Animated gradient with pulse effect */
.supporter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #FF6B6B, #F06595, #CC5DE8, #845EF7, #5C7CFA);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite, badgePulse 2s ease-in-out infinite;
  color: white;
  box-shadow:
    0 4px 12px rgba(255, 107, 107, 0.4),
    0 0 20px rgba(167, 139, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.supporter-badge svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4), 0 0 20px rgba(167, 139, 250, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6), 0 0 30px rgba(167, 139, 250, 0.5); }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(0.9); }
}

/* Verified Badge - Clean checkmark with subtle animation */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B8CFF, #22D3EE);
  box-shadow:
    0 2px 8px rgba(91, 140, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: verifiedGlow 2s ease-in-out infinite;
  position: relative;
  flex-shrink: 0;
}

.verified-badge svg {
  width: 12px;
  height: 12px;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes verifiedGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(91, 140, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(91, 140, 255, 0.8), 0 0 20px rgba(34, 211, 238, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

/* Small badges for community cards */
.badge-small {
  font-size: 10px;
  padding: 3px 8px;
  gap: 4px;
}

.badge-small svg {
  width: 10px;
  height: 10px;
}

.verified-badge-small {
  width: 16px;
  height: 16px;
}

.verified-badge-small svg {
  width: 10px;
  height: 10px;
}

/* Tier Badges - Display user's subscription tier */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.tier-badge--free {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-badge--pro {
  background: linear-gradient(135deg, #5B8CFF, #22D3EE);
  color: white;
  box-shadow: 0 2px 8px rgba(91, 140, 255, 0.3);
}

.tier-badge--lifetime {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.tier-badge--supporter {
  background: linear-gradient(135deg, #A78BFA, #FF6B6B);
  color: white;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

/* Community author badges */
.community-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  position: relative;
}

.community-author-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Stats Card */
.profile-stats-card {
  padding: 24px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.profile-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.profile-stat-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.palette-icon {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(91, 140, 255, 0.05));
  color: #5B8CFF;
}

.gradient-icon {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0.05));
  color: #22D3EE;
}

.days-icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(167, 139, 250, 0.05));
  color: #A78BFA;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text);
  opacity: 0.6;
  font-weight: 500;
}

/* Actions Card */
.profile-actions-card {
  padding: 28px;
  border-radius: 16px;
}

.actions-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.action-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ring);
  transform: translateY(-2px);
}

.action-btn--danger {
  border-color: rgba(255, 100, 100, 0.3);
}

.action-btn--danger:hover {
  border-color: #ff6464;
  background: rgba(255, 100, 100, 0.05);
}

.action-btn--danger .action-icon {
  color: #ff6464;
}

.action-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ring);
}

.action-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.action-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.action-desc {
  font-size: 12px;
  color: var(--text);
  opacity: 0.6;
  display: block;
}

.guest-message {
  padding: 60px 32px;
}

.profile-collections {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 20px 0 20px;
  border-bottom: 1px solid var(--line);
}

.profile-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all .2s ease;
  opacity: 0.6;
}

.profile-tab:hover {
  opacity: 1;
  background: rgba(255,255,255,.02);
}

.profile-tab.is-active {
  opacity: 1;
  background: var(--panel-2);
  border-bottom: 2px solid var(--ring);
}

.profile-tab .icon {
  width: 18px;
  height: 18px;
}

.tab-count {
  background: var(--ring);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.profile-content {
  padding: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.profile-card {
  padding: 0;
  overflow: hidden;
  transition: all .3s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.profile-card-preview {
  height: 140px;
  display: flex;
  position: relative;
}

.profile-color {
  flex: 1;
  transition: all .2s ease;
}

.profile-color:hover {
  transform: scale(1.05);
  z-index: 1;
}

.profile-card-info {
  padding: 16px 20px;
}

.profile-card-info h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.profile-card-date {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: var(--text);
  opacity: 0.6;
}

.profile-card-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all .2s ease;
}

.btn-small:hover {
  background: var(--panel);
  border-color: var(--ring);
}

.btn-danger {
  color: #ff6464;
  border-color: rgba(255,100,100,.3);
}

.btn-danger:hover {
  background: rgba(255,100,100,.1);
  border-color: #ff6464;
}

.profile-empty {
  padding: 60px 20px;
}

.empty-state {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text);
}

.empty-state p {
  font-size: 14px;
  color: var(--text);
  opacity: 0.7;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.empty-message {
  text-align: center;
  padding: 40px;
  color: var(--text);
  opacity: 0.6;
  font-size: 14px;
}

/* === ONBOARDING === */
.onboarding {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.onboarding-content {
  max-width: 600px;
  width: 100%;
  padding: 48px;
  position: relative;
}

.onboarding-step {
  animation: fadeIn 0.4s ease;
}

.onboarding-step h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.onboarding-step p {
  font-size: 16px;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.onboarding-skip {
  position: absolute;
  top: 20px;
  right: 20px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  opacity: 0.6;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  transition: all .2s ease;
}

.onboarding-skip:hover {
  opacity: 1;
  background: rgba(255,255,255,.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* === AUTH MODAL === */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: 48px;
  animation: modalSlideIn 0.3s ease;
  z-index: 1;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  opacity: 0.6;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.auth-form h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text);
  opacity: 0.7;
  margin: 0 0 32px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0.9;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.1);
}

.form-group input::placeholder {
  color: var(--text);
  opacity: 0.4;
}

.auth-error {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: #ff6464;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--line);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ring);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  font-size: 13px;
  color: var(--text);
  opacity: 0.6;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  position: relative;
  background: var(--panel);
  padding: 0 16px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* === PRICING PAGE === */
.pricing-hero {
  text-align: center;
  padding: 60px 40px 40px 40px;
}

.pricing-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--gradA), var(--gradB), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  animation: gradientText 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.pricing-subtitle {
  font-size: 18px;
  color: var(--text);
  opacity: 0.7;
  margin: 0;
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 30px 40px 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradA), var(--gradB));
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0,0,0,.3),
    inset 0 0 0 1px rgba(91, 140, 255, 0.3);
  border-color: transparent;
}

/* Pro Card - Most Popular */
.pricing-card--pro {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, #5B8CFF, #22D3EE) border-box;
  box-shadow: 0 12px 48px rgba(91, 140, 255, 0.2);
}

.pricing-card--pro:hover {
  box-shadow: 0 24px 72px rgba(91, 140, 255, 0.35);
  transform: translateY(-12px) scale(1.04);
}

/* Supporter Card */
.pricing-card--supporter::before {
  background: linear-gradient(135deg, #A78BFA, #FF6B6B);
}

.pricing-card--supporter:hover {
  border-color: rgba(167, 139, 250, 0.4);
}

/* Popular Badge */
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #5B8CFF, #22D3EE);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(91, 140, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

/* Card Header */
.pricing-card-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.pricing-tier-badge {
  display: inline-block;
  background: rgba(91, 140, 255, 0.15);
  color: var(--text);
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.pricing-tier-badge--pro {
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(34, 211, 238, 0.2));
  color: #5B8CFF;
}

.pricing-tier-badge--supporter {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(255, 107, 107, 0.2));
  color: #A78BFA;
}

.pricing-tier-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px 0;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.6;
}

.pricing-amount {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gradA), var(--gradB));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pricing-period {
  font-size: 16px;
  color: var(--text);
  opacity: 0.6;
  font-weight: 500;
}

.pricing-description {
  font-size: 14px;
  color: var(--text);
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
}

/* Features List */
.pricing-features {
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.6;
}

.pricing-feature:last-child {
  margin-bottom: 0;
}

.pricing-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #5B8CFF;
  margin-top: 2px;
}

.pricing-feature-icon--pro {
  color: #22D3EE;
}

.pricing-feature-icon--supporter {
  color: #A78BFA;
}

.pricing-feature strong {
  font-weight: 600;
  color: var(--text);
}

/* CTA Button */
.pricing-cta {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.pricing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradA), var(--gradB));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-cta span {
  position: relative;
  z-index: 1;
}

.pricing-cta:hover::before {
  opacity: 1;
}

.pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.3);
  border-color: transparent;
  color: white;
}

.pricing-cta:active {
  transform: translateY(0);
}

.pricing-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.pricing-cta:disabled:hover {
  box-shadow: none;
  border-color: var(--line);
}

.btn--gradient {
  background: linear-gradient(135deg, #A78BFA, #FF6B6B);
  color: white;
  border: none;
}

.btn--gradient:hover {
  background: linear-gradient(135deg, #A78BFA, #FF6B6B);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.4);
}

/* FAQ Section */
.pricing-faq {
  padding: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-faq-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px 0;
  color: var(--text);
}

.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pricing-faq-item {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: all 0.3s ease;
}

.pricing-faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  border-color: rgba(91, 140, 255, 0.3);
}

.pricing-faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.pricing-faq-item p {
  font-size: 14px;
  color: var(--text);
  opacity: 0.7;
  margin: 0;
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 40px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__visual {
    height: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  /* Community responsive */
  .community-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .community-filters {
    width: 100%;
    justify-content: center;
  }

  .community-sort {
    width: 100%;
    justify-content: space-between;
  }

  .community-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .community-palette-preview {
    height: 120px;
  }

  /* Profile responsive */
  .user-profile-section {
    padding: 12px;
  }

  .profile-main {
    padding: 0 20px 24px 20px;
  }

  .profile-info-top {
    flex-direction: column;
    gap: 16px;
  }

  .profile-stats-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

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

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

  .profile-tab {
    border-radius: 12px;
  }

  .onboarding-content {
    padding: 32px 24px;
  }

  .onboarding-step h2 {
    font-size: 24px;
  }

  .auth-modal-content {
    padding: 32px 24px;
  }

  .profile-avatar-ring {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 24px;
  }

  /* Pricing responsive */
  .pricing-hero {
    padding: 40px 24px 24px 24px;
  }

  .pricing-title {
    font-size: 32px;
  }

  .pricing-subtitle {
    font-size: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 24px 16px;
  }

  .pricing-faq {
    padding: 40px 24px;
  }

  .pricing-faq-title {
    font-size: 28px;
  }

  .pricing-faq-grid {
    grid-template-columns: 1fr;
  }
}
