:root {
  --bg: #0a0d18;
  --panel: rgba(15, 20, 38, 0.78);
  --panel-strong: #11182c;
  --text: #f7f4ea;
  --muted: #b4b8c6;
  --accent: #ff5f45;
  --accent-alt: #f4c95d;
  --accent-cool: #6ad5ff;
  --success: #7cff8f;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 69, 0.25), transparent 30%),
    radial-gradient(circle at top right, rgba(106, 213, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #0b1020 0%, #070910 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.hero {
  padding: 18px 0 32px;
}

.topbar,
.hero-grid,
.social-proof,
.dashboard-grid,
.builder-grid,
.community-grid,
.social-comments-grid,
.top-progress-grid {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  margin-bottom: 36px;
}

.brand-lockup,
.topbar-actions,
.panel-heading,
.hero-card-header,
.feed-item,
.challenge-summary,
.hero-card-metrics,
.hero-stats,
.streak-avatars,
.progress-copy,
.today-proof {
  display: flex;
}

.brand-lockup,
.topbar-actions,
.hero-card-header,
.panel-heading,
.feed-item,
.progress-copy,
.today-proof {
  align-items: center;
}

.brand-lockup,
.topbar-actions,
.hero-card-header,
.panel-heading,
.challenge-summary,
.hero-card-metrics,
.hero-stats,
.streak-avatars,
.feed-item {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #ff8a53);
  color: #120f0c;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
}

.brand-logo-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(255, 95, 69, 0.22));
}

.brand-name,
.brand-tag,
.eyebrow,
.card-label,
.metric-label,
.feed-item p,
.hero-text,
.proof-card p,
.hero-card-copy,
.today-proof p {
  margin: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-tag,
.hero-text,
.proof-card p,
.hero-card-copy,
.feed-item p,
.today-proof p,
label,
input,
select,
textarea {
  color: var(--muted);
}

.inline-select {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow,
.card-label,
.metric-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.topbar-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.solid-button,
.ghost-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.solid-button {
  background: linear-gradient(135deg, var(--accent), #ff8a53);
  color: #120f0c;
  box-shadow: 0 10px 30px rgba(255, 95, 69, 0.28);
}

.top-login-button {
  box-shadow:
    0 12px 30px rgba(255, 95, 69, 0.34),
    0 0 22px rgba(255, 149, 102, 0.42);
}

.ghost-button {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.solid-button:hover,
.ghost-button:hover,
button:hover {
  transform: translateY(-1px);
}

.saved-pulse {
  box-shadow: 0 0 0 2px rgba(95, 255, 165, 0.28), 0 0 24px rgba(95, 255, 165, 0.36);
  transition: box-shadow 180ms ease;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  align-items: center;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
}

h3 {
  margin: 10px 0 0;
  font-size: 1.1rem;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 9vw, 7.2rem);
  letter-spacing: 0.02em;
  max-width: 10ch;
}

.welcome-heading {
  margin: 0;
  color: var(--accent-alt);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.top-progress-card {
  margin-bottom: 24px;
}

.top-progress-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 320px);
  align-items: start;
}

.top-progress-summary,
.quick-proof-card {
  display: grid;
  gap: 16px;
}

.quick-proof-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(106, 213, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(106, 213, 255, 0.08), rgba(255, 95, 69, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.hero-stats li,
.challenge-summary > div,
.hero-card-metrics > div {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats strong,
.challenge-summary strong,
.hero-card-metrics strong,
.progress-copy strong,
.today-proof strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.2rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.card::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 95, 69, 0.16), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-card,
.dashboard-panel,
.proof-card,
.calendar-section,
.builder-grid .card {
  padding: 24px;
}

.hero-card {
  display: grid;
  gap: 18px;
  transform: rotate(2deg);
  background:
    radial-gradient(circle at top right, rgba(255, 106, 61, 0.16), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(106, 213, 255, 0.04)),
    var(--panel);
}

.hero-card-visual {
  animation: floatCard 5s ease-in-out infinite;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(124, 255, 143, 0.12);
  color: var(--success);
  border: 1px solid rgba(124, 255, 143, 0.2);
  font-size: 0.82rem;
}

.status-pill.live {
  color: #120f0c;
  background: linear-gradient(135deg, var(--accent-alt), #ffd98d);
  border-color: transparent;
}

.status-pill.alt {
  color: var(--accent-cool);
  background: rgba(106, 213, 255, 0.1);
  border-color: rgba(106, 213, 255, 0.2);
}

.streak-avatars span,
.feed-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.social-proof,
.dashboard-grid,
.builder-grid,
.community-grid,
.social-comments-grid,
.quick-links-grid,
.quick-start-grid,
.setup-grid,
.group-grid,
.shop-grid,
.bank-grid {
  margin-top: 26px;
}

.social-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 28px;
}

.builder-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.single-column-builder {
  grid-template-columns: 1fr;
}

.community-grid,
.social-comments-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-links-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-start-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.setup-grid,
.group-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-grid {
  display: grid;
  gap: 20px;
}

.proof-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.login-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  justify-content: center;
}

.auth-layout {
  grid-template-columns: minmax(0, 520px) minmax(0, 360px);
  align-items: start;
}

.login-panel {
  width: min(100%, 520px);
  padding: 24px;
}

.auth-visual-panel {
  width: min(100%, 360px);
}

.auth-hero {
  padding: 18px 0 8px;
}

.auth-hero .setup-title {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
}

.auth-card-primary {
  position: relative;
  overflow: hidden;
}

.auth-card-primary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt), var(--accent-cool));
}

