:root {
  color-scheme: dark;
  --black: #05080f;
  --panel: #0a0e17;
  --panel-soft: #111722;
  --line: #222b38;
  --text: #f7f8fb;
  --muted: #a7afba;
  --blue: #4169ff;
  --cash-blue: #1462ff;
  --red: #ed1d18;
  --green: #18c779;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: var(--text);
}

button {
  font: inherit;
}

svg {
  display: block;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  background: #fff;
  color: #303846;
  box-shadow: var(--shadow);
  padding-bottom: 218px;
}

.app-hidden {
  display: none;
}

.startup-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #fff;
  color: #1d2530;
}

.facebook-loader {
  align-content: center;
  gap: 18px;
}

.facebook-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 4.3rem;
  font-weight: 900;
  line-height: 1;
}

.startup-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #dbe7ff;
  border-top-color: #1877f2;
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.facebook-loader p {
  margin: 0;
  color: #677385;
  font-weight: 800;
}

.welcome-screen {
  background:
    radial-gradient(circle at top, rgba(24, 119, 242, 0.14), transparent 34%),
    #f7f9fc;
}

.welcome-card {
  width: min(100%, 390px);
  padding: 26px 22px;
  border: 1px solid #e2e7ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.meta-logo {
  display: block;
  width: min(260px, 82%);
  height: auto;
  margin: 20px auto 14px;
}

.welcome-card h1 {
  margin: 0 0 14px;
  color: #17202c;
  font-size: 1.72rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.welcome-card p {
  margin: 0 0 14px;
  color: #566173;
  font-weight: 650;
  line-height: 1.48;
}

.instagram-profile {
  position: relative;
  background: var(--black);
  color: var(--text);
  padding-bottom: 4px;
}

.profile-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 42px;
  align-items: center;
  min-height: 64px;
  padding: 8px 14px 6px;
  gap: 6px;
  background: rgba(5, 8, 15, 0.96);
  backdrop-filter: blur(10px);
}

.nav-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: invert(1);
}

.nav-icon .back-icon {
  transform: rotate(-90deg);
}

.nav-icon.is-muted {
  opacity: 0.45;
}

.username-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: 0;
}

.verified {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.wallet-pill {
  display: inline-grid;
  place-items: center;
  min-width: 82px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 98, 255, 0.16);
  color: #58e59b;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.profile-progress {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: #161d28;
}

.profile-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cash-blue);
  transition: width 260ms ease;
}

.profile-progress strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.earn-tip {
  position: absolute;
  right: 14px;
  top: 82px;
  z-index: 2;
  width: 96px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(20, 98, 255, 0.95);
  box-shadow: 0 14px 30px rgba(20, 98, 255, 0.28);
  text-align: right;
}

.earn-tip span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.earn-tip strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1;
}

.profile-summary {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: center;
  padding: 58px 28px 12px;
}

.avatar-ring {
  width: 96px;
  height: 96px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(#f9ce34, #ee2a7b, #6228d7, #f9ce34);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border: 4px solid var(--black);
  border-radius: inherit;
  object-fit: cover;
  background: #252b36;
}

.profile-info h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: 1.1rem;
  line-height: 1.2;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats-row div {
  min-width: 0;
}

.stats-row strong,
.stats-row span {
  display: block;
  line-height: 1.05;
}

.stats-row strong {
  font-size: 1.38rem;
  font-weight: 800;
}

.stats-row span {
  margin-top: 5px;
  color: #e7eaf0;
  font-size: 0.92rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 28px 10px;
  color: #f3f5f8;
  font-size: 1rem;
  font-weight: 720;
}

.profile-link img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  filter: invert(1);
}

.followed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px 16px;
}

.mini-avatars {
  display: flex;
  width: 88px;
  flex: 0 0 auto;
}

.mini-avatars img {
  width: 36px;
  height: 36px;
  margin-right: -8px;
  border: 2px solid var(--black);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #202838;
}

.followed-row p {
  margin: 0;
  color: #f1f3f7;
  font-size: 0.9rem;
  line-height: 1.3;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #141a24;
}

.tab-row span {
  display: grid;
  place-items: center;
  height: 52px;
  color: #9aa3b1;
  border-bottom: 2px solid transparent;
}

.tab-row .is-active {
  color: #fff;
  border-bottom-color: #fff;
}

.tab-row img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: invert(0.72);
}

.tab-row .is-active img {
  filter: invert(1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #151b24;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #252b36;
  filter: blur(12px);
  transform: scale(1.08);
  opacity: 0.78;
}

.review-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 12;
  width: min(100%, 430px);
  padding: 12px 18px 14px;
  background: #fff;
  color: #1d2530;
  box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.22);
  transform: translateX(-50%);
}

