/* ── FONT IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── FONT BASE ── */
#nmlFcApp.nml-fc-wrap,
#nmlFcApp.nml-fc-wrap {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── MONO — KPI numbers, data labels, công thức ── */
.nml-fc-back-formula,
.nml-fc-card-name,
.nml-fc-lvl-text,
.nml-fc-count b {
  font-family: 'JetBrains Mono', monospace;}

/* ─────────────────────────────────────────
   WRAPPER
───────────────────────────────────────── */

.nml-fc-wrap {
  position: relative;
  padding-bottom: 40px;
}

.nml-fc-bg {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.nml-fc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .07;
}


/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */

.nml-fc-header {
    margin-top: 50px;
  top: 50px;
  z-index: 10;
  border-bottom: 1px solid #E2E8F0;
  padding: 18px 32px;
}

.nml-fc-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nml-fc-title {
font-family:'Plus Jakarta Sans', sans-serif!important ;
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  letter-spacing: -.02em;
  justify-content: center;
  text-align: center;
}

.nml-fc-subtitle {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  text-align: center;
  font-family:'Plus Jakarta Sans', sans-serif!important ;
}


/* Thay thế phần search cũ trong style.css */

/* ─────────────────────────────────────────
   SEARCH – high specificity để đè theme
───────────────────────────────────────── */
#nmlFcApp .nml-fc-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#nmlFcApp .nml-fc-search-wrap input,
#nmlFcApp .nml-fc-search {
  padding: 8px 38px 8px 16px !important;
  border: 1.5px solid rgba(255,255,255,.6) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  color: #0F172A !important;
  width: 220px !important;
  outline: none !important;
  transition: border .2s, box-shadow .2s, background .2s !important;
  background: rgba(255,255,255,.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.8) !important;
  /* Reset mọi style theme có thể đè */
  appearance: none !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
  line-height: normal !important;
}

#nmlFcApp .nml-fc-search-wrap input::placeholder,
#nmlFcApp .nml-fc-search::placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
}

#nmlFcApp .nml-fc-search-wrap input:focus,
#nmlFcApp .nml-fc-search:focus {
  border-color: #2F6BFF !important;
  background: rgba(255,255,255,.85) !important;
  box-shadow: 0 0 0 3px rgba(47,107,255,.1), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

#nmlFcApp .nml-fc-search-icon {
  position: absolute;
  right: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color .2s;
  z-index: 1;
}

#nmlFcApp .nml-fc-search-wrap:focus-within .nml-fc-search-icon {
  color: #2F6BFF;
}

/* ─────────────────────────────────────────
   FILTER BAR
───────────────────────────────────────── */
.filter-bar {
    align-content: center!important;
    justify-content: center!important;
    position: sticky!important;
    display: flex!important;
}

.nml-fc-filter-bar {
  width:90%!important;
  top: 65px;
  z-index: 9;
  background: rgba(255, 255, 255, .88);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #E2E8F0;
  padding: 12px 32px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
  align-items: center;
  align-self: center!important;
}

.nml-fc-filter-inner {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.nml-fc-filter-group {
  display: flex;
  flex-direction: column;
}

.nml-fc-filter-label {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 5px;
}

.nml-fc-fn-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nml-fc-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #475569;
  transition: all .15s;
  user-select: none;
}

.nml-fc-pill:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
}

.nml-fc-pill.active {
  color: #fff;
  border-color: transparent;
}

