/* ficklestudio26 — shared site chrome (top bar on every tool page + hub page).
   Everything is prefixed `fs-` so it never collides with the tools' own styles. */

.fs-bar {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e8e8ec;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1d1d22;
  -webkit-font-smoothing: antialiased;
}
.fs-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fs-bar a { color: inherit; text-decoration: none; }
.fs-bar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.fs-bar__brand svg { display: block; }
.fs-bar__tools {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.fs-bar__tools::-webkit-scrollbar { display: none; }
.fs-bar__tools a {
  padding: 7px 10px;
  border-radius: 6px;
  color: #5b5b66;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.fs-bar__tools a:hover { background: #f2f2f5; color: #1d1d22; }
.fs-bar__tools a[aria-current="page"] { color: #1d1d22; background: #f2f2f5; }

@media (max-width: 640px) {
  .fs-bar__inner { gap: 10px; }
  .fs-bar__brand span { display: none; }
  .fs-bar__tools { margin-left: 0; }
  .fs-bar__tools a { padding: 7px 8px; }
}

@media print {
  .fs-bar { display: none !important; }
}

/* ── "Go Pro" button in the top bar ─────────────────────────── */
.fs-bar__pro {
  flex-shrink: 0; margin-left: 4px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid #1d1d22; background: #1d1d22; color: #fff !important;
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; white-space: nowrap;
}
.fs-bar__pro:hover { background: #3a3a44; }
.is-pro .fs-bar__pro { background: #fff; color: #2f9e44 !important; border-color: #b2f2bb; }
@media (max-width: 640px) { .fs-bar__pro { padding: 6px 9px; } }

/* ── Ad spots (invisible until an ad unit is configured) ────── */
.ad-slot { display: none; }
.ad-slot.is-on { display: block; margin: 32px auto; max-width: 970px; text-align: center; clear: both; }
.ad-slot__label {
  display: block; margin-bottom: 4px; color: #9a9aa5;
  font: 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.is-pro .ad-slot { display: none !important; }

/* ── Pro window ─────────────────────────────────────────────── */
.fs-pro-open { overflow: hidden; }
.fs-pro {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1d1d22;
}
.fs-pro__backdrop { position: absolute; inset: 0; background: rgba(15, 15, 25, .55); backdrop-filter: blur(2px); }
.fs-pro__dialog {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 28px 26px 22px; box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.fs-pro__x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #f2f2f5; color: #5b5b66; cursor: pointer;
}
.fs-pro__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b8b96; }
.fs-pro h2 { margin: 2px 0 10px; font: 800 28px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: -0.03em; color: #1d1d22; }
.fs-pro__reason { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff4e6; color: #8a4b08; font-size: 14px; }
.fs-pro__status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px;
  border-radius: 10px; background: #ebfbee; color: #2b8a3e; font-size: 14px;
}
.fs-pro__link { margin-left: auto; border: 0; background: none; color: #5b5b66; text-decoration: underline; cursor: pointer; font-size: 13px; }
.fs-pro__benefits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.fs-pro__benefits li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #3a3a44; }
.fs-pro__benefits svg { flex-shrink: 0; margin-top: 3px; color: #2f9e44; }
.fs-pro__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.fs-pro__plan { position: relative; padding: 16px 14px 14px; border: 1px solid #e8e8ec; border-radius: 14px; display: flex; flex-direction: column; }
.fs-pro__plan.is-best { border-color: #3b5bdb; box-shadow: 0 0 0 1px #3b5bdb inset; }
.fs-pro__tag { position: absolute; top: -10px; left: 14px; padding: 2px 8px; border-radius: 99px; background: #3b5bdb; color: #fff; font-size: 11px; font-weight: 700; }
.fs-pro__plan-name { margin: 0; font-weight: 600; font-size: 14px; }
.fs-pro__price { margin: 2px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.fs-pro__note { margin: 0 0 12px; font-size: 12.5px; color: #6b6b76; flex: 1; }
.fs-pro__buy {
  display: block; text-align: center; padding: 10px; border-radius: 10px; background: #1d1d22; color: #fff;
  font-weight: 600; text-decoration: none; font-size: 14px;
}
.fs-pro__plan.is-best .fs-pro__buy { background: #3b5bdb; }
.fs-pro__buy.is-disabled, .fs-pro__plan.is-best .fs-pro__buy.is-disabled { background: #f2f2f5; color: #8b8b96; cursor: default; }
.fs-pro__code { margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid #f0f0f3; }
.fs-pro__code label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fs-pro__row { display: flex; gap: 8px; }
.fs-pro__row input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d9d9e0; border-radius: 10px;
  font: 14px ui-monospace, Menlo, Consolas, monospace; color: #1d1d22; background: #fff;
}
.fs-pro__row button { padding: 0 16px; border: 0; border-radius: 10px; background: #1d1d22; color: #fff; font-weight: 600; cursor: pointer; }
.fs-pro__row button:disabled { opacity: .6; cursor: wait; }
.fs-pro__msg { min-height: 20px; margin: 6px 0 0; font-size: 13px; color: #5b5b66; }
.fs-pro__msg.is-ok { color: #2b8a3e; }
.fs-pro__msg.is-err { color: #c92a2a; }
.fs-pro__small { margin: 6px 0 0; font-size: 12px; color: #8b8b96; }
.fs-pro__small a { color: #5b5b66; }
@media (max-width: 480px) { .fs-pro__plans { grid-template-columns: 1fr; } .fs-pro__dialog { padding: 24px 18px 18px; } }

/* ── Wait screen before free downloads ──────────────────────── */
.fs-wait {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 15, 25, .5); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fs-wait__card { width: 100%; max-width: 360px; padding: 28px 24px; border-radius: 18px; background: #fff; color: #1d1d22; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.fs-wait__ring {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid #e8e8ec; border-top-color: #3b5bdb;
  display: flex; align-items: center; justify-content: center; animation: fs-spin 1s linear infinite;
}
.fs-wait__ring span { animation: fs-spin 1s linear infinite reverse; font-weight: 800; font-size: 22px; }
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-wait__title { margin: 0 0 4px; font-weight: 700; font-size: 17px; }
.fs-wait__sub { margin: 0 0 16px; color: #6b6b76; font-size: 13.5px; }
.fs-wait__pro { padding: 9px 16px; border-radius: 99px; border: 1px solid #3b5bdb; background: #fff; color: #3b5bdb; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fs-wait__ring, .fs-wait__ring span { animation: none; } }
