* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.pc-page { background: #0b2235; color: #e8eef3; font-family: 'SolaimanLipi', 'Noto Sans Bengali', Arial, sans-serif; min-height: 100vh; }

.pc-wrap { max-width: 640px; margin: 0 auto; padding: 20px 12px 40px; }

/* ---------- preview stage ---------- */
.pc-stage { width: 100%; margin: 0 auto 16px; overflow: hidden; }
.pc-scale { width: 600px; transform-origin: top left; }

/* ---------- card ---------- */
.pc-card {
    --pc-bg: #ffffff;
    --pc-head-bg: #ffffff;
    --pc-head-fg: #111111;
    --pc-accent: #e3131b;
    --pc-title: #111111;
    --pc-foot-fg: #111111;
    --pc-badge-bg: #e3131b;
    --pc-badge-fg: #ffffff;
    --pc-dot: #e3131b;
    --pc-title-fs: 32px;
    --pc-title-lh: 1.5;
    --pc-title-shift: 0px;
    width: 600px;
    background: var(--pc-bg);
    overflow: hidden;
    position: relative;
    font-family: 'SolaimanLipi', Arial, sans-serif;
}
.pc-main { height: 600px; display: flex; flex-direction: column; position: relative; }
.pc-ad { line-height: 0; background: #ffffff; text-align: center; overflow: hidden; }
.pc-ad img { display: block; width: 100%; height: auto; }
.pc-ad > *:not(img) { max-width: 100%; line-height: normal; }
.pc-head { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--pc-head-bg); color: var(--pc-head-fg); }
.pc-head-info { display: flex; align-items: center; font-size: 19px; font-weight: bold; white-space: nowrap; overflow: hidden; }
.pc-sep { display: inline-block; width: 2px; height: 20px; background: var(--pc-accent); margin: 0 10px; }
.pc-date { font-weight: normal; }
.pc-logo { height: 38px; display: flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: #ffffff; }
.pc-logo img { max-height: 32px; max-width: 170px; display: block; }
.pc-logo-text { color: #111; font-weight: bold; font-size: 18px; }

.pc-media { flex: none; padding: 4px 18px 0; position: relative; }
.pc-fav { position: absolute; left: 280px; bottom: 10px; width: 40px; height: 40px; padding: 4px; background: #ffffff; border: 2px solid var(--pc-accent); border-radius: 50%; opacity: .95; }
.pc-img { height: 284px; border-radius: 14px; border: 3px solid var(--pc-accent); background-color: #ddd; background-size: cover; background-position: center; }
.pc-img-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e9ecef, #ced4da); color: #495057; font-size: 30px; font-weight: bold; }

.pc-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 26px 0; overflow: hidden; }
.pc-title { margin: 0; position: relative; top: var(--pc-title-shift); color: var(--pc-title); font-family: 'SolaimanLipi', Arial, sans-serif; font-weight: bold; font-size: var(--pc-title-fs); line-height: var(--pc-title-lh); text-align: center; word-break: break-word; }

.pc-foot { height: 100px; flex: none; display: flex; align-items: center; padding: 0 18px 8px; color: var(--pc-foot-fg); }
.pc-qr, .pc-foot-side { width: 150px; flex: none; }
.pc-qr img { display: block; width: 82px; height: 82px; padding: 4px; background: #fff; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); image-rendering: pixelated; }
.pc-social { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.pc-social-row { display: flex; align-items: center; gap: 6px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 16px; color: var(--pc-foot-fg); white-space: nowrap; }
.pc-social-icon { display: block; width: 16px; height: 16px; flex: none; }
.pc-foot-mid { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-badge-row { display: flex; align-items: center; gap: 8px; }
.pc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--pc-dot); display: inline-block; }
.pc-badge { background: var(--pc-badge-bg); color: var(--pc-badge-fg); font-size: 17px; font-weight: bold; padding: 5px 16px 4px; border-radius: 16px; line-height: 1.3; }
.pc-domain { font-family: Georgia, 'Times New Roman', serif; font-weight: bold; font-size: 15px; letter-spacing: 1px; }

/* ---------- themes ---------- */
.pc-theme-green { --pc-head-bg: #0b6b3a; --pc-head-fg: #ffffff; --pc-accent: #0b6b3a; --pc-title: #0b3d22; --pc-dot: #0b6b3a; }
.pc-theme-green .pc-sep { background: #ffffff; }
.pc-theme-crimson { --pc-bg: linear-gradient(180deg, #c3101f 0%, #7a0a15 100%); --pc-head-bg: rgba(0,0,0,.22); --pc-head-fg: #ffffff; --pc-accent: #ffd54a; --pc-title: #ffffff; --pc-foot-fg: #ffffff; --pc-badge-bg: #ffffff; --pc-badge-fg: #c3101f; --pc-dot: #ffd54a; }
.pc-theme-navy { --pc-bg: #0b1f3a; --pc-head-bg: #071629; --pc-head-fg: #ffffff; --pc-accent: #ffc928; --pc-title: #ffc928; --pc-foot-fg: #ffffff; --pc-dot: #ffc928; }
.pc-theme-gold { --pc-bg: linear-gradient(180deg, #1b1b1b 0%, #000000 100%); --pc-head-bg: #000000; --pc-head-fg: #f1d27a; --pc-accent: #d4a017; --pc-title: #ffffff; --pc-foot-fg: #f1d27a; --pc-dot: #d4a017; }
.pc-theme-sky { --pc-bg: linear-gradient(180deg, #e7f3ff 0%, #ffffff 70%); --pc-head-bg: #0a66c2; --pc-head-fg: #ffffff; --pc-accent: #0a66c2; --pc-title: #0b2545; --pc-dot: #0a66c2; }
.pc-theme-sky .pc-sep { background: #ffffff; }

/* ---------- panels ---------- */
.pc-panel { background: #0f3049; border: 1px solid #17405f; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.pc-panel-title { font-size: 15px; margin-bottom: 10px; color: #cfe0ee; }
.pc-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pc-thumb { flex: none; width: 104px; height: 104px; padding: 0; border: 3px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; position: relative; }
.pc-thumb.is-active { border-color: #ffc928; }
.pc-thumb:focus-visible { outline: 2px solid #4fc3f7; outline-offset: 2px; }
.pc-thumb-inner { width: 600px; height: 600px; transform: scale(0.163); transform-origin: top left; pointer-events: none; }

.pc-control { margin-bottom: 14px; }
.pc-control label { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.pc-control label b { color: #ffc928; font-weight: normal; font-family: Arial, sans-serif; }
.pc-control input[type=range] { width: 100%; accent-color: #1e90ff; cursor: pointer; }

.pc-actions, .pc-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pc-share { margin-top: 12px; }
.pc-share span { font-size: 14px; color: #cfe0ee; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 4px; font: inherit; font-size: 15px; cursor: pointer; text-decoration: none; color: #fff; transition: filter .15s, transform .1s; }
.pc-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pc-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.pc-btn-back { background: #6c757d; }
.pc-btn-reset { background: #34495e; }
.pc-btn-dl { background: #0dcaf0; color: #062433; flex: 1; font-weight: bold; }
.pc-btn-wa { background: #25d366; color: #062b14; }
.pc-btn-ms { background: linear-gradient(135deg, #0695ff, #a334fa); }
.pc-msg { min-height: 20px; margin: 10px 0 0; font-size: 14px; color: #9fe3b0; }
.pc-msg.is-error { color: #ff9a9a; }
