/* ==========================================================================
   DESIGN SYSTEM - SLATE & EMERALD DARK THEME (GLASSMORPHISM)
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #0b111e;
  --bg-secondary: #131c2e;
  --bg-glass: rgba(19, 28, 46, 0.65);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(255, 255, 255, 0.12);
  
  --primary: #10b981; /* Emerald */
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.2);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Font */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Montserrat', sans-serif;
  
  /* Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass-hover);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-success {
  background-color: var(--success);
  color: white;
}
.btn-success:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--error);
  color: white;
}
.btn-danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}
.btn-text:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* --- HEADER --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 30, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-icon {
  color: var(--primary);
  width: 28px;
  height: 28px;
}

.logo .highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  padding: 8px 0;
  position: relative;
}

.nav-link i {
  width: 18px;
  height: 18px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 50px 0;
  text-align: center;
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-glass);
}

.hero-container h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-container p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* --- MAIN LAYOUT & VIEWS --- */
.main-content {
  flex: 1;
  padding: 30px 0;
}

.content-view {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

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

.content-view.active {
  display: block;
}

.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

/* Filters */
.filters {
  display: flex;
  gap: 12px;
}

.filter-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.filter-btn i {
  width: 14px;
  height: 14px;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- CATEGORY SHARE BANNER --- */
.share-banner-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--primary-glow);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.share-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.share-icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.share-banner-card .highlight {
  color: var(--primary);
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .share-banner-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .share-banner-content {
    flex-direction: column;
  }
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 50px 0;
  color: var(--text-secondary);
  font-size: 15px;
  grid-column: 1 / -1;
}

/* --- PRODUCT CARD GRID --- */
.products-grid, .library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-lg);
}

.product-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-thumbnail {
  transform: scale(1.05);
}

