.dfl-wrap { display: flex; flex-direction: column; gap: 20px; }
.dfl-wrap [hidden] { display: none !important; }
.dfl-bento-top { display: grid; grid-template-columns: 310px 1fr 270px; gap: 16px; align-items: stretch; }
.dfl-card {
  background: #0d182e; border: 1px solid rgba(56, 189, 248, 0.2); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.dfl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dfl-card-title { margin: 0; font-size: 16px; font-weight: 700; color: #fff; font-family: 'Space Grotesk', sans-serif; display: flex; align-items: center; gap: 8px; }
.dfl-card-sub { margin: -6px 0 0; font-size: 12px; color: #93a7c6; }
.dfl-tag-green { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(34,197,94,0.16); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.dfl-link-sm { font-size: 12px; font-weight: 600; color: #38bdf8; white-space: nowrap; }
.dfl-stepper-list { display: grid; gap: 8px; }
.dfl-stepper-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 10px; background: #091224; border: 1px solid rgba(56,189,248,0.12);
}
.dfl-stepper-name { font-size: 13px; font-weight: 600; color: #e2eeff; display: flex; align-items: center; gap: 8px; }
.dfl-stepper-ctrl { display: inline-flex; align-items: center; gap: 6px; }
.dfl-step-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(56,189,248,0.3);
  background: #122444; color: #38bdf8; font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.dfl-step-btn:hover { background: #00d4ff; color: #061326; }
.dfl-step-val { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; }
.dfl-match-box { padding: 10px 12px; border-radius: 10px; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.3); font-size: 13px; color: #bae6fd; }
.dfl-match-box strong { color: #00d4ff; }
.dfl-pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; }
.dfl-pop-card {
  background: #091224; border: 1px solid rgba(56,189,248,0.18); border-radius: 12px; padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  transition: transform .15s, border-color .15s;
}
.dfl-pop-card:hover { transform: translateY(-2px); border-color: #00d4ff; }
.dfl-pop-card[data-r="MYTHIC"] { border-color: rgba(236,72,153,0.4); }
.dfl-pop-card[data-r="LEGENDARY"] { border-color: rgba(245,158,11,0.4); }
.dfl-pop-card[data-r="EPIC"] { border-color: rgba(168,85,247,0.4); }
.dfl-pop-card[data-r="RARE"] { border-color: rgba(59,130,246,0.4); }
.dfl-pop-name { font-size: 15px; font-weight: 700; color: #fff; font-family: 'Space Grotesk', sans-serif; }
.dfl-pop-formula { font-size: 11px; color: #93a7c6; line-height: 1.35; }
.dfl-pop-btn {
  margin-top: auto; width: 100%; padding: 6px 8px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(56,189,248,0.12); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.28); text-decoration: none;
}
.dfl-pop-btn:hover { background: #00d4ff; color: #061326; text-decoration: none; }
.dfl-warn-list { display: grid; gap: 8px; }
.dfl-warn-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 10px; background: #091224; border: 1px solid rgba(245,158,11,0.25);
}
.dfl-warn-name { font-size: 13px; font-weight: 700; color: #fff; }
.dfl-warn-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(245,158,11,0.2); color: #fcd34d; white-space: nowrap; }

/* Full Planner Grid (for /fusion-calculator) */
.dfl-planner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 8px; }
.dfl-planner-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* Recipes Explorer */
.dfl-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dfl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dfl-pill {
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(56,189,248,0.22);
  background: #091224; color: #b8cae3; font-size: 12px; font-weight: 700; cursor: pointer;
}
.dfl-pill:hover { border-color: #00d4ff; color: #fff; }
.dfl-pill.is-active { background: #00d4ff; border-color: #00d4ff; color: #061326; }
.dfl-search-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dfl-input, .dfl-select {
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(56,189,248,0.25);
  background: #091224; color: #fff; font-size: 13px; font-family: inherit;
}
.dfl-input { min-width: 210px; }
.dfl-recipe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dfl-rcard {
  background: #091224; border: 1px solid rgba(56,189,248,0.16); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.dfl-rcard.is-ready { border-color: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,0.35); background: rgba(16, 42, 34, 0.55); }
.dfl-rcard.is-almost { border-color: rgba(245,158,11,0.5); }
.dfl-rcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dfl-rcard-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dfl-rcard-name { font-size: 17px; font-weight: 700; color: #fff; font-family: 'Space Grotesk', sans-serif; }
.dfl-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dfl-status-ready { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.45); }
.dfl-status-almost { background: rgba(245,158,11,0.2); color: #fcd34d; border: 1px solid rgba(245,158,11,0.45); }
.dfl-status-none { background: rgba(148,163,184,0.12); color: #94a3b8; }
.dfl-ings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dfl-ing {
  font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px;
  background: #10203b; color: #dbeafe; border: 1px solid rgba(56,189,248,0.2);
}
.dfl-ing.is-ok { background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.45); color: #bbf7d0; }
.dfl-ing-warn { color: #fbbf24; font-size: 11px; margin-left: 4px; }
.dfl-plus { color: #64748b; font-weight: 700; }
.dfl-rcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #93a7c6; }
.dfl-new-tag { background: rgba(0,212,255,0.2); color: #38bdf8; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

/* Lower Bento */
.dfl-bento-bottom { display: grid; grid-template-columns: 1.25fr 1fr 0.95fr; gap: 16px; }
.dfl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dfl-step { background: #091224; border: 1px solid rgba(56,189,248,0.15); border-radius: 10px; padding: 12px; text-align: center; }
.dfl-step-num { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,212,255,0.2); color: #00d4ff; font-weight: 700; font-size: 12px; align-items: center; justify-content: center; margin-bottom: 6px; }
.dfl-step strong { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.dfl-step p { margin: 0; font-size: 12px; color: #93a7c6; }
.dfl-updates { display: grid; gap: 8px; }
.dfl-upd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #091224; font-size: 13px; }
.dfl-upd-ver { font-weight: 700; color: #38bdf8; }
.dfl-upd-date { font-size: 11px; color: #93a7c6; white-space: nowrap; }
.dfl-cta-box { background: linear-gradient(135deg, #102446, #09142a); border-color: rgba(0,212,255,0.35); justify-content: space-between; }

@media (max-width: 1060px) {
  .dfl-bento-top { grid-template-columns: 1fr; }
  .dfl-pop-grid { grid-template-columns: repeat(2, 1fr); }
  .dfl-bento-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dfl-recipe-grid { grid-template-columns: 1fr; }
  .dfl-steps { grid-template-columns: 1fr; }
  .dfl-input { width: 100%; }
}