/* Gass Cash Back — MOVA clone layout, purple → dark green + real brand assets */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --green: #2bb34a;
  --green-deep: #1a8f38;
  --green-mid: #248a3a;
  --green-soft: #d8f0de;
  --green-mist: #eef8f0;
  --green-hero: #e4f3e8;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #8b8b8b;
  --line: #eeeeee;
  --nav-h: 58px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: #ddd;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }

.app {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
}

/* ===== HOME ===== */
.home-hero {
  position: relative;
  padding: 28px 20px 56px;
  background: linear-gradient(180deg, #d8f0de 0%, var(--green-hero) 42%, var(--bg) 100%);
  overflow: hidden;
  min-height: 168px;
}

.home-hero h1 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.home-hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.hero-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-arrow svg { width: 12px; height: 12px; }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.brand-mark img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.link-detect {
  position: relative;
  z-index: 2;
  margin: -28px 16px 0;
  background: var(--card);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 11px 12px 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  width: calc(100% - 32px);
}

.link-detect .clip {
  width: 20px;
  height: 20px;
  color: #555;
  flex-shrink: 0;
}

.link-detect .placeholder {
  flex: 1;
  font-size: 0.72rem;
  color: #9a9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.link-detect .mini-logos {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mini-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  background: #fff;
}
.mini-logo + .mini-logo { margin-left: -6px; }

.section { padding: 22px 16px 0; }
.section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section .sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.partner-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 10px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.partner-logo {
  height: 44px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.partner-name {
  font-size: 0.78rem;
  color: #777;
  margin-bottom: 4px;
}

.partner-rate {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

/* ===== PENDAPATAN ===== */
.earn-wrap { padding: 12px 14px 0; }

.earn-hero {
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 40%),
    linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #fff;
  padding: 14px 16px 20px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.earn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 2px,
    rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.earn-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(180, 180, 180, 0.35);
  border-radius: 12px 12px 0 0;
  margin: -14px -16px 16px;
  padding: 10px 14px;
  position: relative;
  z-index: 1;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.35);
  background: #1a6b2c;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 48px; height: 48px; border-color: transparent; }

.earn-user .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #222;
}

.earn-detail-link {
  position: absolute;
  top: 58px;
  right: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  z-index: 1;
}

.earn-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
}

.earn-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  position: relative;
  z-index: 1;
}

.earn-today {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.withdraw-row {
  display: flex;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.withdraw-info {
  flex: 1;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  padding: 16px 18px;
}
.withdraw-info .w-label { font-size: 0.78rem; opacity: 0.9; }
.withdraw-info .w-amt {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 4px 0 6px;
}
.withdraw-info .w-link { font-size: 0.75rem; opacity: 0.85; }

.withdraw-btn {
  width: 88px;
  background: var(--green-mid);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}
.withdraw-btn svg { width: 26px; height: 26px; }

.menu-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.menu-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 500;
}
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item .ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #444;
  flex-shrink: 0;
}
.menu-item .ico svg { width: 22px; height: 22px; }
.menu-item .label { flex: 1; }
.menu-item .chev { color: #c0c0c0; font-size: 1.1rem; }

.tips-banner {
  margin-top: 12px;
  border-radius: 16px;
  padding: 18px 16px;
  background: linear-gradient(105deg, #c8e9d0 0%, #e8f6eb 55%, #d4efda 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}

.tips-banner h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.3;
  max-width: 16ch;
}

.tips-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

.tips-cta .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-grid;
  place-items: center;
}
.tips-cta .dot svg { width: 10px; height: 10px; }

.tips-coins {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ===== PROFIL ===== */
.profil-wrap { padding: 20px 16px 0; }

.profil-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.profil-head .name {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 800;
}

.settings-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ececec;
  display: grid;
  place-items: center;
  color: #333;
}
.settings-btn svg { width: 20px; height: 20px; }

.orders-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  border-radius: 22px;
  background: linear-gradient(100deg, #b8dfc2 0%, #7bc48a 55%, #4a9e5c 100%);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.orders-banner span {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
}
.orders-banner .go {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.orders-banner .go svg { width: 14px; height: 14px; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.7rem;
  color: #9a9a9a;
  font-weight: 500;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active {
  color: var(--green);
  font-weight: 600;
}
.nav-item.active .nav-icon-fill { fill: var(--green); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  transform: translateX(-50%) translateY(12px);
  background: #222;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 100;
  max-width: 80%;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
