/* Kymora Silver-Pearl Light Gray Gradient Aesthetic + ThemeForest Green (#82B440) */
:root {
  --bar-h: 62px;
  --bg: linear-gradient(160deg, #f7f9fc 0%, #eef2f7 48%, #e6ecf4 100%);
  --bg-solid: #eef2f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: #ffffff;
  --surface-subtle: rgba(241, 245, 250, 0.85);
  --ink: #0d1520;
  --ink-2: #334155;
  --mute: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);
  --tf: #82b440;
  --tf-h: #6f9a37;
  --tf-soft: rgba(130, 180, 64, 0.14);
  --tf-glow: rgba(130, 180, 64, 0.24);
  --teal: #0e7ea3;
  --teal-soft: rgba(14, 126, 163, 0.11);
  --f-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Top 62px Frosted Kymora Silver Bar */
.ftn-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  z-index: 1000;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
}

.ftn-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ftn-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 4px 13px 4px 6px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: all .2s var(--ease);
  flex-shrink: 0;
}
.ftn-picker:hover {
  border-color: rgba(15, 23, 42, 0.28);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.ftn-picker[aria-expanded="true"] {
  border-color: var(--tf);
  box-shadow: 0 0 0 3px var(--tf-soft);
}
.ftn-picker__thumb {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  flex-shrink: 0;
}
.ftn-picker__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ftn-picker__name {
  white-space: nowrap;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftn-picker__sep {
  width: 1px;
  height: 18px;
  background: var(--line);
}
.ftn-picker__browse {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
}
.ftn-picker__browse b {
  color: var(--ink);
}
.ftn-picker__chev {
  transition: transform .25s var(--ease);
  color: var(--mute);
  flex-shrink: 0;
}
.ftn-picker[aria-expanded="true"] .ftn-picker__chev {
  transform: rotate(180deg);
  color: var(--tf-h);
}

/* Sub-Demo Quick Switcher Pills */
.ftn-subdemos {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.ftn-subdemos::-webkit-scrollbar { display: none; }
.ftn-subdemos[hidden] { display: none; }
.ftn-subdemo-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .18s var(--ease);
}
.ftn-subdemo-btn:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.ftn-subdemo-btn.is-active {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.ftn-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ftn-badge--wp { color: #3d6b14; background: var(--tf-soft); border: 1px solid rgba(130, 180, 64, 0.34); }
.ftn-badge--html { color: var(--teal); background: var(--teal-soft); border: 1px solid rgba(14, 126, 163, 0.25); }
.ftn-badge--new { color: #fff; background: var(--tf); border: 0; }

/* Responsive Viewport Switcher (Center) */
.ftn-devices {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.ftn-dev {
  width: 36px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--mute);
  transition: all .2s var(--ease);
}
.ftn-dev:hover { color: var(--ink); }
.ftn-dev.is-active {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Right Actions */
.ftn-bar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ftn-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.ftn-btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* VamTam-Inspired Deals Pill CTA */
.ftn-btn-deals {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: #d8ff49;
  color: #0b1220;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 0 #b8de2d, 0 8px 18px -6px rgba(216, 255, 73, 0.65);
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.ftn-btn-deals:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* Signature ThemeForest Green Buy CTA */
.ftn-btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--tf);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 0 #5f862e, 0 8px 20px -6px rgba(130, 180, 64, 0.55);
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.ftn-btn-buy:hover {
  background: var(--tf-h);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #537528, 0 12px 24px -6px rgba(130, 180, 64, 0.65);
}

.ftn-btn-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--mute);
  border: 1px solid transparent;
  transition: all .2s;
}
.ftn-btn-close:hover {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--line-strong);
}

/* Live Iframe Stage */
.ftn-stage {
  position: fixed;
  top: var(--bar-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}
.ftn-frame-wrap {
  width: 100%;
  height: 100%;
  background: #fff;
  transition: width .35s var(--ease), margin .35s var(--ease), border-radius .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.ftn-stage[data-device="tablet"] .ftn-frame-wrap {
  width: 768px;
  margin: 20px 0;
  height: calc(100% - 40px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-strong);
}
.ftn-stage[data-device="mobile"] .ftn-frame-wrap {
  width: 390px;
  margin: 20px 0;
  height: calc(100% - 40px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px #1e293b;
}
.ftn-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* Full-Screen Kymora Light-Silver Gradient Showcase Drawer */
.ftn-drawer {
  position: fixed;
  top: var(--bar-h);
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.ftn-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ftn-drawer__in {
  max-width: 1420px;
  margin: 0 auto;
  padding: 36px 28px 72px;
}

.ftn-hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ftn-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tf-h);
  margin-bottom: 8px;
}
.ftn-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}
.ftn-lead {
  margin: 0;
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mute);
}

.ftn-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.ftn-tabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ftn-tab {
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s var(--ease);
}
.ftn-tab span {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--mute);
}
.ftn-tab:hover { background: var(--surface-subtle); color: var(--ink); }
.ftn-tab.is-active {
  background: var(--ink);
  color: #fff;
}
.ftn-tab.is-active span {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.ftn-tab__dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.ftn-tab__dot--wp { background: var(--tf); }
.ftn-tab__dot--html { background: var(--teal); }

.ftn-search {
  position: relative;
  min-width: 260px;
  flex: 0 1 340px;
}
.ftn-search input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 38px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ftn-search input:focus {
  border-color: var(--tf);
  box-shadow: 0 0 0 3px var(--tf-soft);
}
.ftn-search svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  pointer-events: none;
}

.ftn-sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 18px;
}
.ftn-sec-title h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ftn-sec-title span {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}

.ftn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 42px;
}

