:root {
  --bg: #F2F4F5;
  --white: #FFFFFF;
  --text-dark: #191B1D;
  --text-body: #606162;
  --text-muted: #ADB0B1;
  --border: #E0E1E2;
  --blue: #0067FF;
  --blue-hover: #0053CC;
  --green: #009E5E;
  --red: #E94E4E;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-links a:hover {
  background-color: #F2F4F5;
}

.hamburger {
  display: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-dark);
}

.nav-search {
  flex: 1;
  max-width: 400px;
  margin: 0 24px;
}

.search-pill {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
}

.search-pill i {
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 8px;
}

.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
}

.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-signup {
  background: var(--blue);
  border: none;
  color: white;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

/* ===== PAGE ===== */
.page-bg {
  flex: 1;
  padding: 48px 24px;
}

.page-container {
  max-width: 520px;
  margin: 0 auto;
}

.redeem-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.redeem-box h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.subtitle {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 24px;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rbx-input {
  width: 100%;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-dark);
  font-family: inherit;
  outline: none;
  transition: border 0.15s;
}

.rbx-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.15);
}

.rbx-select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606162' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.btn-redeem {
  width: 100%;
  height: 44px;
  background-color: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 8px;
}

.btn-redeem:hover { background-color: var(--blue-hover); }

.btn-redeem:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn-back {
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-back:hover { background-color: var(--bg); }

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-row .btn-redeem { flex: 1; margin-top: 0; }

/* ===== ACCOUNT FOUND BAR ===== */
.user-found-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #E8F7F0;
  border: 1px solid #B8E4D0;
  border-radius: 8px;
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}

.user-found-bar strong {
  color: var(--text-dark);
}

/* ===== VALUE CARDS ===== */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.value-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.value-card:hover {
  border-color: #999;
}

.value-card.selected {
  border-color: #E94E4E;
  background: #FFF0F0;
}

.value-card.selected .val-amount {
  color: #E94E4E;
}

.value-card.selected .val-label {
  color: #E94E4E;
}

.val-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.val-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.value-card.featured {
  border-color: var(--blue);
}

.featured-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ===== PROCESSING ===== */
.process-spinner {
  margin: 30px 0;
}

.official-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

.process-steps {
  max-width: 320px;
  margin: 0 auto;
  text-align: left;
}

.p-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.p-step:last-child { border-bottom: none; }

.p-step.active {
  color: var(--text-dark);
  font-weight: 600;
}

.p-step.active i {
  color: var(--blue);
}

.p-step.done {
  color: var(--green);
}

.p-step.done i {
  color: var(--green);
}

.p-step.fail {
  color: var(--red);
}

.p-step.fail i {
  color: var(--red);
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop.active { display: flex; }

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(0, 103, 255, 0.1);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.modal-top-title {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}

.modal-timer-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 12px;
}

.modal-top i {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px;
  transition: color 0.15s;
}

.modal-top i:hover {
  color: var(--text-dark);
}

.modal-inner {
  padding: 18px 18px 20px 18px;
  overflow-y: auto;
}

