/* Linuks sihirbazları – modern kart tasarımı (site --primary rengini kullanır) */
#box-wizard, #box-wizard-pc, .wz-skel {
  --wz-primary: var(--primary, var(--color-primary, #2563eb));
  --wz-ink: #0f172a; --wz-muted: #64748b; --wz-line: #e2e8f0; --wz-soft: #f1f5f9;
  --wz-radius: 16px;
}
#box-wizard-pc { margin: 0 0 24px; }
#box-wizard { margin: 24px 0; }
#box-wizard *, #box-wizard-pc * { box-sizing: border-box; }

/* kart */
#box-wizard .wz-card, #box-wizard-pc .wz-card {
  background: #fff; border: 1px solid var(--wz-line); border-radius: var(--wz-radius);
  padding: 22px 24px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12);
  transition: box-shadow .2s, transform .2s;
}
#box-wizard .wz-card:hover { box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 16px 32px -14px rgba(15,23,42,.2); transform: translateY(-2px); }

/* üstteki bilgisayar sihirbazı: koyu gradient şerit */
#box-wizard-pc .wz-card {
  background: linear-gradient(120deg, #0f172a 0%, #1e293b 55%, color-mix(in srgb, var(--wz-primary) 55%, #0f172a) 100%);
  border: 0; color: #fff; padding: 20px 26px;
}
#box-wizard-pc .wz-card-row { display: flex; align-items: center; gap: 28px; }
#box-wizard-pc .wz-head { flex: 0 0 230px; display: flex; gap: 12px; align-items: center; }
#box-wizard-pc .wz-title { color: #fff; }
#box-wizard-pc .wz-sub { color: #cbd5e1; }
#box-wizard-pc .wz-label { color: #cbd5e1; }
#box-wizard-pc .wz-icon { background: rgba(255,255,255,.12); color: #fff; }
#box-wizard-pc .wz-panel { flex: 1; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; min-width: 0; }
#box-wizard-pc .wz-fields { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; min-width: 0; }
#box-wizard-pc .wz-count { color: #e2e8f0; background: rgba(255,255,255,.1); }
#box-wizard-pc .wz-reset { color: #cbd5e1; }

/* başlık */
.wz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wz-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.2; color: var(--wz-ink); }
.wz-sub { margin: 3px 0 0; font-size: .8rem; line-height: 1.35; color: var(--wz-muted); }
#box-wizard-pc .wz-head { margin-bottom: 0; }
.wz-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--wz-primary) 12%, #fff); color: var(--wz-primary); }

/* alanlar */
.wz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wz-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.wz-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wz-muted); }
.wz-select {
  width: 100%; height: 44px; padding: 0 38px 0 14px; font-size: .95rem; color: var(--wz-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #cbd5e1; border-radius: 10px; appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.wz-select:hover { border-color: #94a3b8; }
.wz-select:focus { outline: 0; border-color: var(--wz-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wz-primary) 22%, transparent); }

/* alt çubuk */
.wz-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--wz-line); flex-wrap: wrap; }
#box-wizard-pc .wz-actions { margin: 0; padding: 0; border: 0; }
.wz-count { flex: 1; font-size: .82rem; font-weight: 600; color: var(--wz-ink); background: var(--wz-soft); padding: 7px 12px; border-radius: 999px; white-space: nowrap; flex: 0 1 auto; }
.wz-reset { background: none; border: 0; padding: 6px; cursor: pointer; font-size: .85rem; color: var(--wz-muted); margin-left: auto; }
#box-wizard-pc .wz-reset { margin-left: 0; }
.wz-reset:hover { color: var(--wz-ink); text-decoration: underline; }
.wz-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: var(--wz-primary); color: #fff !important; text-decoration: none !important; white-space: nowrap;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--wz-primary) 70%, transparent); transition: transform .15s, box-shadow .15s, filter .15s;
}
.wz-btn::after { content: "→"; transition: transform .15s; }
.wz-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wz-btn:hover::after { transform: translateX(3px); }
.wz-btn.wz-disabled { opacity: .4; pointer-events: none; box-shadow: none; }
#box-wizard-pc .wz-btn { background: #fff; color: var(--wz-ink) !important; box-shadow: none; }

