/* ═══════════════════════════════════════════════════════
   TimePayer — Homepage Styles (home.css)
   Scoped to .hp-* to avoid affecting dashboard/admin
═══════════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────────── */
.hp-hero {
  padding: 64px 0 40px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.18) 0%, transparent 70%),
              var(--bg-base);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-dim);
  border: 1px solid rgba(37,99,235,.3);
  color: var(--blue-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hp-hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hp-hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hp-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hp-trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-trust-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Hero Mockup ───────────────────────────────────── */
.hp-hero-visual { 
  display: flex; 
  justify-content: center; 
  position: relative;
}
.hp-hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hp-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: floatY 4s ease-in-out infinite;
  position: relative;
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hp-mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hp-mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.hp-bal-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.hp-bal-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
}
.hp-bal-card.pending  { border-color: rgba(245,158,11,.3); }
.hp-bal-card.approved { border-color: rgba(37,99,235,.3); }
.hp-bal-card.withdraw { border-color: rgba(16,185,129,.3); }
.hp-bal-label  { font-size: .65rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.hp-bal-amount { font-size: .95rem; font-weight: 800; }
.hp-bal-card.pending  .hp-bal-amount { color: var(--yellow); }
.hp-bal-card.approved .hp-bal-amount { color: var(--blue-light); }
.hp-bal-card.withdraw .hp-bal-amount { color: var(--green); }

.hp-offer-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hp-offer-chip {
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.hp-payout-badge {
  background: var(--green-dim);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--green);
  text-align: center;
}

/* ─── Sections ──────────────────────────────────────── */
.hp-section { padding: 72px 0; }
.hp-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}
.hp-section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.hp-section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1rem;
}

/* ─── Steps · premium connected timeline ────────────── */
.hp-steps-section { background: var(--bg-surface); }
.hp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  margin-top: 8px;
}
/* flowing gradient connector behind the number nodes */
.hp-steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(59,130,246,0) 0%, rgba(59,130,246,.55) 14%,
    rgba(52,211,153,.55) 86%, rgba(52,211,153,0) 100%);
  z-index: 0;
}
.hp-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 6px;
}
.hp-step-num {
  position: relative;
  width: 54px; height: 54px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; font-family: var(--font, inherit);
  background: linear-gradient(140deg, #60A5FA, #22C7A9 55%, #34D399);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: transform .25s ease;
}
.hp-step-num::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid rgba(120,180,230,.38);
  box-shadow: 0 0 0 7px var(--bg-surface), 0 8px 20px -8px rgba(34,150,180,.45);
  z-index: -1;
}
.hp-step:hover .hp-step-num { transform: translateY(-3px); }
.hp-step:hover .hp-step-num::before { border-color: rgba(120,180,230,.7); }
.hp-step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.hp-step p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; max-width: 240px; margin: 0 auto; }
.hp-step-arrow { display: none; }

/* ─── Earn Grid ─────────────────────────────────────── */
.hp-earn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hp-earn-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .28s cubic-bezier(0.4, 0, 0.2, 1), border-color .28s ease, box-shadow .28s ease;
  position: relative;
  overflow: hidden;
}
/* gradient accent line that draws in on hover */
.hp-earn-card::before,
.hp-why-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #60A5FA, #34D399);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.hp-earn-card:hover, .hp-why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(120,180,230,.4);
  box-shadow: 0 22px 44px -24px rgba(0,0,0,.7);
}
.hp-earn-card:hover::before,
.hp-why-card:hover::before { transform: scaleX(1); }
.hp-earn-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.hp-earn-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  margin-top: auto;
}
.hp-earn-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 16px;
  align-self: flex-start;
}
.hp-earn-badge.available {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,0.2);
}
.hp-earn-badge.soon {
  background: #8b5cf6;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,92,246,0.2);
}
.hp-earn-badge.planned {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ─── Why Grid ──────────────────────────────────────── */
.hp-why-section { background: var(--bg-surface); }
.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-why-card {
  padding: 32px 30px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.hp-why-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.hp-why-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Redesign v2 additions ─────────────────────────── */

/* Hero mockup "Preview" tag */
.hp-mockup-tag {
  margin-left: auto;
  font-size: .58rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-subtle); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 100px;
}

/* Earn cards now have no badge — keep copy snug under the heading */
.hp-earn-card p { margin-top: 0; margin-bottom: 0; }

/* Trust ("Why") icons + the linked transparency card */
.hp-why-icon i { color: var(--blue-light); }
a.hp-why-card { display: block; color: inherit; text-decoration: none; }
a.hp-why-card:hover .hp-why-icon i { color: var(--green-light); }

/* Closing CTA band */
.hp-cta-band {
  padding: 76px 24px;
  background:
    radial-gradient(ellipse 60% 130% at 50% 0%, rgba(37,99,235,.20) 0%, transparent 70%),
    var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hp-cta-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.hp-cta-inner h2 { font-size: 2.1rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.hp-cta-inner p { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 28px; }
.hp-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 540px) {
  .hp-cta-inner h2 { font-size: 1.6rem; }
  .hp-cta-actions .btn { width: 100%; }
}

/* ─── Payout ─────────────────────────────────────────── */
.hp-payout-section {
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(16,185,129,.08) 0%, transparent 70%);
}
.hp-payout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hp-payout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.hp-payout-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-muted); }
.hp-payout-check { flex-shrink: 0; }
.hp-payout-list li strong { color: var(--text); }
.hp-payout-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hp-payout-card-header {
  padding: 16px 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.hp-payout-card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hp-payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
}
.hp-payout-row span:first-child { color: var(--text-muted); }

