/* ==========================================================================
   TikTok Banner Generator Pro - CPA Content Locker & Mobile Optimized Styles
   ========================================================================== */

:root {
  --bg-dark: #080811;
  --bg-card: rgba(18, 18, 35, 0.9);
  --bg-card-hover: rgba(28, 28, 54, 0.95);
  --bg-input: rgba(12, 12, 26, 0.95);
  
  --tiktok-cyan: #25F4EE;
  --tiktok-pink: #FE2C55;
  --tiktok-white: #FFFFFF;
  --accent-purple: #8A2BE2;
  --accent-gold: #FFB800;
  --accent-green: #00FF88;

  --text-main: #FFFFFF;
  --text-secondary: #9DA3BC;
  --text-muted: #646A85;

  --border-glass: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(37, 244, 238, 0.5);

  --glow-cyan: 0 0 30px rgba(37, 244, 238, 0.35);
  --glow-pink: 0 0 30px rgba(254, 44, 85, 0.35);
  --glow-btn: 0 6px 25px rgba(254, 44, 85, 0.45);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  direction: ltr;
  text-align: left;
}

/* Ambient Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.28;
}

.glow-cyan {
  width: 450px;
  height: 450px;
  background: var(--tiktok-cyan);
  top: -80px;
  left: -80px;
  animation: floatLight 14s ease-in-out infinite alternate;
}

.glow-pink {
  width: 480px;
  height: 480px;
  background: var(--tiktok-pink);
  bottom: 40px;
  right: -80px;
  animation: floatLight 16s ease-in-out infinite alternate-reverse;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: -1;
  pointer-events: none;
}

@keyframes floatLight {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-25px, 60px) scale(0.95); }
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--tiktok-cyan) 0%, #ffffff 50%, var(--tiktok-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--tiktok-cyan); }
.text-pink { color: var(--tiktok-pink); }

/* ==========================================================================
   SLEEK CLEAN TOP NAVBAR
   ========================================================================== */
.navbar {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 17, 0.92);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tiktok-cyan);
  font-size: 1.15rem;
  box-shadow: -2px -2px 0 var(--tiktok-pink), 2px 2px 0 var(--tiktok-cyan);
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

.logo-brand {
  color: #fff;
}

.logo-tag {
  font-size: 1.15rem;
}

.nav-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #fff;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   TIKTOK IN-APP BROWSER OVERLAY
   ========================================================================== */
.tiktok-browser-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  animation: fadeIn 0.3s ease;
}

.tt-browser-arrow-wrapper {
  position: absolute;
  top: 14px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tt-curved-arrow {
  font-size: 2.8rem;
  color: var(--tiktok-cyan);
  animation: bounceUp 1.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 15px var(--tiktok-cyan));
}

@keyframes bounceUp {
  0% { transform: translateY(0) rotate(15deg); }
  100% { transform: translateY(-12px) rotate(25deg); }
}

.tt-arrow-pulse-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--tiktok-cyan);
  position: absolute;
  top: -6px;
  right: -6px;
  animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.tt-browser-modal {
  width: 100%;
  max-width: 440px;
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(37, 244, 238, 0.2);
}

.tt-browser-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 44, 85, 0.15);
  border: 1px solid var(--tiktok-pink);
  color: var(--tiktok-pink);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.tt-browser-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.tt-browser-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.tt-gif-guide-wrapper {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(37, 244, 238, 0.35);
  box-shadow: 0 0 20px rgba(37, 244, 238, 0.2);
  background: #000;
}

.tt-guide-gif {
  width: 100%;
  height: auto;
  display: block;
}

.tt-steps-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 18px;
}

.tt-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #fff;
}

.tt-step-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tiktok-cyan);
  color: #080811;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.btn-dismiss-tt {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-dismiss-tt:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   HERO & GENERATOR CARD (PERFECTLY CONTAINED)
   ========================================================================== */
.hero-section {
  padding: 20px 0 26px;
  text-align: center;
}

