/* ============================================
   ModForge Hub — Components
   Cards · Badges · Buttons · Inputs · etc.
   ============================================ */

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--glow-purple);
}

.btn-primary:hover {
  box-shadow: var(--glow-purple-strong);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--text-white);
  box-shadow: var(--glow-green);
}

.btn-success:hover {
  box-shadow: 0 0 42px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-md);
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */

.card {
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--glass-radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-body {
  padding: var(--space-6);
}

.card-flat {
  background: var(--bg-card-solid);
  backdrop-filter: none;
}

.card-no-hover:hover {
  transform: none;
  border-color: var(--border-soft);
  box-shadow: var(--shadow-card);
}

/* ── Mod Card Premium Redesign ── */
.mod-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  pointer-events: none;
}

.mod-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
}

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

.mod-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  /* Mesh gradient fallback */
  background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.3) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(34,211,238,0.2) 0%, transparent 50%),
              rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mod-card:hover .mod-card-image img {
  transform: scale(1.08) rotate(1deg);
}

.mod-card-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.mod-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mod-card-category {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--purple-light);
  margin-bottom: var(--space-2);
}

.mod-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.mod-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.mod-card-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
}

.mod-card-price .currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mod-card-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.mod-card-stats span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ── Metric Card ── */
.metric-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all var(--transition-base);
}

.metric-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.metric-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-card-icon.purple {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.metric-card-icon.green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.metric-card-icon.cyan {
  background: var(--cyan-bg);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}

.metric-card-icon.magenta {
  background: var(--magenta-bg);
  color: var(--magenta);
  border: 1px solid var(--magenta-border);
}

.metric-card-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-medium);
}

.metric-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: 1;
}

.metric-card-change {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  margin-top: var(--space-2);
}

.metric-card-change.positive {
  color: var(--green);
}

.metric-card-change.negative {
  color: var(--danger);
}

/* ══════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-purple {
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  color: var(--purple-light);
}

.badge-green {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-light);
}

.badge-cyan {
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-light);
}

.badge-magenta {
  background: var(--magenta-bg);
  border: 1px solid var(--magenta-border);
  color: var(--magenta-light);
}

.badge-blue {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}

.badge-orange {
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  color: var(--orange);
}

.badge-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.badge-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}

.badge-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.badge-featured {
  background: var(--gradient-primary);
  color: var(--text-white);
  border: none;
  font-weight: var(--weight-semibold);
  box-shadow: var(--glow-purple);
}

/* ── Trend Badge Colors (ModTemplate) ── */
.badge-trend-hot      { background: rgba(239, 68, 68, 0.8);   color: #fff; border: none; }
.badge-trend-new      { background: rgba(6, 182, 212, 0.8);   color: #fff; border: none; }
.badge-trend-popular  { background: rgba(168, 85, 247, 0.8);  color: #fff; border: none; }
.badge-trend-exclusive{ background: rgba(16, 185, 129, 0.8);  color: #fff; border: none; }

/* ── Status Badge ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.status-waiting {
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
}
.status-badge.status-waiting::before { background: var(--cyan); }

.status-badge.status-proposal {
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  color: var(--purple-light);
}
.status-badge.status-proposal::before { background: var(--purple); }

.status-badge.status-payment {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}
.status-badge.status-payment::before { background: var(--warning); }

.status-badge.status-queued {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}
.status-badge.status-queued::before { background: var(--blue); }

.status-badge.status-dev {
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  color: var(--purple-bright);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}
.status-badge.status-dev::before {
  background: var(--purple-bright);
  box-shadow: 0 0 6px var(--purple);
}

.status-badge.status-testing {
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
}
.status-badge.status-testing::before { background: var(--cyan); }

.status-badge.status-approval {
  background: var(--magenta-bg);
  border: 1px solid var(--magenta-border);
  color: var(--magenta);
}
.status-badge.status-approval::before { background: var(--magenta); }

.status-badge.status-revision {
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  color: var(--orange);
}
.status-badge.status-revision::before { background: var(--orange); }

.status-badge.status-done {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.status-badge.status-done::before { background: var(--success); }

.status-badge.status-delivered {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--green);
  font-weight: var(--weight-semibold);
}
.status-badge.status-delivered::before {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.status-badge.status-cancelled,
.status-badge.status-rejected {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}
.status-badge.status-cancelled::before,
.status-badge.status-rejected::before {
  background: var(--danger);
}

/* ══════════════════════════════════════════════
   FORM INPUTS
   ══════════════════════════════════════════════ */

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

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: var(--space-1);
}

/* ── File Upload ── */
.file-upload {
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.file-upload:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.04);
}

.file-upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

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

.file-upload-text strong {
  color: var(--purple-light);
}

/* ══════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════ */

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.tab.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple);
}

.tab-content {
  display: none;
}

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

/* ══════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════ */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--cyan), var(--green));
  opacity: 0.3;
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1;
}

