/* ============ RESET & VARIABLES ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --mint: #10B981;
  --mint-light: #34D399;
  --mint-dark: #059669;
  --purple: #8B5CF6;
  --amber: #F59E0B;
  --bg-dark: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --bg-surface: #111111;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --border: #1F2937;
  --border-light: #374151;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

/* ============ NOISE OVERLAY ============ */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

body > *:not(.noise-overlay) { position: relative; z-index: 1; }

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon { color: var(--mint); font-size: 1rem; }

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  color: var(--mint);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.8; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--mint);
  color: #000;
}

.btn-primary:hover {
  background: var(--mint-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: var(--mint);
  color: #000;
  border-radius: 6px;
}

.btn-sm:hover {
  background: var(--mint-light);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-full { width: 100%; }

/* ============ HERO ============ */
.hero {
  padding: 160px 40px 100px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--mint);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.text-mint { color: var(--mint); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-surface);
  max-width: 100%;
  padding-left: calc((100% - 1120px) / 2);
  padding-right: calc((100% - 1120px) / 2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 1rem;
}

.link-arrow {
  color: var(--mint);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.link-arrow:hover { opacity: 0.8; }

/* ============ TEMPLATE CARDS ============ */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.template-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.template-mockup {
  width: 140px;
  height: 160px;
  background: var(--bg-dark);
  border: 1px solid;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-line {
  height: 6px;
  border-radius: 3px;
}

.mockup-block {
  flex: 1;
  border-radius: 4px;
  margin: 4px 0;
}

.template-info {
  padding: 20px;
}

.template-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-info h3 {
  font-size: 1.1rem;
  margin: 8px 0;
  font-weight: 600;
}

.template-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============ CATEGORY CARDS ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  display: block;
}

.category-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

.category-icon {
  color: var(--mint);
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.category-count {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ BUNDLE CARDS ============ */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: all 0.3s ease;
}

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

.bundle-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--mint);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bundle-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.bundle-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.bundle-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.bundle-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.bundle-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============ CTA SECTION ============ */
.cta-section {
  text-align: center;
  padding: 100px 40px;
}

.cta-section h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-section .section-sub {
  margin-bottom: 32px;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============ CATALOG PAGE ============ */
.page-header {
  padding: 120px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 8px;
}

.catalog-filters {
  display: flex;
  gap: 8px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.filter-btn.active { background: var(--mint); color: #000; border-color: var(--mint); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============ SUCCESS PAGE ============ */
.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 160px 40px 80px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

.success-container h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.success-container p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  text-align: left;
}

.download-card h3 { margin-bottom: 8px; }
.download-card p { font-size: 0.85rem; margin-bottom: 16px; }

/* ============ ADMIN PAGE ============ */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-size: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.metric-value.mint { color: var(--mint); }

.admin-section {
  margin-bottom: 40px;
}

.admin-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.orders-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.orders-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.orders-table tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--mint);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { margin-bottom: 8px; color: var(--text-secondary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }

  .section { padding: 60px 20px; }
  .section-dark { padding-left: 20px; padding-right: 20px; }
  .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }

  .category-grid { grid-template-columns: 1fr; }
  .template-grid, .catalog-grid { grid-template-columns: 1fr; }
  .bundle-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }

  .page-header { padding: 100px 20px 30px; }
  .catalog-filters { padding: 0 20px; flex-wrap: wrap; }
  .catalog-grid { padding: 0 20px; }

  .admin-container { padding: 80px 20px 60px; }

  footer { padding: 30px 20px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  .orders-table { font-size: 0.8rem; }
  .orders-table th, .orders-table td { padding: 10px 12px; }
}
