#tab-formations.is-locked .fcat-active-only,
#tab-formations:not(.is-locked) .fcat-gate-only,
#tab-formations.is-locked .fcat-up-initie,
#tab-formations.is-ecn-member .fcat-up-initie,
#tab-formations.is-ecn-member .fcat-ecn-locked,
#tab-formations:not(.is-ecn-member) .fcat-ecn-member { display: none !important; }

.fcat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.fcat-head h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: #fff; margin: 10px 0 6px; }
.fcat-head p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin: 0; max-width: 680px; }
.fcat-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 0.86rem; text-decoration: none; white-space: nowrap; }

.fcat-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.fcat-stats > div { background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 14px 16px; }
.fcat-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); line-height: 1.15; }
.fcat-stats span { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.fcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-bottom: 26px; }
.fcat-card {
  --fc: var(--gold-primary);
  position: relative; background: var(--bg-surface-1); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  animation: fcatIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.fcat-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--fc); z-index: 2; }
.fcat-card:hover { transform: translateY(-4px); border-color: var(--fc); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.fcat-media { position: relative; height: 150px; background: #fff; overflow: hidden; }
.fcat-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.6s ease, filter 0.4s ease; }
.fcat-card:hover .fcat-media img { transform: scale(1.06); }
.fcat-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 8, 0.82)); pointer-events: none; }
.fcat-count { position: absolute; left: 12px; bottom: 9px; z-index: 1; color: #fff; font-size: 0.78rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.fcat-count strong { font-family: var(--font-display); font-size: 1.35rem; margin-right: 4px; }
.fcat-lock { position: absolute; top: 10px; right: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: rgba(5, 6, 8, 0.82); border: 1px solid var(--gold-border); color: var(--gold-light); display: none; align-items: center; justify-content: center; }
#tab-formations.is-locked .fcat-lock { display: flex; }
#tab-formations.is-locked .fcat-media img { filter: grayscale(0.65) brightness(0.8); }
.fcat-body { padding: 14px 16px 16px; }
.fcat-body h4 { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-display); font-size: 1rem; margin: 0 0 6px; }
.fcat-body h4::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 10px var(--fc); flex-shrink: 0; }
.fcat-body p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.fcat-rank { background: linear-gradient(135deg, rgba(14, 18, 28, 0.95) 0%, rgba(6, 8, 13, 0.98) 100%); border: 1px solid var(--gold-border); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 26px); margin-bottom: 26px; }
.fcat-rank-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.fcat-rank-head h4 { font-family: var(--font-display); color: #fff; font-size: 1.1rem; margin: 0; }
.fcat-rank-head span { font-size: 0.78rem; color: var(--text-muted); }
.fcat-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.fcat-rank li { display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr minmax(96px, auto); align-items: center; gap: 14px; }
.fcat-rank-name { color: #fff; font-size: 0.86rem; font-weight: 600; }
.fcat-rank-name small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.72rem; }
.fcat-rank-name em { font-style: normal; color: var(--gold-light); }
.fcat-rank-bar { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 99px; overflow: hidden; }
.fcat-rank-bar i { display: block; height: 100%; width: var(--w); background: var(--fc); box-shadow: 0 0 12px var(--fc); border-radius: inherit; animation: fcatGrow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fcat-rank-n { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; text-align: right; }
.fcat-rank-n strong { color: var(--gold-light); font-family: var(--font-display); font-size: 1rem; margin-right: 3px; }

.fcat-ecn { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: rgba(212, 175, 55, 0.06); border: 1px dashed var(--gold-border-bright); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 26px); margin-bottom: 26px; }
.fcat-ecn-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(212, 175, 55, 0.12); border: 1px solid var(--gold-border); color: var(--gold-light); flex-shrink: 0; }
.fcat-ecn-text { flex: 1 1 320px; }
.fcat-ecn-text h3 { font-family: var(--font-display); color: #fff; font-size: 1.15rem; margin: 10px 0 6px; }
.fcat-ecn-text p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6; margin: 0; }
.fcat-soon { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.8px; color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); padding: 3px 10px; border-radius: 99px; }
.fcat-soon svg { width: 11px; height: 11px; }