.timeline-dot.completed {
  background: var(--green-bg);
  border: 2px solid var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.timeline-dot.active {
  background: var(--purple-bg);
  border: 2px solid var(--purple);
  color: var(--purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  animation: pulse-glow 2s infinite;
}

.timeline-dot.pending {
  background: var(--bg-card-solid);
  border: 2px solid var(--border-soft);
  color: var(--text-muted);
}

.timeline-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.timeline-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.timeline-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: var(--space-1);
}

/* ══════════════════════════════════════════════
   PROGRESS STEPS
   ══════════════════════════════════════════════ */

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-8);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.progress-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-base);
}

.progress-step.completed .progress-step-number {
  background: var(--green);
  color: var(--text-white);
}

.progress-step.active .progress-step-number {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--glow-purple);
}

.progress-step.pending .progress-step-number {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}

.progress-step-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}

.progress-step.active .progress-step-label {
  color: var(--text-primary);
}

.progress-step.completed .progress-step-label {
  color: var(--green);
}

.progress-step-line {
  width: 60px;
  height: 2px;
  background: var(--border-soft);
  margin: 0 var(--space-2);
}

.progress-step-line.completed {
  background: var(--green);
}

.progress-step-line.active {
  background: var(--gradient-primary);
}

/* ══════════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════════ */

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width 1s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 2s infinite;
}

.progress-bar.green {
  background: var(--gradient-success);
}

.progress-bar.cyan {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

/* ══════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.empty-state p {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto var(--space-6);
}

/* ══════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--glass-radius);
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-soft);
}

.modal-header h3 {
  font-size: var(--text-lg);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-soft);
}

/* ══════════════════════════════════════════════
   YOUTUBE EMBED
   ══════════════════════════════════════════════ */

.youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-card-solid);
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-card-solid);
}

.youtube-embed-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.youtube-embed-placeholder:hover img {
  opacity: 0.9;
}

.youtube-play-btn {
  position: absolute;
  width: 72px;
  height: 50px;
  background: rgba(255, 0, 0, 0.8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.youtube-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

.youtube-embed-placeholder:hover .youtube-play-btn {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.08);
}

/* ══════════════════════════════════════════════
   PRICE TAG
   ══════════════════════════════════════════════ */

.price-tag {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--green);
}

.price-tag-lg {
  font-size: var(--text-4xl);
}

.price-tag .currency {
  font-size: 0.6em;
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  vertical-align: super;
}

.price-tag .cents {
  font-size: 0.5em;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   GLOW PANEL
   ══════════════════════════════════════════════ */

.glow-panel {
  background: var(--glass-bg);
  border: 1px solid var(--border-glow);
  border-radius: var(--glass-radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glow-purple), var(--shadow-card);
  padding: var(--space-8);
}

.glow-panel-green {
  border-color: var(--border-glow-green);
  box-shadow: var(--glow-green), var(--shadow-card);
}

/* ══════════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════════ */

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

.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--purple-light);
  margin-bottom: var(--space-4);
  padding: 6px 16px;
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-full);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-md);
}

/* ══════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.data-table td {
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.04);
}

/* ── Mobile Table Responsive ── */
@media (max-width: 768px) {
  .data-table th,
  .data-table td {
    padding: var(--space-2) var(--space-3);
    font-size: 0.78rem;
  }

  .data-table th {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .data-table th,
  .data-table td {
    padding: var(--space-2);
    font-size: 0.72rem;
  }
}

/* ══════════════════════════════════════════════
   ACCORDION / FAQ
   ══════════════════════════════════════════════ */

.accordion-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.accordion-item.open {
  border-color: var(--purple-border);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  background: var(--glass-bg);
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-card-hover);
}

.accordion-header h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.accordion-icon {
  color: var(--text-muted);
  transition: transform var(--transition-base);
  font-size: 20px;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--purple);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-body-inner {
  padding: 0 var(--space-6) var(--space-5);
}

.accordion-body p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════════════
   AVATAR
   ══════════════════════════════════════════════ */

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border-soft);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 28px;
  height: 28px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
}

.avatar-xl {
  width: 64px;
  height: 64px;
}

.avatar-placeholder {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: var(--weight-semibold);
  font-size: 0.45em;
  width: 100%;
  height: 100%;
}

/* ══════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════ */

.gallery-main {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  margin-bottom: var(--space-3);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--purple);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════
   PREMIUM TOAST MESSAGES
   ══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 400px;
}

.toast-alert {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  gap: 1rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.toast-alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(50px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-alert.fade-out {
  opacity: 0;
  transform: translateX(50px) scale(0.95);
}

.toast-alert--success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #86EFAC; }
.toast-alert--success::before { background: #22C55E; box-shadow: 0 0 10px #22C55E; }

.toast-alert--error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #FCA5A5; }
.toast-alert--error::before { background: #EF4444; box-shadow: 0 0 10px #EF4444; }

.toast-alert--info, .toast-alert-- { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93C5FD; }
.toast-alert--info::before { background: #3B82F6; box-shadow: 0 0 10px #3B82F6; }

.toast-alert--warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #FCD34D; }
.toast-alert--warning::before { background: #F59E0B; box-shadow: 0 0 10px #F59E0B; }

.toast-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.toast-close:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.1); }

