/* =============================================================================
   overnight-mobile.css — Mobile UI styles for overnight.html
   Follows the same colour scheme as index.css / mobile.css
   Only active when #mobile-overnight-ui is displayed (≤ 768px)
   ============================================================================= */

/* ── Mobile Overnight Wrapper ─────────────────────────────────────────────── */
#mobile-overnight-ui {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   POPUP (shared, already styled in overnight.css — just tweak for mobile)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .overnight-popup-content {
    width: 95vw;
    max-height: 90vh;
    border-radius: 24px;
    padding: 0;
  }
  .overnight-popup-header {
    padding: 1rem 1.2rem 0.8rem;
  }
  .overnight-popup-body {
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }
  .overnight-popup-footer {
    padding: 0.8rem 1rem 1rem;
    flex-direction: column;
    gap: 0.6rem;
  }
  .overnight-popup-gotit {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE HERO BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-hero {
  padding: 2rem 1.2rem 1.6rem;
  text-align: center;
  background: linear-gradient(180deg, #070c16 0%, #04060c 100%);
  border-bottom: 1px solid #1e2d45;
}

.mob-on-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  margin-bottom: 1rem;
}

.mob-on-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.mob-on-hero h1 span {
  color: #818cf8;
}

.mob-on-hero p {
  font-size: 0.9rem;
  color: #8897b3;
  max-width: 340px;
  margin: 0 auto 1.2rem;
  line-height: 1.55;
}

.mob-on-cta-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mob-on-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  border-radius: 60px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: transform 0.15s;
}
.mob-on-btn-primary:active { transform: scale(0.97); }

.mob-on-btn-ghost {
  background: transparent;
  border: 1.5px solid #4f46e5;
  color: #c7d2e8;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  border-radius: 60px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s;
}
.mob-on-btn-ghost:active { background: rgba(99, 102, 241, 0.12); }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FORM CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-form-wrap {
  padding: 1.2rem 1rem 2rem;
}

.mob-on-card {
  background: #111827;
  border: 1px solid #1e2d45;
  border-radius: 24px;
  overflow: hidden;
}

/* Card header */
.mob-on-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem 1rem;
  border-bottom: 1px solid #1e2d45;
  background: #0d1421;
}

.mob-on-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.mob-on-card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.2;
}

.mob-on-card-header p {
  font-size: 0.78rem;
  color: #8897b3;
  margin: 0;
}

/* Script count row */
.mob-on-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #1a2540;
}

.mob-on-count-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c7d2e8;
}

.mob-on-count-btns {
  display: flex;
  gap: 0.4rem;
}

.mob-on-count-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #1e2d45;
  background: #0d1017;
  color: #8897b3;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-on-count-btn.active,
.mob-on-count-btn:active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: #6366f1;
  color: #fff;
}

/* Script slots container */
.mob-on-slots {
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Individual slot ── */
.mob-on-slot {
  background: #0d1017;
  border: 1px solid #1e2d45;
  border-radius: 16px;
  overflow: hidden;
}

.mob-on-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem 0.5rem;
  background: rgba(99, 102, 241, 0.06);
  border-bottom: 1px solid #1e2d45;
}

.mob-on-slot-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mob-on-slot-body {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Labels */
.mob-on-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8897b3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.3rem;
}

