/* MS Photo Card — ফ্রন্টএন্ড · Design & Development: MS IT SOFT (www.msitsoft.com) */
.npb-pc {
  --npb-red: #c8102e;
  --npb-red-dark: #8b0014;
  --npb-ink: #1d1d1f;
  --npb-muted: #6e6e73;
  --npb-line: #ececf0;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px;
  max-width: 1120px; margin: 28px auto; padding: 32px;
  font-family: 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  color: var(--npb-ink); background: #fff; border-radius: 18px;
  box-shadow: 0 10px 40px rgba(139, 0, 20, .10), 0 1px 3px rgba(0,0,0,.05);
  box-sizing: border-box;
}
.npb-pc *, .npb-pc *::before, .npb-pc *::after { box-sizing: border-box; }

/* বাম কলাম */
.npb-pc-left h2 {
  margin: 0 0 8px; font-size: 26px; font-weight: 900; line-height: 1.3;
  background: linear-gradient(90deg, var(--npb-red-dark), var(--npb-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.npb-pc-intro { margin: 0 0 20px; font-size: 14px; color: var(--npb-muted); line-height: 1.6; }

.npb-pc-upload {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 210px; border-radius: 16px; cursor: pointer; color: #fff; font-size: 17px; font-weight: 700;
  background: radial-gradient(120% 120% at 50% 0%, #ff4d5a 0%, #e4101c 45%, #8b0010 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 8px 24px rgba(200,16,46,.30);
  transition: transform .2s ease, box-shadow .2s ease;
}
.npb-pc-upload:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 12px 30px rgba(200,16,46,.38); }
.npb-pc-upload::before {
  content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255,255,255,.55); border-radius: 12px; pointer-events: none;
}
.npb-pc-cam {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: rgba(255,255,255,.18); backdrop-filter: blur(2px);
}

.npb-pc-field { margin-top: 22px; }
.npb-pc-field > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--npb-red); }
.npb-pc-name {
  width: 100%; padding: 13px 16px; font-size: 16px; font-family: inherit; color: var(--npb-ink);
  border: 1.5px solid #e5e5ea; border-radius: 12px; background: #fafafc; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.npb-pc-name:focus { border-color: var(--npb-red); background: #fff; box-shadow: 0 0 0 4px rgba(200,16,46,.12); }

/* স্লাইডার বক্স (ফন্ট ও জুম) */
.npb-pc-stepper {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--npb-line); border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.npb-pc-stepper input[type="range"] { flex: 1; accent-color: var(--npb-red); cursor: pointer; }
.npb-pc-val { min-width: 42px; text-align: center; font-weight: 800; color: var(--npb-red); font-variant-numeric: tabular-nums; }
.npb-pc-round {
  width: 32px; height: 32px; flex: none; border: none; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, #ff4d5a, #c8102e); color: #fff; font-size: 17px; line-height: 1;
  box-shadow: 0 3px 8px rgba(200,16,46,.3); transition: transform .15s ease;
}
.npb-pc-round:hover { transform: scale(1.08); }
.npb-pc-round.grey { background: linear-gradient(180deg, #8e8e93, #636366); box-shadow: 0 3px 8px rgba(0,0,0,.2); }

/* ডান কলাম */
.npb-pc-right { display: flex; flex-direction: column; }
.npb-pc-canvas {
  width: 100%; height: auto; display: block; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(139,0,20,.18), 0 0 0 6px #fff, 0 0 0 7px var(--npb-line);
}
.npb-pc-right .npb-pc-field { margin-top: 22px; }
.npb-pc-right .npb-pc-field > label { margin-bottom: 8px; }
.npb-pc-pad {
  display: grid; grid-template-columns: repeat(5, 48px); gap: 10px; justify-content: center; margin-top: 18px;
}
.npb-pc-pad .npb-pc-move {
  height: 48px; border: none; border-radius: 12px; cursor: pointer; font-size: 20px; color: #fff;
  background: linear-gradient(180deg, #ff4d5a, #c8102e); box-shadow: 0 4px 10px rgba(200,16,46,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.npb-pc-pad .npb-pc-move:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(200,16,46,.36); }
.npb-pc-pad .npb-pc-move:active { transform: translateY(0); }
.npb-pc-pad .npb-pc-move-reset { background: linear-gradient(180deg, #8e8e93, #636366); box-shadow: 0 4px 10px rgba(0,0,0,.18); }

.npb-pc-download {
  display: block; width: 100%; margin: 22px 0 0; padding: 15px 22px; border: none; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .2px;
  background: linear-gradient(100deg, #8b0010 0%, #d9272e 55%, #ff4d5a 100%);
  box-shadow: 0 10px 24px rgba(200,16,46,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.npb-pc-download:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200,16,46,.45); }
.npb-pc-download:active { transform: translateY(0); }

.npb-pc-credit {
  margin: 18px 0 0; text-align: center; font-size: 13px; color: #71717a;
  display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap;
}
.npb-pc-credit a {
  position: relative; display: inline-flex; align-items: center;
  font-weight: 800; letter-spacing: .4px; text-decoration: none;
  background: linear-gradient(90deg, #c8102e 0%, #ff4d5a 25%, #ffb703 50%, #ff4d5a 75%, #c8102e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: ms-shine 2.8s linear infinite;
  transition: transform .25s ease, filter .25s ease;
  padding: 2px 2px;
}
.npb-pc-credit a:hover {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 3px 8px rgba(234, 179, 8, .5));
}
.npb-pc-credit a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, #c8102e, #ffb703, #c8102e);
  background-size: 200% auto; border-radius: 2px;
  animation: ms-shine 2.8s linear infinite;
}
@keyframes ms-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@media (max-width: 800px) {
  .npb-pc { grid-template-columns: 1fr; padding: 20px; gap: 24px; border-radius: 14px; }
  .npb-pc-left h2 { font-size: 22px; }
  .npb-pc-pad { grid-template-columns: repeat(5, 1fr); }
  .npb-pc-pad .npb-pc-move { width: 100%; }
}