.ftn-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), border-color .25s, box-shadow .28s var(--ease);
}
.ftn-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.ftn-card.is-current {
  border-color: var(--tf);
  box-shadow: 0 0 0 2px var(--tf), var(--shadow-lg);
}

.ftn-card__chrome {
  height: 28px;
  padding: 0 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--mute);
}
.ftn-card__dots {
  display: flex;
  gap: 5px;
}
.ftn-card__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.14);
  display: block;
}

.ftn-card__shot {
  position: relative;
  aspect-ratio: 590 / 300;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
}
.ftn-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .55s var(--ease);
}
.ftn-card:hover .ftn-card__shot img { transform: scale(1.045); }

.ftn-card__badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.ftn-card__badges .ftn-badge--wp {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #3a6812;
  border-color: rgba(130, 180, 64, 0.45);
}
.ftn-card__badges .ftn-badge--html {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--teal);
  border-color: rgba(14, 126, 163, 0.35);
}

.ftn-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 32, 0.48);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.ftn-card:hover .ftn-card__hover { opacity: 1; }
.ftn-card__hover .ftn-hov-btn {
  padding: 8px 15px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: transform .18s;
}
.ftn-card__hover .ftn-hov-btn--green {
  background: var(--tf);
  color: #fff;
}
.ftn-card__hover .ftn-hov-btn:hover { transform: translateY(-1px); }

.ftn-card__body {
  padding: 14px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ftn-card__info { min-width: 0; cursor: pointer; }
.ftn-card__name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftn-card__sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftn-card__acts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ftn-card__ext {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: all .2s;
}
.ftn-card__ext:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}
.ftn-card__buy {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--tf);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .2s;
}
.ftn-card__buy:hover { background: var(--tf-h); }

@media (max-width: 1220px) {
  .ftn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftn-subdemos { display: none !important; }
}
@media (max-width: 860px) {
  .ftn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftn-devices, .ftn-btn-ghost, .ftn-btn-deals { display: none; }
  .ftn-bar { grid-template-columns: 1fr auto; }
}
@media (max-width: 540px) {
  .ftn-grid { grid-template-columns: 1fr; }
  .ftn-picker__browse, .ftn-picker__sep { display: none; }
}

/* Envato-Safe Nested-Iframe Mode (Eliminates Double Top Bar Inside preview.themeforest.net) */
body.is-embedded .ftn-bar {
  display: none !important;
}
body.is-embedded .ftn-stage,
body.is-embedded .ftn-drawer {
  top: 0 !important;
}
.ftn-float-switch {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1100;
  display: none;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
  color: #0d1520;
  font-size: 13px;
  font-weight: 700;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
body.is-embedded .ftn-float-switch {
  display: inline-flex;
}
.ftn-float-switch:hover {
  transform: translateY(-2px);
  border-color: var(--tf);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}
.ftn-float-switch__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tf);
  box-shadow: 0 0 0 3px var(--tf-soft);
}

