/* =========================

   RESET & BASE

========================= */

*,

*::before,

*::after {

  box-sizing: border-box;

}



:root {

  --bg: #f7f9fb;

  --surface: #ffffff;

  --text: #1f2933;

  --muted: #6b7280;

  --border: #e5e7eb;



  --primary: #3b82f6;

  --primary-hover: #2563eb;



  --secondary: #10b981;

  --secondary-hover: #059669;



  --danger: #dc2626;



  --radius: 12px;

  --radius-sm: 8px;

}



html,

body {

  margin: 0;

  padding: 0;

  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

  color: var(--text);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",

    Roboto, Ubuntu, sans-serif;

  line-height: 1.5;

}



/* =========================

   TYPOGRAPHY

========================= */

h1,

h2 {

  margin: 0;

  font-weight: 600;

}



h1 {

  font-size: 2rem;

  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

  margin-bottom: 0.5rem;

}



h2 {

  font-size: 1.1rem;

}



p {

  margin: 0.25rem 0;

}



.muted {

  color: var(--muted);

}



.small {

  font-size: 0.85rem;

}



/* =========================

   LAYOUT

========================= */

.container {

  max-width: 1200px;

  margin: 0 auto;

  padding: 2rem 1rem;

}



.grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 1rem;

  margin: 1.25rem 0;

}



/* =========================

   TOP BAR

========================= */

.topbar {

  background: var(--surface);

  border-bottom: 1px solid var(--border);

  padding: 0.75rem 1.25rem;

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.brand {

  text-decoration: none;

  color: var(--text);

  font-weight: 600;

  font-size: 1.1rem;

}



.topbar__right {

  display: flex;

  align-items: center;

  gap: 1rem;

}



.credits-pill {

  background: #eef2ff;

  color: #3730a3;

  padding: 0.35rem 0.7rem;

  border-radius: 999px;

  font-size: 0.9rem;

}



/* =========================

   BUTTONS

========================= */

.btn {

  border: none;

  border-radius: var(--radius-sm);

  padding: 0.75rem 1.5rem;

  font-size: 1rem;

  cursor: pointer;

  transition: all 0.3s ease;

  font-weight: 500;

}



.btn:disabled {

  opacity: 0.5;

  cursor: not-allowed;

}



.btn--primary {

  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  color: #fff;

  border: none;

}



.btn--primary:hover:not(:disabled) {

  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);

  transform: translateY(-2px);

  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);

}