/* ── PILLS ACTIVE ── */
.nml-fc-pill.active[data-fn="all"]   { background: #0F172A; color: #fff; }

.nml-fc-pill.active[data-fn="Brand"] { background: #3B0764; color: #fff; }

.nml-fc-pill.active[data-fn="Trade"] { background: #1E2D40; color: #fff; }

.nml-fc-pill.active[data-fn="Sale"]  { background: #0F766E; color: #fff; }

.nml-fc-pill.active[data-fn="Ecom"]  { background: #A0522D; color: #fff; }

/* ── SELECT ── */
.nml-fc-select {
  padding: 7px 32px 7px 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394A3B8'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #0F172A;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border .2s;
}
.nml-fc-select:focus { border-color: #1E2D40; }

/* ─────────────────────────────────────────
   TOOLBAR
───────────────────────────────────────── */

.nml-fc-toolbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nml-fc-count {
  font-size: 13px;
  color: #475569;
}

.nml-fc-count b {
  color: #0F172A;
  font-weight: 600;
}

.nml-fc-loader {
  font-size: 12px;
  color: #2F6BFF;
}


/* ─────────────────────────────────────────
   GRID
───────────────────────────────────────── */

.nml-fc-grid-wrap {
  position: relative;
  z-index: 8;
  padding-top: 0;
  padding-bottom: 16px;
}

.nml-fc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   CARD — SCENE, FLIP, FACE
═══════════════════════════════════════════════════════════ */

/* ── SCENE ── */
.nml-fc-scene {
  height: 320px;

  cursor: pointer;
}

.nml-fc-scene:hover .nml-fc-card-inner:not(.is-flipped) {
  transform: translateY(-4px);
}

/* ── CARD INNER — base shared ── */
.nml-fc-card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  border-radius: 32px;
  background: rgba(255,255,255,.05);
}

.nml-fc-card-inner.is-flipped { transform: rotateY(180deg); }

/* Top edge glow */
.nml-fc-card-inner::before {
  content: '';
  position: absolute;
  top: 5px ; left: 2%; right: 2%;
  height: 4px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35) 0%, transparent 100%);
  filter: blur(0.6px);
  border-radius: 32px;
  z-index: 3;
  pointer-events: none;
}

.nml-fc-card-inner::after {
  content: '';
  position: absolute;
  top: -2px; left: 15%; right: 15%;
  height: 2px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35) 0%, transparent 100%);
  border-radius: 32px;
  z-index: 2;
  pointer-events: none;
}

/* ── BORDER-TOP THEO LEVEL — dùng box-shadow để không ảnh hưởng layout ── */
.nml-fc-scene[data-level="Fresher"] .nml-fc-card-inner {
  border-top: 4px solid #2F6BFF ;
box-shadow:
    inset 0 5px 0 #2F6BFF,
    -1px -1px 2px rgba(255,255,255,.5),
    4px 6px 10px rgba(0,0,0,.15),
    2px 3px 5px rgba(0,0,0,.25);
}

.nml-fc-scene[data-level="Upgrader"] .nml-fc-card-inner {
  border-top: 4px solid #22C55E ;
  box-shadow:
    inset 0 5px 0 #22C55E,
    -1px -1px 2px rgba(255,255,255,.5),
    4px 6px 10px rgba(0,0,0,.15),
    2px 3px 5px rgba(0,0,0,.25);
}

.nml-fc-scene[data-level="Master"] .nml-fc-card-inner {
  border-top: 4px solid #F59E0B ;
  box-shadow:
    inset 0 5px 0 #F59E0B,
    -1px -1px 2px rgba(255,255,255,.5),
    4px 6px 10px rgba(0,0,0,.15),
    2px 3px 5px rgba(0,0,0,.25);
}

/* ── FACE — base shared ── */
.nml-fc-face {
  top: 4px!important;
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
box-shadow:
  inset 0 0 8px rgba(255,255,255,.90),
    inset 3px 3px 8px rgba(47,107,255,.08),
    -4px -4px 10px rgba(255,255,255,.35);  /* nhẹ hơn */
}

/* ── BACKGROUND FACE THEO LEVEL ── */
.nml-fc-scene[data-level="Fresher"]  .nml-fc-face {background: radial-gradient(ellipse at 30% 30%,
    rgba(210,228,255,.45) 0%,
    rgba(210,228,255,.20) 40%,
    rgba(210,228,255,.05) 60%,
    transparent 100%
  ); }
.nml-fc-scene[data-level="Upgrader"] .nml-fc-face {  background: radial-gradient(ellipse at 30% 30%,
    rgba(200,245,220,.40) 0%,
    rgba(200,245,220,.18) 40%,
    rgba(200,245,220,.05) 70%,
    transparent 100%
  );}
.nml-fc-scene[data-level="Master"]   .nml-fc-face { background: rgba(255,245,200,.20); }

/* Shine góc trên trái */
.nml-fc-face::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 45%;
  background: linear-gradient(130deg,
    rgba(255,255,255,.55) 0%,
    rgba(255,255,255,.10) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Glow viền trong */
.nml-fc-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.90),
    inset 0 0 12px 4px rgba(255,255,255,.75),
    inset 0 0 30px 8px rgba(255,255,255,.40);
  pointer-events: none;
  z-index: 1;
}

