:root {
  --noise-bg: #0a0a0a;
  --noise-accent: #ff4d2e;
  --noise-text: #f5f5f5;
  --noise-muted: #9ca3af;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #111;
  background: #fff;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
}

.site-header.light {
  background: #fff;
  color: #111;
  border-bottom: 1px solid #eee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.site-logo, .brand img, .site-logo-preview {
  height: 36px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-actions { flex-shrink: 0; }

.lang-switch .dropdown-item.active { font-weight: 600; }

.brand-dot {
  width: 28px;
  height: 28px;
  background: var(--noise-accent);
  border-radius: 6px;
}

.btn-primary-noise {
  background: var(--noise-accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
}

.hero {
  background: var(--noise-bg);
  color: var(--noise-text);
  padding: 4rem 2rem 6rem;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,77,46,0.15), transparent 40%);
}

.hero-noise {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding-top: 5rem;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 30% 20%, black 10%, transparent 70%);
  pointer-events: none;
}

.hero-noise .hero-inner { position: relative; z-index: 1; }

.hero-sub { max-width: 720px; font-size: 1.05rem; line-height: 1.6; }

.kicker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--noise-accent);
  margin-right: 8px;
  vertical-align: middle;
}

.partners-band {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1.25rem 2rem;
}

.partners-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}

.partner-logo.ph {
  font-weight: 700;
  font-size: 1.1rem;
  color: #444;
  filter: grayscale(1);
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-dark {
  background: #0a0a0a;
  color: #f5f5f5;
  max-width: none;
  padding-left: max(2rem, calc((100% - 1100px) / 2));
  padding-right: max(2rem, calc((100% - 1100px) / 2));
}

.section-dark .muted { color: #9ca3af; }

.section-soft { background: #fafafa; max-width: none; }

.workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wf-tab {
  border: 1px solid #333;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

.wf-tab.active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.workflow-panel {
  border: 1px solid #333;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 720px;
}

.cta-section {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.hero-inner { max-width: 1100px; margin: 0 auto; }

.hero-kicker {
  color: var(--noise-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  max-width: 900px;
}

.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }

.section h2 { font-size: 2rem; margin-bottom: 0.75rem; }

.muted { color: var(--noise-muted); }

.stat-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  max-width: 360px;
}

.site-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-grid h4 { margin: 0 0 0.75rem; font-size: 0.85rem; }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.85rem;
}

.user-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.user-sidebar {
  background: #111;
  color: #fff;
  padding: 1.5rem 1rem;
}

.user-sidebar a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  color: #ddd;
}

.user-sidebar a.active, .user-sidebar a:hover {
  background: rgba(255,77,46,0.2);
  color: #fff;
}

.user-main { padding: 2rem; background: #f8f9fb; }

.panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
}

.income-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.income-item {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
}

.income-item .amount { font-size: 1.5rem; font-weight: 700; color: var(--noise-accent); }

@media (max-width: 768px) {
  .user-shell { grid-template-columns: 1fr; }
  .user-sidebar { display: flex; flex-wrap: wrap; gap: 0.25rem; }
}

.admin-layout { display: flex; min-height: 100vh; }
.admin-nav {
  width: 220px;
  background: #1f2937;
  color: #fff;
  padding: 1rem;
}
.admin-nav a { display: block; color: #e5e7eb; padding: 0.5rem; border-radius: 6px; }
.admin-nav a:hover { background: #374151; }
.admin-content { flex: 1; padding: 1.5rem; background: #f3f4f6; }

table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; }
table.data th { background: #f9fafb; }