/* Textarea */
.mob-on-textarea {
  width: 100%;
  background: #070c16;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  padding: 0.7rem 0.9rem;
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.2s;
  line-height: 1.5;
}
.mob-on-textarea:focus {
  outline: none;
  border-color: #4f46e5;
}
.mob-on-textarea::placeholder { color: #3f5070; }

/* Select / input row */
.mob-on-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mob-on-select {
  width: 100%;
  background: #070c16;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  color: #c7d2e8;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23546180'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
}
.mob-on-select:focus { outline: none; border-color: #4f46e5; }

.mob-on-input {
  width: 100%;
  background: #070c16;
  border: 1px solid #1e2d45;
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.2s;
}
.mob-on-input:focus { outline: none; border-color: #4f46e5; }
.mob-on-input::placeholder { color: #3f5070; }

/* Full-width select */
.mob-on-select-full {
  grid-column: 1 / -1;
}

/* Subtitle colour preview row */
.mob-on-color-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mob-on-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #1e2d45;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.mob-on-color-swatch.active,
.mob-on-color-swatch:active {
  transform: scale(1.2);
  border-color: #818cf8;
}

/* ── Submit area ── */
.mob-on-submit-area {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid #1e2d45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.mob-on-submit-info {
  font-size: 0.76rem;
  color: #546180;
  text-align: center;
  line-height: 1.5;
}

.mob-on-submit-info strong { color: #8897b3; }

/* Turnstile wrapper */
.mob-on-turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mob-on-turnstile-note {
  font-size: 0.76rem;
  color: #546180;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mob-on-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 60px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
  transition: opacity 0.2s, transform 0.15s;
}
.mob-on-submit-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.mob-on-submit-btn:not(:disabled):active {
  transform: scale(0.98);
}

/* Status message */
.mob-on-status {
  display: none;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  text-align: center;
  margin: 0 1rem 0.8rem;
}

/* Results / claim codes */
.mob-on-results {
  display: none;
  padding: 1rem;
  border-top: 1px solid #1e2d45;
}

.mob-on-results-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mob-on-claim-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mob-on-retrieve-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  color: #818cf8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.07);
  transition: background 0.15s;
}
.mob-on-retrieve-link:active { background: rgba(99, 102, 241, 0.14); }

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — Mobile compact strip
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-how {
  padding: 2rem 1rem 2.4rem;
  background: #070c16;
  border-top: 1px solid #111827;
}

.mob-on-how h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1.2rem;
}

.mob-on-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mob-on-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #111827;
  border: 1px solid #1e2d45;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}
.mob-on-step:active { border-color: #4f46e5; }

.mob-on-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #818cf8;
  flex-shrink: 0;
}

.mob-on-step-text h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.2rem;
}

.mob-on-step-text p {
  font-size: 0.78rem;
  color: #8897b3;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FOOTER (reused from mobile.css pattern)
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-footer {
  background: #0b1120;
  border-top: 1px solid #1e2d45;
  padding: 2rem 1.2rem 1.2rem;
  color: #c7d2e8;
}

.mob-on-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  margin-bottom: 1.5rem;
}

.mob-on-footer-logo-col {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.mob-on-footer-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #c7d2e8;
}
.mob-on-footer-logo img { height: 32px; width: auto; }

.mob-on-footer-tagline {
  font-size: 0.75rem;
  color: #546180;
}

.mob-on-footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.7rem;
  border-left: 2px solid #4f46e5;
  padding-left: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mob-on-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mob-on-footer-col a {
  color: #8897b3;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s;
}
.mob-on-footer-col a:active { color: #818cf8; }

.mob-on-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mob-on-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #8897b3;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 30px;
  border: 1px solid #1e2d45;
  background: #111827;
  transition: color 0.15s, border-color 0.15s;
}
.mob-on-footer-social a:active { color: #818cf8; border-color: #4f46e5; }

.mob-on-footer-email {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid #1e2d45;
  border-bottom: 1px solid #1e2d45;
  margin-bottom: 1rem;
}

.mob-on-footer-email a {
  color: #8897b3;
  font-size: 0.78rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mob-on-footer-email a i { color: #818cf8; }
.mob-on-footer-email a:active { color: #c7d2e8; }

.mob-on-footer-copy {
  text-align: center;
  font-size: 0.72rem;
  color: #546180;
  line-height: 1.6;
}

/* ── Spin utility (shared) ── */
@keyframes mob-spin { to { transform: rotate(360deg); } }
.mob-spin { animation: mob-spin 0.8s linear infinite; display: inline-block; }

/* ═══════════════════════════════════════════════════════════════════════════
   SLOT CHAR COUNTER
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-slot-char-counter {
  font-size: 0.72rem;
  color: #546180;
  font-weight: 500;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUBTITLE STYLE SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-subtitle-section {
  border-top: 1px solid #1a2540;
  padding-top: 0.75rem;
  margin-top: 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mob-on-subtitle-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Live preview chip ── */
.mob-on-preview-chip-wrap {
  background: #04060c;
  border-radius: 10px;
  border: 1px solid #1e2d45;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.mob-on-preview-chip {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
  transition: font-family 0.15s, color 0.15s;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COLOUR PICKER ROWS
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-colour-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mob-on-colour-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.mob-on-colour-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.15s;
}

.mob-on-colour-hex {
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  color: #c7d2e8;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-on-colour-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.mob-on-colour-btn:active {
  background: rgba(99, 102, 241, 0.22);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLAIM CARDS (results)
   ═══════════════════════════════════════════════════════════════════════════ */
.mob-on-claim-card {
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mob-on-claim-card.failed {
  background: rgba(248, 113, 113, 0.05);
  border-color: rgba(248, 113, 113, 0.2);
}

.mob-on-claim-slot {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mob-on-claim-code {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-all;
  letter-spacing: 0.04em;
}

.mob-on-claim-copy {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.mob-on-claim-copy:active {
  background: rgba(52, 211, 153, 0.2);
}

.mob-on-claim-wait {
  font-size: 0.75rem;
  color: #546180;
}