:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 8% 5%, rgba(59,130,246,.08), transparent 24rem),
    radial-gradient(circle at 92% 30%, rgba(16,185,129,.07), transparent 26rem);
  background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button, .btn, .nav-link, .dropdown-item {
  touch-action: manipulation;
}

.navbar-app {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar-app.is-scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(15,23,42,.08);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.navbar-brand .brand-dot { color: var(--primary); }
.navbar-brand .brand-text { color: var(--text); }

.nav-page-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 42px;
  padding: .45rem .7rem !important;
  border-radius: 12px;
  color: var(--muted) !important;
  font-weight: 600;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-page-link > i {
  font-size: 1.05rem;
  line-height: 1;
  width: 1.15rem;
  text-align: center;
}
.nav-page-link:hover,
.nav-page-link:focus {
  color: var(--primary) !important;
  background: rgba(59,130,246,.1);
  transform: translateY(-1px);
}
.nav-page-link.is-active {
  color: var(--primary) !important;
  background: rgba(59,130,246,.12);
}
.nav-page-link .nav-dot,
.nav-page-link .nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
}
.nav-page-link .nav-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
}
.nav-page-link .nav-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.nav-notifications.has-unread-notifications .nav-notifications-icon {
  color: #EF4444;
}
.nav-badge-alert {
  animation: nav-notification-pulse 1.25s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
}
.has-unread-notifications.is-stale-notifications .nav-notifications-icon {
  animation: nav-bell-ring 1.4s ease-in-out infinite;
}
@keyframes nav-notification-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
}
@keyframes nav-bell-ring {
  0%, 100% { transform: rotate(0deg); }
  12% { transform: rotate(-14deg); }
  24% { transform: rotate(12deg); }
  36% { transform: rotate(-10deg); }
  48% { transform: rotate(8deg); }
  60% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-badge-alert,
  .has-unread-notifications.is-stale-notifications .nav-notifications-icon {
    animation: none;
  }
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.nav-user-toggle::after {
  margin-left: .15rem;
}
.nav-user-avatar {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}
.mobile-bottom-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.mobile-bottom-avatar {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}
.user-avatar-img {
  display: block;
}

.onboarding-wizard-wrap .icon-bubble {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}
.onboarding-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  overflow: hidden;
}
.onboarding-progress-fill {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #10B981);
  transition: width .25s ease;
}
.onboarding-steps-labels {
  display: flex;
  justify-content: space-between;
  gap: .25rem;
  margin-top: .55rem;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(15, 23, 42, .45);
}
.onboarding-steps-labels span.active {
  color: var(--primary);
}
.onboarding-step {
  display: none;
}
.onboarding-step.is-active {
  display: block;
}
.onboarding-card {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(248, 250, 252, .8);
}
.onboarding-card-icon {
  font-size: 1.35rem;
  margin-bottom: .5rem;
}
.post-platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(165deg, #f8fafc 0%, #eef7f1 100%);
  color: inherit;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.post-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  border-color: rgba(22, 163, 74, .35);
  color: inherit;
}
.post-platform-card-ios {
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
}
.post-platform-card.is-disabled {
  opacity: .72;
  cursor: not-allowed;
  user-select: none;
}
.post-platform-soon {
  position: absolute;
  top: .85rem;
  right: .85rem;
}
.post-platform-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: .85rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
}
.post-platform-card-android .post-platform-card-icon {
  color: #15803d;
}
.post-platform-card-ios .post-platform-card-icon {
  color: #334155;
}
.post-platform-card-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .25rem;
}
.post-platform-card-text {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.4;
}
.post-app-review {
  display: grid;
  gap: .65rem;
}
.post-app-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: .9rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.post-app-review-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.post-app-review-row strong {
  text-align: right;
  max-width: 55%;
  word-break: break-word;
}
.promo-codes-panel[hidden] {
  display: none !important;
}
.promo-add-method-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.promo-add-method-toggle .btn {
  flex: 1 1 auto;
  min-width: 8.5rem;
}
@media (max-width: 575.98px) {
  .promo-codes-panel {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  .promo-codes-panel .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  .promo-codes-panel code {
    word-break: break-all;
  }
}

@media (min-width: 992px) {
  .navbar-nav.nav-primary {
    gap: .1rem;
    margin-left: .5rem;
  }
  .nav-page-link {
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
    min-width: 58px;
    min-height: 0;
    padding: .4rem .55rem !important;
  }
  .nav-page-link > i {
    font-size: 1.05rem;
    width: auto;
    line-height: 1;
  }
  .nav-page-link .nav-label {
    font-size: .66rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: .01em;
  }
  .nav-page-link .nav-dot,
  .nav-page-link .nav-badge {
    top: 2px;
    right: auto;
    left: calc(50% + 8px);
  }
  .nav-user-toggle .nav-label {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-user-toggle::after {
    position: absolute;
    top: 8px;
    right: 6px;
  }
}

.brand-icon, .icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(16,185,129,.12));
  color: var(--primary);
}
.brand-icon {
  width: 36px;
  height: 36px;
  margin-right: .55rem;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0B0B0F;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #0B0B0F;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}
.icon-bubble {
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 12px;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:active {
  transform: scale(.97);
}
.btn-sm {
  min-height: 38px;
}
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 13px;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-success, .btn-test {
  background: var(--secondary);
  border-color: var(--secondary);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-success:hover, .btn-test:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-outline-primary {
  border-radius: 12px;
  font-weight: 600;
  border-color: var(--primary);
  color: var(--primary);
}

.card-app, .stat-card, .panel-card {
  background: var(--card);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-app:hover, .panel-card:hover, .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-card {
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -30px;
  bottom: -35px;
  border-radius: 50%;
  background: rgba(59,130,246,.07);
  transition: transform .3s ease;
}
.stat-card:hover::after {
  transform: scale(1.35);
}
.stat-card .stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.25rem;
}

/* Dashboard "Today's To-Do" panel */
.todo-panel {
  border-left: 4px solid #F59E0B;
  background: linear-gradient(135deg, rgba(245,158,11,.06), var(--card) 45%);
}
.todo-panel-clear {
  border-left-color: #22C55E;
  background: linear-gradient(135deg, rgba(34,197,94,.06), var(--card) 45%);
}
.todo-item:last-of-type {
  border-bottom: 0 !important;
}
.todo-item-done {
  opacity: .7;
}
.todo-item a {
  text-decoration: none;
  color: inherit;
}
.todo-item a:hover {
  color: var(--primary);
}

.my-test-row {
  display: block;
  padding: .6rem .75rem;
  margin-bottom: .5rem;
  border: 1px solid rgba(203,213,225,.75);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.my-test-row:hover {
  border-color: var(--primary);
  background: rgba(59,130,246,.05);
  color: inherit;
}
.my-test-progress {
  height: 6px;
  margin-top: .45rem;
}

.support-reply-staff {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(59,130,246,.06), var(--card) 45%);
}
.support-thread .panel-card:hover {
  transform: none;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #EEF2FF;
}
.app-listing-card {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid rgba(203,213,225,.75);
}
.card-app.app-listing-card-android {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 55%, #f8fafc 100%);
  border-color: rgba(34, 197, 94, 0.22);
}
.card-app.app-listing-card-ios {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 55%, #f8fafc 100%);
  border-color: rgba(59, 130, 246, 0.24);
}
.app-card-splash-link {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 38%;
  width: 38%;
  min-height: 100%;
  background: #0F172A;
  border-right: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
.app-card-splash-backdrop {
  position: absolute;
  z-index: -2;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(20px) brightness(.62) saturate(1.25);
  transform: scale(1.08);
}
.app-card-splash-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,23,42,.42), transparent 28%, transparent 72%, rgba(15,23,42,.42)),
    linear-gradient(0deg, rgba(15,23,42,.28), transparent 45%);
}
.app-card-splash {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  max-width: calc(100% - 1rem);
  height: auto;
  max-height: calc(100% - 1rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.38));
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.app-card-splash-link:hover .app-card-splash {
  transform: translate(-50%, -50%) scale(1.025);
}
.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .5rem;
}
.app-card-reward {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .55rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  color: #065F46;
  background: rgba(220, 252, 231, 0.95);
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
}
.app-card-completed {
  color: #1e3a5f;
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.35);
}
.app-listing-card-ios .app-card-reward:not(.app-card-completed) {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.95);
  border-color: rgba(59, 130, 246, 0.3);
}
.app-card-body {
  min-width: 0;
  padding: 1.1rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  background: transparent;
}
.app-card-heading {
  margin-bottom: 1rem;
}
.app-card-title {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.app-card-title:hover { color: var(--primary); }
.app-card-developer {
  margin-top: .25rem;
  color: #64748B;
  font-size: .78rem;
}
.app-card-timing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
  color: #64748B;
  font-size: .78rem;
}
.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .9rem;
}
.app-card-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .5rem;
  border-radius: 8px;
  color: #475569;
  background: #F1F5F9;
  font-size: .7rem;
  font-weight: 600;
}
.app-card-tag i { color: #64748B; }
.app-card-progress {
  margin-top: auto;
  margin-bottom: .75rem;
  height: 7px;
}
.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.app-card-spots {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #334155;
  font-size: .8rem;
  font-weight: 800;
}
.app-card-spots i {
  color: var(--primary);
}
.app-splash {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 320px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  background: #F8FAFC;
}
.app-screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .75rem;
}
.app-screenshot-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  max-height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #F1F5F9;
  box-shadow: 0 5px 16px rgba(15,23,42,.08);
}
.app-screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.app-screenshot-thumb span {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #FFFFFF;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(8px);
  opacity: .9;
}
.app-screenshot-thumb:hover img {
  transform: scale(1.04);
  filter: brightness(.88);
}
.screenshot-modal .modal-dialog {
  width: min(96vw, 480px);
  max-width: min(96vw, 480px);
  margin: .75rem auto;
}
.screenshot-modal .modal-content {
  overflow: hidden;
  max-height: calc(100dvh - 1.5rem);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: #0F172A;
  box-shadow: 0 30px 80px rgba(2,6,23,.5);
}
.screenshot-modal .modal-header {
  flex: 0 0 auto;
  color: #FFFFFF;
  background: rgba(15,23,42,.98);
}
.screenshot-modal .modal-header .text-muted { color: #94A3B8 !important; }
.screenshot-modal .btn-close { filter: invert(1) grayscale(1); }
.screenshot-modal .modal-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: calc(100dvh - 5.25rem);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(51,65,85,.75), transparent 65%),
    #020617;
}
.screenshot-stage {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 5.25rem);
  padding: .75rem 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.screenshot-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 6.5rem);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0,0,0,.45);
}
.screenshot-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(15,23,42,.76);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}
.screenshot-nav:hover { background: var(--primary); }
.owner-guide-list {
  display: grid;
  gap: .85rem;
}
.owner-guide-step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: .85rem;
  align-items: start;
  padding: .95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
}
.owner-guide-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(59,130,246,.12);
  color: var(--primary);
  font-weight: 800;
}
.owner-guide-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(16,185,129,.12);
  color: var(--secondary);
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #E2E8F0;
}
.progress-bar {
  background: linear-gradient(90deg, var(--secondary), #34D399);
  border-radius: 999px;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(59,130,246,0.12), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(16,185,129,0.12), transparent 35%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.hero-kicker {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero .lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 2rem;
}

.page-title-block {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}
.page-title-block .icon-bubble {
  width: 58px;
  height: 58px;
  margin: 0 auto .8rem;
  font-size: 1.35rem;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(59,130,246,.14);
}
.page-title-block h1 {
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: .35rem;
}
.page-title-block p {
  color: var(--muted);
  margin-bottom: 0;
}

.auth-shell {
  min-height: min(680px, calc(100vh - 150px));
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  text-align: center;
  border-color: rgba(59,130,246,.14);
  box-shadow: 0 24px 60px rgba(15,23,42,.1);
}
.auth-card form {
  text-align: left;
}
.auth-card::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: -1rem auto 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.how-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.how-card .step-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.1);
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.footer-app {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
  color: var(--muted);
}

.badge-soft {
  background: rgba(59,130,246,0.1);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}
.badge-soft-green {
  background: rgba(16,185,129,0.12);
  color: var(--secondary-dark);
}

.day-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.day-card.completed { border-color: var(--secondary); background: rgba(16,185,129,0.05); }
.day-card.locked { opacity: 0.55; }
.day-card.in_progress { border-color: var(--primary); }

.alert {
  border-radius: 14px;
  border: none;
  animation: alertDrop .38s cubic-bezier(.2,.8,.2,1) both;
}
.form-control, .form-select {
  border-radius: 12px;
  border-color: var(--border);
  padding: 0.7rem 0.9rem;
  min-height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.15);
}
.password-toggle {
  border-radius: 0 12px 12px 0;
  border-color: var(--border);
  min-width: 48px;
  color: var(--muted, #64748b);
}
.password-toggle:hover,
.password-toggle:focus {
  color: var(--primary);
  border-color: var(--border);
  background: #fff;
}
.input-group .form-control {
  border-radius: 12px 0 0 12px;
}

.drop-upload {
  position: relative;
  min-height: 190px;
  padding: 1.35rem;
  border: 2px dashed #CBD5E1;
  border-radius: 18px;
  background: linear-gradient(145deg, #F8FAFC, #FFFFFF);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.drop-upload:hover,
.drop-upload:focus-within {
  border-color: var(--primary);
  background: rgba(59,130,246,.04);
  box-shadow: 0 0 0 .2rem rgba(59,130,246,.1);
}
.drop-upload.is-dragging {
  border-color: var(--secondary);
  background: rgba(16,185,129,.08);
  box-shadow: 0 12px 30px rgba(16,185,129,.16);
  transform: translateY(-2px) scale(1.01);
}
.drop-upload.has-error {
  border-color: #EF4444;
  background: rgba(239,68,68,.05);
}
.drop-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop-upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(59,130,246,.1);
  font-size: 1.35rem;
  transition: transform .2s ease;
}
.drop-upload:hover .drop-upload-icon,
.drop-upload.is-dragging .drop-upload-icon {
  transform: translateY(-3px);
}
.drop-upload-title { font-weight: 700; color: var(--text); }
.drop-upload-help { color: #64748B; font-size: .82rem; }
.drop-upload-files {
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.drop-upload-previews {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .35rem;
}
.drop-upload-previews:empty { display: none; }
.drop-upload-previews img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(15,23,42,.16);
  object-fit: cover;
}
.drop-upload-compact {
  min-height: 130px;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: .75rem;
}
.drop-upload-compact .drop-upload-files { flex-basis: 100%; }

.nav-bell {
  position: relative;
}
.nav-icon-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-icon-link:hover {
  background: rgba(59,130,246,.1);
  transform: translateY(-2px);
}
.nav-bell .dot {
  position: absolute;
  top: 2px;
  right: 0;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
}

.admin-app-thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #F1F5F9;
}
.admin-app-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .95rem;
}

.sidebar-admin a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.sidebar-admin a:hover, .sidebar-admin a.active {
  background: rgba(59,130,246,0.1);
  color: var(--primary);
}

.table > :not(caption) > * > * {
  padding: 0.85rem 0.75rem;
}
.table {
  vertical-align: middle;
}
.table-responsive {
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.mobile-bottom-nav {
  display: none;
}

.fab-post {
  position: fixed;
  right: 1rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  z-index: 1025;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  box-shadow: 0 12px 28px rgba(59,130,246,.35);
}

.tooltip {
  --bs-tooltip-bg: #0f172a;
  --bs-tooltip-opacity: .96;
}
.tooltip-inner {
  border-radius: 9px;
  padding: .45rem .7rem;
  font-size: .78rem;
  font-weight: 600;
}

.pulse-soft {
  animation: pulseSoft 2.2s ease-in-out infinite;
}

.icon-spin-hover:hover i {
  transform: rotate(12deg) scale(1.08);
}
.icon-spin-hover i {
  transition: transform .25s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal.is-visible {
  animation: fadeUp 0.45s ease both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,.16); }
  50% { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
}
@keyframes alertDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeUp 0.45s ease both;
}

@media (max-width: 767.98px) {
  body.has-mobile-nav {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
  main.pb-5 {
    padding-bottom: 1.5rem !important;
  }
  .hero {
    padding: 2.25rem 0 1.75rem;
    text-align: center;
  }
  .hero .lead { margin-inline: auto; font-size: 1rem; }
  .hero .d-flex { justify-content: center; }
  .hero .btn { flex: 1 1 145px; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-label { font-size: .7rem; }
  .section-title { font-size: 1.55rem; }
  .panel-card, .card-app { border-radius: 16px; }
  .container { --bs-gutter-x: 1.35rem; }
  .app-screenshot-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }
  .app-screenshot-thumb { max-height: 180px; }
  .screenshot-modal .modal-dialog {
    width: min(96vw, 420px);
    max-width: min(96vw, 420px);
    margin: .5rem auto;
  }
  .screenshot-modal .modal-content {
    max-height: calc(100dvh - 1rem);
  }
  .screenshot-modal .modal-body,
  .screenshot-stage {
    max-height: calc(100dvh - 4.75rem);
  }
  .screenshot-stage {
    padding: .5rem 2.75rem;
  }
  .screenshot-stage img {
    max-height: calc(100dvh - 5.75rem);
  }
  .screenshot-nav {
    width: 38px;
    height: 38px;
  }
  .screenshot-nav-prev { left: .35rem; }
  .screenshot-nav-next { right: .35rem; }
  .auth-shell {
    min-height: auto;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .auth-card {
    padding: 1.5rem !important;
  }
  .page-title-block { margin-bottom: 1.4rem; }
  .page-title-block .icon-bubble {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
  .navbar-collapse {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: .75rem 0 1rem;
  }
  .navbar-collapse .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: 11px;
    padding-inline: .8rem;
    width: auto;
  }
  .navbar-collapse .nav-page-link {
    justify-content: flex-start;
    width: 100%;
  }
  .navbar-collapse .nav-page-link .nav-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
  }
  .navbar-collapse .nav-cta {
    width: 100%;
    justify-content: center;
  }
  .navbar-collapse .nav-link:hover { background: rgba(59,130,246,.08); }
  .mobile-bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(var(--bottom-nav-cols, 5), 1fr);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    min-height: 66px;
    padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 28px rgba(15,23,42,.08);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav a {
    color: var(--muted);
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    border-radius: 12px;
    font-size: .67rem;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .mobile-bottom-nav a i { font-size: 1.15rem; }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus {
    color: var(--primary);
    background: rgba(59,130,246,.09);
    transform: translateY(-2px);
  }
  .mobile-bottom-nav a.is-staff {
    color: #0F766E;
  }
  .mobile-bottom-nav a.is-staff:hover,
  .mobile-bottom-nav a.is-staff:focus {
    color: #0F766E;
    background: rgba(16,185,129,.12);
  }
  .staff-mobile-links {
    display: grid;
    gap: .5rem;
  }
  .staff-mobile-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    color: #0F766E;
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.25);
  }
  .staff-mobile-link i {
    width: 1.25rem;
    text-align: center;
  }
  .staff-mobile-link:hover {
    background: rgba(16,185,129,.16);
    color: #0F766E;
  }
  .footer-app { margin-top: 2rem; padding-bottom: 2rem; }
  .table { min-width: 620px; }
  h1.h3 { font-size: 1.55rem; }
}

@media (max-width: 399.98px) {
  .container { --bs-gutter-x: 1rem; }
  .stat-card { padding: .85rem; }
  .stat-card .stat-value { font-size: 1.2rem; }
  .app-card-splash-link {
    flex-basis: 35%;
    width: 35%;
  }
  .app-card-body { padding: .85rem; }
  .app-card-reward {
    padding: .24rem .45rem;
    font-size: .6rem;
  }
  .app-card-tags { gap: .3rem; }
  .app-card-tag {
    padding: .24rem .4rem;
    font-size: .64rem;
  }
  .mobile-bottom-nav a { font-size: .58rem; }
  .mobile-bottom-nav a i { font-size: .95rem; }
  .mobile-bottom-nav-staff a { font-size: .55rem; padding-inline: .1rem; }
}

@media (hover: none) {
  .card-app:hover, .panel-card:hover, .stat-card:hover, .day-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; animation: none !important; }
}

