body{
  font-family:'Inter',sans-serif;
  background:#eef2f7;
  padding-bottom:24px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Header */
.app-header{
  position:sticky; top:0; z-index:1000;
  background:#fff;
  padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
}
.brand-logo{
  width:34px; height:34px;
  border-radius:12px;
  background:#2563eb;
  color:#fff;
  display:grid; place-items:center;
  font-size:16px;
  box-shadow:0 10px 24px rgba(37,99,235,0.25);
}
.brand-name{
  font-weight:800;
  letter-spacing:-0.02em;
  color:#0f172a;
  font-size:15px;
}
.balance-pill{
  background:#eef4ff;
  color:#2563eb;
  padding:7px 14px;
  border-radius:16px;
  font-weight:800;
  font-size:15px;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,0.10);
}
.avatar{
  width:38px; height:38px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 12px 28px rgba(0,0,0,0.12);
  border:2px solid #fff;
}

/* Quick Actions */
.qa-wrap{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
  padding:12px;
  border-radius:26px;
  background:#f6f8fc;
  box-shadow:0 18px 44px rgba(15,23,42,0.06);
}
.qa-btn{
  border-radius:22px;
  font-weight:800;
  padding:14px 10px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  min-width:0;
  line-height:1;
  border:0;
}
.qa-btn i{ font-size:22px; }
.qa-label{ font-size:12px; font-weight:800; opacity:0.9; }
.qa-primary{ background:#2563eb; color:#fff; box-shadow:0 16px 34px rgba(37,99,235,0.22); }
.qa-soft{ background:#eef2f7; color:#0f172a; }

/* Cards */
.card-app{
  border:none;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 44px rgba(15,23,42,0.06);
}

/* Stat tiles */
.stat-tile{
  background:#fff;
  border-radius:22px;
  padding:18px 14px;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,0.06);
}
.stat-ico{
  width:38px; height:38px;
  border-radius:14px;
  display:grid; place-items:center;
  background:#eef4ff;
  color:#2563eb;
  margin:0 auto 8px auto;
  font-size:18px;
}
.stat-value{
  font-size:20px;
  font-weight:800;
  letter-spacing:-0.02em;
  color:#0f172a;
}
.stat-label{ font-size:12px; color:#6b7280; }

/* Survey card */
.survey-card{ display:flex; align-items:center; gap:14px; }
.survey-icon{
  width:58px; height:58px;
  border-radius:18px;
  background:#f1f5f9;
  display:flex; align-items:center; justify-content:center;
  font-size:26px;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,0.06);
}

/* ✅ Survey font fix */
.survey-title{
  font-size:14px;
  font-weight:600;
  letter-spacing:-0.005em;
  color:#0f172a;
  line-height:1.2;
}
.survey-subtitle{
  font-size:12px;
  font-weight:600;
  line-height:1.2;
}

.earn-btn{
  background:#34d399;
  color:#fff;
  border-radius:18px;
  font-weight:800;
  padding:12px 16px;
  white-space:nowrap;
  box-shadow:0 14px 30px rgba(52,211,153,0.22);
}

/* Pretty rows */
.pretty-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:22px;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,0.06);
}
.mini-avatar{
  width:40px; height:40px;
  border-radius:14px;
  background:#eef2ff;
  display:grid; place-items:center;
  color:#2563eb;
  font-weight:800;
  letter-spacing:-0.02em;
}

/* Pills */
.pill{
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  background:#f1f5f9;
  color:#0f172a;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,0.06);
}
.pill-success{
  background:rgba(52,211,153,0.14);
  color:#047857;
  box-shadow:inset 0 0 0 1px rgba(52,211,153,0.25);
}
.pill-blue{
  background:rgba(37,99,235,0.10);
  color:#1d4ed8;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,0.18);
}