.product-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 17, 30, 0.7);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-type-badge.type-file, .product-type-badge.type-document { color: #3b82f6; }
.product-type-badge.type-exe { color: #8b5cf6; }
.product-type-badge.type-video { color: #f59e0b; }
.product-type-badge.type-text, .product-type-badge.type-prompts { color: #10b981; }

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Prompt copy content inside cards */
.paid-prompt-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--primary-glow);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  margin-bottom: 15px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paid-prompt-box code {
  color: var(--text-primary);
  word-break: break-all;
  white-space: pre-wrap;
  font-family: monospace;
  background: rgba(0,0,0,0.15);
  padding: 6px;
  border-radius: 4px;
  max-height: 100px;
  overflow-y: auto;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
  grid-column: 1 / -1;
  font-size: 15px;
}

/* --- ABOUT VIEW SPECIFICS --- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.about-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 30px;
  margin-bottom: 30px;
}

.hero-about-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-lead {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 15px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.f-icon {
  color: var(--primary);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--primary-glow);
  padding: 6px;
  border-radius: 50%;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.big-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.sidebar-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

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

/* --- SECURE VIDEO PLAYER VIEW --- */
.back-to-library {
  margin-bottom: 24px;
}

.player-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.video-wrapper {
  aspect-ratio: 16/9;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  outline: none;
}

.video-info {
  padding: 24px;
  border-top: 1px solid var(--border-glass);
}

.video-info h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- ADMIN VIEW SPECIFICS --- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 30px;
  align-items: start;
}

.admin-form-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

.admin-form-panel h3, .admin-table-panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.admin-table-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

/* Form layouts */
.form-row {
  display: flex;
  gap: 15px;
}
.flex-1 { flex: 1; }

.form-group select {
  width: 100%;
  background: rgba(11, 17, 30, 0.6);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.form-group select:focus {
  border-color: var(--primary);
}

/* Styling textarea */
.form-group textarea {
  width: 100%;
  background: rgba(11, 17, 30, 0.6);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
  resize: vertical;
}

.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group input[type="file"] {
  border: 1px dashed var(--border-glass-hover);
  background: rgba(255,255,255,0.01);
  padding: 10px;
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  background: rgba(255,255,255,0.03);
}

/* Management Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  background: rgba(0,0,0,0.2);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-glass);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-thumb {
  width: 50px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}

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

@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Auth Modal Specifics */
.auth-modal-card {
  max-width: 440px;
  padding: 40px;
}

.auth-error {
  background: rgba(239, 68, 110, 0.1);
  border: 1px solid var(--error);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group label i {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.form-group input {
  width: 100%;
  background: rgba(11, 17, 30, 0.6);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* User profile avatar */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  flex-content: column;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.user-username {
  font-weight: 600;
  font-size: 14px;
}

.user-logout {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.user-logout:hover {
  color: var(--error);
}

/* --- PAYMENT/CHECKOUT MODAL SPECIFICS --- */
.payment-modal-card {
  max-width: 800px;
  width: 90%;
  padding: 0;
  overflow: hidden;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
}

@media (max-width: 768px) {
  .payment-grid {
    grid-template-columns: 1fr;
  }
}

/* QR Code Section (Left) */
.payment-qr-container {
  background: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0b111e;
  text-align: center;
}

.qr-box {
  width: 220px;
  height: 220px;
  position: relative;
  background: white;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-overlay-status {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.qr-overlay-status.active {
  opacity: 1;
}

.qr-overlay-icon {
  color: var(--success);
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  animation: scaleUp 0.4s ease;
}

.qr-overlay-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.payment-status-badge {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.payment-status-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.payment-status-badge.paid {
  background: #d1fae5;
  color: #059669;
}

/* Spinner animation */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.payment-hint {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  max-width: 220px;
}

/* Details Section (Right) */
.payment-details-container {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.invoice-details {
  background: rgba(11, 17, 30, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
}

.invoice-row.border-top {
  border-top: 1px solid var(--border-glass);
  margin-top: 8px;
}

.invoice-row.highlighted-row {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--primary-glow);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  margin-top: 10px;
}

.invoice-label {
  color: var(--text-secondary);
}

.invoice-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.invoice-value.highlight {
  color: var(--primary);
}

.invoice-value.amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.copyable {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copyable .num {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.btn-copy:hover {
  color: var(--primary);
}
.btn-copy i {
  width: 14px;
  height: 14px;
}

.font-weight-bold {
  font-weight: 600;
}

/* Simulated Payment Box */
.simulator-wrapper {
  margin-top: auto;
}

.simulator-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.simulator-divider::before, .simulator-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed var(--border-glass-hover);
}
.simulator-divider::before { margin-right: 10px; }
.simulator-divider::after { margin-left: 10px; }

.simulator-text {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* --- FOOTER --- */
.main-footer {
  border-top: 1px solid var(--border-glass);
  padding: 30px 0;
  margin-top: 60px;
  background: var(--bg-secondary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 16px 24px;
    gap: 12px;
  }
  .nav-links {
    gap: 16px;
  }
  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-container h1 {
    font-size: 26px;
  }
}

/* --- PRODUCT DETAIL MODAL --- */
.detail-modal-card {
  max-width: 760px;
  width: 90%;
  padding: 0;
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-media-container {
  background: rgba(0, 0, 0, 0.15);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border-glass);
}

@media (max-width: 768px) {
  .detail-media-container {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
}

.detail-thumbnail-box {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  background: var(--bg-secondary);
}

.detail-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-price-box {
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.detail-price-box .price-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.detail-price-box .price-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.detail-info-container {
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.detail-category-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 4px 10px;
  border-radius: 12px;
  align-self: flex-start;
  text-transform: uppercase;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-desc {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.detail-preview-content {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
  max-height: 180px;
  overflow-y: auto;
}

.detail-preview-content ul {
  padding-left: 18px;
}

.detail-preview-content li {
  margin-bottom: 6px;
}

.detail-preview-content li:last-child {
  margin-bottom: 0;
}

.detail-actions {
  margin-top: auto;
  padding-top: 20px;
}

/* --- LIBRARY TABS --- */
.library-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.lib-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.lib-tab-btn i {
  width: 18px;
  height: 18px;
}

.lib-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.lib-tab-btn.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.lib-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.lib-tab-panel.active {
  display: block;
}

/* --- AFFILIATE DASHBOARD --- */
.affiliate-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 20px 24px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-hover);
}

.stat-icon {
  color: var(--primary);
  width: 36px;
  height: 36px;
  opacity: 0.8;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-val.highlight {
  color: var(--primary);
}

.affiliate-link-section {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 30px;
  border-radius: var(--border-radius-md);
  margin-bottom: 35px;
}

.affiliate-link-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.affiliate-link-section h3 i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.affiliate-link-section p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 800px;
}

.copy-link-box {
  display: flex;
  gap: 12px;
  max-width: 650px;
}

.copy-link-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 13px;
}

.copy-link-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.affiliate-history-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.affiliate-history-section h3 i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.affiliate-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.affiliate-table th {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.affiliate-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.affiliate-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* --- DOWNLOAD EXPIRATION BADGE --- */
.download-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  width: 100%;
}

.download-warning i {
  width: 13px;
  height: 13px;
}

.download-warning.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.download-warning.expired {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