/* Username autocomplete (compose message, etc.) */
.user-suggest {
  position: relative;
}

.user-suggest-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: .35rem 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  max-height: 240px;
  overflow-y: auto;
}

.user-suggest-list[hidden] {
  display: none !important;
}

.user-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  padding: .55rem .9rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.user-suggest-item:hover,
.user-suggest-item.is-active {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-dark);
}

.user-suggest-item .meta {
  color: var(--muted);
  font-size: .75rem;
  text-transform: capitalize;
}

/* Legacy scroll-reveal used opacity:0 before JS ran — never hide content that way. */
.reveal {
  opacity: 1;
  transform: none;
}

/* Platform badge (Android / iOS) */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: middle;
}
.platform-badge-md {
  padding: .35rem .65rem;
  font-size: .78rem;
}
.platform-badge-sm {
  padding: .22rem .5rem;
  font-size: .7rem;
}
.platform-badge-android {
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
}
.platform-badge-android i { color: #16a34a; }
.platform-badge-ios {
  color: #1e293b;
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.16);
}
.platform-badge-ios i { color: #0f172a; }
.platform-badge-label { letter-spacing: .01em; }
.app-card-platform {
  flex-shrink: 0;
}
.app-card-platform.platform-badge-android {
  background: rgba(220, 252, 231, 0.95);
}
.app-card-platform.platform-badge-ios {
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.3);
}
.app-card-platform.platform-badge-ios i {
  color: #2563eb;
}