/* Pending Banner */
.modal-pending-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.pending-icon {
  width: 38px;
  height: 38px;
  background: rgba(0, 103, 255, 0.25);
  border: 1px solid rgba(0, 103, 255, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.pending-info {
  flex: 1;
}

.pending-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  font-weight: 700;
}

.pending-user {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.pending-user strong {
  color: #38bdf8;
}

.pending-username {
  color: #f8fafc;
  background: rgba(255,255,255,0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: inherit;
}

.pending-status {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.modal-notice {
  text-align: left;
  margin-bottom: 14px;
  padding: 0 2px;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 103, 255, 0.08);
  color: var(--blue);
  border: 1px solid rgba(0, 103, 255, 0.2);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-notice h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.modal-text {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.45;
}

/* ===== OFFICIAL ROBLOX OFFER CARDS ===== */
.offer-list-official {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.offer-card-roblox {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.offer-card-roblox:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(0, 103, 255, 0.12);
  transform: translateY(-1px);
  background: #FAFCFF;
}

.offer-card-roblox.offer-recommended {
  border-color: rgba(0, 103, 255, 0.4);
  background: linear-gradient(180deg, #FAFCFF 0%, #FFFFFF 100%);
}

.offer-card-left {
  margin-right: 12px;
  flex-shrink: 0;
}

.offer-icon-box {
  position: relative;
  width: 48px;
  height: 48px;
}

.offer-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  background: #f1f5f9;
}

.offer-check-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 17px;
  height: 17px;
  background: #10B981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.offer-card-body {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.offer-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.offer-partner-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 3px;
}

.offer-fastest-badge {
  font-size: 9px;
  font-weight: 800;
  color: #f59e0b;
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.offer-free-pill {
  font-size: 9px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

.offer-name-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 4px;
  word-break: break-word;
  letter-spacing: -0.2px;
}

.offer-instruction-box {
  background: #F1F5F9;
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 4px 8px;
  margin-top: 3px;
}

.instruction-label {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}

.instruction-text {
  font-size: 12px;
  color: #1E293B;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.offer-card-arrow {
  color: #94A3B8;
  font-size: 14px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 6px;
}

.offer-card-roblox:hover .offer-card-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* Modal Trust Footer */
.modal-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trust-divider {
  color: #cbd5e1;
}

.modal-secure {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-secure i {
  margin-right: 4px;
}

/* ===== FOOTER ===== */
.rbx-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover { text-decoration: underline; }

.copyright {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ===== TOAST ===== */
.toast-notification {
  position: fixed;
  bottom: -100px;
  left: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
  transition: bottom 0.4s ease;
  max-width: 300px;
}

.toast-notification.show { bottom: 24px; }

.toast-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.4;
}

.toast-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .hamburger { display: block; }
  .value-grid { grid-template-columns: 1fr; }
  .page-bg { padding: 24px 16px; }
  .redeem-box { padding: 24px 20px; }
  .toast-notification { left: 16px; right: 16px; max-width: none; }
}

/* ===== TIMER WRAP ===== */
.modal-timer-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #d97706;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 4px 12px;
}
.modal-timer-wrap i { font-size: 12px; }
.modal-timer-wrap strong { font-weight: 800; }

/* ===== PROGRESS BAR ===== */
.modal-progress-wrap {
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.modal-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.modal-progress-pct {
  color: var(--green);
  font-weight: 700;
}
.modal-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.modal-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 10px;
  animation: fillBar 1.2s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes fillBar { to { width: 90%; } }

/* ===== OFFERS EXTRA (OGADS) ===== */
.offer-item--featured {
  border-color: var(--blue);
  background: #eff6ff;
  position: relative;
}
.offer-recommended-tag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: linear-gradient(90deg, #ec4899, var(--blue));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-pic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.offer-bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.robux-ico {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}
.offer-spots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 11px;
  color: #ef4444;
  font-weight: 600;
}
.spots-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: spotsPulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes spotsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.offer-instr-label {
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 480px) {
  .modal-box {
    max-height: 95vh;
    border-radius: 14px;
  }
  .modal-inner {
    padding: 14px 12px 16px 12px;
  }
  .modal-pending-card {
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .pending-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-right: 10px;
  }
  .pending-user {
    font-size: 12px;
  }
  .offer-card-roblox {
    padding: 10px 10px;
  }
  .offer-card-left {
    margin-right: 10px;
  }
  .offer-icon-box, .offer-icon-img {
    width: 42px;
    height: 42px;
  }
  .offer-name-title {
    font-size: 13.5px;
  }
  .instruction-text {
    font-size: 11.5px;
  }
  .offer-card-arrow {
    font-size: 13px;
    margin-left: 4px;
    padding: 4px;
  }
  .modal-trust-footer {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
  }
}
