/* ==========================================================================
   Dashboard shell
   ========================================================================== */
.fp-dash{ padding: 40px 0 100px; }
.fp-dash__container{ max-width: 640px; }
.fp-dash__container--full{ max-width: 1260px; }

.fp-alert{ padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.fp-alert--ok{ background: #EEF6EF; color: #2C6E31; }
.fp-alert--error{ background: #FCEEEE; color: #B3261E; }

.fp-btn--ghost{ background: transparent; border-color: var(--fp-line); color: var(--fp-ink); }
.fp-btn--ghost:hover{ background: var(--fp-paper-soft); }

/* ==========================================================================
   Logged-out: auth
   ========================================================================== */
.fp-auth{ max-width: 420px; margin: 0 auto; }
.fp-auth__title{ font-family: var(--fp-font-display); font-size: 30px; font-weight: 700; text-align: center; margin: 0 0 8px; letter-spacing: -0.01em; }
.fp-auth__lede{ text-align: center; color: var(--fp-ink-soft); font-size: 15px; margin: 0 0 28px; }

.fp-auth__tabs{ display: flex; border: 1px solid var(--fp-line); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.fp-auth__tab{ flex: 1; border: none; background: none; padding: 9px 0; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--fp-muted); cursor: pointer; }
.fp-auth__tab.is-active{ background: var(--fp-ink); color: #fff; }

.fp-auth__panel{ display: none; flex-direction: column; gap: 14px; }
.fp-auth__panel.is-active{ display: flex; }
.fp-auth__submit{ width: 100%; margin-top: 6px; }

.fp-google-btn{
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--fp-line);
	background: #fff; color: #0f1419; font-size: 15px; font-weight: 600;
	cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.fp-google-btn:hover{ background: #f2f2f2; }
.fp-google-btn:active{ transform: scale(.98); }
.fp-google-btn[disabled]{ opacity: .6; cursor: wait; }
.fp-auth__or{ text-align: center; font-size: 13px; color: var(--fp-muted); margin: 14px 0 18px; }

.fp-field-hp{ position: absolute; left: -9999px; }

/* ==========================================================================
   Shared field styles (auth + editor)
   ========================================================================== */
.fp-label{ display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fp-ink-soft); margin-bottom: 14px; }
.fp-label__hint{ font-weight: 400; color: var(--fp-muted); }
.fp-input{
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 400;
  color: var(--fp-ink);
  outline: none;
  width: 100%;
  font-family: var(--fp-font-sans);
}
.fp-input:focus{ border-color: var(--fp-brand); }
textarea.fp-input{ resize: vertical; }

/* ==========================================================================
   Logged-in: editor
   ========================================================================== */
.fp-dash__head{ display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.fp-dash__title{ font-family: var(--fp-font-display); font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.fp-dash__plan{ font-size: 13px; color: var(--fp-ink-soft); margin: 0; }
.fp-dash__head-actions{ display: flex; gap: 10px; flex-shrink: 0; }

.fp-panel{ border: 1px solid var(--fp-line); border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.fp-panel__title{ font-size: 15px; font-weight: 700; margin: 0 0 18px; }
.fp-panel__hint{ font-size: 12px; color: var(--fp-muted); margin: -10px 0 16px; }

.fp-photo-row{ display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.fp-photo-preview{
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--fp-paper-soft); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--fp-muted); flex-shrink: 0;
}
.fp-photo-preview img{ width: 100%; height: 100%; object-fit: cover; }
.fp-photo-btn{ cursor: pointer; font-size: 13px; padding: 8px 14px; }

.fp-linkrow{ display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.fp-linkrow__num{ font-size: 12px; font-weight: 700; color: var(--fp-ink-soft); }
.fp-linkrow.is-locked{ opacity: .5; }
@media (max-width: 560px){
  .fp-linkrow{ grid-template-columns: 1fr; }
}

.fp-upsell{ font-size: 13px; color: var(--fp-muted); margin: 4px 0 0; }
.fp-upsell a{ color: var(--fp-gold); font-weight: 600; text-decoration: underline; }

.fp-tpl-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fp-tpl-option{
  border: 1.5px solid var(--fp-line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  position: relative;
}
.fp-tpl-option input{ position: absolute; top: 8px; left: 8px; margin: 0; }
.fp-tpl-option.is-selected{ border-color: var(--fp-brand); background: #F4F7FF; }
.fp-tpl-option.is-locked{ opacity: .55; cursor: not-allowed; }
.fp-tpl-swatch{ width: 100%; height: 44px; border-radius: 6px; background: var(--fp-paper-soft); border: 1px solid var(--fp-line); }
.fp-tpl-name{ font-size: 12px; font-weight: 600; }
.fp-tpl-tag{ font-size: 10px; color: var(--fp-muted); }

.fpt-1-swatch{ background: #fff; }
.fpt-2-swatch{ background: #fff; border: 2px solid var(--fp-ink); }
.fpt-3-swatch{ background: linear-gradient(#fff, #fff); border-left: 3px solid var(--fp-ink); }
.fpt-4-swatch{ background: #fff; border-bottom: 2px solid var(--fp-gold); }
.fpt-5-swatch{ background: #101114; border-color: var(--fp-gold); }
.fpt-7-swatch{ background: linear-gradient(135deg, #5865F2, #B08A34); }
.fpt-8-swatch{ background: #0B0D0C; border-color: #4ADE80; }
.fpt-6-swatch{ background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 55%, #f472b6 100%); }
.fpt-9-swatch{ background: linear-gradient(135deg, #fde68a, #93c5fd); border: 2px solid rgba(255,255,255,.9); }
.fpt-11-swatch{ background: #07080D; border-color: #6366F1; box-shadow: inset 0 -4px 0 #6366F1, 0 0 10px rgba(99,102,241,.6); }
.fpt-12-swatch{ background: linear-gradient(135deg, #e9d5ff, #bbf7d0, #fed7aa); }
.fpt-13-swatch{ background: radial-gradient(circle at 50% 50%, #A5B4FC 0 5px, #6366F1 6px 9px, rgba(99,102,241,.35) 10px 16px, #0A0B14 18px); border-color: #0A0B14; }
.fpt-10-swatch{ background: #fff; display: flex; align-items: center; justify-content: center; }
.fpt-14-swatch{
  background:
    radial-gradient(circle at 24% 52%, #fff 0 6px, #0A0A0A 6px 7.5px, transparent 7.5px),
    linear-gradient(#0A0A0A 0 30%, #fff 30%);
  border: 1.5px solid #0A0A0A;
}

.fp-editor__save{ width: 100%; padding: 14px 0; font-size: 15px; }

/* ==========================================================================
   Dashboard app-shell: sidebar + editor + live preview
   ========================================================================== */
.fp-dash__title{ font-family: var(--fp-font-display); font-size: 24px; font-weight: 700; margin: 0 0 18px; }

.fp-dash__shell{
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 386px;
  gap: 22px;
  align-items: start;
}

/* -- Sidebar -- */
.fp-dash__sidebar{
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  padding: 10px;
  background: var(--fp-paper);
}
.fp-dash__navgroup{
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 0;
}
.fp-dash__navgroup + .fp-dash__navgroup{ border-top: 1px solid var(--fp-line); }
.fp-dash__navitem{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fp-ink-soft);
}
.fp-dash__navitem svg{ flex-shrink: 0; opacity: .8; }
a.fp-dash__navitem:hover{ background: var(--fp-paper-soft); color: var(--fp-ink); }
a.fp-dash__navitem.is-active{ background: #EEF2FF; color: var(--fp-brand); font-weight: 600; }
a.fp-dash__navitem.is-active svg{ opacity: 1; }

.fp-dash__navitem.is-soon{ color: var(--fp-muted); cursor: default; }
.fp-dash__navitem.is-soon em{
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--fp-muted);
  background: var(--fp-paper-soft);
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  padding: 2px 7px;
}

/* -- Group labels -- */
.fp-dash__navlabel{
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fp-muted);
  padding: 2px 10px 6px;
}

/* -- Light / dark switch for the dashboard itself -- */
.fp-themeswitch{
  display: flex;
  gap: 4px;
  margin-top: 8px;
  padding: 4px;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  background: var(--fp-paper-soft);
  flex-shrink: 0;
}
.fp-themeswitch__btn{
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 7px 10px;
  font: 600 12.5px var(--fp-font-sans);
  color: var(--fp-muted);
  cursor: pointer;
  white-space: nowrap;
}
.fp-themeswitch__btn svg{ flex-shrink: 0; }
.fp-themeswitch__btn[aria-pressed="true"]{
  background: var(--fp-paper);
  color: var(--fp-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* -- Editor column -- */
.fp-dash__shell .fp-editor{ min-width: 0; }

/* -- Live preview column -- */
.fp-dash__preview{
  position: sticky;
  top: 20px;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--fp-paper-soft);
}
.fp-dash__preview-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--fp-muted);
  border-bottom: 1px solid var(--fp-line);
  background: var(--fp-paper);
}
.fp-dash__preview-head a{ font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--fp-brand); font-size: 12.5px; }
.fp-dash__preview-frame{
  transform: scale(.92);
  transform-origin: top center;
  margin-bottom: -34px;
}
.fp-dash__preview-frame .fp-profile{ min-height: 0; padding: 26px 14px; }
.fp-dash__preview-frame .fp-profile__brandmark{ pointer-events: none; }
.fp-dash__preview-frame .fp-linkbtn,
.fp-dash__preview-frame .fp-social{ pointer-events: none; }

/* Every child gets an explicit column, so a hidden editor form can never push
   Analytics / Share / Account settings into the narrow preview column. */
.fp-dash__shell > .fp-dash__sidebar{ grid-column: 1 / 2; grid-row: 1; }
.fp-dash__shell > .fp-editor{ grid-column: 2 / 3; grid-row: 1; }
.fp-dash__shell > .fp-dash__preview{ grid-column: 3 / 4; grid-row: 1; }
.fp-dash__shell > .fp-panel--wide,
.fp-dash__shell > .fp-panel--account{ grid-column: 2 / 3; grid-row: 1; min-width: 0; }
.fp-panel--wide{ overflow-x: auto; }

/* ==========================================================================
   Tablet + mobile: sidebar becomes one horizontal, scrollable tab strip
   ========================================================================== */
@media (max-width: 1080px){
  .fp-dash{ padding-top: 20px; }
  .fp-dash__shell{ grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fp-dash__shell > *{ grid-column: 1 / -1 !important; grid-row: auto !important; }

  .fp-dash__sidebar{
    position: sticky;
    top: 0;
    z-index: 20;
    order: -2;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border-width: 0 0 1px;
    padding: 8px 24px;
    margin: 0 -24px;
    background: var(--fp-paper);
  }
  .fp-dash__sidebar::-webkit-scrollbar{ display: none; }

  .fp-dash__navgroup{
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0 10px 0 0;
    margin-right: 10px;
  }
  .fp-dash__navgroup:first-child{ padding-left: 0; }
  .fp-dash__navgroup + .fp-dash__navgroup{
    border-top: 0;
    border-left: 1px solid var(--fp-line);
    padding-left: 10px;
  }
  .fp-dash__navlabel{ display: none; }

  .fp-dash__navitem{
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--fp-line);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    background: var(--fp-paper);
  }
  a.fp-dash__navitem.is-active{
    background: var(--fp-brand);
    border-color: var(--fp-brand);
    color: var(--fp-brand-ink);
  }
  a.fp-dash__navitem.is-active svg{ opacity: 1; }
  .fp-dash__navitem em,
  .fp-dash__navitem.is-premium em,
  .fp-dash__navitem.is-soon em{ margin-left: 6px; }

  /* Keep the theme switch reachable without scrolling the strip to the end. */
  .fp-themeswitch{
    position: sticky;
    right: 0;
    margin: 0 0 0 auto;
    padding: 3px;
    background: var(--fp-paper);
    box-shadow: -12px 0 12px -8px rgba(0,0,0,.18);
  }
  .fp-themeswitch__btn{ padding: 8px 10px; font-size: 12px; position: relative; }
  .fp-themeswitch__btn span{
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
  }

  .fp-dash__preview{ position: static; order: -1; }
  .fp-dash__preview-frame{ transform: none; margin-bottom: 0; }
  .fp-panel{ padding: 18px 16px; }
}

@media (max-width: 560px){
  .fp-dash__title{ font-size: 21px; }
  .fp-panel{ padding: 16px 14px; border-radius: 12px; }
  .fp-panel__title{ font-size: 14.5px; }
  .fp-grid2, .fp-grid3{ grid-template-columns: 1fr !important; }
  .fp-tpl-grid{ grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .fp-stats{ gap: 18px; justify-content: flex-start; }
  .fp-table{ font-size: 12px; }
}

/* ==========================================================================
   Banner field + "Premium" sidebar badge
   ========================================================================== */
.fp-banner-field{ margin-bottom: 22px; }
.fp-banner-preview{
  height: 110px;
  border-radius: 12px;
  border: 1px dashed var(--fp-line);
  background: var(--fp-paper-soft) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--fp-muted);
  margin-bottom: 12px;
}
.fp-banner-actions{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fp-banner-remove{ font-size: 13px; color: var(--fp-ink-soft); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.fp-dash__navitem.is-premium{ color: var(--fp-muted); cursor: default; }
.fp-dash__navitem.is-premium em{
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--fp-gold);
  background: var(--fp-gold-soft);
  border-radius: 999px;
  padding: 2px 7px;
}
@media (max-width: 960px){
  .fp-dash__navitem.is-premium em{ margin-left: 4px; }
}

/* Live preview: slightly shorter banner inside the narrow preview column. */
.fp-dash__preview-frame .fp-profile{ --fp-banner-h: 96px; }

/* ==========================================================================
   Save confirmation toast — shows, then fades itself out after ~3s
   ========================================================================== */
.fp-alert--toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  margin: 0;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(20,22,26,.18);
  border: 1px solid rgba(44,110,49,.25);
  opacity: 1;
  transition: opacity .35s ease, transform .35s ease;
}
.fp-alert--toast.is-gone{
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

/* ==========================================================================
   Rounder controls across the dashboard
   ========================================================================== */
.fp-input{ border-radius: 12px; }
.fp-input--sm{ border-radius: 999px; }
.fp-btn,
.fp-btn--sm,
.fp-photo-btn,
.fp-addrow,
.fp-editor__save{ border-radius: 999px; }
.fp-rrow__del{ border-radius: 50%; }

/* ==========================================================================
   Dashboard dark mode (does not touch the live preview, which must keep
   showing the real page colours)
   ========================================================================== */
html[data-fp-dash="dark"] body.founderpage{
  --fp-ink:        #EEF1F6;
  --fp-ink-soft:   #C0C7D3;
  --fp-muted:      #8A93A3;
  --fp-line:       #272B33;
  --fp-paper:      #101318;
  --fp-paper-soft: #181C23;
  --fp-brand:      #5B7CFF;
  --fp-brand-ink:  #0B0E13;
  --fp-gold:       #DDBA68;
  --fp-gold-soft:  #2B2517;
  background: #0B0E13;
  color: var(--fp-ink);
}
html[data-fp-dash="dark"] .fp-dash{ background: #0B0E13; }
html[data-fp-dash="dark"] .fp-input,
html[data-fp-dash="dark"] .fp-search,
html[data-fp-dash="dark"] select.fp-input{
  background: var(--fp-paper-soft);
  color: var(--fp-ink);
}
html[data-fp-dash="dark"] .fp-input::placeholder{ color: #6F7787; }
html[data-fp-dash="dark"] a.fp-dash__navitem.is-active{ background: #1B2233; color: #9DB2FF; }
html[data-fp-dash="dark"] .fp-tpl-option.is-selected{ background: #182034; }
html[data-fp-dash="dark"] .fp-alert--ok{ background: #16301B; color: #8BE49A; border-color: rgba(139,228,154,.25); }
html[data-fp-dash="dark"] .fp-alert--error{ background: #331A1A; color: #F5A3A0; }
html[data-fp-dash="dark"] .fp-search__kbd{ background: var(--fp-paper-soft); }
html[data-fp-dash="dark"] .fp-acct__btn,
html[data-fp-dash="dark"] .fp-acct__menu{ background: var(--fp-paper); color: var(--fp-ink); }

@media (max-width: 1080px){
  html[data-fp-dash="dark"] a.fp-dash__navitem.is-active{
    background: var(--fp-brand);
    color: var(--fp-brand-ink);
  }
}

/* The preview column always renders in the real page's light palette. */
html[data-fp-dash="dark"] .fp-dash__preview-frame{
  --fp-ink:        #14161A;
  --fp-ink-soft:   #4B5158;
  --fp-muted:      #8A909A;
  --fp-line:       #E7E9EC;
  --fp-paper:      #FFFFFF;
  --fp-paper-soft: #F7F8FA;
  --fp-brand:      #2451E5;
  --fp-brand-ink:  #FFFFFF;
  --fp-gold:       #B08A34;
  --fp-gold-soft:  #F3ECDA;
}
html[data-fp-dash="dark"] .fp-dash__preview-frame{ color: #14161A; background: #fff; }

/* Analytics stats sit inside a panel, not centred like the homepage hero. */
.fp-panel .fp-stats{ justify-content: flex-start; gap: 30px; margin-bottom: 18px; }
.fp-panel .fp-chart{ max-width: 100%; }
.fp-panel .fp-table{ min-width: 260px; }

/* Mobile: keep the live preview from pushing the editor far down the page. */
@media (max-width: 1080px){
  .fp-dash__preview-frame{ max-height: 46vh; overflow-y: auto; }
}

/* Dashboard dark mode: the card tokens follow too (the preview resets them). */
html[data-fp-dash="dark"] body.founderpage{
  --fpc-text:         #EEF1F6;
  --fpc-soft:         #C0C7D3;
  --fpc-dim:          #8A93A3;
  --fpc-line:         #272B33;
  --fpc-surface:      #101318;
  --fpc-surface-soft: #181C23;
  --fpc-accent:       #5B7CFF;
  --fpc-on-accent:    #0B0E13;
}
html[data-fp-dash="dark"] .fp-dash__preview-frame{
  --fpc-text:         #14161A;
  --fpc-soft:         #4B5158;
  --fpc-dim:          #8A909A;
  --fpc-line:         #E7E9EC;
  --fpc-surface:      #FFFFFF;
  --fpc-surface-soft: #F7F8FA;
  --fpc-accent:       #2451E5;
  --fpc-on-accent:    #FFFFFF;
}

/* Links editor: just a label, a URL and delete. */
.fp-repeater--links .fp-rrow__fields > .fp-input{ flex: 1 1 150px; }

/* Between the full three-column layout and the mobile strip, give the editor
   room back before the preview drops below. */
@media (min-width: 1081px) and (max-width: 1240px){
  .fp-dash__shell{ grid-template-columns: 200px minmax(0, 1fr) 340px; }
  .fp-dash__preview-frame{ transform: scale(.86); margin-bottom: -56px; }
}

/* ==========================================================================
   Content blocks — Photos / Projects / Video & music / Testimonials /
   Booking & file, merged into one collapsible panel instead of five
   separate sidebar tabs.
   ========================================================================== */
.fp-content-block{
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--fp-paper);
  overflow: hidden;
}
.fp-content-block + .fp-content-block{ margin-top: 0; }
.fp-content-block > summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fp-ink);
  user-select: none;
}
.fp-content-block > summary::-webkit-details-marker{ display: none; }
.fp-content-block > summary svg{ flex-shrink: 0; color: var(--fp-muted); }
.fp-content-block > summary small{
  font-weight: 400;
  color: var(--fp-muted);
  font-size: 12px;
  margin-left: 2px;
}
.fp-content-block > summary::after{
  content: '';
  margin-left: auto;
  width: 8px; height: 8px;
  border-right: 2px solid var(--fp-muted);
  border-bottom: 2px solid var(--fp-muted);
  transform: rotate(-45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.fp-content-block[open] > summary::after{ transform: rotate(45deg); }
.fp-content-block[open] > summary{ border-bottom: 1px solid var(--fp-line); }
.fp-content-block > fieldset,
.fp-content-block > .fp-upsell{
  padding: 16px;
  margin: 0;
}
.fp-content-block > .fp-upsell{ padding-top: 0; }

@media (max-width: 560px){
  .fp-content-block > summary{ padding: 12px 14px; }
  .fp-content-block > summary small{ display: none; }
}

/* ==========================================================================
   Limits: usage counters, warning banner, "Your limits" list
   ========================================================================== */
.fp-alert--warn{ background: #FFF6E5; color: #7A4E00; border: 1px solid #F2D9A6; }
.fp-alert--warn ul{ margin: 6px 0 0 18px; padding: 0; }
.fp-alert--warn li{ margin: 2px 0; }
html[data-fp-dash="dark"] .fp-alert--warn{ background: #33280F; color: #F2CE86; border-color: rgba(242,206,134,.3); }

.fp-limit{
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 8px; padding: 2px 9px;
  border: 1px solid var(--fp-line); border-radius: 999px;
  background: var(--fp-paper-soft); color: var(--fp-ink-soft);
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  font-variant-numeric: tabular-nums; vertical-align: middle; white-space: nowrap;
}
.fp-limit b{ font-weight: 700; color: var(--fp-ink); }
.fp-limit.is-full{ background: #FFF6E5; color: #7A4E00; border-color: #F2D9A6; }
.fp-limit.is-full b{ color: inherit; }
.fp-limit.is-full::after{ content: " · full"; }
html[data-fp-dash="dark"] .fp-limit.is-full{ background: #33280F; color: #F2CE86; border-color: rgba(242,206,134,.3); }

.fp-limit-note{ font-size: 12px; color: #B3261E; margin: 10px 0 0; }
html[data-fp-dash="dark"] .fp-limit-note{ color: #F5A3A0; }

.fp-limits{
  list-style: none; margin: 0 0 18px; padding: 0; max-width: 440px;
  border: 1px solid var(--fp-line); border-radius: 10px; overflow: hidden;
}
.fp-limits li{
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 14px; font-size: 13px; color: var(--fp-ink-soft);
  border-top: 1px solid var(--fp-line);
}
.fp-limits li:first-child{ border-top: 0; }
.fp-limits li span:last-child{ font-weight: 700; color: var(--fp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ==========================================================================
   Segmented pickers: icon style, icon / name / about-text size
   ========================================================================== */
.fp-seg-field{ margin-bottom: 14px; }
.fp-seg-field__label{ display: block; font-size: 13px; font-weight: 600; color: var(--fp-ink-soft); margin-bottom: 6px; }
.fp-seg{
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border: 1px solid var(--fp-line); border-radius: 10px; background: var(--fp-paper-soft);
}
.fp-seg__opt{ position: relative; cursor: pointer; }
.fp-seg__opt input{ position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fp-seg__opt > span{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--fp-ink-soft);
  transition: background .12s, color .12s;
}
.fp-seg__opt:hover > span{ color: var(--fp-ink); }
.fp-seg__opt input:checked + span{ background: var(--fp-ink); color: var(--fp-paper); }
.fp-seg__opt input:focus-visible + span{ outline: 2px solid var(--fp-brand); outline-offset: 2px; }

.fp-icosample{ display: inline-flex; gap: 4px; font-style: normal; }
.fp-icosample i{
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-style: normal;
}
.fp-icosample svg{ width: 11px; height: 11px; }
.fp-icosample--simple i{ border: 1px solid currentColor; opacity: .75; }
.fp-icosample--brand i{ background: var(--fp-bi, #444); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.28); }

/* =========================================================================
   Premium: quiet locks, the upgrade popup, presets and image adjusting
   ========================================================================== */

/* --- Locked features: faded, with the word Premium only on hover --- */
.fp-dash__navitem.is-prem{ opacity: .55; transition: opacity .15s ease; }
.fp-dash__navitem.is-prem:hover,
.fp-dash__navitem.is-prem:focus-visible,
.fp-dash__navitem.is-prem.is-active{ opacity: 1; }

.fp-dash__navitem .fp-prem{
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fp-gold);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .15s ease, transform .15s ease;
}
.fp-dash__navitem:hover .fp-prem,
.fp-dash__navitem:focus-visible .fp-prem{ opacity: 1; transform: none; }

/* Panel titles and locked fields: the same idea, nothing shouted. */
.fp-panel.is-locked > .fp-panel__title,
.fp-panel.is-locked .fp-panel__sub{ position: relative; }
.fp-panel.is-locked .fp-lockfield,
.fp-panel.is-locked .fp-content-block > summary{ opacity: .5; transition: opacity .15s ease; }
.fp-panel.is-locked:hover .fp-lockfield,
.fp-panel.is-locked:hover .fp-content-block > summary,
.fp-panel.is-locked:focus-within .fp-lockfield{ opacity: .72; }

.fp-prem-tip{
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--fp-gold);
  background: var(--fp-gold-soft);
  border: 1px solid rgba(176,138,52,.28);
  border-radius: 999px;
  padding: 2px 8px;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
  vertical-align: middle;
}
.fp-panel__title:hover .fp-prem-tip,
.fp-panel__sub:hover .fp-prem-tip,
.fp-panel.is-locked:hover .fp-prem-tip,
.fp-tpl-option:hover .fp-prem-tip,
.fp-tpl-option:focus-within .fp-prem-tip{ opacity: 1; }

.fp-link-btn{
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--fp-gold); font-weight: 600; text-decoration: underline;
}

/* --- Upgrade box in Account settings --- */
.fp-upgradebox{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin: 18px 0 6px; padding: 18px 20px;
  border: 1px solid var(--fp-line); border-radius: 16px;
  background: var(--fp-paper-soft);
}
.fp-upgradebox h3{ margin: 0 0 4px; font-size: 16px; }
.fp-upgradebox p{ margin: 0; font-size: 13.5px; color: var(--fp-muted); max-width: 46ch; }

/* --- The popup --- */
body.fp-modal-open{ overflow: hidden; }

.fp-modal{ position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fp-modal[hidden]{ display: none; }
.fp-modal__backdrop{ position: absolute; inset: 0; background: rgba(8,10,14,.62); backdrop-filter: blur(3px); }
.fp-modal__panel{
  position: relative; z-index: 1;
  width: 100%; max-width: 860px; max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--fp-paper); color: var(--fp-ink);
  border: 1px solid var(--fp-line); border-radius: 22px;
  padding: 30px 28px 26px;
  box-shadow: 0 40px 80px -30px rgba(8,10,14,.6);
}
.fp-modal__x{
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--fp-line); background: var(--fp-paper);
  color: var(--fp-ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.fp-modal__head{ text-align: center; }
.fp-modal__title{ margin: 0 0 6px; font-size: 26px; letter-spacing: -.01em; }
.fp-modal__sub{ margin: 0 auto 18px; color: var(--fp-muted); font-size: 14px; max-width: 46ch; }

.fp-billing{ display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--fp-line); border-radius: 999px; }
.fp-billing button{
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: 13.5px; color: var(--fp-muted);
}
.fp-billing button.is-active{ background: var(--fp-ink); color: var(--fp-paper); }
.fp-billing__note{ margin: 8px 0 0; font-size: 12.5px; color: var(--fp-gold); font-weight: 600; }

.fp-modal__plans{ display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 22px; }
.fp-mplan{ border: 1px solid var(--fp-line); border-radius: 18px; padding: 22px 20px; }
.fp-mplan--pro{ position: relative; border-color: var(--fp-gold); background: var(--fp-gold-soft); }
.fp-mplan__badge{
  position: absolute; top: -11px; left: 20px;
  background: var(--fp-gold); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.fp-mplan h3{ margin: 0 0 10px; font-size: 17px; }
.fp-mplan__price{ display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; color: var(--fp-muted); font-size: 13px; }
.fp-mplan__price span{ font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--fp-ink); }
.fp-mplan ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-mplan li{ position: relative; padding-left: 22px; font-size: 13.5px; }
.fp-mplan li::before{
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 9px; height: 5px; border-left: 2px solid var(--fp-muted); border-bottom: 2px solid var(--fp-muted);
  transform: rotate(-45deg);
}
.fp-mplan--pro li::before{ border-color: var(--fp-gold); }
.fp-mplan__now{ margin: 14px 0 0; font-size: 12.5px; color: var(--fp-muted); }
.fp-mplan__cta{ width: 100%; margin-top: 18px; }
.fp-mplan__cta.is-missing{ opacity: .55; pointer-events: none; }
.fp-mplan__fine{ margin: 10px 0 0; font-size: 12px; color: var(--fp-muted); text-align: center; }

@media (max-width: 720px){
  .fp-modal{ padding: 0; align-items: flex-end; }
  .fp-modal__panel{
    max-width: 100%; max-height: 94vh;
    border-radius: 20px 20px 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .fp-modal__plans{ grid-template-columns: 1fr; }
  .fp-mplan{ padding: 18px 16px; }
  .fp-mplan__price span{ font-size: 30px; }
  .fp-modal__title{ font-size: 22px; }
}

/* --- Built-in avatars and banners --- */
.fp-presets{ display: flex; flex-wrap: wrap; gap: 8px; }
.fp-preset{
  padding: 0; cursor: pointer; overflow: hidden; background: var(--fp-paper-soft);
  border: 1.5px solid var(--fp-line); border-radius: 10px; line-height: 0;
  transition: border-color .12s ease, transform .12s ease;
}
.fp-preset img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-preset:hover{ transform: translateY(-1px); border-color: var(--fp-muted); }
.fp-preset.is-on{ border-color: var(--fp-brand); box-shadow: 0 0 0 2px rgba(36,81,229,.18); }
.fp-preset--banner{ width: 76px; height: 34px; }
.fp-preset--avatar{ width: 40px; height: 40px; border-radius: 50%; }
.fp-photo-side{ flex: 1; min-width: 200px; }

/* --- Drag to adjust --- */
.fp-imgwrap{ position: relative; }
.fp-imgwrap .fp-adjust{
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.fp-imgwrap:hover .fp-adjust,
.fp-imgwrap:focus-within .fp-adjust,
.fp-imgwrap.is-adjusting .fp-adjust{ opacity: 1; pointer-events: auto; }
.fp-adjust__btn{
  border: 0; cursor: pointer; border-radius: 999px;
  background: rgba(10,12,16,.78); color: #fff;
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  backdrop-filter: blur(4px);
}
.fp-adjust__hint{
  font-size: 11px; color: #fff; background: rgba(10,12,16,.6);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  display: none;
}
.fp-imgwrap.is-adjusting .fp-adjust__hint{ display: inline-block; }
.fp-imgwrap.is-adjusting .fp-banner-preview,
.fp-imgwrap.is-adjusting .fp-photo-preview{
  cursor: grab; outline: 2px dashed var(--fp-brand); outline-offset: 2px;
}
.fp-imgwrap.is-adjusting .fp-banner-preview:active,
.fp-imgwrap.is-adjusting .fp-photo-preview:active{ cursor: grabbing; }
.fp-imgwrap--round .fp-adjust{ bottom: -6px; }
.fp-imgwrap--round .fp-adjust__btn{ font-size: 11px; padding: 4px 10px; }

@media (max-width: 720px){
  .fp-imgwrap .fp-adjust{ opacity: 1; pointer-events: auto; }
}

/* Photo row keeps its shape now that the avatar sits in an adjust frame. */
.fp-photo-row{ align-items: flex-start; }
.fp-imgwrap--round{ flex-shrink: 0; padding-bottom: 14px; }

/* ------------------------------------------------------------------
 * Username field (signup form + Account settings)
 * ---------------------------------------------------------------- */
.fp-uname-field{
  display: flex; align-items: center; border: 1px solid var(--fp-border, #E3E6EA);
  border-radius: 10px; overflow: hidden; background: #fff;
}
.fp-uname-field__prefix{
  padding: 0 0 0 12px; font-size: 14px; color: var(--fp-ink-soft, #6B7280);
  white-space: nowrap; user-select: none;
}
.fp-uname-field input.fp-input{
  border: none; border-radius: 0; margin: 0; flex: 1 1 auto;
}
.fp-uname-field input.fp-input:focus{ box-shadow: none; }
.fp-uname-hint{ font-size: 12.5px; color: var(--fp-ink-soft, #6B7280); margin-top: 4px; }
.fp-uname-hint.is-ok{ color: #2C6E31; }
.fp-uname-hint.is-error{ color: #B3261E; }
.fp-uname-hint.is-checking{ color: var(--fp-ink-soft, #6B7280); }
.fp-uname-form{ margin-bottom: 18px; }

html[data-fp-dash="dark"] .fp-uname-field{ background: #1B2029; border-color: #2A2F3A; }
html[data-fp-dash="dark"] .fp-uname-field__prefix{ color: #8A94A6; }
html[data-fp-dash="dark"] .fp-uname-hint.is-ok{ color: #8BE49A; }
html[data-fp-dash="dark"] .fp-uname-hint.is-error{ color: #F5A3A0; }

/* Premium plan block reuses .fp-upgradebox, just needs the button to sit
   nicely when there's a two-line description next to it. */
.fp-upgradebox p{ margin: 4px 0 0; }