/* yerleşim */
#box-wizard .wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#box-wizard .wz-grid-1 { grid-template-columns: 1fr; }
#box-wizard .wz-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.wz-hidden { display: none; }

/* iskelet */
.wz-skel .wz-card { min-height: 100px; border: 1px solid var(--wz-line); border-radius: var(--wz-radius); margin: 0; padding: 0;
  background: linear-gradient(90deg,#f1f5f9 25%,#e8edf3 50%,#f1f5f9 75%); background-size: 200% 100%; animation: wzsk 1.2s linear infinite; }
#wz-skel-top { margin: 0 0 24px; }
#wz-skel-bot { margin: 24px 0; }
#wz-skel-bot .wz-card { min-height: 260px; }
@keyframes wzsk { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  #box-wizard-pc .wz-card-row { flex-direction: column; align-items: stretch; gap: 16px; }
  #box-wizard-pc .wz-head { flex: none; }
  #box-wizard-pc .wz-fields { grid-template-columns: repeat(3, minmax(0,1fr)); }
  #box-wizard .wz-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  #box-wizard .wz-grid, #box-wizard .wz-grid-3 { grid-template-columns: 1fr; }
  #box-wizard-pc .wz-fields { grid-template-columns: 1fr 1fr; }
  .wz-btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) { .wz-fields, #box-wizard-pc .wz-fields { grid-template-columns: 1fr; } }

/* düzeltmeler: üst çubukta alanlar kısılmasın */
#box-wizard-pc .wz-count { display: none; }
#box-wizard-pc .wz-head { flex-basis: 210px; }
#box-wizard-pc .wz-select { padding: 0 30px 0 12px; background-position: right 9px center; }
#box-wizard-pc .wz-fields { gap: 10px; }
#box-wizard-pc .wz-actions { flex-wrap: nowrap; }
.wz-actions { flex-wrap: nowrap; }
.wz-actions .wz-btn { padding: 10px 16px; }

/* ===== MOBİL ===== */
@media (max-width: 1100px) {
  #box-wizard-pc .wz-panel { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; }
  #box-wizard-pc .wz-fields { width: 100%; flex: none; }
  #box-wizard-pc .wz-actions { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
}
@media (max-width: 720px) {
  #box-wizard-pc { margin-bottom: 16px; }
  #box-wizard-pc .wz-card, #box-wizard .wz-card { padding: 16px; border-radius: 14px; }
  #box-wizard-pc .wz-head .wz-sub { display: none; }
  .wz-icon { width: 36px; height: 36px; border-radius: 10px; }
  .wz-icon svg { width: 18px; height: 18px; }
  .wz-title { font-size: 1.05rem; }
  #box-wizard-pc .wz-fields, .wz-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wz-select, #box-wizard-pc .wz-select { height: 42px; font-size: .9rem; padding: 0 28px 0 10px; background-position: right 8px center; }
  .wz-label { font-size: .66rem; }
  .wz-actions, #box-wizard-pc .wz-actions { flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; }
  #box-wizard-pc .wz-actions { margin-top: 0; padding-top: 0; }
  .wz-actions .wz-btn { flex: 1 1 100%; width: 100%; justify-content: center; order: 3; }
  .wz-count { order: 1; }
  .wz-reset { order: 2; margin-left: auto; }
  #box-wizard-pc .wz-reset { color: #cbd5e1; }
  #box-wizard .wz-grid, #box-wizard .wz-grid-3 { gap: 16px; }
  #box-wizard { margin: 16px 0; }
  #wz-skel-top .wz-card { min-height: 260px; }
}
@media (max-width: 340px) { .wz-fields, #box-wizard-pc .wz-fields { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { #box-wizard-pc .wz-head { flex: none; } }