.review-panel p {
  margin: 0 auto 10px;
  max-width: 30ch;
  color: #536071;
  text-align: center;
  line-height: 1.35;
  font-weight: 650;
}

.sticky-earning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #eef4ff;
}

.sticky-earning span {
  color: #526074;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sticky-earning strong {
  color: var(--cash-blue);
  font-size: 1.32rem;
  line-height: 1;
}

.reaction-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.reaction-button {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
  transition: transform 150ms ease, filter 150ms ease;
  overflow: hidden;
}

.reaction-button:hover,
.reaction-button:focus-visible {
  transform: translateY(-3px) scale(1.03);
  outline: none;
  filter: brightness(1.04);
}

.reaction-button.nope {
  background: #ff1717;
}

.reaction-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.reaction-button.nope img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.review-count {
  margin-top: 9px;
  color: #697283;
  text-align: center;
  font-size: 0.88rem;
}

.review-count span {
  color: var(--cash-blue);
  font-weight: 850;
}

.icon-credit {
  max-width: 36ch;
  margin-top: 7px !important;
  color: #8791a1 !important;
  font-size: 0.62rem;
  line-height: 1.25 !important;
}

.icon-credit a {
  color: inherit;
}

.transfer-modal {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(3, 6, 12, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.transfer-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.transfer-card {
  width: min(100%, 390px);
  border-radius: 8px;
  background: #fff;
  color: #182231;
  box-shadow: var(--shadow);
  padding: 22px;
}

.transfer-kicker {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9f0ff;
  color: var(--cash-blue);
  font-size: 0.8rem;
  font-weight: 850;
}

.transfer-kicker.warning {
  background: #fff1e5;
  color: #c05b00;
}

.transfer-kicker.success {
  background: #e8fff3;
  color: #0c9c58;
}

.transfer-card h2 {
  margin: 14px 0 8px;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.transfer-copy,
.transfer-check-view p,
.transfer-loading-view p {
  margin: 0 0 18px;
  color: #586474;
  line-height: 1.45;
  font-weight: 600;
}

.transfer-amount,
.transfer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: #eef2f7;
}

.transfer-amount span,
.transfer-summary span {
  color: #536071;
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
}

.transfer-amount strong,
.transfer-summary strong {
  color: var(--cash-blue);
  font-size: 1.55rem;
}

.transfer-card form {
  display: grid;
  gap: 10px;
}

.transfer-card label {
  color: #3c4654;
  font-size: 0.88rem;
  font-weight: 800;
}

.transfer-card input,
.transfer-card select {
  width: 100%;
  height: 48px;
  border: 1px solid #d4d9e2;
  border-radius: 8px;
  background: #fff;
  color: #182231;
  padding: 0 12px;
  font: inherit;
  font-weight: 650;
}

.transfer-submit {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--cash-blue);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.transfer-submit.danger {
  background: #ff1717;
  box-shadow: 0 12px 22px rgba(255, 23, 23, 0.2);
}

.fee-summary {
  margin-top: -8px;
  background: #fff3f3;
}

.fee-summary strong {
  color: #ff1717;
}

.demo-note {
  margin: -2px 0 10px;
  color: #7a8493;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
}

.transfer-loading-view,
.transfer-check-view,
.transfer-complete-view {
  text-align: center;
}

.transfer-meta-logo {
  display: block;
  width: min(230px, 78%);
  height: auto;
  margin: 6px auto 22px;
}

.meta-loader-line {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf8;
  margin: 0 auto 22px;
}

.meta-loader-line span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0064e0, #168aff, #00a6ff);
  animation: metaLine 1100ms ease-in-out infinite;
}

.transfer-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e5ed;
}

.transfer-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cash-blue);
  transition: width 900ms ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes metaLine {
  0% {
    left: -42%;
  }

  55% {
    left: 38%;
  }

  100% {
    left: 102%;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  width: min(92vw, 360px);
  padding: 13px 16px;
  border-radius: 8px;
  background: #111722;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-complete + .review-panel .reaction-button {
  pointer-events: none;
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .phone-shell {
    min-height: auto;
    border-radius: 8px;
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .profile-summary {
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .avatar-ring {
    width: 84px;
    height: 84px;
  }

  .stats-row {
    gap: 8px;
  }

  .stats-row strong {
    font-size: 1.1rem;
  }

  .profile-link,
  .followed-row {
    padding-left: 18px;
    padding-right: 18px;
  }

  .reaction-button {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .earn-tip {
    right: 12px;
    width: 88px;
  }
}
