:root {
  --rc-navy: #0b1220;
  --rc-navy-2: #111b2e;
  --rc-white: #f8fafc;
  --rc-green: #22c55e;
  --rc-green-dim: #16a34a;
  --rc-muted: #94a3b8;
}

body.rc-body {
  background: linear-gradient(165deg, var(--rc-navy) 0%, var(--rc-navy-2) 45%, #0a1628 100%);
  color: var(--rc-white);
  min-height: 100vh;
}

.rc-navbar {
  background: rgba(11, 18, 32, 0.92) !important;
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
  backdrop-filter: blur(8px);
}

@media (max-width: 991.98px) {
  .rc-navbar .navbar-toggler,
  .rc-navbar .navbar-collapse {
    display: none !important;
  }
}

.rc-navbar-logo {
    /*border: 1px solid red;*/
  height: 40px;
  width: auto;
  max-width: 70vw;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}


.rc-navbar.navbar {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.rc-main {
  padding-top: 88px;
}

@media (max-width: 767.98px) {
  .rc-main { padding-top: 80px; }
}

@media (max-width: 575.98px) {
  .rc-main { padding-top: 70px; }
}

@media (max-width: 380px) {
  .rc-main { padding-top: 64px; }
}

.rc-hero-logo {
  display: inline-block;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

@media (max-width: 767.98px) {
  .rc-hero-logo { max-width: 80vw; }
}

.rc-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rc-wordmark {
  line-height: 1.05;
  white-space: nowrap;
}

.rc-wordmark.rc-wordmark--flex {
  white-space: normal;
}

.rc-wordmark .rc-w-rating {
  color: var(--rc-white);
  font-weight: 700;
}

.rc-wordmark .rc-w-click {
  color: var(--rc-green);
  font-weight: 700;
}

.rc-wordmark .rc-w-tld {
  color: var(--rc-green);
  font-size: 0.75em;
  font-weight: 600;
  margin-left: 1px;
}


.rc-card {
  background: rgba(17, 27, 46, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rc-stat {
  font-size: 0.85rem;
  color: var(--rc-muted);
}

.rc-stat strong {
  color: var(--rc-white);
  font-size: 1.1rem;
  display: block;
}

.btn-rc-primary {
  background: var(--rc-green);
  border: none;
  color: #052e16;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.65rem 1.25rem;
}

.btn-rc-primary:hover {
  background: var(--rc-green-dim);
  color: #fff;
}

.rc-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
  display: block;
}

.rc-rate-card {
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.rc-product-media {
  position: relative;
  width: 50%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.rc-badge-5 {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(34, 197, 94, 0.95);
  color: #052e16;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.rc-stars i {
  font-size: 1.25rem;
  margin: 0 1px;
}

.rc-price {
  color: var(--rc-white);
  font-weight: 600;
}

/* ── Live balance strip ──────────────────────────────────────────────────── */
.rc-balance-strip {
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(15,23,42,0) 100%);
}

.rc-balance-total-wrap {
  line-height: 1;
}

.rc-balance-total {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.rc-balance-bar {
  height: 5px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

/* Pulse the confirmed total when a batch flushes */
@keyframes rc-balance-pulse {
  0%   { color: #22c55e; transform: scale(1);    }
  30%  { color: #4ade80; transform: scale(1.06); }
  60%  { color: #22c55e; transform: scale(1.03); }
  100% { color: #22c55e; transform: scale(1);    }
}
.rc-balance-pulse {
  animation: rc-balance-pulse 0.6s ease-out;
}

/* Floating "+X.XX USDT" pop animation */
@keyframes rc-earn-float {
  0%   { opacity: 1;   transform: translateY(0)    scale(1);    }
  60%  { opacity: 1;   transform: translateY(-28px) scale(1.08); }
  100% { opacity: 0;   transform: translateY(-50px) scale(0.9);  }
}
.rc-earn-pop {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  color: #4ade80;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  pointer-events: none;
  animation: rc-earn-float 1.1s ease-out forwards;
  z-index: 20;
}
/* ─────────────────────────────────────────────────────────────────────────── */

.rc-batch-progress {
  height: 6px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.rc-batch-progress .progress-bar {
  transition: width 0.35s ease-out;
}

.rc-plan-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.rc-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

/* Dashboard hero (Start earning) */
.rc-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0) 55%),
    linear-gradient(135deg, rgba(17, 27, 46, 0.95) 0%, rgba(11, 18, 32, 0.95) 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.rc-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.18);
  color: var(--rc-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: 0 0 auto;
}

.rc-hero-cta {
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.rc-hero-cta:hover {
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.5);
}

/* "How it works" step badges on home */
.rc-step {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: var(--rc-green);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Subtle accent for the "View on eBay" button on rating page */
.rc-ebay-btn {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--rc-white);
}
.rc-ebay-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  color: var(--rc-white);
  border-color: var(--rc-green);
}

.rc-ebay-note {
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
  padding-top: 0.75rem;
}

.rc-ticker {
  overflow: hidden;
  white-space: nowrap;
  border-radius: 0.5rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 0.8rem;
  color: var(--rc-muted);
}

.rc-ticker-inner {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  animation: rc-marquee 28s linear infinite;
}

@keyframes rc-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.rc-success-flash {
  animation: rc-pop 0.45s ease-out;
}

@keyframes rc-pop {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.form-control, .form-select {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--rc-white);
}

.form-control::placeholder,
.form-select::placeholder,
textarea.form-control::placeholder,
input.form-control::placeholder {
  color: rgba(203, 213, 225, 0.65) !important;
  opacity: 1;
}

.form-control::-webkit-input-placeholder { color: rgba(203, 213, 225, 0.65); opacity: 1; }
.form-control::-moz-placeholder         { color: rgba(203, 213, 225, 0.65); opacity: 1; }
.form-control:-ms-input-placeholder     { color: rgba(203, 213, 225, 0.65); opacity: 1; }
.form-control::-ms-input-placeholder    { color: rgba(203, 213, 225, 0.65); opacity: 1; }

.form-control:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--rc-green);
  color: var(--rc-white);
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.2);
}

.form-control:focus::placeholder {
  color: rgba(203, 213, 225, 0.45) !important;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--rc-white) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.95) inset !important;
  caret-color: var(--rc-white);
  transition: background-color 5000s ease-in-out 0s;
}

.form-label {
  color: var(--rc-white);
}

.form-text {
  color: var(--rc-muted) !important;
}

.form-text.autofill-hint {
  color: var(--rc-green) !important;
}

/* Copy field: address/code on the left, copy button on the right */
.rc-copy {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.6rem;
  overflow: hidden;
}

.rc-copy code,
.rc-copy .rc-copy-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  color: var(--rc-white);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.3;
  word-break: break-all;
  white-space: normal;
  user-select: all;
}

.rc-copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  background: rgba(34, 197, 94, 0.15);
  color: var(--rc-green);
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.rc-copy-btn:hover,
.rc-copy-btn:focus {
  background: rgba(34, 197, 94, 0.28);
  color: #fff;
  outline: none;
}

.rc-copy-btn.rc-copied {
  background: var(--rc-green);
  color: #052e16;
}

.rc-copy-btn i { font-size: 0.95rem; }

.rc-coin-btn {
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rc-coin-btn.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--rc-green) !important;
  color: #fff;
}

.text-rc-muted { color: var(--rc-muted) !important; }

.bg-success-subtle {
  background: rgba(34, 197, 94, 0.18) !important;
}

.btn-rc-primary:disabled {
  opacity: 0.7;
}

.navbar .nav-link {
  color: rgba(248, 250, 252, 0.85);
  transition: color 0.15s;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--rc-green);
}

.rc-card {
  transition: border-color 0.18s ease;
}
.rc-card:hover {
  border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 480px) {
  .rc-product-media { width: 50%; aspect-ratio: 1 / 1; }
  main .container { padding-left: .75rem; padding-right: .75rem; }
}

/* Layout offsets for fixed top + bottom bars */
.rc-main {
  padding-top: 76px;
}
@media (max-width: 991.98px) {
  .rc-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile bottom nav */
.rc-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  background: rgba(11, 18, 32, 0.96);
  border-top: 1px solid rgba(34, 197, 94, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.rc-bottom-nav.rc-bn-hidden {
  transform: translateY(100%);
}

.rc-bn-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px 6px;
  color: var(--rc-muted);
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
  min-height: 60px;
  text-align: center;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.rc-bn-link i {
  font-size: 20px;
  line-height: 1;
}

.rc-bn-link:hover,
.rc-bn-link:focus {
  color: var(--rc-white);
}

.rc-bn-link.is-active {
  color: var(--rc-green);
}

.rc-bn-link.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--rc-green);
  border-radius: 0 0 2px 2px;
}

.rc-mobile-logout {
  padding: 0.25rem 0.55rem;
  line-height: 1;
}

@media (min-width: 992px) {
  .rc-bottom-nav { display: none !important; }
}

/* ===== Profile page ===== */
.rc-profile-hero {
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(34,197,94,0.18), transparent 60%),
    rgba(17, 27, 46, 0.85);
}