/* Menu items */
.menu-item{
  text-decoration:none;
  color:#0f172a;
  background:#fff;
  border-radius:16px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 10px 24px rgba(0,0,0,0.05);
}
.menu-item i{ color:#2563eb; font-size:18px; }
.menu-item span:nth-child(2){ font-weight:700; }
.menu-item .pill{ margin-left:auto; }

/* Sheets (iOS-safe) */
.no-scroll{ overflow:hidden; height:100vh; }

/* Overlay must NOT block taps when hidden */
.sheet-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.45);
  opacity:0;
  pointer-events:none;
  transition:opacity 160ms ease;
  z-index:3000;
}
.sheet-overlay.show{ opacity:1; pointer-events:auto; }

/* Sheets: use visibility+opacity to avoid iOS click-through / ghost sheets */
.sheet{
  position:fixed;
  left:0; right:0; bottom:0;
  background:#fff;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
  z-index:3100;
  max-height:84vh;
  overflow:hidden;

  visibility:hidden;
  pointer-events:none;
  opacity:0;
  transform:translateY(110%);
  transition:transform 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
}
.sheet.show{
  visibility:visible;
  pointer-events:auto;
  opacity:1;
  transform:translateY(0);
  transition:transform 180ms ease, opacity 180ms ease, visibility 0s;
}
.sheet-handle{
  width:54px; height:5px;
  border-radius:999px;
  background:rgba(15,23,42,0.16);
  margin:10px auto 2px auto;
}
.sheet-header{
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(15,23,42,0.06);
}
.sheet-body{
  padding:14px 16px 18px 16px;
  overflow:auto;
  max-height:calc(84vh - 64px);
  -webkit-overflow-scrolling:touch;
}

.start-btn{
  background:#34d399;
  color:#fff;
  font-size:18px;
  font-weight:800;
  border-radius:18px;
  padding:14px;
  box-shadow:0 14px 34px rgba(52,211,153,0.22);
  border:0;
}