/* Notifications list + login modal */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.notif-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  border: 1px solid transparent;
  border-left-width: 4px;
  padding: .85rem 1rem;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.notif-item:hover {
  transform: translateY(-1px);
  color: inherit;
}
.notif-item-unread {
  border-left-color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  border-left-width: 4px;
}
.notif-item-unread:hover {
  background: rgba(239, 68, 68, 0.12);
}
.notif-item-read {
  border-left-color: #22C55E;
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.16);
  border-left-width: 4px;
}
.notif-item-read:hover {
  background: rgba(34, 197, 94, 0.11);
}
.notif-badge-unread {
  background: #EF4444 !important;
  color: #fff !important;
  font-weight: 700;
}
.notif-badge-read {
  background: #22C55E !important;
  color: #fff !important;
  font-weight: 700;
}
.notif-legend-unread {
  color: #EF4444;
  font-weight: 600;
}
.notif-legend-read {
  color: #16A34A;
  font-weight: 600;
}
.notif-modal-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-height: min(50vh, 380px);
  overflow-y: auto;
}
.notif-modal-item {
  padding: .75rem .85rem;
}
#notificationsWelcomeModal .modal-content {
  border: 0;
  box-shadow: var(--shadow-hover, 0 18px 40px rgba(15, 23, 42, 0.16));
}