.rc-profile-avatar {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px;
  max-height: 80px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,0.40), 0 0 0 3px rgba(34,197,94,0.45);
}

.rc-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.rc-profile-meta-row {
  display: grid;
  grid-template-columns: 22px 80px 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.85rem;
  text-align: left;
}
.rc-profile-meta-row strong { font-weight: 600; word-break: break-word; }

.rc-profile-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.rc-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 0.9rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--rc-white);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(34,197,94,0.18), transparent 55%),
    rgba(17, 27, 46, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.rc-tile:hover,
.rc-tile:focus {
  color: var(--rc-white);
  border-color: rgba(34,197,94,0.45);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.40);
}
.rc-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #052e16;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  box-shadow: 0 6px 14px rgba(34,197,94,0.30);
}
.rc-tile-label {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}
.rc-tile-sub {
  font-size: 0.75rem;
  color: var(--rc-muted);
}

@media (max-width: 360px) {
  .rc-profile-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .rc-profile-avatar { width: 72px; height: 72px; }
  .rc-profile-meta-row { grid-template-columns: 22px 70px 1fr; font-size: 0.8rem; }
}

/* ===== Auth (login / signup / reset) ===== */
.rc-auth-card {
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(34,197,94,0.18), transparent 60%),
    rgba(17, 27, 46, 0.85);
}
.rc-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #052e16;
  font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(34,197,94,0.35);
}
.rc-auth .form-control {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--rc-white);
}
.rc-auth .form-control::placeholder { color: rgba(148, 163, 184, 0.55); }
.rc-auth .form-control:focus {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(34,197,94,0.55);
  color: var(--rc-white);
  box-shadow: 0 0 0 0.2rem rgba(34,197,94,0.15);
}
.rc-auth .form-check-input {
  background-color: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
}
.rc-auth .form-check-input:checked {
  background-color: var(--rc-green);
  border-color: var(--rc-green);
}
.rc-auth .rc-captcha {
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.65);
  width: fit-content;
}
.rc-auth .rc-captcha-img {
  display: block;
  height: 50px;
  border-radius: 0.35rem;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.rc-auth .rc-captcha-refresh {
  line-height: 1;
  padding: 0.35rem 0.6rem;
}

/* ===== Rules page ===== */
.rc-rules h2 { font-size: 1.35rem; }
.rc-rules h3 { font-size: 1.05rem; color: var(--rc-white); margin-top: 1.25rem; }
.rc-rules p, .rc-rules li { color: var(--rc-muted); }
.rc-rules .rc-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.5rem;
}
.rc-rules .rc-step-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rc-green);
  color: #052e16;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-rules .rc-step-body { flex: 1; }
.rc-rules .rc-step-body strong { color: var(--rc-white); display: block; margin-bottom: 0.15rem; }
.rc-rules .rc-step-body span { font-size: 0.9rem; }

/* Prevent iOS/Android auto-zoom on input focus (triggered when font-size < 16px) */
@media (max-width: 991px) {
  input, select, textarea,
  .form-control, .form-select {
    font-size: 16px !important;
  }
}

/* ── Share buttons ──────────────────────────────────────────── */
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.15rem;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.btn-share:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.btn-share:active { filter: brightness(0.95); transform: translateY(0); }

.btn-share-tg { background: #2AABEE; color: #fff; }
.btn-share-tg:hover { color: #fff; }

.btn-share-wa { background: #25D366; color: #fff; }
.btn-share-wa:hover { color: #fff; }

.btn-share-tw { background: #111; color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.btn-share-tw:hover { color: #fff; }

.btn-share-fb { background: #1877F2; color: #fff; }
.btn-share-fb:hover { color: #fff; }

.rc-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