/* Smooth transitions */
.qa-btn {
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

/* Hover ONLY for inactive buttons */
.qa-soft:hover,
.qa-soft:focus {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(37,99,235,0.22) !important;
}

.qa-soft:hover i,
.qa-soft:focus i {
  color: #ffffff !important;
}

/* Lock active button (no hover change) */
.qa-primary:hover,
.qa-primary:focus {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(37,99,235,0.22) !important;
  transform: none;
}

/* Optional tap feel */
.qa-btn:active {
  transform: scale(0.98);
}


/* App view transitions */
#appView.fade-out{ opacity:0; transform:translateY(6px); transition:120ms ease; }
#appView.fade-in{ opacity:1; transform:translateY(0); transition:180ms ease; }

/* ✅ Mobile: qa-wrap skini “outer box”, i p-3->p-2 */
@media (max-width:576px){
  .qa-wrap{
    background:transparent;
    box-shadow:none;
    padding:0;
    gap:10px;
  }
  .qa-soft{
    background:#fff;
    box-shadow:0 10px 26px rgba(15,23,42,0.06);
  }
}

@media (max-width:360px){
  .qa-wrap{ gap:10px; }
  .qa-btn{ padding:12px 8px; border-radius:20px; }
  .qa-btn i{ font-size:20px; }
  .qa-label{ font-size:11px; }
}


/* =========================================================
   Tap2Earn - Shared Card (legacy pages)
   NOTE: register uses t2e-reg-card to avoid collisions
========================================================= */
.t2e-card{
  background:#fff;
  border-radius:22px;
  border:1px solid rgba(15,23,42,0.06);
  box-shadow:0 18px 44px rgba(15,23,42,0.06);
  padding:14px;
}

/* =========================================================
   Tap2Earn - Invite v2 (Premium, iOS-like) - SCOPED ONLY
========================================================= */

.t2e-invite{
  /* Desktop -> phone width, mobile -> full */
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 24px;

  /* theme vars */
  --bg: rgba(255,255,255,.86);
  --card: rgba(255,255,255,.92);
  --border: rgba(0,0,0,.07);
  --text: rgba(15,23,42,.95);
  --muted: rgba(15,23,42,.62);
  --muted2: rgba(15,23,42,.45);
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --accent: #34d399; /* mint */
  --accent2: rgba(52, 211, 153, .14);
  --radius: 18px;
  --radius2: 14px;
  color: var(--text);
}


/* Header */
.t2e-invite .t2e-head{ margin-bottom: 12px; }
.t2e-invite .t2e-title{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.t2e-invite .t2e-sub{
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Grid */
.t2e-invite .t2e-grid2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 420px){
  .t2e-invite .t2e-grid2{ grid-template-columns: 1fr 1fr; }
}

/* Stat cards */
.t2e-invite .t2e-stat{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.t2e-invite .t2e-stat-top{
  display:flex;
  align-items:center;
  gap: 12px;
}
.t2e-invite .t2e-stat-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent2);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.t2e-invite .t2e-stat-icon svg{
  width: 22px;
  height: 22px;
  fill: var(--accent);
}
.t2e-invite .t2e-stat-meta{ min-width: 0; }
.t2e-invite .t2e-stat-value{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.t2e-invite .t2e-stat-label{
  font-size: 12px;
  color: var(--muted2);
  margin-top: 4px;
}
.t2e-invite .t2e-stat-foot{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Banner */
.t2e-invite .t2e-banner{
  margin: 12px 0;
  border-radius: var(--radius2);
  background: var(--accent2);
  border: 1px solid rgba(52, 211, 153, .22);
  padding: 12px 12px;
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.t2e-invite .t2e-banner-ico{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.t2e-invite .t2e-banner-ico svg{
  width: 18px;
  height: 18px;
  fill: var(--accent);
}
.t2e-invite .t2e-banner-text{
  font-size: 13px;
  color: rgba(15,23,42,.78);
  line-height: 1.35;
}

/* Cards */
.t2e-invite .t2e-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 12px;

  /* kill any global centering */
  text-align: left !important;
}
.t2e-invite .t2e-card-title{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
}

/* Link row */
.t2e-invite .t2e-linkrow{
  display:flex;
  gap: 10px;
  align-items:center;
  width: 100%;
}

.t2e-invite .t2e-input{
  flex: 1 1 auto;
  min-width: 0; /* IMPORTANT: prevents pushing buttons away */
  width: auto !important;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.95);
  font-size: 13px;
  color: rgba(15,23,42,.92);
  outline: none;
}

/* Buttons */
.t2e-invite .t2e-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.9);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.t2e-invite .t2e-btn-ico svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .9;
}

.t2e-invite .t2e-btn-primary{
  background: rgba(52, 211, 153, .92);
  border-color: rgba(52, 211, 153, .95);
  color: rgba(3, 12, 10, .88);
}
.t2e-invite .t2e-btn-primary:hover{ filter: brightness(.98); }

.t2e-invite .t2e-btn-ghost{
  background: rgba(255,255,255,.88);
  border-color: rgba(0,0,0,.10);
  color: rgba(15,23,42,.85);
}
.t2e-invite .t2e-btn-link{ width: auto; }

/* Actions row */
.t2e-invite .t2e-actions{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}
.t2e-invite .t2e-actions .t2e-btn{
  flex: 1 1 0;
}

/* Perks */
.t2e-invite .t2e-perks{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  display:grid;
  gap: 10px;
}
.t2e-invite .t2e-perk{
  display:flex;
  align-items:center;
  gap: 10px;
}
.t2e-invite .t2e-pill{
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  font-weight: 900;
  font-size: 13px;
  color: rgba(15,23,42,.85);
}
.t2e-invite .t2e-perk-text{
  font-size: 13px;
  color: rgba(15,23,42,.75);
  line-height: 1.3;
}

/* Toast */
.t2e-invite .t2e-toast{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(15,23,42,.78);
  opacity: 0;
  transform: translateY(2px);
  transition: .18s ease;
}
.t2e-invite .t2e-toast.show{
  opacity: 1;
  transform: translateY(0);
}

/* Referral list rows (mobile-friendly) */
.t2e-invite .t2e-row{
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(255,255,255,.92);
}

.t2e-invite .t2e-row-user{
  display:flex;
  gap: 10px;
  align-items:center;
}
.t2e-invite .t2e-avatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(15,23,42,.8);
}
.t2e-invite .t2e-user-meta{ min-width: 0; }
.t2e-invite .t2e-user-name{
  font-weight: 900;
  font-size: 14px;
}
.t2e-invite .t2e-user-sub{
  font-size: 12px;
  color: rgba(15,23,42,.55);
  margin-top: 2px;
}

.t2e-invite .t2e-row-metrics{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.t2e-invite .t2e-metric{
  border-radius: 14px;
  padding: 10px;
  background: rgba(15,23,42,.05);
}
.t2e-invite .t2e-metric-label{
  font-size: 11px;
  color: rgba(15,23,42,.52);
}
.t2e-invite .t2e-metric-val{
  margin-top: 4px;
  font-weight: 900;
  font-size: 14px;
}

/* Empty state */
.t2e-invite .t2e-empty{
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 16px;
  padding: 18px 14px;
  margin-top: 10px;
  text-align:center;
  background: rgba(255,255,255,.9);
}
.t2e-invite .t2e-empty-ico{ font-size: 22px; }
.t2e-invite .t2e-empty-title{
  margin-top: 8px;
  font-weight: 900;
  font-size: 14px;
}
.t2e-invite .t2e-empty-sub{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(15,23,42,.6);
}

/* Invite header card */
.t2e-invite .t2e-head-card{
  margin-bottom: 12px;
  padding: 16px;
}

.t2e-invite .t2e-head-card .t2e-title{
  font-size: 20px;
}

.t2e-invite .t2e-head-card .t2e-sub{
  margin-top: 6px;
}

/* OGAds offer cards (clean, mobile-first) */
.t2e-offer-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px; /* fino, bez previše */
}

/* icon wrapper: fixed size + perfect crop */
.t2e-offer-ico{
  width:44px;
  height:44px;
  border-radius:14px; /* iOS-like */
  overflow:hidden;
  flex:0 0 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.t2e-offer-ico img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* fallback if image fails */
.t2e-offer-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  opacity:0.9;
}
.t2e-offer-ico:not(.is-fallback) .t2e-offer-fallback{
  display:none;
}

/* middle text */
.t2e-offer-mid{
  flex:1;
  min-width:0; /* IMPORTANT: allows ellipsis */
}
.t2e-offer-title{
  font-weight:700;
  font-size:14px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.t2e-offer-sub{
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* right side payout */
.t2e-offer-right{
  flex:0 0 auto;
  text-align:right;
  line-height:1.05;
}
.t2e-offer-earn{
  font-size:11px;
  opacity:0.7;
}
.t2e-offer-pay{
  font-weight:800;
  font-size:14px;
}


.survey-sheet-icon{
  width:64px;
  height:64px;
  margin:0 auto 8px;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

#surveySheetImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

#surveySheetEmoji{
  font-size:32px;
}

.t2e-offer-right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.t2e-earn-pill{
  background: rgba(25, 135, 84, 0.14);   /* Bootstrap-ish green tint */
  color: #198754;                         /* Bootstrap success */
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 360px){
  .t2e-earn-pill{ padding:7px 9px; font-size:11px; }
}

/* 1:1 pretty rows (kao tvoj primjer) */
.pretty-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
}

/* umjesto mini-avatar slova -> mini-icon badge ISTIH dimenzija */
.mini-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  font-size:14px;
  font-weight:800;
}

/* tipovi */
.mini-icon.offer{
  background: rgba(13,110,253,.10);
  color:#0d6efd;
}
.mini-icon.referral{
  background: rgba(25,135,84,.12);
  color:#198754;
}
.mini-icon.bonus{
  background: rgba(255,193,7,.16);
  color:#b78103;
}

/* subtitle kao u primjeru (12px) */
.tx-sub{
  font-size:12px;
  line-height:1.2;
  margin-top:2px;
}

/* pill (ako već imaš pill/pill-success, ovo možeš preskočit) */
.pill{
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}
.pill-success{
  background: rgba(25,135,84,.14);
  color:#198754;
}
.pill-danger{
  background: rgba(220,53,69,.14);
  color:#dc3545;
}


/* Help icons */
.help-ico{
  width:42px;height:42px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  flex:0 0 42px;font-size:18px;
}
.help-ico-sm{
  width:34px;height:34px;border-radius:12px; flex-basis:34px; font-size:16px;
}
.help-ico-primary{ background: rgba(13,110,253,.12); color:#0d6efd; }
.help-ico-info{ background: rgba(13,202,240,.14); color:#0dcaf0; }
.help-ico-success{ background: rgba(25,135,84,.12); color:#198754; }
.help-ico-warn{ background: rgba(255,193,7,.18); color:#b78103; }

/* Help accordion look */
.help-acc .accordion-item{ border:0; background:transparent; margin-bottom:10px; }
.help-acc .accordion-button{
  border-radius:16px !important;
  font-weight:800;
  font-size:13px;
  padding:14px 14px;
}
.help-acc .accordion-button:focus{ box-shadow:none; }
.help-acc .accordion-body{
  font-size:12px;
  line-height:1.55;
  color: rgba(0,0,0,.75);
}

/* Optional soft pill for payments list */
.pill-soft{
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.7);
  border-radius:999px;
  padding:6px 10px;
  font-weight:800;
}

/* =========================================================
   Tap2Earn - Register Prelander (DARK) - FULLY SCOPED
   Scope: .t2e-register (wrapper) + body.t2e-auth-bg (page bg)
========================================================= */

/* Page background toggled by JS when page === login/register */
body.t2e-auth-bg{
  background:
    radial-gradient(1200px 520px at 20% -10%, rgba(46,213,115,.14), transparent 60%),
    radial-gradient(900px 420px at 110% 10%, rgba(0,123,255,.14), transparent 55%),
    linear-gradient(180deg, #070a12, #050710);
  min-height: 100vh;
  color: rgba(255,255,255,.92);
}

/* Wrapper (only register uses this class) */
.t2e-register{
  --t2e-text: rgba(255,255,255,.92);
  --t2e-muted: rgba(255,255,255,.68);
  --t2e-muted2: rgba(255,255,255,.55);
  --t2e-border: rgba(255,255,255,.10);
  --t2e-shadow: 0 24px 70px rgba(0,0,0,.45);
  --t2e-shadow2: 0 18px 60px rgba(0,0,0,.35);
  --t2e-green1:#2fe07a;
  --t2e-green2:#17b65c;
  --t2e-greenGlow: rgba(46,213,115,.35);

  max-width: 560px;
  margin: 0 auto;
  padding: 16px 14px 42px;
  color: var(--t2e-text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display","SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* HERO */
.t2e-register .t2e-hero{
  position: relative;
  border-radius: 26px;
  padding: 16px;
  background:
    radial-gradient(1200px 380px at 40% -40%, rgba(46,213,115,.22), transparent 60%),
    radial-gradient(900px 320px at 110% 10%, rgba(0,123,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: var(--t2e-shadow);
  overflow: hidden;
}

.t2e-register .t2e-brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.t2e-register .t2e-logo{ display:flex; align-items:center; gap:10px; min-width:0; }

.t2e-register .t2e-badge{
  display:flex; align-items:center; gap:8px;
  flex-shrink:0;
  font-size:12px; font-weight:950; letter-spacing:.2px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
}

/* Title/sub */
.t2e-register .t2e-title{
  margin-top: 12px;
  font-weight: 950;
  letter-spacing: -0.9px;
  font-size: 30px;
  line-height: 1.06;
}
.t2e-register .t2e-title .nowrap{ white-space:nowrap; }

.t2e-register .t2e-sub{
  margin-top: 10px;
  color: var(--t2e-muted);
  font-weight: 750;
  font-size: 14px;
  line-height: 1.45;
}

/* Pills */
.t2e-register .t2e-pillrow{ margin-top:14px; display:flex; flex-wrap:wrap; gap:10px; }

.t2e-register .t2e-pill{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 950;
  font-size: 12px;
  color: rgba(255,255,255,.84);
}

/* KPIs */
.t2e-register .t2e-kpis{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.t2e-register .t2e-kpi{
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px;
}
.t2e-register .t2e-kpi .label{ font-size:11px; font-weight:950; color: var(--t2e-muted2); }
.t2e-register .t2e-kpi .value{ margin-top:4px; font-size:18px; font-weight:950; letter-spacing:-0.4px; }

/* Form card */
.t2e-register .t2e-formcard{
  margin-top: 14px;
  border-radius: 26px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--t2e-shadow2);
}

.t2e-register .t2e-formhead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.t2e-register .t2e-formhead h3{
  margin:0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.t2e-register .t2e-formhead p{
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--t2e-muted);
  font-weight: 700;
  line-height: 1.35;
}

.t2e-register .t2e-inputlabel{
  margin-top: 12px;
  font-size: 12px;
  font-weight: 950;
  color: rgba(255,255,255,.84);
  letter-spacing: .2px;
}

/* Input (iOS zoom safe: 16px) */
.t2e-register #regEmail,
.t2e-register .t2e-reg-input{
  width: 100% !important;
  display:block !important;
  margin-top: 8px;
  border-radius: 16px !important;
  padding: 14px 14px !important;
  background: rgba(0,0,0,.25) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.92) !important;
  font-weight: 850;
  font-size: 16px !important; /* iOS no-zoom */
  line-height: 1.2 !important;
  outline: none !important;
  box-shadow: none !important;
}
.t2e-register .t2e-reg-input::placeholder{ color: rgba(255,255,255,.45) !important; font-weight: 800; }
.t2e-register .t2e-reg-input:focus{
  border-color: rgba(46,213,115,.55) !important;
  box-shadow: 0 0 0 6px rgba(46,213,115,.10) !important;
}

/* CTA */
.t2e-register .t2e-reg-cta{
  margin-top: 12px;
  width: 100%;
  border-radius: 18px;
  padding: 16px 14px;
  font-weight: 950;
  letter-spacing: .2px;
  border: 0;
  color: #06210f;
  background: linear-gradient(180deg, var(--t2e-green1), var(--t2e-green2));
  box-shadow: 0 18px 45px var(--t2e-greenGlow);
}
.t2e-register .t2e-reg-cta:active{ transform: translateY(1px); }

.t2e-register .t2e-trust{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.t2e-register .t2e-trust .item{
  font-size: 12px;
  font-weight: 950;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
}

/* Below cards/grid */
.t2e-register .t2e-grid{ margin-top: 14px; display:grid; grid-template-columns: 1fr; gap:12px; }

.t2e-register .t2e-reg-card{
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.t2e-register .t2e-reg-card h4{
  margin:0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.t2e-register .t2e-reg-card .muted{
  margin-top: 6px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* FAQ hierarchy */
.t2e-register .t2e-faq .t2e-faq-item{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.t2e-register .t2e-faq .t2e-faq-item:first-child{ border-top:0; padding-top:0; }
.t2e-register .t2e-faq .t2e-faq-q{
  font-weight: 950;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  margin-bottom: 4px;
}
.t2e-register .t2e-faq .t2e-faq-a{
  font-weight: 700;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.45;
}

/* Center helper + login button */
.t2e-register .t2e-center{
  text-align:center;
  display:flex;
  justify-content:center;
}
.t2e-register .t2e-linkbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86) !important;
  font-weight: 950;
  font-size: 13px;
  text-decoration: none !important;
  width: auto;
  max-width: 100%;
}
.t2e-register .t2e-linkbtn:active{ transform: translateY(1px); }

/* Footer disclaimer */
.t2e-register .t2e-footer{
  margin-top: 18px;
  text-align:center;
  color: rgba(255,255,255,.55);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.45;
}
.t2e-register .t2e-footer a{ color: rgba(255,255,255,.70); font-weight: 900; text-decoration:none; }

/* Mobile */
@media (max-width: 430px){
  .t2e-register{ padding: 14px 12px 40px; }
  .t2e-register .t2e-title{ font-size: 23px; letter-spacing:-0.6px; }
  .t2e-register .t2e-sub{ font-size: 13px; }

  .t2e-register .t2e-kpis{ grid-template-columns: 1fr 1fr; }
  .t2e-register .t2e-kpi .value{ font-size: 16px; }

  .t2e-register .t2e-badge{ padding: 7px 9px; font-size: 11px; }
  .t2e-register .t2e-badge .t2e-badgeText{ display:none; }
}

@media (max-width: 360px){
  .t2e-register .t2e-title{ font-size: 22px; }
  .t2e-register .t2e-pill{ font-size: 11px; padding: 9px 10px; }
}


/* ===== Tap2Earn Login (LIGHT app style) ===== */

.t2e-login{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.t2e-login-card{
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 24px;
  padding: 20px 18px 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

/* Brand */
.t2e-login-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.t2e-login-logo{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2fe07a, #17b65c);
  color: #06210f;
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .5px;
}

.t2e-login-title{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.2px;
  color: #0b1220;
}

.t2e-login-sub{
  font-size: 13px;
  font-weight: 700;
  color: #6b7a90;
}

/* Form */
.t2e-login-form{
  display: flex;
  flex-direction: column;
}

.t2e-login-label{
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #46556b;
}

.t2e-login-input{
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dfe3eb;
  background: #fff;
  font-size: 16px; /* iOS zoom fix */
  font-weight: 800;
  color: #0b1220;
}

.t2e-login-input::placeholder{
  color: #a0acbd;
}

.t2e-login-input:focus{
  outline: none;
  border-color: #2fe07a;
  box-shadow: 0 0 0 5px rgba(46,213,115,.15);
}

/* Login button */
.t2e-login-btn{
  margin-top: 16px;
  padding: 15px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(180deg, #2fe07a, #17b65c);
  color: #06210f;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.t2e-login-btn:active{
  transform: translateY(1px);
}

/* Message */
.t2e-login-msg{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #d63031;
  min-height: 18px;
}

/* Divider */
.t2e-login-divider{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: #a0acbd;
  font-size: 12px;
  font-weight: 800;
}

.t2e-login-divider::before,
.t2e-login-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e9f2;
}

.t2e-login-divider span{
  padding: 0 6px;
}

/* Register CTA */
.t2e-login-alt{
  text-align: center;
}

.t2e-login-alt-text{
  font-size: 13px;
  font-weight: 700;
  color: #6b7a90;
  margin-bottom: 8px;
}

.t2e-login-register-btn{
  display: inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #dfe3eb;
  background: #f8f9fc;
  color: #0b1220;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.t2e-login-register-btn:active{
  transform: translateY(1px);
}

/* ===== Login spacing fix ===== */

/* Outer container – makni višak gore */
/* ===== FINAL spacing fix (top + bottom) ===== */

/* Outer wrapper */
.t2e-login{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  align-items: flex-start !important;
}

/* Card inner spacing */
.t2e-login-card{
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* Register CTA block (dole) – manje zraka */
.t2e-login-alt{
  margin-top: 10px !important;
}

/* Divider spacing */
.t2e-login-divider{
  margin: 14px 0 10px !important;
}

/* Message placeholder ne gura layout */
.t2e-login-msg{
  min-height: 14px !important;
}

/* Extra small phones */
@media (max-width: 390px){
  .t2e-login{
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}


/* ===========================
   Tap2Earn – GREEN BUTTON FIX
   =========================== */

/* Primary green buttons */
.btn-success,
.t2e-earn-pill,
.start-btn {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Hover */
.btn-success:hover,
.t2e-earn-pill:hover,
.start-btn:hover {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

/* Active / tap (MOBILE FIX) */
.btn-success:active,
.btn-success:focus,
.btn-success:focus-visible,
.t2e-earn-pill:active,
.t2e-earn-pill:focus,
.start-btn:active,
.start-btn:focus {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Remove Bootstrap white overlay on active */
.btn-success::after,
.btn-success::before {
  display: none !important;
}

/* iOS tap highlight FIX */
* {
  -webkit-tap-highlight-color: transparent;
}
.start-btn {
  font-weight: 900;
  border-radius: 16px;
  padding: 14px 18px;
  transition: background-color .15s ease, transform .08s ease;
}

.start-btn:active {
  transform: scale(0.97);
}

/* (sheet overlay / sheet behavior is defined earlier; keep only button/tap fixes here) */