/* ─── Community ─────────────────────────────────────── */
.hp-community-section { background: var(--bg-surface); }
.hp-community-social { margin: 0 auto; max-width: 600px; justify-content: center; }
.hp-community-social a { 
  width: 44px; height: 44px; font-size: 1.2rem; 
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", var(--font);
}

/* ─── FAQ ───────────────────────────────────────────── */
.hp-faq-section { background: var(--bg-base); }
.hp-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 0 auto; }
.hp-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.hp-faq-item[open] { border-color: var(--blue); }
.hp-faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.hp-faq-item summary::-webkit-details-marker { display: none; }
.hp-faq-item summary::after {
  content: "▼";
  font-size: .7rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.hp-faq-item[open] summary::after { transform: rotate(180deg); }
.hp-faq-item p {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.hp-payout-methods {
  background: var(--bg-surface);
}
.hp-payout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.hp-payout-card {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  color: #fff;
  aspect-ratio: 1 / 1;
  min-height: 160px;
  border: none;
}
.hp-payout-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hp-payout-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.hp-payout-img, .hp-gc-icon {
  width: 100%;
  max-width: 70px;
  height: 70px;
  margin-bottom: auto;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hp-payout-img svg, .hp-gc-icon svg {
  width: 100%;
  height: 100%;
}
.hp-payout-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 24px;
  z-index: 1;
}
.hp-payout-network {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

/* Brand Colors */
/* All payout cards share one full-bleed card image, uniformly framed at 640x640.
   The fallback color matches each card so it looks right before the image loads. */
.card-usdt   { background: #0c3b30 url('/img/payouts/usdt.webp')   center/100% no-repeat; }
.card-usdc   { background: #0a1f5c url('/img/payouts/usdc.webp')   center/100% no-repeat; }
.card-btc    { background: #1a0d00 url('/img/payouts/btc.webp')    center/100% no-repeat; }
.card-eth    { background: #1a0f3a url('/img/payouts/eth.webp')    center/100% no-repeat; }
.card-sol    { background: #14112e url('/img/payouts/sol.webp')    center/100% no-repeat; }
.card-doge   { background: #8a6d1f url('/img/payouts/doge.webp')   center/100% no-repeat; }
.card-amazon { background: #d4d8dd url('/img/payouts/amazon.webp') center/100% no-repeat; }
.card-apple  { background: #5b2bd6 url('/img/payouts/apple.webp')  center/100% no-repeat; }
.card-xbox   { background: #0b590b url('/img/payouts/xbox.webp')   center/100% no-repeat; }
.card-pubg   { background: #0a0805 url('/img/payouts/pubg.webp')   center/100% no-repeat; }


/* Image-backed cards: image is the whole design, skip the top-highlight ::before */
.hp-payout-card.has-bg::before { display: none; }

.hp-gc-icon img {
  width: 100%;
  height: 100%;
  max-height: 70px;
  object-fit: contain;
  border-radius: 6px;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-earn-grid { grid-template-columns: repeat(2,1fr); }
  .hp-why-grid  { grid-template-columns: repeat(2,1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .hp-hero-inner   { grid-template-columns: 1fr; gap: 40px; }
  .hp-hero-visual  { display: none; }
  .hp-steps        { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .hp-steps::before { display: none; }
  .hp-earn-grid    { grid-template-columns: 1fr 1fr; }
  .hp-why-grid     { grid-template-columns: 1fr; }
  .hp-payout-inner { grid-template-columns: 1fr; }
  .hp-section      { padding: 56px 0; }
}
@media (max-width: 540px) {
  .hp-payout-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 470px) {
  .hp-earn-grid { grid-template-columns: 1fr; }
}


/* ─── Wider container on public homepage (desktop) ──────────────── */
body.public-page .container {
  max-width: 1270px;
}

/* ─── Cohesive duotone icon tiles (premium brand-green system) ──────
   One unified palette across How-it-works / Ways-to-earn / Why cards,
   replacing the old multi-coloured gradient circles. Custom inline
   SVGs use currentColor + a soft ".d" backing layer for a clean,
   friendly duotone look. */
/* Bare gradient icon — sits cleanly on the card, no competing box */
.tp-ico {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  transition: transform .25s ease;
}
.tp-ico svg {
  width: 34px; height: 34px; display: block;
  filter: drop-shadow(0 2px 7px rgba(52,211,153,.28));
}
.tp-ico svg .d { opacity: .2; }
.tp-ico--left { margin-left: 0; margin-right: 0; }
.tp-ico--sm svg { width: 30px; height: 30px; }

.hp-earn-card:hover .tp-ico,
.hp-why-card:hover .tp-ico { transform: translateY(-2px) scale(1.04); }

/* ─── Premium reward cards · centered, elevated, glow-free ──────────
   Benchmark = the payout-method cards: centered content, clean
   elevated surface, subtle top sheen, refined gradient icon "chip".
   Shared by How-it-works / Ways-to-earn / Why. */

/* Centered section headers for a balanced, premium feel */
.hp-steps-section .hp-section-label,
.hp-steps-section .hp-section-title,
.hp-steps-section .hp-section-sub,
.hp-earn-section .hp-section-label,
.hp-earn-section .hp-section-title,
.hp-earn-section .hp-section-sub,
.hp-why-section .hp-section-label,
.hp-why-section .hp-section-title,
.hp-why-section .hp-section-sub { text-align: center; }
.hp-steps-section .hp-section-sub,
.hp-earn-section .hp-section-sub,
.hp-why-section .hp-section-sub { margin-left: auto; margin-right: auto; }

.hp-earn-section .hp-earn-grid { gap: 24px; }
.hp-steps-cards { gap: 24px; }
.hp-steps-cards::before { display: none; }   /* drop old timeline connector */

/* Card — centered, balanced, no random glow */
.earn-card {
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px 34px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.earn-card > * { position: relative; z-index: 1; }

/* subtle glassy top sheen (replaces the corner blur) */
.earn-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 30%);
  transform: none; height: auto;
  pointer-events: none; z-index: 0;
}
.earn-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 22px 46px -26px rgba(0,0,0,.75);
}

/* refined gradient icon chip — bigger visual, no glow */
.earn-ico {
  position: relative;
  width: 74px; height: 74px; border-radius: 21px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; color: #fff;
  background: linear-gradient(145deg, var(--g1), var(--g2));
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.45),
    inset 0 -4px 9px rgba(0,0,0,.18),
    0 6px 16px -9px rgba(0,0,0,.6);
  transition: transform .25s ease;
}
.earn-ico svg { width: 38px; height: 38px; display: block; }
.earn-ico svg .d { opacity: .3; }
.earn-card:hover .earn-ico { transform: translateY(-2px); }

.earn-card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.earn-card p  { font-size: .92rem; color: var(--text-muted); line-height: 1.65; max-width: 250px; margin: 0 auto; }

/* Step-number chip on the How-it-works tiles */
.step-num-badge {
  position: absolute; top: -10px; right: -10px;
  min-width: 26px; height: 26px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 100px;
  background: var(--bg-surface);
  color: #fff; font-size: .76rem; font-weight: 800;
  border: 1.5px solid rgba(255,255,255,.2);
  box-shadow: 0 3px 9px rgba(0,0,0,.55);
}

/* Why grid: 6-up stays calm with a slightly smaller chip */
.hp-why-card.earn-card { padding: 36px 26px 32px; }
.hp-why-card .earn-ico { width: 66px; height: 66px; border-radius: 19px; margin-bottom: 20px; }
.hp-why-card .earn-ico svg { width: 34px; height: 34px; }
.hp-why-card h4 { font-size: 1.12rem; }

@media (max-width: 560px) {
  .hp-steps-cards { grid-template-columns: 1fr; }
}
