/* ===== HERO / LANDING ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}

.hero h2 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  position: relative;
}

.hero-stat {
  text-align: center;
}

.hero-stat .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== FEATURES GRID ===== */
.features-section {
  padding: 60px 0;
}

.features-section h3 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 40px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 60px 0;
  text-align: center;
}

.pricing-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-section > p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-glow-cyan);
  position: relative;
}

.pricing-card .popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .price {
  margin: 20px 0;
}

.pricing-card .price .currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
  vertical-align: top;
}

.pricing-card .price .amount {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card .price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card .features-list {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-card .features-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card .features-list li .check {
  color: var(--accent-green);
  font-weight: bold;
}

/* ===== MARKETPLACE PAGE ===== */
.marketplace-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.marketplace-sidebar {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.marketplace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.marketplace-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.sort-select {
  padding: 8px 36px 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

@media (max-width: 900px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
  .marketplace-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .filter-section {
    flex: 1;
    min-width: 150px;
  }
}

/* ===== UPLOAD PAGE ===== */
.upload-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.upload-page h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.upload-page > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.upload-preview {
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-preview .file-icon {
  font-size: 2.5rem;
}

.upload-preview .file-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.upload-preview .file-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.upload-rules {
  background: var(--warning-dim);
  border: 1px solid rgba(255, 165, 2, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.upload-rules h4 {
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.upload-rules ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.upload-rules ul li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.upload-rules ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--warning);
}

/* ===== FILE DETAIL PAGE ===== */
.file-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 40px 0;
}

.file-detail-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.file-detail-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.file-detail-preview .placeholder-large {
  font-size: 5rem;
  color: var(--text-muted);
}

.file-detail-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.file-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.file-detail-author .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 0.85rem;
}

.file-detail-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.detail-meta-item .meta-label {
  color: var(--text-muted);
  min-width: 100px;
}

.detail-meta-item .meta-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}

/* ===== RATING HIGHLIGHT ===== */
.rating-highlight {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(57, 255, 20, 0.08));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rating-highlight-stars {
  font-size: 1.6rem;
  color: var(--warning);
}

.rating-highlight-score {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-highlight-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== PROFILE PAGE ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-info .profile-joined {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.profile-stats .p-stat {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-stats .p-stat strong {
  color: var(--accent-cyan);
}

/* ===== ACCOUNT DASHBOARD ===== */
.account-section {
  margin-bottom: 40px;
}

.account-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscription-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.subscription-card .sub-status {
  font-size: 1rem;
  font-weight: 600;
}

.subscription-card .sub-status.active {
  color: var(--accent-green);
}

.subscription-card .sub-status.inactive {
  color: var(--danger);
}

.coin-redeem-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-glow-green);
}

.coin-progress {
  width: 200px;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.coin-progress .progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width var(--transition-slow);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .file-detail {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}