.hero-header-compact {
  margin-bottom: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.3);
  border-radius: 50px;
  color: var(--tiktok-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.hero-desc {
  max-width: 580px;
  margin: 0 auto;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Generator Card (Strict Box & Overflow Rules) */
.generator-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
}

.input-form-wrapper {
  width: 100%;
  box-sizing: border-box;
}

/* Feature Status Alert */
.feature-status-banner {
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 14px;
}

.feature-status-banner strong {
  color: var(--tiktok-pink);
}

.form-group-block {
  margin-bottom: 14px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-label i {
  color: var(--tiktok-cyan);
}

/* Username Input */
.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2px 6px;
  transition: var(--transition-smooth);
}

.input-group:focus-within {
  border-color: var(--tiktok-cyan);
  box-shadow: var(--glow-cyan);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--tiktok-cyan);
  font-weight: 800;
  font-size: 1.1rem;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-main);
  padding: 10px 4px;
}

.input-group input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Platform / Device Selector (iOS vs Android) */
.platform-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.platform-option input {
  display: none;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.platform-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.platform-option input:checked + .platform-card {
  background: rgba(37, 244, 238, 0.1);
  border-color: var(--tiktok-cyan);
  box-shadow: 0 0 16px rgba(37, 244, 238, 0.25);
}

.platform-icon {
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.platform-option input:checked + .platform-card .platform-icon {
  color: var(--tiktok-cyan);
}

.platform-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.platform-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.platform-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.platform-check {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.platform-option input:checked + .platform-card .platform-check {
  color: var(--tiktok-cyan);
}

/* Banner Image Upload Dropzone */
.upload-dropzone {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--tiktok-cyan);
  background: rgba(37, 244, 238, 0.05);
}

.upload-content-default {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--tiktok-cyan);
  flex-shrink: 0;
}

.upload-text {
  display: flex;
  flex-direction: column;
}

.upload-main-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.upload-sub-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Upload Preview State */
.upload-content-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.preview-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--tiktok-cyan);
}

.preview-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.preview-filename {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-status {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-remove-photo {
  background: rgba(254, 44, 85, 0.15);
  border: 1px solid var(--tiktok-pink);
  color: var(--tiktok-pink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-remove-photo:hover {
  background: var(--tiktok-pink);
  color: #fff;
}

/* Continue Button */
.form-group-btn {
  margin-top: 14px;
  margin-bottom: 10px;
}

.btn-continue {
  width: 100%;
  background: linear-gradient(135deg, var(--tiktok-pink) 0%, #ff4b72 100%);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: var(--glow-btn);
  letter-spacing: 0.3px;
}

.btn-continue:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-continue i {
  transition: transform 0.2s ease;
}

.btn-continue:hover i {
  transform: translateX(4px);
}

.quick-options-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pill-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5-SECOND SCANNING / GENERATOR (STRICTLY CONTAINED - ZERO OVERFLOW)
   ========================================================================== */
.scanning-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.spinner-box {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.glow-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--tiktok-cyan);
  border-bottom-color: var(--tiktok-pink);
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.center-tiktok-icon {
  font-size: 1.6rem;
  color: #fff;
  filter: drop-shadow(0 0 10px var(--tiktok-pink));
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scanning-steps {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 244, 238, 0.12);
  border: 1px solid rgba(37, 244, 238, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tiktok-cyan);
  margin-bottom: 8px;
}

.pulse-dot-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tiktok-cyan);
  animation: pulse 1s infinite;
}

.scan-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: break-word;
}

/* Strictly contained progress bar */
.progress-bar-container {
  width: 100%;
  max-width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
  box-sizing: border-box;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  max-width: 100%;
  background: linear-gradient(90deg, var(--tiktok-cyan), #fff, var(--tiktok-pink));
  border-radius: 999px;
  transition: width 0.15s linear;
  box-sizing: border-box;
}

.scan-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  word-break: break-word;
}

/* Clean Generator Checklist (Replaces messy terminal logs) */
.clean-steps-checklist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  box-sizing: border-box;
  text-align: left;
}

.clean-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.clean-step-item.active {
  color: var(--tiktok-cyan);
  font-weight: 700;
}

.clean-step-item.done {
  color: var(--accent-green);
  font-weight: 700;
}

.clean-step-icon {
  font-size: 0.95rem;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clean-step-item.done .clean-step-icon {
  color: var(--accent-green);
}

.clean-step-item.active .clean-step-icon {
  color: var(--tiktok-cyan);
}

/* ==========================================================================
   OFFICIAL TIKTOK NATIVE APP POPUP / BOTTOM SHEET DESIGN
   ========================================================================== */
.locker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tiktok-sheet-card {
  width: 100%;
  max-width: 520px;
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 20px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  position: relative;
  text-align: left;
  overflow: hidden;
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  margin: 0 auto 14px;
}

.tiktok-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.tt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-icon {
  width: 36px;
  height: 36px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: -2px -2px 0 var(--tiktok-pink), 2px 2px 0 var(--tiktok-cyan);
}

.tt-titles {
  display: flex;
  flex-direction: column;
}

.tt-app-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.2;
}

.tt-sub-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tt-header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-device-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

.tt-security-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.25);
  color: var(--tiktok-cyan);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