/* ── BACK ── */
.nml-fc-back {
  transform: rotateY(180deg);
  padding: 16px;
  overflow-y: auto;
}

/* ── TEXT THEO FUNCTION ── */
.nml-fc-scene[data-fn="Brand"] .nml-fc-card-name    { color: #3B0764; }
.nml-fc-scene[data-fn="Brand"] .nml-fc-back-label   { color: #3B0764; }
.nml-fc-scene[data-fn="Brand"] .nml-fc-back-formula { background: rgba(59,7,100,.06); border-color: rgba(59,7,100,.15); color: #3B0764; }

.nml-fc-scene[data-fn="Trade"] .nml-fc-card-name    { color: #1E2D40; }
.nml-fc-scene[data-fn="Trade"] .nml-fc-back-label   { color: #1E2D40; }
.nml-fc-scene[data-fn="Trade"] .nml-fc-back-formula { background: rgba(30,45,64,.06); border-color: rgba(30,45,64,.15); color: #1E2D40; }

.nml-fc-scene[data-fn="Sale"]  .nml-fc-card-name    { color: #0F766E; }
.nml-fc-scene[data-fn="Sale"]  .nml-fc-back-label   { color: #0F766E; }
.nml-fc-scene[data-fn="Sale"]  .nml-fc-back-formula { background: rgba(15,118,110,.06); border-color: rgba(15,118,110,.15); color: #0F766E; }

.nml-fc-scene[data-fn="Ecom"]  .nml-fc-card-name    { color: #A0522D; }
.nml-fc-scene[data-fn="Ecom"]  .nml-fc-back-label   { color: #A0522D; }
.nml-fc-scene[data-fn="Ecom"]  .nml-fc-back-formula { background: rgba(160,82,45,.06); border-color: rgba(160,82,45,.15); color: #A0522D; }

/* ── LEVEL BAR ── */
.nml-fc-level-bar { display: flex; gap: 3px; align-items: center; }
.nml-fc-lvl-dot   { width: 16px; height: 4px; border-radius: 2px; background: #E2E8F0; }
.nml-fc-lvl-dot.on.lvl-Fresher  { background: #22C55E; }
.nml-fc-lvl-dot.on.lvl-Upgrader { background: #2F6BFF; }
.nml-fc-lvl-dot.on.lvl-Master   { background: #F59E0B; }
.nml-fc-lvl-text  { font-size: 10px; color: #94A3B8; margin-left: 5px; }

/* ── ANIMATIONS ── */
@keyframes floatCard  { from { opacity:0; transform:translateY(40px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes floatUp    { from { opacity:0; transform:translateY(14px); }            to { opacity:1; transform:translateY(0); } }
@keyframes floatIcon  { from { opacity:0; transform:translateY(28px) scale(.88); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes floatPill  { from { opacity:0; transform:translateY(10px) scaleX(.9); } to { opacity:1; transform:translateY(0) scaleX(1); } }

.anim-card    { animation: floatCard 0.7s cubic-bezier(.22,1,.36,1) both; }
.anim-heading { animation: floatUp   0.6s cubic-bezier(.22,1,.36,1) .38s both; }
.anim-sub     { animation: floatUp   0.6s cubic-bezier(.22,1,.36,1) .45s both; }
.anim-icon    { animation: floatIcon 0.8s cubic-bezier(.22,1,.36,1) .25s both; }
.anim-bullet  { animation: floatPill 0.6s cubic-bezier(.22,1,.36,1) .55s both; }
.anim-footer  { animation: floatPill 0.6s cubic-bezier(.22,1,.36,1) .65s both; }

/* ─────────────────────────────────────────
   CARD — FRONT CONTENT
───────────────────────────────────────── */

.nml-fc-card-top {
  padding: 13px 15px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.nml-fc-card-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.nml-fc-card-img img {
  width: 250px !important;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, .1));
}

.nml-fc-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  text-align: center;
  padding: 0 12px 3px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.nml-fc-card-sub {
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
  padding: 0 12px 2px;
  position: relative;
  z-index: 2;
}

.nml-fc-card-quote {
  font-size: 16px;
  color: #000000;
  font-style: normal;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.5;
  border-top: 1px solid rgba(226, 232, 240, .7);
  position: relative;
  z-index: 2;
}

.nml-fc-flip-hint {
  font-size: 10px;
  color: #94A3B8;
  text-align: center;
  padding: 6px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-top: 1px solid rgba(226, 232, 240, .5);
  position: relative;
  z-index: 2;
}
  .nml-fc-flip-hint svg {
  width: 14px;
  height: 14px;
  stroke: #94A3B8;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   BADGES
───────────────────────────────────────── */

.nml-fc-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: .04em;
  display: inline-block;
}

/* ── BRAND — Deep Purple #3B0764 ── */
.nml-fc-badge-Brand {
  background: rgba(59, 7, 100, .10);
  color: #3B0764;
  border: 1px solid rgba(59, 7, 100, .22);
}
.nml-fc-badge.filled.nml-fc-badge-Brand {
  background: #3B0764;
  color: #fff;
  border-color: #3B0764;
}

/* ── TRADE — Titan Navy #1E2D40 ── */
.nml-fc-badge-Trade {
  background: rgba(30, 45, 64, .10);
  color: #1E2D40;
  border: 1px solid rgba(30, 45, 64, .22);
}
.nml-fc-badge.filled.nml-fc-badge-Trade {
  background: #1E2D40;
  color: #fff;
  border-color: #1E2D40;
}

/* ── SALE — Deep Teal #0F766E ── */
.nml-fc-badge-Sale {
  background: rgba(15, 118, 110, .10);
  color: #0F766E;
  border: 1px solid rgba(15, 118, 110, .22);
}
.nml-fc-badge.filled.nml-fc-badge-Sale {
  background: #0F766E;
  color: #fff;
  border-color: #0F766E;
}

/* ── ECOM — Sienna #A0522D ── */
.nml-fc-badge-Ecom {
  background: rgba(160, 82, 45, .10);
  color: #A0522D;
  border: 1px solid rgba(160, 82, 45, .22);
}
.nml-fc-badge.filled.nml-fc-badge-Ecom {
  background: #A0522D;
  color: #fff;
  border-color: #A0522D;
}

/* ─────────────────────────────────────────
   LEVEL BAR
───────────────────────────────────────── */

.nml-fc-level-bar {
  display: flex;
  gap: 3px;
  align-items: center;
}

.nml-fc-lvl-dot {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: #E2E8F0;
}

.nml-fc-lvl-dot.on.lvl-Basic    { background: #22C55E; }
.nml-fc-lvl-dot.on.lvl-Advanced { background: #2F6BFF; }
.nml-fc-lvl-dot.on.lvl-Master   { background: #5B6CFF; }

.nml-fc-lvl-text {
  font-size: 10px;
  color: #94A3B8;
  margin-left: 5px;
}


/* ─────────────────────────────────────────
   CARD — BACK CONTENT
───────────────────────────────────────── */

.nml-fc-back-fn {
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.nml-fc-back-label {
  font-size: 10px;
  font-weight: 700;
  color: #2F6BFF;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
  margin-top: 9px;
  position: relative;
  z-index: 2;
}

.nml-fc-back-label:first-of-type {
  margin-top: 0;
}

.nml-fc-back-val {
  font-size: 12px;
  color: #334155;
  line-height: 1.55;
  position: relative;
  z-index: 2;
}

.nml-fc-back-formula {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(47, 107, 255, .06);
  padding: 6px 10px;
  border-radius: 8px;
  color: #1E40AF;
  border: 1px solid rgba(47, 107, 255, .15);
  margin-top: 3px;
  position: relative;
  z-index: 2;
}

.nml-fc-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}

.nml-fc-chip {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  background: #F8FAFC;
  transition: all .15s;
}

.nml-fc-chip:hover {
  background: rgba(47, 107, 255, .08);
  border-color: #5B8CFF;
  color: #2F6BFF;
}



/* ─────────────────────────────────────────
   LOCKED CARD
───────────────────────────────────────── */

.nml-fc-locked-card {
  border-radius: 20px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.nml-fc-lock-blur {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  filter: blur(5px);
  opacity: .2;
  pointer-events: none;
}

.nml-fc-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(248, 250, 252, .5);
}

.nml-fc-lock-icon svg { stroke: #0F172A; }

.nml-fc-fn-Brand .nml-fc-lock-icon svg { stroke: #3B0764; }
.nml-fc-fn-Trade .nml-fc-lock-icon svg { stroke: #1E2D40; }
.nml-fc-fn-Sale  .nml-fc-lock-icon svg { stroke: #0F766E; }
.nml-fc-fn-Ecom  .nml-fc-lock-icon svg { stroke: #A0522D; }

.nml-fc-lock-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.nml-fc-lock-desc {
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
  padding: 0 24px;
  line-height: 1.5;
}

.nml-fc-lock-preview {
  font-size: 11px;
  color: #475569;
  text-align: center;
  padding: 4px 16px;
}

.nml-fc-upgrade-btn {
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2F6BFF, #5B6CFF);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(47, 107, 255, .35);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}

.nml-fc-upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, .45);
  color: #fff;
}


/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */

.nml-fc-pagination-wrap {
  position: relative;
  z-index: 8;
  padding: 8px 0 40px;
  display: flex;
  justify-content: center;
}

.nml-fc-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nml-fc-pg-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nml-fc-pg-btn:hover:not(.active):not([disabled]) {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.nml-fc-pg-btn.active {
  background: #2F6BFF;
  color: #fff;
  border-color: #2F6BFF;
  font-weight: 600;
}

.nml-fc-pg-btn[disabled] {
  opacity: .3;
  cursor: default;
}

.nml-fc-pg-dots {
  padding: 0 4px;
  color: #94A3B8;
  font-size: 13px;
}


/* ─────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────── */

.nml-fc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #94A3B8;
  font-size: 14px;
}

.nml-fc-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* BASE — mobile ≤ 560px: 1 cột */
.nml-fc-header,
.nml-fc-filter-bar,
.nml-fc-toolbar,
.nml-fc-grid-wrap,
.nml-fc-pagination-wrap         { padding-left: 16px; padding-right: 16px; }
.nml-fc-grid                    { grid-template-columns: 1fr; gap: 15px; }
.nml-fc-scene,
.nml-fc-locked-card             { height: 380px; }
.nml-fc-header-inner            { flex-direction: column; }
.nml-fc-search-wrap,
.nml-fc-search                  { width: 100%; }
.nml-fc-filter-inner            { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
.nml-fc-filter-group            { flex-shrink: 0; }
.nml-fc-pill                    { padding: 5px 10px; font-size: 11px; }

/* ≥ 561px — tablet nhỏ: 2 cột */
@media (min-width: 561px) {
  .nml-fc-header,
  .nml-fc-filter-bar,
  .nml-fc-toolbar,
  .nml-fc-grid-wrap,
  .nml-fc-pagination-wrap       { padding-left: 20px; padding-right: 20px; }
  .nml-fc-grid                  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nml-fc-scene,
  .nml-fc-locked-card           { height: 350px; }
  .nml-fc-card-img              { font-size: 40px; }
  .nml-fc-card-name             { font-size: 12px; padding: 0 8px 2px; }
  .nml-fc-card-sub              { font-size: 12px; padding: 0 8px; }
  .nml-fc-card-quote            { font-size: 10px; padding: 6px 10px; }
  .nml-fc-flip-hint             { font-size: 9px; padding: 5px 0 6px; }
  .nml-fc-header-inner          { flex-direction: row; }
  .nml-fc-search-wrap,
  .nml-fc-search                { width: 200px; }
  .nml-fc-filter-inner          { overflow-x: visible; flex-wrap: wrap; }
  .nml-fc-pill                  { padding: 6px 12px; font-size: 12px; }
}

/* ≥ 901px — tablet lớn: 3 cột */
@media (min-width: 901px) {
  .nml-fc-header,
  .nml-fc-filter-bar,
  .nml-fc-toolbar,
  .nml-fc-grid-wrap,
  .nml-fc-pagination-wrap       { padding-left: 28px; padding-right: 28px; }
  .nml-fc-grid                  { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .nml-fc-scene,
  .nml-fc-locked-card           { height: 350px; }
  .nml-fc-card-img              { font-size: 48px; }
  .nml-fc-card-name             { font-size: 14px; padding: 0 10px 2px; }
  .nml-fc-card-sub              { font-size: 11px; padding: 0 10px; }
  .nml-fc-card-quote            { font-size: 11px; padding: 7px 10px; }
  .nml-fc-search                { width: 220px; }
}

/* ≥ 1101px — desktop nhỏ: 4 cột */
@media (min-width: 1101px) {
  .nml-fc-header,
  .nml-fc-filter-bar,
  .nml-fc-toolbar,
  .nml-fc-grid-wrap,
  .nml-fc-pagination-wrap       { padding-left: 40px; padding-right: 40px; }
  .nml-fc-grid                  { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .nml-fc-scene,
  .nml-fc-locked-card           { height: 350px; }
  .nml-fc-card-img              { font-size: 56px; }
  .nml-fc-card-name             { font-size: 16px; padding: 0 12px 3px; }
  .nml-fc-card-sub              { font-size: 11px; padding: 0 12px 2px; }
  .nml-fc-card-quote            { font-size: 11px; padding: 8px 12px; }
  .nml-fc-flip-hint             { font-size: 10px; padding: 6px 0 8px; }
  .nml-fc-search                { width: 240px; }
}

/* ≥ 1400px — desktop vừa: 5 cột */
@media (min-width: 1400px) {
  .nml-fc-header,
  .nml-fc-filter-bar,
  .nml-fc-toolbar,
  .nml-fc-grid-wrap,
  .nml-fc-pagination-wrap       { padding-left: 70px; padding-right: 70px; }
  .nml-fc-grid                  { grid-template-columns: repeat(4, 1fr);  gap: 30px; }
    .nml-fc-scene,
  .nml-fc-locked-card           { height: 400px; }
  .nml-fc-card-name             { font-size: 16px; padding: 0 12px 3px; }
  .nml-fc-card-quote            { font-size: 14px; font-weight: 700; padding: 8px 25px; }
}

/* ≥ 1800px — desktop lớn: 5 cột */
@media (min-width: 1800px) {
  .nml-fc-header,
  .nml-fc-filter-bar,
  .nml-fc-toolbar,
  .nml-fc-grid-wrap,
  .nml-fc-pagination-wrap       { padding-left: 90px; padding-right: 90px; }
  .nml-fc-grid                  { grid-template-columns: repeat(5, 1fr);  gap: 30px; }
      .nml-fc-scene,
  .nml-fc-locked-card           { height: 400px; }
  .nml-fc-card-name             { font-size: 16px; padding: 0 12px 3px; }
  .nml-fc-card-quote            { font-size: 14px;font-weight: 700; padding: 8px 25px; }
}
