* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

.hero {
  padding: 48px 8%;
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero-content .brand {
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 38px;
  margin: 0 0 12px;
}

.hero p {
  font-size: 16px;
  margin: 0 0 20px;
  color: #475569;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.container {
  padding: 32px 8%;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 32px;
  gap: 16px;
  position: relative;
  z-index: 5;
  flex-wrap: nowrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  margin-left: auto;
}

.menu-btn {
  display: none;
  border: none;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  z-index: 6;
}

.topbar .brand {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 18px;
}

.topbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-links a {
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.lang-select select {
  border: none;
  background: transparent;
  font: inherit;
  outline: none;
  cursor: pointer;
}

.highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.highlight-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 14px;
  align-items: center;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #1d4ed8;
}

.stat-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.feature-section {
  margin-top: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.categories,
.earnings,
.logo-wall {
  margin-top: 24px;
}

.jobs {
  margin-top: 24px;
}

.cat-grid,
.earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cat-card,
.earn-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
}

.cat-card h3,
.earn-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.cat-card p,
.earn-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.logo-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  color: #475569;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.jobs-pay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.pay-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.pay-title {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.pay-value {
  font-size: 18px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.pay-note {
  font-size: 12px;
  color: #64748b;
}

.pay-stars {
  margin-top: 6px;
  color: #f59e0b;
  font-size: 12px;
}
.jobs-note {
  margin: 0 0 16px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jobs-note::after {
  content: "→";
}

.job-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 12px;
}

.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.job-card h3 {
  margin: 0;
  font-size: 16px;
}

.job-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.job-tag {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  width: fit-content;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23ffffff' d='M16 4c-6.6 0-12 5-12 11.2 0 3.6 1.7 6.9 4.4 9L7 28l4.1-1.7c1.5.4 3.2.7 4.9.7 6.6 0 12-5 12-11.2S22.6 4 16 4zm6.9 15.5c-.3.8-1.6 1.6-2.2 1.7-.6.1-1.3.1-2.2-.2-.5-.2-1.2-.4-2.1-.8-3.7-1.6-6.2-5.3-6.4-5.5-.2-.2-1.5-2-1.5-3.8 0-1.8.9-2.7 1.3-3.1.3-.3.8-.5 1.1-.5h.8c.2 0 .5 0 .7.5.3.7.9 2.4 1 2.6.1.2.1.4 0 .6-.1.2-.2.4-.4.6-.2.2-.4.5-.6.7-.2.2-.4.4-.2.8.2.4.9 1.5 1.9 2.5 1.3 1.3 2.4 1.7 2.8 1.9.4.2.6.1.8-.1.3-.3.9-1 1.1-1.3.2-.3.4-.3.7-.2.3.1 2 .9 2.3 1 .3.1.5.2.6.3.1.2.1.8-.2 1.6z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.35);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  max-height: 85vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-close {
  border: none;
  background: #f1f5f9;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 2;
}

.modal-form label span {
  font-size: 13px;
}

.modal-form input {
  width: 100%;
}

@media (max-width: 900px) {
  .hero,
  .apply-hero {
    padding: 32px 6%;
  }

  .container {
    padding: 24px 6%;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 18px 5%;
  }

  .card {
    padding: 18px;
  }

  .topbar {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 6px 12px;
  }

  .topbar-left {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 120px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lang-select {
    grid-column: 3;
    grid-row: 2;
    margin-left: 0;
    align-self: center;
    width: 120px;
    justify-content: center;
  }

  .topbar .brand {
    font-size: 18px;
  }

  .topbar-actions .btn-primary {
    padding: 8px 12px;
    font-size: 13px;
  }

  .topbar-links {
    position: absolute;
    top: 64px;
    right: 5%;
    left: 5%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: none;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    z-index: 4;
  }

  .topbar-links.open {
    display: grid;
  }

  .topbar-links a,
  .topbar-links .lang-select {
    width: 100%;
    justify-content: center;
  }

  .topbar-links a {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  }

  .lang-select {
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    justify-content: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .section-header {
    margin-bottom: 10px;
  }

  .features-grid,
  .cat-grid,
  .earn-grid,
  .jobs-grid,
  .testi-grid,
  .logo-grid {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .features-grid > *,
  .cat-grid > *,
  .earn-grid > *,
  .jobs-grid > *,
  .testi-grid > *,
  .logo-grid > * {
    scroll-snap-align: start;
  }

  .step-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .step-row.reverse .step-image {
    order: 0;
  }

  .step-image img {
    max-width: 160px;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn-primary {
    width: 100%;
  }

  .wa-float {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
  }

  .footer {
    padding: 24px 5%;
  }

  .footer-top {
    justify-content: space-between;
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-grid {
    text-align: left;
  }

  .footer-bottom {
    justify-content: space-between;
    text-align: left;
  }
}
.section-header {
  margin-bottom: 16px;
}

.steps-section {
  margin-top: 24px;
}

.steps-timeline {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 24px;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  position: relative;
}

.step-row.reverse .step-image {
  order: 2;
}

.step-image img {
  width: 100%;
  max-width: 180px;
  display: block;
  margin: 0 auto;
}

.step-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-content p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}

.step-row::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 0 4px #dbeafe;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

label span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #475569;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
}

.full {
  grid-column: 1 / -1;
}

.btn-primary {
  background: #1d4ed8;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid #1d4ed8;
  color: #1d4ed8;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonials {
  margin-top: 24px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.testi-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
  font-size: 14px;
}

.testi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.testi-name {
  font-weight: 600;
}

.testi-role {
  font-size: 12px;
  color: #64748b;
}

.testi-stars {
  margin-left: auto;
  color: #f59e0b;
  font-size: 12px;
  white-space: nowrap;
}

.testi-card span {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.faq {
  margin-top: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}

.cta-banner {
  margin: 32px 0;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  padding: 28px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-content {
  max-width: 680px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cta-banner p {
  margin: 6px 0 0;
  color: #e2e8f0;
}

.apply-hero {
  padding: 48px 8% 32px;
  background: linear-gradient(135deg, #f0f9ff, #fff);
}

.apply-hero-content {
  max-width: 720px;
}

.apply-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.apply-side {
  display: grid;
  gap: 16px;
}

.apply-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #475569;
}

.mini-steps {
  display: grid;
  gap: 12px;
}

.mini-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-steps img {
  width: 48px;
  height: 48px;
}

.footer {
  padding: 28px 8%;
  color: #64748b;
}

.footer img {
  height: 32px;
}

.rich-footer {
  background: #0f172a;
  color: #cbd5f5;
  margin-top: 32px;
}

.rich-footer .brand {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand p {
  margin: 0;
  color: #cbd5f5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.footer-grid h4 {
  margin: 0 0 10px;
  color: #fff;
}

.footer-grid a,
.footer-grid span {
  display: block;
  color: #cbd5f5;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 12px;
  font-size: 12px;
}

.admin-layout {
  padding: 32px 6%;
  display: grid;
  gap: 20px;
  background: #f1f5f9;
  min-height: 100vh;
}

.admin-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.25);
}

.admin-header h1 {
  margin: 0 0 6px;
  font-size: 20px;
}

.admin-header .muted {
  color: #e2e8f0;
}

.admin-header-actions {
  display: flex;
  gap: 8px;
}

.admin-card h2 {
  margin: 0 0 12px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.table-wrap {
  overflow: auto;
  max-height: 60vh;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.admin-table {
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  font-size: 12px;
  padding: 8px;
  word-break: break-all;
}

.device-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.device-text {
  max-width: 320px;
  white-space: normal;
  word-break: break-all;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

.admin-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.promo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-url {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.small-btn:hover {
  border-color: #cbd5f5;
}

.small-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #94a3b8;
  background: #fff;
  cursor: pointer;
}

.danger {
  border-color: #ef4444;
  color: #ef4444;
}

.muted {
  color: #64748b;
  font-size: 13px;
}