.btn--secondary {

  background: linear-gradient(135deg, #10b981 0%, #059669 100%);

  color: #fff;

}



.btn--secondary:hover:not(:disabled) {

  background: linear-gradient(135deg, #059669 0%, #047857 100%);

  transform: translateY(-2px);

  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);

}



.btn--ghost {

  background: transparent;

  color: var(--text);

}



.btn--ghost:hover {

  background: #f1f5f9;

}



/* =========================

   HERO

========================= */

.hero {

  padding: 3rem 2rem;

  background: rgba(255, 255, 255, 0.95);

  border-radius: var(--radius);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  margin-bottom: 3rem;

}



/* =========================

   FEATURES

========================= */

.features {

  padding: 3rem 2rem;

  background: rgba(255, 255, 255, 0.95);

  border-radius: var(--radius);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  margin: 2rem 0;

}



.feature-card {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 2rem;

  text-align: center;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  transition: transform 0.3s ease, box-shadow 0.3s ease;

  height: 100%;

}



.feature-card:hover {

  transform: translateY(-5px);

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

}



.feature-card h3 {

  margin: 0 0 1rem;

  font-size: 1.2rem;

  color: var(--primary);

}



.feature-card p {

  margin: 0;

  color: var(--muted);

  line-height: 1.6;

}



/* =========================

   HOW IT WORKS

========================= */

.how-it-works {

  padding: 3rem 2rem;

  background: rgba(255, 255, 255, 0.95);

  border-radius: var(--radius);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  margin: 2rem 0;

}

.how-it-works h2 {

  font-size: 2rem;

  margin-bottom: 2rem;

  color: var(--text);

}



.step {

  padding: 1.5rem;

  background: var(--surface);

  border-radius: var(--radius);

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  text-align: center;

}



.step h4 {

  margin: 1rem 0 0.5rem;

  font-size: 1.1rem;

  color: var(--text);

}



.step p {

  margin: 0;

  color: var(--muted);

  line-height: 1.5;

}

.card {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 2rem;

  margin-bottom: 1rem;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card:hover {

  transform: translateY(-5px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);

}



.card__header {

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.card__title {

  margin-bottom: 0.25rem;

}



.card__text {

  color: var(--muted);

}



.card__subtext {

  font-size: 0.85rem;

  color: var(--muted);

}



/* =========================

   STATS

========================= */

.stat {

  text-align: center;

}



.stat__label {

  font-size: 0.85rem;

  color: var(--muted);

}



.stat__value {

  font-size: 1.4rem;

  font-weight: 600;

  margin-top: 0.25rem;

}



/* =========================

   ACTIONS

========================= */

.actions {

  display: flex;

  gap: 0.75rem;

  flex-wrap: wrap;

  margin: 1.25rem 0;

}



.hint {

  font-size: 0.85rem;

  color: var(--muted);

  width: 100%;

}



/* =========================

   SITES LIST

========================= */

.sites-list {

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

  margin-top: 0.75rem;

}



.site-item {

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  padding: 0.75rem;

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.site-meta {

  font-size: 0.9rem;

}



.site-actions {

  display: flex;

  gap: 0.5rem;

}



/* =========================

   EMPTY STATE

========================= */

.empty-state {

  text-align: center;

  padding: 1.25rem;

  border: 1px dashed var(--border);

  border-radius: var(--radius);

  color: var(--muted);

}



/* =========================

   TRUST FOOTER

========================= */

.trust {

  display: flex;

  gap: 1.25rem;

  flex-wrap: wrap;

  font-size: 0.85rem;

  color: rgba(255, 255, 255, 0.8);

  margin-top: 2rem;

}



/* =========================

   RESPONSIVE DESIGN

========================= */

@media (max-width: 768px) {

  .container {

    padding: 1rem 0.5rem;

  }

  .hero {

    padding: 2rem 1rem;

    margin-bottom: 2rem;

  }

  .features {

    padding: 2rem 1rem;

    margin: 1rem 0;

  }

  .how-it-works {

    padding: 2rem 1rem;

    margin: 1rem 0;

  }

  .feature-card {

    padding: 1.5rem;

  }

  .step {

    padding: 1rem;

  }

  .grid {

    grid-template-columns: 1fr;

  }

  .features {

    display: flex;

    flex-direction: column;

    gap: 1rem;

  }

  .how-it-works div {

    display: flex;

    flex-direction: column;

    gap: 1rem;

  }

}

.overlay {

  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.6);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 100;

}



.overlay__panel {

  background: var(--surface);

  border-radius: var(--radius);

  width: 100%;

  max-width: 900px;

  max-height: 90vh;

  display: flex;

  flex-direction: column;

}



.overlay__header {

  padding: 0.75rem 1rem;

  border-bottom: 1px solid var(--border);

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.overlay__body {

  padding: 1rem;

  overflow-y: auto;

}



/* =========================

   EARN MODE

========================= */

.site-frame-wrap {

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  overflow: hidden;

  margin: 1rem 0;

  height: 400px;

}



.site-frame-wrap iframe {

  width: 100%;

  height: 100%;

  border: none;

}



.earn-meta {

  display: flex;

  justify-content: space-between;

  font-size: 0.9rem;

  margin-bottom: 0.5rem;

}



.earn-actions {

  display: flex;

  gap: 0.5rem;

}



/* =========================

   FORMS

========================= */

.field {

  display: flex;

  flex-direction: column;

  margin-bottom: 0.75rem;

}



.field__label {

  font-size: 0.85rem;

  margin-bottom: 0.25rem;

}



.field__input {

  padding: 0.75rem 0.85rem;

  border: 2px solid var(--border);

  border-radius: var(--radius-sm);

  font-size: 1rem;

  transition: border-color 0.3s ease, box-shadow 0.3s ease;

}



.field__input:focus {

  outline: none;

  border-color: #667eea;

  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);

}



.modal-actions {

  display: flex;

  gap: 0.5rem;

  margin-top: 0.75rem;

}



/* =========================

   DROPDOWN

========================= */

.profile-menu {

  position: relative;

}



.dropdown {

  position: absolute;

  right: 0;

  top: calc(100% + 0.25rem);

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  min-width: 140px;

  z-index: 10;

}



.dropdown__item {

  width: 100%;

  background: none;

  border: none;

  text-align: left;

  padding: 0.55rem 0.75rem;

  cursor: pointer;

}



.dropdown__item:hover {

  background: #f1f5f9;

}



/* =========================

   STATUS MESSAGES

========================= */

.status {

  font-size: 0.9rem;

  margin-top: 0.5rem;

}

