/* Flag preview ("partial output") page — design tokens follow
   homepage.css / style_v2.css: Source Sans Pro, #1DA1F2 primary,
   #2E363F ink, #657281 body gray, #FF6E30 accent. */

#flag-preview-page { padding: 20px 0 0; }

#flag-preview-page h1 {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.25;
  color: #2E363F;
}

.fp-sub {
  font-size: 18px;
  line-height: 28px;
  color: #9E9E9F;
  margin: 10px 0 20px;
  max-width: 640px;
}

.fp-eyebrow {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FF6E30;
  margin-bottom: 10px;
}

/* ---- scanning state ---- */
.fp-scanning { display: flex; justify-content: center; }
.fp-scanning-layout {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 80px 40px;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
.fp-scan-left { flex: 1; min-width: 0; }
.fp-scan-right { flex: 0 0 420px; }
@media (max-width: 900px) {
  .fp-scanning-layout { flex-direction: column; padding: 40px 20px; gap: 36px; }
  .fp-scan-left, .fp-scan-right { max-width: 100%; flex: 1 1 100%; width: 100%; }
}
.fp-scan-card {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 24px rgba(29,161,242,0.10), 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #E8F1FF;
  border-radius: 12px;
  padding: 32px 36px;
  text-align: left;
  box-sizing: border-box;
}
.fp-scan-card h1 { font-size: 28px; }

.fp-progress-track {
  height: 8px;
  background: #EFF3F6;
  border-radius: 4px;
  overflow: hidden;
  margin: 22px 0 6px;
}
.fp-progress-fill {
  height: 100%;
  width: 40%;
  background: #1DA1F2;
  border-radius: 4px;
  animation: fp-grow 2.4s ease-in-out infinite alternate;
}
@keyframes fp-grow { from { width: 30%; } to { width: 85%; } }

.fp-check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.fp-check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: 16px;
  color: #657281;
}
.fp-check-list li.done { color: #2E363F; }
.fp-check-list li.active { color: #2E363F; }
.fp-ck {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #EFF3F6;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
li.done .fp-ck { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
li.active .fp-ck { border-color: #1DA1F2; color: #1DA1F2; }
.fp-status-message { font-size: 13px; color: #9E9E9F; margin-top: 14px; min-height: 18px; }

/* ---- results state ---- */
.fp-results { max-width: 860px; margin: 0 auto; }
.fp-results-header { margin-bottom: 8px; }
.fp-results-header.fp-clean { text-align: center; padding: 40px 0; }

.fp-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.fp-chip {
  border: 1px solid #E1E8ED;
  background: #fff;
  border-radius: 16px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #2E363F;
  display: flex; align-items: center; gap: 7px;
}
.fp-chip-filter { cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.fp-chip-filter:hover { background: #F5F8FA; border-color: #1DA1F2; }
.fp-chip-filter.fp-chip-active { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
.fp-chip-filter.fp-chip-active .fp-chip-n { background: rgba(255,255,255,0.3); }
.fp-chip-n {
  background: #FF6E30;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  padding: 1px 7px;
}

.fp-flag-list { margin-bottom: 6px; }
.fp-flag-card {
  background: #fff;
  border: 1px solid #E1E8ED;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fp-flag-card .fp-select { margin-top: 6px; width: 16px; height: 16px; flex: none; }
.fp-flag-body { flex: 1; min-width: 0; }
.fp-flag-meta { font-size: 13px; color: #9E9E9F; margin-bottom: 4px; }
.fp-flag-text { font-size: 15px; line-height: 1.5; color: #2E363F; word-wrap: break-word; }

.fp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 9px;
}
.fp-badge-profanity      { background: #FFF0E8; color: #FF6E30; }
.fp-badge-unprofessional { background: #EAF5FF; color: #1DA1F2; }
.fp-badge-privacy        { background: #F1EEFB; color: #7B5FE8; }
.fp-badge-nsfw           { background: #FDECF2; color: #E0245E; }
.fp-badge-racist         { background: #FDECEC; color: #C0392B; }
.fp-badge-other          { background: #EEF1F3; color: #657281; }

.fp-locked { position: relative; }
.fp-ghost-line {
  height: 12px;
  background: #EFF3F6;
  border-radius: 6px;
  margin: 6px 0;
}
.fp-ghost-line.fp-short { width: 55%; }
.fp-lock { margin-left: auto; font-size: 16px; }

.fp-gate {
  margin-top: 18px;
  background: linear-gradient(135deg, #1DA1F2, #4fb8ff);
  border-radius: 8px;
  padding: 20px 22px;
  color: #fff;
}
.fp-gate h4 { font-size: 17px; color: #fff; margin-bottom: 3px; }
.fp-gate p { font-size: 12px; color: #fff; opacity: .92; margin: 0 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-gate .primary-button { background: #fff; color: #1DA1F2; padding: 12px 24px; font-size: 15px; display: inline-flex; }
.fp-gate .primary-button:hover { background: #2e363f; color: #fff; }

.fp-bulk-bar {
  background: #fff;
  border-top: 1px solid #E1E8ED;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  border-radius: 0 0 10px 10px;
  border: 1px solid #E1E8ED;
  border-top: 1px solid #E1E8ED;
}
.fp-selected-count { font-size: 14px; color: #657281; margin-right: auto; }
.fp-bulk-bar .primary-button {
  background: #1DA1F2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.fp-bulk-bar .primary-button:hover { background: #0d8fd4; }

/* ---- plans section on scan page ---- */
.fp-plans-wrap {
  margin: 10px -9999px 0;
  padding: 30px 9999px 80px;
  background: #F4F5F6;
}
.fp-plans-wrap .premium-plan-main { margin-top: 0; text-align: center; }
.fp-plans-wrap .premium-plan-main h3 { font-size: 30px; font-weight: 700; text-align: center; margin: 0; padding: 0 0 15px; }
.fp-plans-wrap .premium-white-box { padding: 0; }
.fp-plans-wrap .premium-plan-boxes {
  display: flex;
  margin: 60px auto 0;
  max-width: 980px;
  justify-content: center;
}
.fp-plans-wrap .premium-plan-box { flex: 1 1 280px; max-width: 320px; }
.fp-plans-wrap .premium-plan-box.most-popular { margin-top: 44px; }
.fp-plans-wrap .premium-plan-boxes .most-popular { border: 3px solid #1DA1F2; }
.fp-plan-check { color: #1DA1F2; font-weight: 700; margin-right: 8px; flex: none; }

/* ---- STATE 3: free tier two-column layout ---- */
.fp-results-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 30px 0 60px;
  flex-wrap: wrap;
}
.fp-hero-left { flex: 1 1 480px; min-width: 320px; }
.fp-hero-right { flex: 1 1 420px; min-width: 300px; padding-left: 40px; }

.fp-user-over {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid rgba(46,54,63,.2);
  border-bottom: 1px solid rgba(46,54,63,.2);
  margin-top: 56px;
  font-weight: 700;
  font-size: 20px;
  color: #2E363F;
}
.fp-avatars { display: flex; }
.fp-avatars i {
  width: 36px; height: 36px; border-radius: 50%;
  margin-left: -12px; border: 2px solid #fff;
  background: linear-gradient(135deg,#cfe8fa,#8ecdf5); display: block;
}
.fp-avatars i:first-child { margin-left: 0; }

.fp-preview-panel {
  background: #fff;
  box-shadow: 0px 10px 30px 10px rgba(232,241,255,0.5);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid #E8F1FF;
}
.fp-panel-title { font-weight: 700; font-size: 18px; color: #2E363F; margin-bottom: 4px; }
.fp-panel-sub { font-size: 14px; color: #657281; margin-bottom: 18px; }

.fp-tweet-row-free {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #EFF3F6;
  align-items: flex-start;
}
.fp-tweet-row-free:last-of-type { border-bottom: none; }
.fp-tw-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: #E8F1FF; flex: none;
}
.fp-locked-row { position: relative; }
.fp-lock { margin-left: auto; font-size: 15px; flex: none; }

/* ---- STATE 4: premium dashboard ---- */
.fp-dash-wrap { padding: 40px 0 80px; }
.fp-dash-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 10px 30px 10px rgba(232,241,255,0.5);
  padding: 26px;
  max-width: 860px;
  margin: 0 auto;
}
.fp-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.fp-dash-head h3 { font-size: 21px; color: #2E363F; }
.fp-dash-muted { font-weight: 400; color: #657281; }
.fp-btn-outline {
  background: #fff; color: #1DA1F2;
  border: 2px solid #1DA1F2; border-radius: 4px;
  padding: 10px 20px; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none;
}
.fp-btn-outline:hover { background: #1DA1F2; color: #fff; }

.fp-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fp-pill {
  border: 1px solid #E1E8ED; background: #fff;
  border-radius: 16px; padding: 6px 13px;
  font-size: 13px; cursor: pointer; font-family: inherit;
  color: #2E363F;
}
.fp-pill.fp-pill-on { background: #2E363F; color: #fff; border-color: #2E363F; }
.fp-pill:hover:not(.fp-pill-on) { border-color: #1DA1F2; color: #1DA1F2; }

.fp-tweet-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #EFF3F6;
  align-items: flex-start;
}
.fp-row-actions { margin-left: auto; display: flex; gap: 8px; flex: none; align-items: center; }
.fp-row-btn {
  border: 1px solid #E1E8ED; background: #fff;
  border-radius: 16px; padding: 5px 13px;
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.fp-row-danger { color: #E0245E; border-color: #FBD2DE; }
.fp-row-danger:hover { background: #FBD2DE; }
.fp-row-keep:hover { border-color: #1DA1F2; color: #1DA1F2; }

/* ---- homepage hero teaser panel (state 1, index.html) ---- */
.fp-hero-panel {
  background: #fff;
  box-shadow: 0px 10px 30px 10px rgba(232, 241, 255, 0.5);
  border: 1px solid #E8F1FF;
  border-radius: 10px;
  padding: 28px;
}
.fp-hero-panel-title {
  font-weight: 700;
  font-size: 18px;
  color: #2E363F;
  margin-bottom: 4px;
}
.fp-hero-panel-sub { font-size: 14px; color: #657281; margin-bottom: 16px; }
.fp-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EFF3F6;
}
.fp-hero-row:last-child { border-bottom: none; }
.fp-hero-av { width: 34px; height: 34px; border-radius: 50%; background: #E8F1FF; flex: none; }
.fp-hero-lines { flex: 1; }
.fp-hero-l1 { height: 10px; border-radius: 5px; background: #EFF3F6; margin-bottom: 6px; }
.fp-hero-l2 { height: 10px; border-radius: 5px; background: #EFF3F6; width: 55%; }

@media only screen and (max-width: 980px) {
  #flag-preview-page h1 { font-size: 28px; }
  .fp-scan-card { padding: 26px; }
  .fp-results-layout { padding: 40px 0; }
  .fp-hero-right { padding-left: 0; }
}