@keyframes fcatIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes fcatGrow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fcat-card, .fcat-rank-bar i { animation: none; }
}
@media (max-width: 560px) {
  .fcat-card { display: grid; grid-template-columns: 112px 1fr; }
  .fcat-media { height: auto; min-height: 120px; }
  .fcat-count strong { font-size: 1.1rem; }
  .fcat-body { padding: 12px 14px; }
  .fcat-rank li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .fcat-rank-bar { grid-column: 1 / -1; grid-row: 2; }
  .fcat-cta { width: 100%; justify-content: center; }
}

.fkids { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: clamp(22px, 3.2vw, 36px); margin-bottom: 26px; border-radius: 28px; background: linear-gradient(120deg, #4fc3ff 0%, #7aa7ff 32%, #a98bf5 62%, #ff8fc6 100%); box-shadow: 0 10px 0 rgba(38, 24, 92, 0.4), 0 24px 50px rgba(0, 0, 0, 0.45); color: #fff; font-family: 'Fredoka', 'Outfit', system-ui, sans-serif; }
.fkids-bubble { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.22); pointer-events: none; }
.fkids-bubble.b1 { width: 120px; height: 120px; right: 22%; top: -46px; }
.fkids-bubble.b2 { width: 54px; height: 54px; left: 44%; bottom: 16px; }
.fkids-bubble.b3 { width: 96px; height: 96px; right: 3%; bottom: -34px; }
.fkids-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fkids-new { background: #ffd23f; color: #2b1d6b; font-weight: 700; font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; }
.fkids h3 { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 0; font-family: inherit; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.05; color: #fff; text-shadow: 0 3px 0 rgba(43, 29, 107, 0.28); }
.fkids-word { display: inline-flex; transform: rotate(-4deg); font-size: 1.12em; }
.fkids-word span { display: inline-block; -webkit-text-stroke: 2px #2b1d6b; paint-order: stroke fill; text-shadow: 0 4px 0 #2b1d6b; animation: fkidsBounce 2.4s ease-in-out infinite; }
.fkids-word span:nth-child(1) { color: #ffd23f; }
.fkids-word span:nth-child(2) { color: #ff5fa2; animation-delay: 0.15s; }
.fkids-word span:nth-child(3) { color: #22c58b; animation-delay: 0.3s; }
.fkids-word span:nth-child(4) { color: #7aa7ff; animation-delay: 0.45s; }
.fkids p { margin: 0; max-width: 470px; font-weight: 600; font-size: 0.96rem; line-height: 1.55; color: rgba(255, 255, 255, 0.96); }
.fkids-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 22px; border: none; border-radius: 999px; background: #fff; color: #2b1d6b; font-family: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 rgba(43, 29, 107, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.fkids-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(43, 29, 107, 0.35); }
.fkids-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(43, 29, 107, 0.35); }
.fkids-cta.is-alt { background: #2b1d6b; color: #fff; box-shadow: 0 5px 0 rgba(20, 12, 60, 0.45); }
.fkids-cta.is-alt:hover { box-shadow: 0 7px 0 rgba(20, 12, 60, 0.45); }
.fkids-cta.is-alt:active { box-shadow: 0 2px 0 rgba(20, 12, 60, 0.45); }
.fkids-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.fkids-bank { display: flex; align-items: flex-start; gap: 12px; max-width: 470px; padding: 12px 16px; border-radius: 18px; background: rgba(43, 29, 107, 0.45); border: 2px solid rgba(255, 255, 255, 0.4); }
.fkids-bank svg { flex-shrink: 0; margin-top: 2px; color: #ffd23f; }
.fkids-bank strong { display: block; font-size: 0.98rem; }
.fkids-bank span { display: block; margin-top: 2px; font-weight: 600; font-size: 0.88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.96); }
.fkids-worlds { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fkids-world { --kc: #ffb020; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; background: #fff; color: #2b1d6b; border: 3px solid var(--kc); border-radius: 20px; box-shadow: 0 5px 0 var(--kc); }
.fkids-world b { grid-row: 1 / span 3; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--kc); color: #fff; font-weight: 700; font-size: 1.02rem; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15); }
.fkids-world span { font-size: 0.7rem; font-weight: 700; color: var(--kc); text-transform: uppercase; letter-spacing: 0.4px; }
.fkids-world strong { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.fkids-world em { font-style: normal; font-size: 0.74rem; color: #6b6496; }
@keyframes fkidsBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 760px) { .fkids { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .fkids-worlds { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fkids-word span { animation: none; } .fkids-cta { transition: none; } }