.tt-profile-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tt-profile-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--tiktok-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #161622 0%, #0d0d15 100%);
  box-shadow: 0 0 14px rgba(37, 244, 238, 0.25);
  flex-shrink: 0;
}

.tt-avatar-placeholder {
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(-1px -1px 0 var(--tiktok-pink)) drop-shadow(1px 1px 0 var(--tiktok-cyan));
}

.tt-profile-info {
  display: flex;
  flex-direction: column;
}

.tt-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-display-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.tt-verified-check {
  color: #20d5ec;
  font-size: 0.85rem;
}

.tt-handle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.tt-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--accent-green);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
}

.tt-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.2s infinite;
}

/* Instructions Box */
.tt-instructions-box {
  background: rgba(254, 44, 85, 0.08);
  border: 1px solid rgba(254, 44, 85, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tt-instruction-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #e2e4ed;
}

.tt-instruction-step strong {
  color: #fff;
}

.tt-step-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tiktok-pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Offers Section */
.tt-offers-section {
  margin-bottom: 14px;
}

.tt-offers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tt-live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 800;
}

.tt-offers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Offer Card */
.tt-offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.tt-offer-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--tiktok-cyan);
}

.tt-offer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.tt-offer-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.15), rgba(254, 44, 85, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
}

.tt-offer-text {
  display: flex;
  flex-direction: column;
}

.tt-offer-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.tt-offer-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

@keyframes buttonPulseBreath {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 6px 18px rgba(254, 44, 85, 0.75);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
  }
}

.tt-offer-action {
  background: linear-gradient(135deg, var(--tiktok-pink) 0%, #ff3b64 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
  animation: buttonPulseBreath 1.6s ease-in-out infinite;
  transform-origin: center;
}

.tt-offers-list a:nth-child(2) .tt-offer-action {
  animation-delay: 0.25s;
}

.tt-offers-list a:nth-child(3) .tt-offer-action {
  animation-delay: 0.5s;
}

.tt-skeleton-loader {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
}

/* Sheet Footer */
.tt-sheet-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.tt-checking-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--tiktok-cyan);
  font-weight: 600;
}