.terms-inline-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(244, 201, 93, 0.26);
  background: rgba(244, 201, 93, 0.08);
}

.terms-inline-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.divider-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gauntlet-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.devil-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bank-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 18px;
}

.shop-search-field {
  display: grid;
  gap: 8px;
}

.warning-text {
  color: #ffb199 !important;
}

.proof-card,
.feed-list,
.challenge-form,
.log-form,
.calendar-grid,
.friend-cards,
.comment-list,
.comment-form,
.goal-chips {
  display: grid;
}

.proof-card,
.challenge-form,
.log-form,
.friend-cards,
.comment-list,
.goal-chips,
.quick-signup-row,
.quick-deposit-row {
  gap: 14px;
}

.comment-form {
  gap: 12px;
}

.panel-heading {
  justify-content: space-between;
  margin-bottom: 20px;
}

.feed-panel .panel-heading {
  align-items: flex-start;
}

.feed-panel .panel-heading > div {
  max-width: 320px;
}

.panel-title-compact {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
  max-width: 12ch;
}

.challenge-summary,
.hero-card-metrics {
  flex-wrap: wrap;
}

.progress-block {
  margin-top: 20px;
}

.progress-copy {
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-track {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

.feed-list {
  gap: 14px;
}

.feed-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-avatar.coral {
  background: rgba(255, 95, 69, 0.18);
}

.feed-avatar.gold {
  background: rgba(244, 201, 93, 0.18);
}

.feed-avatar.sky {
  background: rgba(106, 213, 255, 0.18);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.upload-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-field {
  position: relative;
}

.upload-label {
  color: var(--muted);
}

.upload-dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(106, 213, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(106, 213, 255, 0.08), rgba(255, 95, 69, 0.08)),
    rgba(255, 255, 255, 0.03);
  min-height: 92px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(106, 213, 255, 0.12);
  color: var(--accent-cool);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.upload-copy {
  display: grid;
  gap: 4px;
}

.upload-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.upload-copy span {
  color: var(--muted);
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  padding: 12px;
}

.full-width {
  width: 100%;
}

.logger-card {
  background:
    radial-gradient(circle at top right, rgba(244, 201, 93, 0.12), transparent 25%),
    var(--panel-strong);
}

.today-proof {
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.supporting-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.strong-copy {
  color: var(--text);
}

.goal-chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-signup-row,
.quick-deposit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-deposit-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip-button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.chip-button.active {
  background: linear-gradient(135deg, rgba(255, 95, 69, 0.24), rgba(255, 201, 93, 0.24));
  border-color: rgba(255, 95, 69, 0.45);
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.community-panel {
  padding: 24px;
}

.friend-cards {
  gap: 12px;
}

.friend-card,
.comment-item,
.media-placeholder {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.friend-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.friend-card.selectable {
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.friend-card.selectable.active-follow {
  border-color: rgba(255, 95, 69, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 95, 69, 0.3);
}

.dashboard-goals-list {
  display: grid;
  gap: 16px;
}

.dashboard-goal-card {
  display: grid;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-goal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-goal-open {
  width: 100%;
}

.compact-hero .topbar {
  margin-bottom: 28px;
}

.compact-hero .topbar-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
}

.dashboard-panel .panel-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.dashboard-panel .panel-heading > div {
  display: grid;
  gap: 4px;
}

.dashboard-panel .challenge-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel .challenge-summary > div,
.dashboard-stats-widget > div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}

.dashboard-panel .metric-label {
  line-height: 1.35;
}

.dashboard-panel .challenge-summary strong,
.dashboard-stats-widget strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.dashboard-panel .comment-item {
  padding: 18px 20px;
  border-radius: 20px;
}

.dashboard-stats-widget {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.reward-callout-panel {
  align-content: start;
}

.dashboard-reward-strip {
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-reward-image {
  margin-top: 4px;
}

.social-post {
  padding: 24px;
}

.quick-link-card,
.setup-panel,
.setup-hero {
  padding: 24px;
}

.advanced-links {
  padding: 24px;
  margin-top: 26px;
}

.start-steps {
  display: grid;
  gap: 14px;
}

.start-step {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.start-step:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 95, 69, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.start-step p {
  margin: 8px 0 0;
  color: var(--muted);
}

.quick-primary-links {
  display: grid;
  gap: 12px;
}

.visual-card {
  gap: 16px;
}

.image-proof-grid {
  margin-top: 20px;
}

.feature-image {
  width: 100%;
  border-radius: 22px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, filter 220ms ease;
}

.mini-visual-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.mini-visual-card {
  display: grid;
  gap: 12px;
}

.mini-feature-image {
  width: 100%;
  border-radius: 18px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, filter 220ms ease;
}

.hero-feature-image,
.dashboard-reward-image {
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.26));
}

.visual-card:hover .feature-image,
.mini-visual-card:hover .mini-feature-image,
.hero-card:hover .hero-feature-image,
.reward-callout-panel:hover .dashboard-reward-image {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 18px 34px rgba(255, 95, 69, 0.2));
}

.reward-preview-grid {
  margin-top: 24px;
}

.reward-preview-card,
.reward-callout-panel {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 95, 69, 0.06)),
    rgba(15, 20, 38, 0.82);
}

.reward-preview-strip,
.dashboard-reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.reward-pill {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #120f0c;
  background: linear-gradient(135deg, var(--accent-alt), #ff9d57);
  box-shadow: 0 10px 24px rgba(244, 201, 93, 0.18);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.reward-pill:nth-child(2n) {
  background: linear-gradient(135deg, #7de4ff, #8dbbff);
}

.reward-pill:nth-child(3n) {
  background: linear-gradient(135deg, #ff8872, #ffbd67);
}

.reward-callout-panel {
  display: grid;
  gap: 18px;
}

.compact-hero {
  padding-bottom: 10px;
}

.setup-title {
  max-width: 11ch;
  font-size: clamp(3.4rem, 8vw, 5.8rem);
}

.preview-panel {
  display: grid;
  gap: 18px;
}

.bank-hero-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
}

.bank-hero-copy,
.bank-hero-visuals,
.bank-form-card,
.bank-preview-card,
.bank-support-card {
  position: relative;
  z-index: 1;
}

.bank-hype-row,
.bank-mini-grid,
.bank-bonus-grid {
  display: grid;
  gap: 14px;
}

.bank-hype-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.bank-hype-pill {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 106, 61, 0.14), rgba(106, 213, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.bank-hype-pill strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.bank-feature-image {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.bank-form-card {
  background:
    radial-gradient(circle at top right, rgba(255, 106, 61, 0.12), transparent 26%),
    var(--panel-strong);
}

.bank-preview-card {
  background:
    radial-gradient(circle at top left, rgba(106, 213, 255, 0.14), transparent 26%),
    var(--panel);
}

.bank-support-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(255, 106, 61, 0.08), rgba(106, 213, 255, 0.06)),
    var(--panel);
}

.bank-callout {
  background:
    linear-gradient(135deg, rgba(255, 106, 61, 0.14), rgba(255, 106, 61, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.bank-mini-grid,
.bank-bonus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bank-bonus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bank-bonus-grid > div {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.bank-bonus-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
}

.group-preview-panel {
  grid-column: 1 / -1;
}

.devil-history-panel {
  grid-column: 1 / -1;
}

.bank-proof-panel {
  grid-column: 1 / -1;
}

.proof-helper {
  margin-top: 4px;
}

.shop-card {
  padding: 24px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(150deg, rgba(255, 106, 61, 0.09), rgba(106, 213, 255, 0.06)),
    var(--panel);
}

.shop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-buy-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.selectable-card {
  transition: border-color 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.selectable-card.selected {
  border-color: rgba(255, 95, 69, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 95, 69, 0.35);
}

.social-comments-grid .social-post {
  grid-column: 1 / -1;
}

.proof-page-panel {
  padding: 24px;
}

.length-nudge {
  background:
    linear-gradient(135deg, rgba(255, 95, 69, 0.12), rgba(244, 201, 93, 0.1)),
    rgba(255, 255, 255, 0.03);
}

.support-link {
  color: var(--accent-cool);
  text-decoration: none;
}

.start-step {
  display: block;
  text-decoration: none;
  color: inherit;
}

.support-link:hover {
  text-decoration: underline;
}

.modal-open {
  overflow: hidden;
}

.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(10px);
}

.app-modal-overlay.hidden {
  display: none;
}

.app-modal-card {
  width: min(100%, 620px);
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    #11151f;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.app-modal-card h2,
.app-modal-card p,
.app-modal-card strong {
  margin: 0;
}

.app-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.completion-modal-reward {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 95, 69, 0.18), rgba(106, 213, 255, 0.16));
}

.completion-modal-reward strong {
  font-size: clamp(2rem, 5vw, 3rem);
}

.beta-welcome-modal-card {
  text-align: center;
  border-color: rgba(255, 126, 27, 0.35);
  box-shadow: 0 28px 90px rgba(255, 95, 69, 0.22), 0 22px 60px rgba(0, 0, 0, 0.38);
}

.beta-welcome-modal-card h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.06em;
}

.beta-welcome-reward {
  background: linear-gradient(135deg, rgba(255, 95, 69, 0.28), rgba(244, 201, 93, 0.18));
}

.terms-modal-card .comment-item,
.completion-modal-card .comment-item {
  margin: 0;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.site-footer-copy {
  max-width: 520px;
}

.site-footer-copy p {
  margin: 0;
}

.site-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer-links a:hover {
  color: var(--text-primary);
}

.auth-secondary-actions {
  gap: 0.9rem;
}

.google-button-slot {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-fallback-button {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335) border-box;
  border-color: transparent;
  color: #16191f;
}

.legal-main {
  display: grid;
  gap: 24px;
}

.legal-card {
  display: grid;
  gap: 16px;
}

.legal-card h2,
.legal-card h3,
.legal-card p {
  margin: 0;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
}

.media-placeholder {
  display: grid;
  gap: 6px;
  min-height: 160px;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 95, 69, 0.18), rgba(106, 213, 255, 0.12)),
    rgba(255, 255, 255, 0.03);
}

.upload-preview {
  min-height: 120px;
}

.upload-preview-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
}

.proof-status-chip::before,
.admin-proof-status::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.proof-status-chip.pending,
.admin-proof-status.pending {
  background: rgba(79, 166, 255, 0.12);
  color: #8ed0ff;
}

.proof-status-chip.pending::before,
.admin-proof-status.pending::before {
  content: "...";
  background: rgba(79, 166, 255, 0.18);
  color: #d8f0ff;
}

.proof-status-chip.approved,
.admin-proof-status.approved {
  background: rgba(124, 255, 143, 0.12);
  color: #98ffab;
}

.proof-status-chip.approved::before,
.admin-proof-status.approved::before {
  content: "v";
  background: rgba(124, 255, 143, 0.18);
  color: #08140b;
}

.proof-status-chip.declined,
.admin-proof-status.declined {
  background: rgba(255, 95, 69, 0.12);
  color: #ff9d8c;
}

.proof-status-chip.declined::before,
.admin-proof-status.declined::before {
  content: "x";
  background: rgba(255, 95, 69, 0.18);
  color: #1b0906;
}

.hidden {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.checkout-modal.hidden {
  display: none !important;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(10px);
}

.checkout-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 24px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 95, 69, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(18, 24, 43, 0.98), rgba(10, 14, 24, 0.98));
}

.comment-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.comment-item button {
  margin-top: 12px;
}

.calendar-section {
  margin-top: 26px;
}

.calendar-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.calendar-day {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  min-height: 108px;
}

.calendar-day span {
  display: block;
}

.calendar-day strong {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.calendar-day.complete strong {
  background: rgba(124, 255, 143, 0.14);
  color: var(--success);
}

.calendar-day.current {
  border-color: rgba(255, 95, 69, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 95, 69, 0.4);
}

.calendar-day.pending strong {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.calendar-day.rest {
  opacity: 0.74;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
}

.calendar-day.rest strong {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.app-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: min(360px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 44, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast.success {
  border-color: rgba(124, 255, 143, 0.35);
}

.app-toast.error {
  border-color: rgba(255, 95, 69, 0.4);
}

.confetti-piece {
  position: fixed;
  top: -24px;
  width: 12px;
  height: 18px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1100;
  opacity: 0.95;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.accounts-table-wrap {
  overflow-x: auto;
}

.accounts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.accounts-table th,
.accounts-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.accounts-table th {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accounts-table td {
  color: var(--text);
}

.admin-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: 18px;
}

.admin-page-grid {
  display: grid;
  gap: 22px;
}

.admin-hero-panel {
  padding-block: 28px;
  min-height: unset;
}

.admin-title {
  max-width: 760px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.admin-overview-metrics > div {
  flex: 1 1 180px;
}

.admin-search-field {
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
  color: var(--text);
  font-weight: 600;
}

.admin-search-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.admin-search-field input::placeholder {
  color: var(--muted);
}

.admin-detail-list {
  display: grid;
  gap: 18px;
}

.admin-account-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.admin-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-account-head > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-account-head strong {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.admin-account-head span:not(.status-pill) {
  color: var(--muted);
}

.admin-head-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.admin-kpi-grid > div {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.admin-kpi-grid b {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.08rem;
}

.admin-stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-stats-grid > div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-stats-grid b {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-section-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 13, 16, 0.42);
}

.admin-section-wide {
  grid-column: 1 / -1;
}

.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-section-title strong {
  color: var(--text);
}

.admin-meta-list {
  display: grid;
  gap: 9px;
}

.admin-meta-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-meta-list b {
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: right;
}

.admin-empty-card {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.admin-empty-card strong {
  color: var(--text);
}

.admin-goal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-goal-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(130px, 1fr) minmax(130px, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.admin-goal-row > div {
  display: grid;
  gap: 5px;
}

.admin-goal-row span {
  color: var(--muted);
  font-size: 0.93rem;
}

.admin-activity-block {
  display: grid;
  gap: 10px;
}

.admin-activity-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.admin-purchase-list {
  padding-left: 0;
  list-style: none;
}

.admin-purchase-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.admin-purchase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-purchase-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 109, 61, 0.9), rgba(255, 184, 77, 0.9));
  color: #0b1020;
  font-weight: 800;
}

.admin-purchase-meta {
  color: var(--muted);
}

.admin-activity-list li {
  display: grid;
  gap: 4px;
}

.admin-activity-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-proof-item {
  list-style: none;
  margin-left: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.admin-proof-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-proof-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-proof-button {
  min-width: 120px;
}

.admin-proof-image {
  width: min(220px, 100%);
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.accounts-table tbody tr {
  transition: background 160ms ease, color 160ms ease;
}

.accounts-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accounts-table td,
.accounts-table th {
  white-space: nowrap;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 110vh, 0) rotate(540deg);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: rotate(2deg) translateY(0);
  }
  50% {
    transform: rotate(1deg) translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(244, 201, 93, 0.18);
  }
  50% {
    box-shadow: 0 16px 34px rgba(255, 95, 69, 0.28);
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero-grid,
  .bank-hero-shell,
  .social-proof,
  .dashboard-grid,
  .builder-grid,
  .community-grid,
  .social-comments-grid,
  .quick-links-grid,
  .quick-start-grid,
  .setup-grid,
  .group-grid,
  .shop-cards,
  .shop-grid,
  .proof-grid,
  .login-grid,
  .bank-grid,
  .gauntlet-grid,
  .devil-grid,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .mini-visual-strip {
    grid-template-columns: 1fr;
  }

  .admin-section-grid,
  .admin-goal-row {
    grid-template-columns: 1fr;
  }

  .admin-head-pills,
  .admin-meta-list span {
    justify-content: flex-start;
  }

  .admin-meta-list span {
    flex-direction: column;
    gap: 4px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .compact-hero .topbar {
    gap: 16px;
    margin-bottom: 22px;
  }

  .dashboard-panel {
    padding: 24px;
  }

  .dashboard-stats-widget {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-card {
    transform: none;
  }

  .today-proof,
  .panel-heading,
  .progress-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .bank-hype-row,
  .bank-mini-grid,
  .bank-bonus-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    flex-direction: column;
  }

  .app-modal-actions {
    flex-direction: column;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 4.2rem;
  }

  .hero-card,
  .dashboard-panel,
  .proof-card,
  .calendar-section,
  .builder-grid .card {
    padding: 20px;
  }

  .hero-actions,
  .topbar-actions,
  .hero-stats,
  .challenge-summary,
  .hero-card-metrics {
    flex-direction: column;
  }

  .dashboard-grid {
    gap: 20px;
  }

  .compact-hero .topbar-actions .ghost-button,
  .compact-hero .topbar-actions .logout-button {
    width: 100%;
  }

  .dashboard-panel {
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  .dashboard-panel .challenge-summary,
  .dashboard-stats-widget {
    grid-template-columns: 1fr !important;
  }

  .dashboard-panel .challenge-summary > div,
  .dashboard-stats-widget > div {
    min-height: 0;
  }

  .split-fields,
  .goal-chips,
  .quick-signup-row,
  .quick-deposit-row {
    grid-template-columns: 1fr;
  }
}