.tt-loader-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(37, 244, 238, 0.2);
  border-top-color: var(--tiktok-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.tt-footer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Features */
.features-section {
  padding: 50px 0;
  border-top: 1px solid var(--border-glass);
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 35px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: left;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.cyan-glow {
  background: rgba(37, 244, 238, 0.15);
  color: var(--tiktok-cyan);
  box-shadow: var(--glow-cyan);
}

.pink-glow {
  background: rgba(254, 44, 85, 0.15);
  color: var(--tiktok-pink);
  box-shadow: var(--glow-pink);
}

.purple-glow {
  background: rgba(138, 43, 226, 0.15);
  color: #b388ff;
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.35);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Reviews */
.reviews-section {
  padding: 40px 0 60px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #ffb800;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-glass);
  padding-top: 8px;
}

.reviewer-name {
  font-weight: 700;
  color: var(--tiktok-cyan);
  font-size: 0.85rem;
}

.reviewer-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 30px 0 20px;
  background: rgba(5, 5, 12, 0.95);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom {
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* ==========================================================================
   MOBILE-FIRST OPTIMIZATION (FULL, PROMINENT & WELL-PROPORTIONED)
   ========================================================================== */
@media (max-width: 600px) {
  .container {
    padding: 0 12px;
  }
  .navbar {
    padding: 10px 0;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
  .logo-text-group {
    font-size: 1.12rem;
  }
  .nav-stats {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  .hero-section {
    padding: 12px 0 20px;
  }
  .hero-header-compact {
    margin-bottom: 14px;
  }
  .hero-badge {
    padding: 4px 14px;
    font-size: 0.78rem;
    margin-bottom: 8px;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
  }
  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  /* Full-width, prominent card matching device nicely */
  .generator-card {
    width: 100%;
    padding: 20px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(37, 244, 238, 0.08);
  }

  .feature-status-banner {
    padding: 9px 12px;
    font-size: 0.82rem;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .form-group-block {
    margin-bottom: 14px;
  }

  .field-label {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 7px;
  }

  /* Bigger, comfortable input */
  .input-group {
    min-height: 52px;
    padding: 4px 8px;
    border-radius: 14px;
  }
  .input-prefix {
    font-size: 1.25rem;
    padding: 0 10px;
  }
  .input-group input {
    padding: 12px 6px;
    font-size: 1rem;
  }
  .input-group input::placeholder {
    font-size: 0.92rem;
  }

  /* Bigger, comfortable platform choices */
  .platform-selector {
    gap: 10px;
  }
  .platform-card {
    padding: 12px 12px;
    min-height: 62px;
    border-radius: 14px;
    gap: 10px;
  }
  .platform-icon {
    font-size: 1.5rem;
  }
  .platform-title {
    font-size: 0.92rem;
    font-weight: 800;
  }
  .platform-sub {
    font-size: 0.72rem;
  }
  .platform-check {
    font-size: 1.1rem;
  }

  /* Bigger, easy-to-tap upload zone */
  .upload-dropzone {
    padding: 14px 14px;
    border-radius: 14px;
    min-height: 64px;
  }
  .upload-icon-circle {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .upload-main-text {
    font-size: 0.92rem;
    font-weight: 700;
  }
  .upload-sub-text {
    font-size: 0.75rem;
  }
  .preview-img {
    width: 46px;
    height: 46px;
  }
  .preview-filename {
    font-size: 0.88rem;
  }
  .preview-status {
    font-size: 0.75rem;
  }

  /* Prominent Continue Button */
  .form-group-btn {
    margin-top: 16px;
    margin-bottom: 12px;
  }
  .btn-continue {
    min-height: 54px;
    padding: 14px 20px;
    font-size: 1.08rem;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 8px 30px rgba(254, 44, 85, 0.45);
  }

  .quick-options-row {
    gap: 12px;
    margin-top: 4px;
  }
  .pill-info {
    font-size: 0.75rem;
  }

  /* Generator Scanning State on Mobile */
  .scanning-wrapper {
    padding: 22px 8px;
  }
  .spinner-box {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }
  .glow-spinner {
    border-width: 4.5px;
  }
  .center-tiktok-icon {
    font-size: 1.85rem;
  }
  .status-indicator-badge {
    padding: 4px 14px;
    font-size: 0.76rem;
    margin-bottom: 10px;
  }
  .scan-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .progress-bar-container {
    height: 10px;
    margin: 12px 0 14px;
  }
  .scan-detail {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }
  .clean-steps-checklist {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .clean-step-item {
    font-size: 0.9rem;
    gap: 12px;
  }
  .clean-step-icon {
    font-size: 1.1rem;
    width: 20px;
  }

  /* Content Locker Native Sheet on Mobile */
  .tiktok-sheet-card {
    padding: 18px 14px;
    border-radius: 22px;
    max-width: 100%;
  }
  .tt-app-name {
    font-size: 1.05rem;
  }
  .tt-instructions-box {
    padding: 10px 12px;
    gap: 8px;
  }
  .tt-instruction-step {
    font-size: 0.82rem;
  }
  .tt-offer-card {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .tt-offer-title {
    font-size: 0.88rem;
  }
  .tt-offer-desc {
    font-size: 0.74rem;
  }
}
